Click to See Complete Forum and Search --> : request data from Pop up pages


andrewchai
05-12-2005, 03:10 AM
how to i pass a data or variable to a pop up pages, when i call or load the pop up page ?

i try the follwing but can not get it ?

function popup11(){
var a = receipt.total_amount.value;
var nw = window.open("", "popup", "resizeable = no, scroolbars = yes, width = 250, height = 100");
nw.location.href = "discount1.asp? field="+a;
nw = null;
}


thank !!!!!!

buntine
05-12-2005, 03:15 AM
Pass data from the server? Like this:

function popup11(){
var a = receipt.total_amount.value;
var nw = window.open("", "popup", "resizeable = no, scroolbars = yes, width = 250, height = 100");
nw.location.href = "discount1.asp?field="+<%= a %>;
nw = null;
}

Regards.

andrewchai
05-12-2005, 03:27 AM
Thank !

i already try this but it have error !

do you have any other way to do this ?

buntine
05-12-2005, 06:35 AM
Which error are you getting? Where is a coming from?

wmif
05-12-2005, 08:23 PM
you had a space before field. try your original script without that space. looks like the a variable is a javascript variable.