22975 Posts in 11620 Topics by 2826 members
|Go to End|
11 December 2009 at 8:48pm Last edited: 14 December 2009 10:13am
I am still struggling to have jQuery work properly on my 2.3.3 installation. I have finally narrowed down the problem to a question
of "trailing slash" ("/") at the end of the URLs .
If I use the url :
it works fine. jQuery is defined and I can animate my page ( tabs animation)
jQuery is not defined (of course if I remove the trailing slash and reload , it works perfectly)
I am totally puzzled here ...
FYI: to relsove another problem with local anchors I have added
to my config file, following the forum entry : http://www.silverstripe.org/general-questions/show/252254
It seems that a lot of you are able to use jQuery so ...what am I missing??
Any pointer , help, ..etc ..will be highly appreciated as I am simply running out of ideas...
14 December 2009 at 9:41am
I'm no JQuery expert, but I imagine it's nothing to do with JQuery as such.
1. Aren't pages without the trailing slash redirecting to a page with a slash anyway?
2. Also, how are you making sure the JQuery library gets included in the page?
You've something like this in a the relevant page controller's init(), right?
14 December 2009 at 10:13am Last edited: 14 December 2009 8:03pm
Tobych: Thank you for your reply. The problem was actually due to the way our code looks for external resources (we use the
Google Ajax Librairies API). I did not write the patch for this. I know it had to do with the way we access jQuery :
The line above works for us.
14 December 2009 at 10:19am Last edited: 14 December 2009 10:20am
In a recent project I had success by throwing efficiency to the wind and calling this in my Page_Controller::init():
14 December 2009 at 11:03am
Thanks for the tip! I will try it. (I agree that a "working" Requirements is quite convenient! )
|Go to Top|