K
Keith
I have written a simple JavaScript routine and have added
it into the HTML generated with FP2002. The script takes
some form data and searches an array based on that data.
Once the data is found in the array, a web address
corresponding to that data is set to a variable.
Here is the problem. I want to change the location, using
JavaScript, to the location gotten from the array. I tried:
location=variable
window.location=variable
location.replace(variable)
window.location.replace(variable)
location.replace(variable, "_parent")
and probably some others.
all that ever happend was a reload of the page, it never
changed the location.
But, when I used window.open(variable) it works fine,
except it opens in a new window. I would like for it to
open in the existing window. Is there something in FP that
prevents me from redirecting the current window through a
script?
Thanks
it into the HTML generated with FP2002. The script takes
some form data and searches an array based on that data.
Once the data is found in the array, a web address
corresponding to that data is set to a variable.
Here is the problem. I want to change the location, using
JavaScript, to the location gotten from the array. I tried:
location=variable
window.location=variable
location.replace(variable)
window.location.replace(variable)
location.replace(variable, "_parent")
and probably some others.
all that ever happend was a reload of the page, it never
changed the location.
But, when I used window.open(variable) it works fine,
except it opens in a new window. I would like for it to
open in the existing window. Is there something in FP that
prevents me from redirecting the current window through a
script?
Thanks