Howdy.

Anyone ever successfully used the 
http://kelvinluck.com/assets/jquery/datePicker/v2/demo/index.html jQuery
datePicker  with appfuse? Lemme tell you a story:

In default.jsp, the page that 'decorates' all of your jsps, you have the
following js libraries:

prototype.js
scriptaculous.js
global.js

In order to use datePicker you need the following js libraries:

jquery-1.x.js
date.js
jquery-dimensions.js
jquery-datepicker.js

Hunky-dory. Now, I don't want to put those last 4 js files in default.jsp
because I only need them in those jsps that have a date field. So I put them
in my test.jsp file. But when appfuse renders my test.jsp page, including
all the stuff in default.jsp, Firefox goes berserk. I get thousands of js
errors, all in effects.js:

>this._base has no properties, http://localhost:8080/scripts/effects.js,
Line 516

This also happens if I put my jquery.js in default.jsp after
scriptaculous.js. However, if I put it before scriptaculous.js I get no
errors. But my calendar doesn't work! No errors, just doesn't appear!

And if I comment out scriptaculous.js in default.jsp, and leave jquery.js in
test.jsp, my calendar works. I get a couple errors, because a couple
scriptaculous functions are called automatically (focus, etc.) and fail
because scriptaculous is commented out. But the calendar works. Oddly
enough, the calendar appears in the bottom left corner of the screen and
without any styles. It seems it's not grabbing either the datepicker.css or
demo.css it needs, I don't know.

Anyone ever used datePicker, or more generally, scriptaculous + jquery? I
can't believe they can't work together, seeing as they are both becoming
'standards'. But it does seem that the order you put them in your page is
important. It seems like if you put jquery after scriptaculous it goes into
a loop, when jquery's constructor is called, and never exits.

Incidentally, I realize that appfuse comes with a calendar.js but that code
has been around forever and doesn't seem as customizable as jquery. Anyway,
everyone seems to advocate jquery these days so I decided to jump in with
both feet. So far all I got for my troubles is ... wet feet.

Thanks!
Bob


-- 
View this message in context: 
http://www.nabble.com/jQuery-%2B-scriptaculous-%2B-datePicker-%3D-frustration-tf4234825s2369.html#a12048975
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to