Problem with Apache Http server and javascript redirect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
I use a _javascript_ generated by "ap_rputs" to manage a cokie session and to redirect an XML document. When I try to view the page in Internet explorer it doesn't work and I get an error: _javascript_ code doesn't activate the redirect and I get mixed page _javascript_/XML.
This is my _javascript_
<html><head><title></title></head><body>
<form name=paramform method="POST" action="" href="http://new_page.xml">http://new_page.xml">
<script language='_javascript_'>
document.open()
document.cookie = "Token_DOM_opriskev='SessionAcquisitionError_ID'"
document.paramform.submit()
document.close()
</script>
</form></body></html>
When I browse the page in internet explorer the redirect doesn't work and I get a mixed page like this
<html><head><title></title></head><body>
<form name=paramform method="POST" action="" href="http://opriskev.sviluppo.local/opriskev/CRYSTAL_REPORT_SCHEMA.do?query1=test">http://opriskev.sviluppo.local/opriskev/CRYSTAL_REPORT_SCHEMA.do?query1=test
">
<script language='_javascript_'>
document.open()
document.cookie = "Token_DOM_opriskev='SessionAcquisitionError_ID'"
document.paramform.submit()
document.close
()
</script>
</form></body></html>
<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema
">
--- XML body..... -----------------------------------
How to redirect correctly my XML page?
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]