invoke script without user action

K

keyser_Soze

Nube warning!

I have a PHP script that does some calculations of user input. Under
certain circumstances, I
would like to have a popup on the user's computer. Since PHP can not
do this on the client, I
thought I would have PHP load a 'popup' page which would contain the
javascript to do the
popup.

1) Is this the right way?

2) if this is the right way, how can I invoke the action without having
the user selecting a link on
the 'popup' page.

Thanks for any insight.
 
D

David Dorward

I have a PHP script that does some calculations of user input. Under
certain circumstances, I would like to have a popup on the user's
computer. Since PHP can not do this on the client, I thought I would have
PHP load a 'popup' page which would contain the javascript to do the
popup.
1) Is this the right way?

Popups bad. Popups annoying. Avoid popups.
2) if this is the right way, how can I invoke the action without having
the user selecting a link on the 'popup' page.

Just put the window.open call inline rather then inside a function or event
handler ... but the majority of browsers come with popup blockers which
will stop that from working (since the technique is/was so popular with
advertisers).
 
K

keyser_Soze

OK,

instead of a popup, I will direct them to an information page. When
they press ok on this page, I'll put them back into the normal flow.

Currently, the code does something like:

User inputs data -> (several pieces of info passed in form: <phtml
file>?=<some data>

I would like to do:
User inputs data -> show warning -> continue to next page.

How can I keep track of the <some data> along the way?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top