mini_dumbo
11-26-2002, 02:40 PM
our last post was pushed so far down the list that we thought we might as well start a new thread...
anyway..... somebody please help us... !!!
Is it possible to use javascript (as in without relying on php) to achieve the following effect:
Say you have an input box, and the user types something in it and is prompted with a pop-up window with buttons "yes", "no" and "cancel", asking if he/she wants to save the changes... if user clicks yes, pop-up window will close and user will be returned to parent window with text in input box unchanged(i.e. origial text from inbox PLUS extra stuff typed in by user) , but if user clicks no, pop-up window will also close but instead of the previous case, only the original text(whatever was in it before user types anything) will remain in the box. We managed to do the "yes" case with some php codes but we're too much of a newbie in everything that we were so stuck from that point... so we're just wondering if it's possible to do the above problem entirely in javascript....
Any help would be appreciated!!
:p & ;)
anyway..... somebody please help us... !!!
Is it possible to use javascript (as in without relying on php) to achieve the following effect:
Say you have an input box, and the user types something in it and is prompted with a pop-up window with buttons "yes", "no" and "cancel", asking if he/she wants to save the changes... if user clicks yes, pop-up window will close and user will be returned to parent window with text in input box unchanged(i.e. origial text from inbox PLUS extra stuff typed in by user) , but if user clicks no, pop-up window will also close but instead of the previous case, only the original text(whatever was in it before user types anything) will remain in the box. We managed to do the "yes" case with some php codes but we're too much of a newbie in everything that we were so stuck from that point... so we're just wondering if it's possible to do the above problem entirely in javascript....
Any help would be appreciated!!
:p & ;)