My Code is
----------------
Expand|Select|Wrap|Line Numbers
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Fi._Default" %>
- <html>
- <head>
- <title>Member Login</title>
- <script type= "text/javascript" language="JavaScript">
- function submitTheForm() {
- var XmlRequest = '<%= XmlRequest %>';
- var URLRequest = '<%= URLRequest %>';
- document.getElementById("XMLPost").value = XmlRequest;
- //XmlRequest = document.getElementById("XMLPost").innerText;
- document.frmPass.method = "post";
- document.frmPass.action = URLRequest;
- document.frmPass.submit();
- }
- </script>
- </head>
- <body onload="submitTheForm()">
- <form action="" name="frmPass" >
- <table border="0" align="center" width="600" cellspacing="0" cellpadding="0">
- <tr><td>
- <textarea name="XMLPost" rows="25" cols="80"></textarea>
- </td></tr>
- </table>
- </form>
- </body>
- </html>
Iam having Issue with document.getElementById.
It works fine with above code in IE but nothing happens in FireFox.
When I place all the xml below text area and use a submit button it works.
I used InnerText,value,innerHTML all all properties but no use.
Also I used type="application/javascript"
Thanks in Advance.