Here's the code i'm using.
Response.Write("<script>document.forms['Form1'].method = ""post"";document.forms['Form1'].action = ""http://www.test.com.br/loja/index.asp"";document.forms['Form1'].target=""_blank"";document.forms['Form1'].submit();</script>")
'Response.Write("<script>window.location = ""Aviso.aspx?resultado=Sucesso""</script>")
IE has this annoying thing called "quirks mode", where it attempts to guess what the developer had in mind when writing the code, but the code isn't correct. In this case, IE guessed right, so that's why it works in IE but not FF (nor, I guess, would it work in Safari, Opera, Konqueror, etc.)
Also, the beginning and ending of the string should be defined by one kind of quote (' or "), while parameters inside should be marked using whichever isn't used to start/end the string (ie, "This is the 'beginning' of the string" or 'This is the "end" of the string').
Yet another issue is - you are trying to place a <script> inside a <script>, and <script> tags don't nest. Well, not very well, anyway. You could jam that square peg into the round hole, but it would be a lot of work, and just not worth doing, IMHO.
o . Q
_—__ "You live and you learn; or you don't live long." - Lazarus Long
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)