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:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php