Hi All,
I have the following situation:
There is a link at A.xsl page, onclick this link, would lead to B.htm; onclick=ViewNex tPage().
Also at A.xsl has a valiable "AccountNum ber" which I want to pass to B.htm.
in my .js file, I have:
[CODE=javascript]function ViewNextPage() {
alert (getquerystring ("AccountNumber "))
strURL="/.../B.htm"
showModalDialog ("", strURL, "500", "600")
alert (getquerystring ("AccountNumber "))
}[/CODE]
when running the scipts, I could see two times of the alert showing the value before/after B.htm being displayed.
now I modify this function as following, try to carry this variable over to B.htm
[CODE=javascript]function ViewNextPage() {
var param=getquerys tring("AccountN umber"))
strURL="/.../B.htm"
showModalDialog ("", strURL, "500", "600", param)
}[/CODE]
this time I have nothing, I even could not see the B.htm.
Wish somebody here would give me some suggestion. Thank you in advance.
I have the following situation:
There is a link at A.xsl page, onclick this link, would lead to B.htm; onclick=ViewNex tPage().
Also at A.xsl has a valiable "AccountNum ber" which I want to pass to B.htm.
in my .js file, I have:
[CODE=javascript]function ViewNextPage() {
alert (getquerystring ("AccountNumber "))
strURL="/.../B.htm"
showModalDialog ("", strURL, "500", "600")
alert (getquerystring ("AccountNumber "))
}[/CODE]
when running the scipts, I could see two times of the alert showing the value before/after B.htm being displayed.
now I modify this function as following, try to carry this variable over to B.htm
[CODE=javascript]function ViewNextPage() {
var param=getquerys tring("AccountN umber"))
strURL="/.../B.htm"
showModalDialog ("", strURL, "500", "600", param)
}[/CODE]
this time I have nothing, I even could not see the B.htm.
Wish somebody here would give me some suggestion. Thank you in advance.
Comment