You need to sign in to do that
Don't have an account?
Charles McDowell
jQuery not working
I can not get jQuery to work. So I set this test to redirect a page. It does not work. Can someone identify the problem
<apex:page >
<!-- TestJava.vfp -->
<apex:includeScript value="{! $Resource.jQuery }"/>
<script >
var returnURL='/apex/Recommendation_Request_Dataview';
function redirectPage(){
$(location).attr('href', '{$Page.Recommendation_Request_Dataview}');
}
</script>
<apex:form >
<apex:commandButton value="Move" onclick="redirectPage" />
</apex:form>
</apex:page>
<apex:page >
<!-- TestJava.vfp -->
<apex:includeScript value="{! $Resource.jQuery }"/>
<script >
var returnURL='/apex/Recommendation_Request_Dataview';
function redirectPage(){
$(location).attr('href', '{$Page.Recommendation_Request_Dataview}');
}
</script>
<apex:form >
<apex:commandButton value="Move" onclick="redirectPage" />
</apex:form>
</apex:page>