When the user goes to my web site, an index.html file runs and routes the
user to my Toolbook piece (call it book 1). This router file is not a part
of a book. As book 1 begins, a startup sequence runs (the code is in the
on-load page event).
Book 1 contains a link to book 2. Since book 2 runs full screen, it uses
pop-up mode. When the user clicks the link, the pop-up blocker displays,
the user clicks "allow pop-ups" and IE 8 returns control to the current html
page (book 1) rather than running book 2. This behavior is a constraint in
IE 8. Since control was returned to book 1, the start-up sequence for book
1 runs again. I would like to prevent this startup sequence from running a
second time.
I think that I need to differentiate between two conditions. In condition
1, book 1 is started from the router file, index.html. In that condition,
the startup sequence should run. In condition 2, book 1 is started by the
user clicking "allow pop-ups". In this condition, the startup sequence
should not run.
Is there a way to differentiate between the two conditions and use the
information to control how book 1 starts?
Thanks.
Jim
James Bowman Associates
701 Canterbury Drive
Appleton, WI 54915
Phone: 800-731-7488
Fax: 920-731-7193
ja...@jbassoc.biz
Maybe write a cookie that contains the conditional information and then
delete the cookie after the whole process is successful.
Clifton
PG Software Development
Give the JavaScript PowerPac for ToolBook a test drive!
A 12 day free trial can be downloaded by visiting the tutorials here:
http:\\www.pgsoftwaretools.com\tutorials\index.html?nav=features
The current version is 8.26 and includes a number of refined and added
functions.
<SCRIPT language="JavaScript">
<!--
if (screen.height>=768)
{
window.location="main-xga/index.html";
}
else
{
window.location="main-svga/index.html";
}
//-->
</SCRIPT>
Is it possible to start the book main-xga at page 2 rather than page 1?
Jim
Clifton
PG Software Development
Give the JavaScript PowerPac for ToolBook a test drive!
A 12 day free trial can be downloaded by visiting the tutorials here:
http:\\www.pgsoftwaretools.com\tutorials\index.html?nav=features
The current version is 8.26 and includes a number of refined and added
functions.
I had hoped that starting book 1 on an alternative page would work but the
pop-up blocker, after pop-ups are allowed, restarts the book on the
alternative page.
Maybe my best option is to detect the pop-up blocker and display a message
telling the user what to do. Do you have any javascript for detecting a
pop-up blocker?
Thanks for the help.
Jim
Another option is to open your second book in an iframe embedded in your
first file. Iframes are unaffected by popup blockers. That is why even
with the blocker turned on you can still visit web pages that torment
you with popups. These are essentially iframe elements.
Clifton
PG Software Development
Oshkosh, WI
Give the JavaScript PowerPac for ToolBook a test drive!
A 12 day free trial can be downloaded by visiting the tutorials here:
http:\\www.pgsoftwaretools.com\tutorials\index.html?nav=features
The current version is 8.26 and includes a number of refined and added
functions.
If I actuate book 2 through an iframe embedded in book 1, then book 2 will
run inside the browser, right?
Jim
I believe the answer to your question is true. Maybe what you want is to
run a native book through neuron, which can be called from "book 1". If
you use the iframe solution, the only way to make it fullscreen is to
prompt the user to press F11, which isn't really so bad either.
Clifton Sleger
PG Software Development
Give the JavaScript PowerPac for ToolBook a test drive!
A 12 day free trial can be downloaded by visiting the tutorials here:
http:\\www.pgsoftwaretools.com\tutorials\index.html?nav=features
The current version is 8.26 and includes a number of refined and added
functions.
Perhaps Microsoft will eventually modify IE so it starts pop-ups
immediately after the user allows them.
Jim