|
|
Feedback: irt.org FAQ Knowledge Base Q5604
Feedback on: Sent by Adam Rubin on April 01, 2000 at 23:40:02: - feedback #1026
Worth: Comments: This example is using VBScript instead of javascript. firstname = "adam";
Sent by Yakov Simkin on April 26, 2000 at 12:25:16: - feedback #1144
Worth: Length: Comments: Sent by michel on May 05, 2000 at 15:37:08: - feedback #1185
Comments: var firstname = 'Jason'; // JavaScript variable containing firstname var URL = eval('http://www.server.com/cgi-bin/script.pl?firstname=' + firstname); 1. Why the eval???? I would code it like this: var firstname = 'Jason'; window.location = 'http://www.server.com/cgi-bin/script.pl?firstname=' + firstname; and it should be mentioned that the page the user is looking at will be replaced by whatever script.pl returns unless it returns a 304 nothing changed http header. Michel |
-- div -->
|