K
kamal
i am facing a strange problem. please help me out with this.
the following code is working perfectly fine in Mozilla Firefox but in
Internet Explorer it is giving an error in the first
OpenWindow.document.write line itself.
function popup_msg_to_all_users() {
var str = "self.close();";
OpenWindow=window.open("hdfkhgkdfhgdfjkg", "newwin",
"height=260, width=360,toolbar=no,scrollbars="+scroll+",menubar=no");
OpenWindow.document.write("<TITLE>Send Message</
TITLE>")
OpenWindow.document.write("<script> function
submitAndClose() { if (!document.frm.title.value) { alert(\'Enter
Title.\'); return false; } else { document.frm.submit();
alert(\'Message Sent.\'); window.close(); }} <\/script>")
OpenWindow.document.write("<BODY bgcolor='#0066cc'>")
OpenWindow.document.write("<tr><td><font size='2'
face='verdana' color='white'><b>Type the message to send to all
syndicates</b></font></td></tr>")
OpenWindow.document.write("<br><textarea STYLE='font-
family: Verdana; font-size: 12px;' cols='50' rows='10' name='txt'>Type
Message Body Here.</textarea>")
OpenWindow.document.write("<input type='hidden'
value='GoSendMessageAllPopup' name='action'>")
OpenWindow.document.write("<input type='hidden' name
='syndicate_id' value='" + synd_id + "'>")
OpenWindow.document.write("<input type='button'
value='Send' name='btn' onClick='javascript: submitAndClose();'>")
OpenWindow.document.write("</form>")
OpenWindow.document.write("</BODY>")
OpenWindow.document.write("</HTML>")
self.name="main"
}
basically the window is opening up but nothing is displayed inside
it. my IE version is 6.0
thanks in advance
the following code is working perfectly fine in Mozilla Firefox but in
Internet Explorer it is giving an error in the first
OpenWindow.document.write line itself.
function popup_msg_to_all_users() {
var str = "self.close();";
OpenWindow=window.open("hdfkhgkdfhgdfjkg", "newwin",
"height=260, width=360,toolbar=no,scrollbars="+scroll+",menubar=no");
OpenWindow.document.write("<TITLE>Send Message</
TITLE>")
OpenWindow.document.write("<script> function
submitAndClose() { if (!document.frm.title.value) { alert(\'Enter
Title.\'); return false; } else { document.frm.submit();
alert(\'Message Sent.\'); window.close(); }} <\/script>")
OpenWindow.document.write("<BODY bgcolor='#0066cc'>")
OpenWindow.document.write("<tr><td><font size='2'
face='verdana' color='white'><b>Type the message to send to all
syndicates</b></font></td></tr>")
OpenWindow.document.write("<br><textarea STYLE='font-
family: Verdana; font-size: 12px;' cols='50' rows='10' name='txt'>Type
Message Body Here.</textarea>")
OpenWindow.document.write("<input type='hidden'
value='GoSendMessageAllPopup' name='action'>")
OpenWindow.document.write("<input type='hidden' name
='syndicate_id' value='" + synd_id + "'>")
OpenWindow.document.write("<input type='button'
value='Send' name='btn' onClick='javascript: submitAndClose();'>")
OpenWindow.document.write("</form>")
OpenWindow.document.write("</BODY>")
OpenWindow.document.write("</HTML>")
self.name="main"
}
basically the window is opening up but nothing is displayed inside
it. my IE version is 6.0
thanks in advance