I'm running a javascript routine within an asp.net subroutine in a child window. The script works fine and updates the image and the dropdown box in the parent window then closes. But once it's done that if you try to run it again, the script works but doesn't update the image (unless you refresh the page)
Any help is really appreciated. (I have to disguise the <script> tags as asp.net doesn't like them within a sub)
Here's the code...
[CODE=javascript]jScriptString = "<SCR" + "IPT>"
jScriptString += "opener.documen t.amend.ImgSrc1 .options.length =0;"
jScriptString += "var optn=opener.doc ument.createEle ment('OPTION'); "
jScriptString += "optn.text='"+s aveFileAs+"."+s uppLinksType+"' ;"
jScriptString += "optn.value='"+ saveFileAs+"."+ suppLinksType+" ';"
jScriptString += "opener.documen t.amend.ImgSrc1 .options.add(op tn);"
jScriptString += "opener.documen t.amend.image.s rc='"+suppLinks Dest+saveFileAs +"."+suppLinksT ype+"';"
jScriptString += "setTimeout('se lf.close();',30 00)"
jScriptString += "</SCR" + "IPT>"
[/CODE]
Thanks for any help
Any help is really appreciated. (I have to disguise the <script> tags as asp.net doesn't like them within a sub)
Here's the code...
[CODE=javascript]jScriptString = "<SCR" + "IPT>"
jScriptString += "opener.documen t.amend.ImgSrc1 .options.length =0;"
jScriptString += "var optn=opener.doc ument.createEle ment('OPTION'); "
jScriptString += "optn.text='"+s aveFileAs+"."+s uppLinksType+"' ;"
jScriptString += "optn.value='"+ saveFileAs+"."+ suppLinksType+" ';"
jScriptString += "opener.documen t.amend.ImgSrc1 .options.add(op tn);"
jScriptString += "opener.documen t.amend.image.s rc='"+suppLinks Dest+saveFileAs +"."+suppLinksT ype+"';"
jScriptString += "setTimeout('se lf.close();',30 00)"
jScriptString += "</SCR" + "IPT>"
[/CODE]
Thanks for any help
Comment