Menu

#1 Using forms

open
nobody
None
5
2006-11-06
2006-11-06
Anonymous
No

While trying to use forms I began getting the following
error (using Windows XP Firefox 2 and IE6):

elParent.tagName has no properties, line 505, iwfajax.js
I was able to fix the problem by changing lines 505 and
510 of iwfajax.js to the following:
505: while (elParent && elParent.tagName &&
elParent.tagName.toLowerCase() != 'form') {
510: if (elParent && elParent.tagName &&
elParent.tagName.toLowerCase() == 'form'){
All that's been changed is adding elParent.tagName to
the "while" and "if" command. The error was happening
when it reached the top of the document and there were
no more tags. For some reason elParent still has a
value (I didn't check to see what it was) but
elParent.tagName does not. Now everything works fine.

Hope this helps and if I can ever be of assistance
please let me know.

Thanks,
Andy

Discussion


Log in to post a comment.

MongoDB Logo MongoDB