RE: Re[2]: [PHP] pop-up

From: Date: Sun, 18 Aug 2002 08:04:28 +0000
Subject: RE: Re[2]: [PHP] pop-up
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113124@lists.php.net to get a copy of this message
I just wrote something exactly like this today: function news_window (headline_str) { var headline_link = "/story.asp?headline=" + escape(headline_str); window.open(headline_link,'','scrollbars=yes,resizable=yes'); } Now, if I needed to pass along more variables, I'd just add them to the news_window () arguments, i.e. if I needed to pass along a text field and a user id, I'd go: function news_window (headline_str,text,user_id) Try it, then let us know how it goes. Don't use the <input> tags - once you make a function like the one above, call it with <a href="javascript:news_window(your_argument_here)"></a>. Also, try not to say things like "I don't think it will work" if you haven't given it a shot yet. I knew -nothing- of JavaScript before I needed to use the window.open() function today, but now I know enough about it to make some useful scripts. Try going to google.com and searching for 'javascript reference' - you will likely find the results handy. HTH Jason Soza -----Original Message----- From: Mantas Kriauciunas [mailto:Mantuks@attbi.com] Sent: Sunday, August 18, 2002 1:44 AM To: Justin French Cc: php-general@lists.php.net Subject: Re[2]: [PHP] pop-up Hello Justin, i don't think that this thing will pass 300 simbols successfuly i take $nw_text from <TEXTAREA> and i need to pass it to pop-up (other window) there it will generate preview of that text with some stuff... but i need to pass also 2 more ...so total is 3 things...one text and other ones is just like date and username

« previous php.general (#113124) next »