Never heard of it.

With jQuery (http://jquery.com/), the Javascript part is not so bad as
about 95% of the browser dependant code is handled by the library.

However, css is still a real pain in the neck. I know people like to
complain about IE, but Google Chrome and Apple Safari are the ones
that give me big head aches for the css inconsistencies (I find that
IE and Firefox render things about the same way at least as far as
positioning and size go, Opera doesn't give me too many problems
either, though the fact that it renders thing smaller for a given
pixel value is midly irritating).

In the end, I decided to make everything that I could absolutely
positioned to reduce the amount of layout problems across browsers.

You can also place things dynamically when the page is loaded using
jQuery's ready handler (I found it especially useful for centering
your page on the screen if it doesn't take up the whole screen so that
your content is not stuck on the upper-left corner which looks ugly),
but you gotta be careful about one thing:

If you load your css info in a separate file, they may or may not be
loaded when your Javascript start executing (meaning all the
positioning, width and height values you defined in the css may not be
defined when the javascript start executing). I had this problem with
the Chrome/Safari browsers (big suprise) with a really slow server (my
slow USB stick which is not a bad simulation of what might happen to
the server under stress as far as page loading goes).

The solution I found to alleviate the above was to implement the css
definitions that I needed for the jQuery 'ready' handler directly in
the html page.

Hours of fun.

On Oct 2, 1:10 am, yamandu <yamandu.co...@gmail.com> wrote:
> Hi, I found thishttp://www.embeddedjs.com/
>
> Haven´t teste yet, but looks interesting.
> The goal is help by letting code html/javascript code cleanner by
> using templates
> similar to web2py templates.
>
> I always almost get crazy when writing html/javascript code.
> It always get confusing and this might help.
>
> Anyone knows it?
> I think I can imagine some cons, do you too?

Reply via email to