"R. Mariotti" <r.mariotti at fdcx.net> writes: > OK Guys/Gals, > > Here's what hopefully is a simple one that I bet there are 1,000 answers to: > > In one of my apps where I am collecting information securely, upon > submission I wish to popup a box/panel/etc message in the middle of > the screen that says something like "please wait, blah blah blah". I > CANNOT have any NORMAL HTML output because behind the scenes I am > performing some HTTPRequest stuff to a card processor and if the > return is successful I need to be able to issue a Location: operation > to branch to a non-secured site. Why does it matter if the please wait message goes away when it's finished waiting? > Most likely this display should be accomplished using javascript and > within that realm there are numerous methods to accomplish that. > The simplest of all is the window.open scheme with creates a new > instance of the browser sized as requested. As someone who is browsing 99% of the time without JS turned on, I'd disagree with this. Almost all things people require JS for could be done just as well without requiring JS. The obvious, old timer, approach being a meta refresh page on submit (al la. bugzilla, among others). It might also be tenable to use object/iframe+CSS (and even optional JS), to display something "in page". > The problem here is that many/most of the newer browsers are all > BLOCKING popups (I know all mine do) because they have been abused by > spammers. No problem there. However, it negates the purpose and > usefulness of this mechanism. > > I tried playing with a non-displayed division and using a javascript > function triggered by the onsubmit or onclick events to alter the div > to display, however, I could NOT get by javascript property errors > when trying to implement it. Have you tried the technique used here: http://alistapart.com/articles/dropdowns/ ...Ie. don't try and alter the CSS, you alter the class of the element. And have the different classes styled differently. -- James Antill -- james at and.org http://www.and.org/and-httpd
More information about the ECLUG mailing list