x First time here? Check out the FAQ
  • Avatar69posts93karma

    jQuery error

    ivorthedesigner started this topic 6 weeks ago , this topic was edited at: Wednesday, September 08, 2010 1:14 PM
    Hi I'm getting this error after installing the RVContactForm package in firebug.
    $("#ContactForm").validate is not a function: submitHandler: AjaxSubmit
    Any ideas, all the paths seem correct?

  • Replies

  • Avatar84posts117karma
    Comment with ID: 40949
    eran posted this reply 6 weeks ago

    i checked it on with firebug on version 4.5 and 4.0.1 and didnt find this problem.

    when you insert the contact form macro to your template, it automatically add references to few files:

    <link href="/css/RVContactForm.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js"></script>
    <script type="text/javascript" src="/scripts/json2.js"></script><script type="text/javascript" src="/scripts/RVContactForm.js"></script>

    the validation function exist in the file:

    http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js

    what kind of browser/windows/umbraco do you use?


  • ivorthedesigner posted this reply 6 weeks ago

    Hi Eran, I saw it puts the script tags in the marco so i moved it them out and put it into my masterpage and it works. I'm having problems getting it to send an email now, but that a different story


  • Avatar84posts117karma
    Comment with ID: 40954
    eran posted this reply 6 weeks ago

    make sure to check your smtp setting in your web.config and also the RVContactForm.config


  • ivorthedesigner posted this reply 6 weeks ago

    Thanks Eran but its still not working. I'm using  the code below in my webconfig file (gmail) as i'm working locally

    <system.net>
       
    <mailSettings>
         
    <smtp>
           
    <network
                           
    host="smtp.gmail.com"
                           
    port="587"
                           
    userName="yourGmailAccount"
                           
    password="yourGmailPassword"
                           
    defaultCredentials="false"
                   
    />
         
    </smtp>
       
    </mailSettings>
     
    </system.net>


  • Avatar84posts117karma
    Comment with ID: 40960
    eran posted this reply 6 weeks ago

    actually SMTP configuration is out of the scope of this forum, because its not a problem related for this packages and i'm not an smtp expert and i never tried to send email from local instalation.

    but maybe i can help you with 2 examples of configuratins from two different umbraco sites:

    the first, is from site that using softsys hosting and use there smtp:

    <system.net>
        <mailSettings>
          <smtp from="info@tammy.co.il" >
            <network host="mail.softsys.com" userName="info@tammy.co.il" password="12345" />
          </smtp>
        </mailSettings>
      </system.net>

    the second, if from site that uses gmail smtp: 

    <system.net>
        <mailSettings>
          <smtp>
           <network host="smtp.gmail.com"  port="587" userName="eran@thereturnvalue.com" password="12345" defaultCredentials="false" />
          </smtp>
        </mailSettings>
      </system.net>


    with enable ssl in the RVContactForm.config set to true:

     true

     

    i hope it helps,

    Eran.


  • ivorthedesigner posted this reply 6 weeks ago

    Thanks for your Help Eran, but its not working seems to be a problem somewhere else i guess


  • Avatar84posts117karma
    Comment with ID: 40970
    eran posted this reply 6 weeks ago

    if you will solve it please write here that i know for sure thats it not some bug in the package and for future users that may run in with the same problems.

    Thanks,

    Eran.


  • Mario Allegro posted this reply 3 weeks ago

    Hi Eran!

    I tried the form, too. I also get a problem with validation. I can see, that you use #ContactForm as the jquery selector. The problem I found is, that there isn't a form with this id rendered in source. Can this be the problem?

     

    Greets Mario!


  • Avatar84posts117karma
    Comment with ID: 44240
    eran posted this reply 3 weeks ago

    maybe its a bug: please send me the xslt that generate the form and the js file, and i'll check it.

    if its a bug in the name, i will fix it and update in the new version.

    mean while, to solve it for now, try to change the jquery selector so that the selector name will match the form name.

    please inform me it that fix the problem.

    thanks!

    Eran.


  • Mario Allegro posted this reply 3 weeks ago

    Hey Eran,

    I just changed the outer div and gave it the id #ContactForm.

    I had to also replace the ajax webservice call url:

    original -  url: "umbraco/webservices/RVContactFormMailer.asmx/SendContactForm",

    corrected - url: "/umbraco/webservices/RVContactFormMailer.asmx/SendContactForm",

    Now I have the email in my inbox ;-)

    Thanks!


Pages:

Please login or Sign up To post replies