Re[2]: [PHP] pop-up

From: Date: Sun, 18 Aug 2002 09:44:23 +0000
Subject: Re[2]: [PHP] pop-up
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113122@lists.php.net to get a copy of this message
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 Sunday, August 18, 2002, 12:22:11 AM, you wrote: JF> You need to modify topWindow() so that you can pass a query string to it, JF> which you can then use to add to the URL of the pop-up window. JF> <SCRIPT> JF> <!-- JF> function userpop(user_id) JF> { JF> var prefix = "show_user.php?userid="; JF> var script = eval("prefix + user_id"); JF> window.open(script, "view_user", JF> "toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes JF> ,resizable=no,width=250,height=250"); JF> } // -->> JF> </SCRIPT> JF> <input type=BUTTON value=Preview onClick="userpop('justin');"> JF> This would pop-up a window with the dimensions listed, and I pass a userid JF> to it, which gets appended to the URL of the new window, passing a userid JF> variable into the target script via GET. JF> I *think* all <input>'s need to be in a form tag regardless... a better way JF> to test your script would be to take the input/form out of the equation, get JF> your javascript right with a simple <A HREF> tag: JF> <A HREF="#" onClick="userpop('justin');"> JF> And since this is a JavaScript thing, not a PHP thing, you might want to JF> address the issue(s) in comp.lang.javascript JF> Justin French -- Best regards, Mantas mailto:Mantuks@attbi.com

« previous php.general (#113122) next »