0

I have updated the browser Internet Explorer from 8 version to 11 version.

Now this javascript function not working.

Can you please help me figure out the problem?

Thanks in advance.

<script language="JavaScript">

function sSend() { 
document.form.submit()
} 

</script>
</head>

<body onLoad="sSend()">
<form method="POST" name="form" action="http://....">
    <input type="hidden" name="USER" value="<%=strUSER%>">   
    <input type="hidden" name="ID" value="<%=strID%>"> 
    <input type="hidden" name="referer" value="<%=strReferer%>">
</form>
Steve Holland
  • 619
  • 1
  • 12
  • 29
Antonio Mailtraq
  • 1,397
  • 5
  • 34
  • 82
  • 2
    What errors do you get in the console? – j08691 Mar 29 '16 at 12:19
  • @j08691 Hi, thank you for reply. I don't have error but the variables `strUser` and `strID` and `strReferer` are nulls. – Antonio Mailtraq Mar 29 '16 at 12:21
  • My guess is they removed the *named elements are registered as global variables* "feature": http://stackoverflow.com/questions/3434278/do-dom-tree-elements-with-ids-become-global-variables – pawel Mar 29 '16 at 12:21
  • @pawel — that code isn't using that feature, and they haven't. – Quentin Mar 29 '16 at 12:23
  • @AntonioMailtraq — That looks like as ASP.NET problem, not a browser problem. – Quentin Mar 29 '16 at 12:23
  • I don't use ASP NET it's in Classic ASP .... – Antonio Mailtraq Mar 29 '16 at 12:24
  • @Quentin I think `document.form` clearly tries to reference `
    ` by its name.
    – pawel Mar 29 '16 at 12:25
  • 1
    The three variables you mention in your comment all seem to be server-side variables, so whether they are null or not doesn't depend on the browser. Please be clearer about exactly what is happening that is unexpected. – nnnnnn Mar 29 '16 at 12:26
  • @pawel — That isn't a global, and it is still supported. – Quentin Mar 29 '16 at 12:27
  • @AntonioMailtraq — ASP.NET or Classic ASP, it still looks like a server side issue. – Quentin Mar 29 '16 at 12:27
  • 1
    @Quentin Okay but if on IE 8 the server side language worked why it stops working with browser 11 ? – Antonio Mailtraq Mar 29 '16 at 12:32
  • @AntonioMailtraq — We have no way of telling what your server side code is doing. – Quentin Mar 29 '16 at 12:33
  • @Quentin On Server Side all it's ok. The values of variables are all correct – Antonio Mailtraq Mar 29 '16 at 12:36
  • 1
    @AntonioMailtraq — How can they be correct if they are null as soon as you write them into the HTML? How are you determining that they are null? You originally said that the problem was with the JavaScript, but the JavaScript doesn't do anything with the values of the inputs. – Quentin Mar 29 '16 at 12:37

1 Answers1

1

I think that your problem is not client side and not server side.

You log in to your web page using a favorite link?

Please try writing your web address on the address bar in the new browser and leave the favorite link.

Hamamelis
  • 1,983
  • 8
  • 27
  • 41