[Lift] Re: Problems with lift:gc attributes
People ... I'll be doing some work for this GC stuff. Speaking with Dave yesterday he had a nifty idea of sending up just the page ID and update the functions on server side only. We still need to handle cases where nodes having lift:gc are removed from the DOM tree and the code needs to be aware of that. Perhaps sending up the page ID and also send the unseen-delta as those must be GC-ed. Br's, Marius On Feb 13, 1:49 am, David Pollak feeder.of.the.be...@gmail.com wrote: I just pushed up some fixes for ie8. Please let me know if they work. On Thu, Feb 12, 2009 at 12:46 PM, Charles F. Munat c...@munat.com wrote: I don't know if this is related, but my Lift pages do not display in IE8 unless I click the broken page button. A run through the HTML validator produces the following: Line 42, Column 62: there is no attribute lift:gc. …ber name=F743081847476BRR lift:gc=F743081847476BRR type=text size=24 Or is this still a validator issue? Or maybe it's because IE is being served the page as text/html? Those guys on the other side of the lake just can't seem to figure this browser thing out. If it's not one thing, it's something else. Chas. David Pollak wrote: Joachim, I've found and fixed the key problem. The Namespace problem looks like a Firefox bug. I'm still working through it. Thanks, David On Wed, Feb 11, 2009 at 4:25 PM, Joachim A. wallaby.po...@googlemail.com mailto:wallaby.po...@googlemail.com wrote: Hi, I'm using the jQuery plugin ModalDialog in a page. The message which is displayed in a dialog contains a lift ajax form. The xhtml of the form is: form lift:gc=F470696901035FZU id=F470696901035FZU action=# onsubmit=lift_ajaxHandler(jQuery('#'+'F470696901035FZU').serialize(), null, null);return false;div class=dialogdiv class=questionDo you really want to break up this friendship?/divdiv button onclick=lift_ajaxHandler('F470696901033BXG=true', null, null); return false; lift:gc=F470696901033BXGYes/button button onclick=lift_ajaxHandler('F470696901034CAZ=true', null, null); return false; lift:gc=F470696901034CAZNo/button /div/div/form Basically the plugin calls $(html from above). This works fine in Opera. But it doesn't in Firefox. Firefox 3 complains about the lift:gc attribute and gives an error that the prefix is not defined. My page has xmlns:lift=http://liftweb.net; in the html tag. But obviously this is not used in the jQuery call. Is it possible to get an additional xmlns:lift namespace declaration in the tags which use the lift:gc attribute? Or is there another way to fix this? Another problem: Also, Lift outputs html like a lift:gc=F470696901031JE3 onclick=lift_ajaxHandler('F470696901031JE3=true', null, null) href=javascript:// key=F470696901031JE3 The key attribute is not prefixed by lift: and thus is invalid xhtml, I think. Thanks a lot. Looking forward to the great 1.0 version, Joachim -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Problems with lift:gc attributes
I don't know if this is related, but my Lift pages do not display in IE8 unless I click the broken page button. A run through the HTML validator produces the following: Line 42, Column 62: there is no attribute lift:gc. …ber name=F743081847476BRR lift:gc=F743081847476BRR type=text size=24 Or is this still a validator issue? Or maybe it's because IE is being served the page as text/html? Those guys on the other side of the lake just can't seem to figure this browser thing out. If it's not one thing, it's something else. Chas. David Pollak wrote: Joachim, I've found and fixed the key problem. The Namespace problem looks like a Firefox bug. I'm still working through it. Thanks, David On Wed, Feb 11, 2009 at 4:25 PM, Joachim A. wallaby.po...@googlemail.com mailto:wallaby.po...@googlemail.com wrote: Hi, I'm using the jQuery plugin ModalDialog in a page. The message which is displayed in a dialog contains a lift ajax form. The xhtml of the form is: form lift:gc=F470696901035FZU id=F470696901035FZU action=# onsubmit=lift_ajaxHandler(jQuery('#'+'F470696901035FZU').serialize(), null, null);return false;div class=dialogdiv class=questionDo you really want to break up this friendship?/divdiv button onclick=lift_ajaxHandler('F470696901033BXG=true', null, null); return false; lift:gc=F470696901033BXGYes/button button onclick=lift_ajaxHandler('F470696901034CAZ=true', null, null); return false; lift:gc=F470696901034CAZNo/button /div/div/form Basically the plugin calls $(html from above). This works fine in Opera. But it doesn't in Firefox. Firefox 3 complains about the lift:gc attribute and gives an error that the prefix is not defined. My page has xmlns:lift=http://liftweb.net; in the html tag. But obviously this is not used in the jQuery call. Is it possible to get an additional xmlns:lift namespace declaration in the tags which use the lift:gc attribute? Or is there another way to fix this? Another problem: Also, Lift outputs html like a lift:gc=F470696901031JE3 onclick=lift_ajaxHandler('F470696901031JE3=true', null, null) href=javascript:// key=F470696901031JE3 The key attribute is not prefixed by lift: and thus is invalid xhtml, I think. Thanks a lot. Looking forward to the great 1.0 version, Joachim -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Problems with lift:gc attributes
Folks, After some digging, it appears that the lift:gc problem is a jQuery and/or Firefox issue. jQuery BlockUI creates a div that contains the dialog. For some reason, that div does not seem to get the namespace attributes of the current document (I don't know if this is a jQuery problem in that the newly created div is not properly attached to the current document or a Firefox problem.) I've posted the problem to the jQuery-dev list ( http://groups.google.com/group/jquery-dev/browse_thread/thread/e38c02ddaa4560dd) and will pester the jQuery folks if I don't get an answer.) If there's a way to tell jQuery BlockUI to use an existing div rather than creating one of its own, that would be a work-around. Thanks, David On Thu, Feb 12, 2009 at 9:58 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Joachim, I've found and fixed the key problem. The Namespace problem looks like a Firefox bug. I'm still working through it. Thanks, David On Wed, Feb 11, 2009 at 4:25 PM, Joachim A. wallaby.po...@googlemail.comwrote: Hi, I'm using the jQuery plugin ModalDialog in a page. The message which is displayed in a dialog contains a lift ajax form. The xhtml of the form is: form lift:gc=F470696901035FZU id=F470696901035FZU action=# onsubmit=lift_ajaxHandler(jQuery('#'+'F470696901035FZU').serialize(), null, null);return false;div class=dialogdiv class=questionDo you really want to break up this friendship?/divdiv button onclick=lift_ajaxHandler('F470696901033BXG=true', null, null); return false; lift:gc=F470696901033BXGYes/button button onclick=lift_ajaxHandler('F470696901034CAZ=true', null, null); return false; lift:gc=F470696901034CAZNo/button /div/div/form Basically the plugin calls $(html from above). This works fine in Opera. But it doesn't in Firefox. Firefox 3 complains about the lift:gc attribute and gives an error that the prefix is not defined. My page has xmlns:lift=http://liftweb.net; in the html tag. But obviously this is not used in the jQuery call. Is it possible to get an additional xmlns:lift namespace declaration in the tags which use the lift:gc attribute? Or is there another way to fix this? Another problem: Also, Lift outputs html like a lift:gc=F470696901031JE3 onclick=lift_ajaxHandler('F470696901031JE3=true', null, null) href=javascript:// key=F470696901031JE3 The key attribute is not prefixed by lift: and thus is invalid xhtml, I think. Thanks a lot. Looking forward to the great 1.0 version, Joachim -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Problems with lift:gc attributes
Joachim, Can I trouble you to write up a simple example program that demonstrates the problem and post it either on-list or privately to me? Also, I'm not sure what that key thing is all about. I'll get rid of it. Thanks, David On Wed, Feb 11, 2009 at 4:25 PM, Joachim A. wallaby.po...@googlemail.comwrote: Hi, I'm using the jQuery plugin ModalDialog in a page. The message which is displayed in a dialog contains a lift ajax form. The xhtml of the form is: form lift:gc=F470696901035FZU id=F470696901035FZU action=# onsubmit=lift_ajaxHandler(jQuery('#'+'F470696901035FZU').serialize(), null, null);return false;div class=dialogdiv class=questionDo you really want to break up this friendship?/divdiv button onclick=lift_ajaxHandler('F470696901033BXG=true', null, null); return false; lift:gc=F470696901033BXGYes/button button onclick=lift_ajaxHandler('F470696901034CAZ=true', null, null); return false; lift:gc=F470696901034CAZNo/button /div/div/form Basically the plugin calls $(html from above). This works fine in Opera. But it doesn't in Firefox. Firefox 3 complains about the lift:gc attribute and gives an error that the prefix is not defined. My page has xmlns:lift=http://liftweb.net; in the html tag. But obviously this is not used in the jQuery call. Is it possible to get an additional xmlns:lift namespace declaration in the tags which use the lift:gc attribute? Or is there another way to fix this? Another problem: Also, Lift outputs html like a lift:gc=F470696901031JE3 onclick=lift_ajaxHandler('F470696901031JE3=true', null, null) href=javascript:// key=F470696901031JE3 The key attribute is not prefixed by lift: and thus is invalid xhtml, I think. Thanks a lot. Looking forward to the great 1.0 version, Joachim -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---