Re: [Erlangweb-users] erlang web and jquery
Brought to you by:
etcerlangweb,
paulgray
|
From: Michal Z. <zaj...@gm...> - 2009-11-01 18:38:35
|
Hi instead of <script .. /> use <script> </script> (important: some char between i.e. white space) It is some sort of bug (or behavior;)) of xmerl. it was that? Also, if source of scripts is external, you do not need new rules in the dispacher. 2009/11/1 Suhail Ahmed <suh...@gm...> > Hi, > > I am really new to earlang web, started using it today as a matter of fact. > I have been using beepbeep but the lack of i18n caused me to look further > afield for something I needed and erlang web fits the bill. However, in > moving to erlang web I seem to have hit a snag. I have found that the > inclusion of jquery causes my page not to display, at least in Firefox and > Lynx though it does display in Safari albeit without Jquery working > properly.I have pared down my code to the barest minimum which I have below: > > > <?xml version="1.0" encoding="utf-8"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > > <head> > <title>moimoi</title> > <meta http-equiv="Content-Type" content="text/html; > charset=UTF-8"/> > <script type="text/javascript" src=" > http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"/> > <script type="text/javascript" src=" > http://www.methvin.com/jquery/jq-corner.js"/> > > </head> > <body> > <p>hello</p> > </body> > </html> > > > If I remove the jquery scripts, the paragraph will display. Is there > something I need to be aware of when using jquery and erlang web? I tried > the very same code in beepbeep and other frameworks and it works fine. I did > modify the default dispatcher and it looks like this now: > > {static,"^/jquery-1.3.2.min.js$",enoent}. > {static,"^/jquery.corner.js$",enoent}. > > and have the script files in the docroot folder. > > > Any help in getting me on the road with jquery will be deeply appreciated. > Looking forward to hearing from you soon. > > Cheers > Suhail > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Erlangweb-users mailing list > Erl...@li... > https://lists.sourceforge.net/lists/listinfo/erlangweb-users > http://www.erlang-web.org/ > |