[Lift] Re: id selectors discouraged?

2009-08-24 Thread David Pollak
Please make sure you're using Scala 2.7.5 in your pom.xml

Please make sure that List(paint) is in lower case in your sitemap.

On Mon, Aug 24, 2009 at 3:53 PM, Meredith Gregory
lgreg.mered...@gmail.comwrote:

 Lifted,

 At the pixillion master 
 http://github.com/leithaus/pixillion/tree/masteri've an example where it 
 appears that id selectors are not working
 correctly... Or, maybe i just don't know how to use CSS. The site map (after
 login) will show three pages of interest: paint, chat, combo. Paint is raw
 js without lift intervention and works as intended (for now). Chat is
 cribbed from the lift chat example. Combo attempts to put the two on the
 same page with lift tags in the drivers seat. As you can see the style is
 not being governed in the same way on the combo page, causing erroneous
 behavior in the paint rendering. Any help would be greatly appreciated.


If you remove the:

   lift:CSS.blueprint /
lift:CSS.fancyType /

lines from /templates-hidden/default.html, you'll get a much better result.
The CSS in Blueprint CSS is munging the CSS used by the paint program.

Please take a look at Firebug... it's a debugger for browsers... you can see
exactly how the browser applies style to each element.  It's mighty helpful.

On other notes, any JavaScript on the page *must* be escaped in ![CDATA[
blocks:

script type=text/javascript
$(document).ready(function() {

   /script

becomes:

  script type=text/javascript
// ![CDATA[
$(document).ready(function() {
...
   // ]]
   /script

The change set I sent out the last time you used the pixillion stuff as an
example should be applied to your project.  It fixes the Scala version issue
as well as the script escaping issue.



 Best wishes,

 --greg

 --
 L.G. Meredith
 Managing Partner
 Biosimilarity LLC
 1219 NW 83rd St
 Seattle, WA 98117

 +1 206.650.3740

 http://biosimilarity.blogspot.com

 



-- 
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: id selectors discouraged?

2009-08-24 Thread Meredith Gregory
David,

Thanks! i've no idea why you guys put up with me, but i'm glad you do!

Best wishes,

--greg

On Mon, Aug 24, 2009 at 5:22 PM, David Pollak feeder.of.the.be...@gmail.com
 wrote:

 Please make sure you're using Scala 2.7.5 in your pom.xml

 Please make sure that List(paint) is in lower case in your sitemap.

 On Mon, Aug 24, 2009 at 3:53 PM, Meredith Gregory 
 lgreg.mered...@gmail.com wrote:

 Lifted,

 At the pixillion 
 masterhttp://github.com/leithaus/pixillion/tree/masteri've an example 
 where it appears that id selectors are not working
 correctly... Or, maybe i just don't know how to use CSS. The site map (after
 login) will show three pages of interest: paint, chat, combo. Paint is raw
 js without lift intervention and works as intended (for now). Chat is
 cribbed from the lift chat example. Combo attempts to put the two on the
 same page with lift tags in the drivers seat. As you can see the style is
 not being governed in the same way on the combo page, causing erroneous
 behavior in the paint rendering. Any help would be greatly appreciated.


 If you remove the:

lift:CSS.blueprint /
 lift:CSS.fancyType /

 lines from /templates-hidden/default.html, you'll get a much better
 result.  The CSS in Blueprint CSS is munging the CSS used by the paint
 program.

 Please take a look at Firebug... it's a debugger for browsers... you can
 see exactly how the browser applies style to each element.  It's mighty
 helpful.

 On other notes, any JavaScript on the page *must* be escaped in ![CDATA[
 blocks:

 script type=text/javascript
 $(document).ready(function() {
 
/script

 becomes:

   script type=text/javascript
 // ![CDATA[
 $(document).ready(function() {
 ...
// ]]
/script

 The change set I sent out the last time you used the pixillion stuff as an
 example should be applied to your project.  It fixes the Scala version issue
 as well as the script escaping issue.



 Best wishes,

 --greg

 --
 L.G. Meredith
 Managing Partner
 Biosimilarity LLC
 1219 NW 83rd St
 Seattle, WA 98117

 +1 206.650.3740

 http://biosimilarity.blogspot.com





 --
 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

 



-- 
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---