|
|
Feedback on: irt.org FAQ Knowledge Base Q5604
irt.org | About | Feedback | 1185 [ previous next ] Feedback on: Sent by 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 Other feedback on 'irt.org FAQ Knowledge Base Q5604' - show all
|
-- div -->
|