You need to sign in to do that
Don't have an account?
b-liu
Adding jQuery to VisualForce Page... What am I missing??
I have been trying to implement jQuery into my visualForce pages to create a nicer appeal with simple animations and a better view of things. I have a prebuilt website demo for the new UI but already I am having trouble getting started by having the jQuery work. I've added the jQuery standard development to my static resources. But not even the simple hide() function isnt working.
Can anyone know what I am doing wrong or can lead me the right direction? The tutorials and things I've tried replicating off sites have not worked.
Hey,
Can you post a snippet of your code here? If its inside a component did you use j$ no confilct? You might be having an error when Visualforce renders the HTML.
Did you check out tehNrds demo: http://www.tehnrd.com/setting-up-jquery-with-salesforce-com/
or
dhoechst jquery tutorial: http://verticalcode.wordpress.com/2011/02/19/salesforce-javascript-remoting-jquery-and-autocomplete/
just some rough notepad stuff here, but I think the first thing since I don't know where this is running is to throw a noconflcit, then I think the way you are accessing the Divs should be chagned but without seeing the html markup, this is as far as I can get.
You need to include both the jquery library and the jquery-ui library. Best, Steve.
so according to u it should look like
Well, *I* was using an Accordian control from jquery, but I'm not suggesting that you need one. It was just an example of usage. My point was that you didn't have the full set of scripts included.
just check for the jQuery Archive - js folder, i doubt that the resource name you are using might be different