[Erlangweb-users] erlang web and jquery
Brought to you by:
etcerlangweb,
paulgray
|
From: Suhail A. <suh...@gm...> - 2009-11-01 00:46:08
|
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:
moimoi
moimoi
<?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
|