• Learn Apex and Visual Force
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

This technique looks like it will save a lot of trouble – if I can get it to work for me.

 

http://th3silverlining.com/2010/03/02/visualforce-form-validation-enhanced/

 

I’m currently getting a “element is undefined” (according to Firefox) error on the jquery validate script. I’m current loading the jquery code via these lines:

 

<apex:includeScript value="{!$Resource.jquery1_3_2}"/>
<apex:includeScript value="{!$Resource.jquery_validate1_6}"/>

 

I’m using jquery 1.3.2 and the jquery validate plugin 1.6 (same as in this example).

 

Any ideas on what I’m doing wrong would be welcome.

 

Is the following page structure critical to this technique?

 

<apex:define name="content">   
   <apex:outputPanel layout="block" style="text-align:center; font-size:12px;padding: 4px">
      <apex:form id="commentForm" >
...

 

My form isn’t wrapped by a define or an output panel.