You need to sign in to do that
Don't have an account?

Problem in VisualForce with JQuery usage Please Help me Out
<apex:page >
<apex:includeScript value="{!URLFOR($Resource.satish,'/satish/js/jquery-1.8.3.js')}"/>
<apex:includeScript value="{!URLFOR($Resource.satish,'/satish/js/jquery-ui-1.9.2.custom.js')}"/>
<apex:includeScript value="{!URLFOR($Resource.satish,'/satish/js/jquery-ui-1.9.2.custom.min.js')}"/>
<apex:stylesheet value="{!URLFOR($Resource.satish,'/satish/css/ui-lightness/jquery-ui-1.9.2.custom.css')}"/>
<apex:stylesheet value="{!URLFOR($Resource.satish,'/satish/css/ui-lightness/jquery-ui-1.9.2.custom.min.css')}"/>
<script type="text/javascript">
j$=jQuery.noConflict();
if(j$)
{
alert('Success');
}
else
{
alert('NOt loaded');
}
</script>
<script type="text/javascript">
j$(document).ready(function()
{
});
</script>
</apex:page>
here i am dowonloaded the library file (http://jqueryui.com/download/#!version=1.9.2), and renamed the file like satish.zip the i am uploaded in to my sandbox as a static resources having the name satish instatic resources....... but i am not getting any messages as per my code like success..........
Please Help me out............ I am trying for so many days with diffierent sites.......... but i am unable to execute even single visualforce page having jQuery
Please help me ...................
i Would appriciate for any kind of replay..........................
<apex:includeScript value="{!URLFOR($Resource.satish,'/satish/js/jquery-1.8.3.js')}"/>
<apex:includeScript value="{!URLFOR($Resource.satish,'/satish/js/jquery-ui-1.9.2.custom.js')}"/>
<apex:includeScript value="{!URLFOR($Resource.satish,'/satish/js/jquery-ui-1.9.2.custom.min.js')}"/>
<apex:stylesheet value="{!URLFOR($Resource.satish,'/satish/css/ui-lightness/jquery-ui-1.9.2.custom.css')}"/>
<apex:stylesheet value="{!URLFOR($Resource.satish,'/satish/css/ui-lightness/jquery-ui-1.9.2.custom.min.css')}"/>
<script type="text/javascript">
j$=jQuery.noConflict();
if(j$)
{
alert('Success');
}
else
{
alert('NOt loaded');
}
</script>
<script type="text/javascript">
j$(document).ready(function()
{
});
</script>
</apex:page>
here i am dowonloaded the library file (http://jqueryui.com/download/#!version=1.9.2), and renamed the file like satish.zip the i am uploaded in to my sandbox as a static resources having the name satish instatic resources....... but i am not getting any messages as per my code like success..........
Please Help me out............ I am trying for so many days with diffierent sites.......... but i am unable to execute even single visualforce page having jQuery
Please help me ...................
i Would appriciate for any kind of replay..........................
Since these libraries are widly used in web you better get the advantage of google CDN
you can simply use the google libraries as follows (this will give you the loaded jquery version
Go to following link to see all the libraries hosted by google
https://developers.google.com/speed/libraries/devguide
All Answers
Since these libraries are widly used in web you better get the advantage of google CDN
you can simply use the google libraries as follows (this will give you the loaded jquery version
Go to following link to see all the libraries hosted by google
https://developers.google.com/speed/libraries/devguide
<apex:includeScript value="{!URLFOR($Resource.varun,'/varun/js/jquery-1.8.3.js')}"/>
<apex:includeScript value="{!URLFOR($Resource.varun,'/varun/js/jquery-ui-1.9.2.custom.js')}"/>
<apex:includeScript value="{!URLFOR($Resource.varun,'/varun/js/jquery-ui-1.9.2.custom.min.js')}"/>
<apex:stylesheet value="{!URLFOR($Resource.varun,'/varun/css/ui-lightness/jquery-ui-1.9.2.custom.css')}"/>
<apex:stylesheet value="{!URLFOR($Resource.varun,'/varun/css/ui-lightness/jquery-ui-1.9.2.custom.min.css')}"/>
<script type="text/javascript">
j$=jQuery.noConflict();
if(j$)
{
alert('Success');
}
else
{
alert('NOt loaded');
}
</script>
<script type="text/javascript">
j$(document).ready(function()
{
});
</script>
</apex:page>
Suresh please check jquery zip file unzip it
and check root/path is correct