From: Brehm, R. P <rob...@of...> - 2004-11-24 00:02:06
|
Hi, I have an application that uses javascript syntax that is not supported by version 1.3 as follows.. ssnTableRows[i].getElementsByTagName("td").item(1).style.backgroundColor="white"; The error thrown is the following: com.gargoylesoftware.htmlunit.ScriptException: item is not a function. The above syntax does work in IE6 to set the cell background color to white. Is there any way currently to tell the javascript interpreter to ignore javascript errors? That is try to process commands but if the command is malformed or not supported then continue? If not then I believe this would be a very useful enhancement. Regards, Bob Brehm Software Engineer Xerox Corp. |
From: Ahmed A. <asa...@ya...> - 2009-01-29 05:45:53
|
Hi, * You must subscribe to the list before posting. ________________________________ Hello, i display a list of rows from database among the attributes, there a comment attribute, i wann add a link to each comment attribute, once the user click on it displays a new pop up where is show the message, and the user can modify it , in this new pop up, and save modifications any one has an idea how can i impliment this in javascript Regards |
From: Mike B. <mb...@Ga...> - 2004-11-24 01:28:07
|
Brehm, Robert P wrote: >Is there any way currently to tell the javascript interpreter to ignore javascript errors? That is try to process commands but if the command is malformed or not supported then continue? If not then I believe this would be a very useful enhancement. > > The short answer is no. The longer answer is that this kind of thing would have to be supported by the rhino engine and I haven't been able to find a way to tell rhino to do this. All the core javascript support is provided by rhino - all we supply are the browser specific host objects (Document, Location, Window etc) -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Marc G. <mgu...@ya...> - 2004-11-24 08:47:07
|
Mike, this can probably be fixed making the object returned by "getElementsByTagName("td")" both a "normal" object and object implementing interface org.mozilla.javascript.Function as I've done it for document.all. Marc. Mike Bowler wrote: > Brehm, Robert P wrote: > >> Is there any way currently to tell the javascript interpreter to >> ignore javascript errors? That is try to process commands but if the >> command is malformed or not supported then continue? If not then I >> believe this would be a very useful enhancement. >> >> > > The short answer is no. > > The longer answer is that this kind of thing would have to be supported > by the rhino engine and I haven't been able to find a way to tell rhino > to do this. All the core javascript support is provided by rhino - all > we supply are the browser specific host objects (Document, Location, > Window etc) > |
From: Mike B. <mb...@Ga...> - 2004-11-24 11:41:44
|
Marc Guillemot wrote: > this can probably be fixed making the object returned by > "getElementsByTagName("td")" both a "normal" object and object > implementing interface org.mozilla.javascript.Function as I've done it > for document.all. I'd read the question as "can I generically tell HtmlUnit to not throw exceptions when it hits javascript it can't handle" and I still don't know how that would be done. Perhaps if we caught the exceptions in executeJavaScriptIfPossible() and then ignored them if the user had specified "suppress javascript exceptions" or something similar. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Marc G. <mgu...@ya...> - 2004-11-24 14:29:15
|
sorry, I've read this to fast and I was thinking about double access syntas with () and []. Marc.. Mike Bowler wrote: > Marc Guillemot wrote: > >> this can probably be fixed making the object returned by >> "getElementsByTagName("td")" both a "normal" object and object >> implementing interface org.mozilla.javascript.Function as I've done it >> for document.all. > > > > I'd read the question as "can I generically tell HtmlUnit to not throw > exceptions when it hits javascript it can't handle" and I still don't > know how that would be done. Perhaps if we caught the exceptions in > executeJavaScriptIfPossible() and then ignored them if the user had > specified "suppress javascript exceptions" or something similar. > > |