naina rani
09-30-2004, 12:57 PM
I have two problems in my web application:
1. I am using javascript to hide file field .The way it works is,when you click on the radio button it will display the hidden fields.It works fine with Internet Explorer,its not working with mozilla
javascript code:
function openXmlpageField()
{
blnMoreIsUp = true;
document.all.item("MORE2", 0).style.visibility = blnMoreIsUp ? "" : "hidden";
}
within jsp:
<table>
<tr>
<td width="255"><bean:message key="prompt.appl.Xmlpage"/></td>
<td> <input type="radio" name="image"onClick="openXmlpageField()"/>select</td>
</tr>
</table>
<div id=MORE2 style="visibility: hidden">
<table>
<tr><td width="330">ý</td>
<td><html:file property="image" size="40"/></td>
</tr>
</table>
</div>
2.I have script to popup a different window and display html file when you click on the radion button.
javascript code :
function openPopup3(){
var popurl="foldername/filename.html"
winpops=window.open(popurl,"","width=400,height=400,scrollbars,")
}
this is fine with IE .When I try on Mozilla it complains about the relative path that I have mentioned in the script.
Mozilla recgonizes it this way
[url]http://localhost/applicationname/foldername/foldername/filename.html
Is relative path different for different browser?
I want my application to work with almost all browsers.Please help me to make it work with Mozilla.
1. I am using javascript to hide file field .The way it works is,when you click on the radio button it will display the hidden fields.It works fine with Internet Explorer,its not working with mozilla
javascript code:
function openXmlpageField()
{
blnMoreIsUp = true;
document.all.item("MORE2", 0).style.visibility = blnMoreIsUp ? "" : "hidden";
}
within jsp:
<table>
<tr>
<td width="255"><bean:message key="prompt.appl.Xmlpage"/></td>
<td> <input type="radio" name="image"onClick="openXmlpageField()"/>select</td>
</tr>
</table>
<div id=MORE2 style="visibility: hidden">
<table>
<tr><td width="330">ý</td>
<td><html:file property="image" size="40"/></td>
</tr>
</table>
</div>
2.I have script to popup a different window and display html file when you click on the radion button.
javascript code :
function openPopup3(){
var popurl="foldername/filename.html"
winpops=window.open(popurl,"","width=400,height=400,scrollbars,")
}
this is fine with IE .When I try on Mozilla it complains about the relative path that I have mentioned in the script.
Mozilla recgonizes it this way
[url]http://localhost/applicationname/foldername/foldername/filename.html
Is relative path different for different browser?
I want my application to work with almost all browsers.Please help me to make it work with Mozilla.