Re: How to return some infos from a javascript with PHP+Javascript

From: Date: Fri, 10 Nov 2000 19:28:00 +0000
Subject: Re: How to return some infos from a javascript with PHP+Javascript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24695@lists.php.net to get a copy of this message
On Fri, 10 Nov 2000, Duccio Gasparri wrote: > Hi all, I need an advice from you gurus. I'm no sure about what solution to > use: I have a javascript, and i'd like to be able to return some data to > the server at different times. > > But what solutions do I have? I'm not too good at javascript and the only > one i thought was to load a script in another window to pass the > parameteres, like > > window.create("returnparameters.php?this=does&not=work")... > > and then close the window, but the window doesn't close under IE, and > sincerely I don't like the idea to open another window! (of course I can't > use the original window! :-) > > TIA, > Duccio. > Use a frame with a width or height of 0 and have a form in it composed entirely of hidden fields: function myfunc() { top.frameName.formName.fieldName.value=newvalue; top.frameName.formName.submit(); }; Have the script called return just "<html></html>" so that the browser doesn't complain about no data, and away you go! -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#24695) next »