in reply to Re: Re: Re: Re: "alert" or prompt box from perl cgi script
in thread "alert" or prompt box from perl cgi script

Waving the magic wand and assuming that such a spec were in place, we would revisit my "issue" as posted, and the solution would be something like: print "Client:popup(text)\n\n";
Or you could avoid hand waving and just do
print "Content-type: text/html\n\n"; print "<script>alert(text)</script>";
Which does the exact same thing your "waving the magic wand .. spec" would do. It pops up a dialog box. What more do you want? If you want to submit form data without clearing the page you simply (relatively speaking) point the form at a different frame, even a hidden iframe and do your communication that way. Theres even a framework or two that will do this for you.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: "alert" or prompt box from perl cgi script
by argv (Pilgrim) on Jan 08, 2004 at 14:31 UTC
    If you want to submit form data without clearing the page you simply (relatively speaking) point the form at a different frame, even a hidden iframe and do your communication that way. Theres even a framework or two that will do this for you.

    yes, this is exactly what I want (to popup a box without clearing the page). Can you point me to the framework that does this?

    On what will soon become a related point: if the user has javascript turned off, the client can tell by having <noscript>sections in the html. But, how can the server side tell?