You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by samju <ju...@netscape.net> on 2007/12/06 12:17:24 UTC
IE Runtime Error function clearFormHiddenParams_back(currFormName)
1. webapp use: tomahawk-1.1.7-SNAPSHOT.jar and myfaces-impl/api-1.1.5.jar
2. JSP use:<t:inputHtml value="#{result.webPageScreenShot}"......>
3. webPageScreenShot: could have HTML input of Type hidden.
rendering t:inputHtml under IE cause a runtime error:
'elements.back:_link_hidden_' is null or not an Object. for Firefox this
work well!
4: Debug:
<input type="hidden" name="back_SUBMIT" value="1" /><input type="hidden"
name="back:_link_hidden_" /><input type="hidden" name="back:_idcl" /><script
type="text/javascript"><!--
function clear_back()
{
clearFormHiddenParams_back('back');
}
function clearFormHiddenParams_back(currFormName)
{
var f = document.forms['back'];
f.elements['back:_link_hidden_'].value='';
f.elements['back:_idcl'].value='';
f.target='';
}
clearFormHiddenParams_back();
How to let this under IE work?
PS: i already take a look at the Thread "Why does JSF submit through
JavaScript?" didnĀ“t help:-)
--
View this message in context: http://www.nabble.com/IE-Runtime-Error-function-clearFormHiddenParams_back%28currFormName%29-tf4955393.html#a14190320
Sent from the MyFaces - Users mailing list archive at Nabble.com.