[mochikit] Re: Async request problem on Safari
The issue here turned out to be Safari's behavior with respect to inserting parts of one document into another. Firefox 2.0 doesn't mind directly inserting content from one document into another although it appears that Firefox 3.0 won't support it. Apparently the correct way to do it is to use importNode (DOM L2 or L3) or adoptNode (L3). When I started using importNode on the content of responseXML things started working in Safari. Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Firefox Issues?
Hi, I developed my site using Internet Explorer v7. Now I come to find out it doesn't work with firefox. in my Javascript I have: self.form = getElement(loginForm); self.form.login.focus(); and I keep getting self.form has no properties error message in the Firefox Error Console. Granted, this issue isn't that big a deal as it just isn't focusing. But I have other places where I get the exact same error message self.form has no properties Here is the HTML for the form: form name='loginForm' action='process.html' method='POST' id=lfForm div class=fieldLabelLogin:/div div class=fieldEntry select name='login' option A Bunch of Options /option /select/div div class=fieldLabelPassword:/div div class=fieldEntryinput type='password' name='pw' size=15 maxlength=100 value = //div div id=lfButtoninput type='submit' name='lfSubmit' value=Login class='null'/div input type=hidden name=validbrowser value=false /form Can anyone provide advice/help? Thanks, -David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: Firefox Issues?
getElement(loginForm) finds an element with an id of loginForm. IE confuses name and id, other browsers don't. You don't have any elements with id=loginForm in your markup. Try using getElement(lfForm). -bob On Jan 2, 2008 3:45 PM, infringer [EMAIL PROTECTED] wrote: Hi, I developed my site using Internet Explorer v7. Now I come to find out it doesn't work with firefox. in my Javascript I have: self.form = getElement(loginForm); self.form.login.focus(); and I keep getting self.form has no properties error message in the Firefox Error Console. Granted, this issue isn't that big a deal as it just isn't focusing. But I have other places where I get the exact same error message self.form has no properties Here is the HTML for the form: form name='loginForm' action='process.html' method='POST' id=lfForm div class=fieldLabelLogin:/div div class=fieldEntry select name='login' option A Bunch of Options /option /select/div div class=fieldLabelPassword:/div div class=fieldEntryinput type='password' name='pw' size=15 maxlength=100 value = //div div id=lfButtoninput type='submit' name='lfSubmit' value=Login class='null'/div input type=hidden name=validbrowser value=false /form Can anyone provide advice/help? Thanks, -David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: Firefox Issues?
Thank you Bob! That is exactly what my problem was. On Jan 2, 6:52 pm, Bob Ippolito [EMAIL PROTECTED] wrote: getElement(loginForm) finds an element with an id of loginForm. IE confuses name and id, other browsers don't. You don't have any elements with id=loginForm in your markup. Try using getElement(lfForm). -bob On Jan 2, 2008 3:45 PM, infringer [EMAIL PROTECTED] wrote: Hi, I developed my site using Internet Explorer v7. Now I come to find out it doesn't work with firefox. in my Javascript I have: self.form = getElement(loginForm); self.form.login.focus(); and I keep getting self.form has no properties error message in the Firefox Error Console. Granted, this issue isn't that big a deal as it just isn't focusing. But I have other places where I get the exact same error message self.form has no properties Here is the HTML for the form: form name='loginForm' action='process.html' method='POST' id=lfForm div class=fieldLabelLogin:/div div class=fieldEntry select name='login' option A Bunch of Options /option /select/div div class=fieldLabelPassword:/div div class=fieldEntryinput type='password' name='pw' size=15 maxlength=100 value = //div div id=lfButtoninput type='submit' name='lfSubmit' value=Login class='null'/div input type=hidden name=validbrowser value=false /form Can anyone provide advice/help? Thanks, -David- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---