Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • sdfsfm 70 posts 94 karma points
    Jul 29, 2010 @ 13:34
    sdfsfm
    0

    jQuery error

    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?
  • Eran 292 posts 436 karma points
    Jul 29, 2010 @ 15:17
    Eran
    0

    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?

  • sdfsfm 70 posts 94 karma points
    Jul 29, 2010 @ 15:31
    sdfsfm
    0

    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

  • Eran 292 posts 436 karma points
    Jul 29, 2010 @ 15:47
    Eran
    0

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

  • sdfsfm 70 posts 94 karma points
    Jul 29, 2010 @ 15:59
    sdfsfm
    0

    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>

  • Eran 292 posts 436 karma points
    Jul 29, 2010 @ 16:10
    Eran
    0

    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="[email protected]" >
            <network host="mail.softsys.com" userName="[email protected]" 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="[email protected]" password="12345" defaultCredentials="false" />
          </smtp>
        </mailSettings>
      </system.net>


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

     true

     

    i hope it helps,

    Eran.

  • sdfsfm 70 posts 94 karma points
    Jul 29, 2010 @ 16:38
    sdfsfm
    0

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

  • Eran 292 posts 436 karma points
    Jul 29, 2010 @ 16:56
    Eran
    0

    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 17 posts 35 karma points
    Aug 22, 2010 @ 18:15
    Mario Allegro
    0

    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!

  • Eran 292 posts 436 karma points
    Aug 22, 2010 @ 19:51
    Eran
    0

    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 17 posts 35 karma points
    Aug 22, 2010 @ 20:09
    Mario Allegro
    0

    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!

  • Eran 292 posts 436 karma points
    Aug 22, 2010 @ 22:21
    Eran
    0

    o.k i'm glad its working.

    as soon as i will be available, i will upload new version of this package with few bug fixes.

    Thanks,

    Eran.

  • Eran 292 posts 436 karma points
    Sep 02, 2010 @ 16:19
    Eran
    0

    i fixes a few minor bugs including the ones in this forum topic, and updated the package version from 1.0 to 1.1

    Thanks

  • sdfsfm 70 posts 94 karma points
    Sep 08, 2010 @ 11:38
    sdfsfm
    0

    Hi Eran, I'm still having problems with the form, here is the response i ger in firebug...

     

    {"Message":"Could not find a part of the path \u0027C:\\inetpub\\wwwroot\\config\\RVContactForm.config\u0027.","StackTrace":"   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)\r\n   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)\r\n   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)\r\n   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)\r\n   at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)\r\n   at System.Threading.CompressedStack.runTryCode(Object userData)\r\n   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)\r\n   at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)\r\n   at System.Xml.XmlTextReaderImpl.OpenUrl()\r\n   at System.Xml.XmlTextReaderImpl.Read()\r\n   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)\r\n   at System.Xml.XmlDocument.Load(XmlReader reader)\r\n   at System.Xml.XmlDocument.Load(String filename)\r\n   at RVContactForm.RVContactFormMailer.SendContactForm(MailerRequest req)","ExceptionType":"System.IO.DirectoryNotFoundException"}

  • Eran 292 posts 436 karma points
    Sep 08, 2010 @ 12:04
    Eran
    0

    it seems that some file (RVContactForm.config) is missing.

    please make sure that you have all the files in the corrected paths:

    • /bin/RVContactForm.dll
    • /umbraco/webservices/RVContactFormMailer.asmx
    • /scripts/RVContactForm.js
    • /scripts/json2.js
    • /css/RVContactForm.css
    • /media/assets/ajax-loader.gif
    • /config/RVContactForm.config
    • XSLT Macro: RVContactForm
  • sdfsfm 70 posts 94 karma points
    Sep 08, 2010 @ 12:38
    sdfsfm
    0

    Hi Eran, Everything is in its place,

    If you wish to have a look at the form its @ http://www.greenbridge-international.com/contact-us.aspx

  • Eran 292 posts 436 karma points
    Sep 08, 2010 @ 13:14
    Eran
    0

    are you sure your smtp setting in the web.config are corrected?

    please double check it, because no one report about this bug. and if its not helps report and we see what we can do.

    anyway i'm so sorry but i will be available only in 3 days because i'm going to holiday trip in a moment.. so i will read your replay only in 3 days.

    i'm sure this issue will be solved soon, Thanks,

    Eran.

  • Eran 292 posts 436 karma points
    Oct 20, 2010 @ 04:35
    Eran
    0

    just to let you know that i uploaded new version of this package with bug fixes.
    BTY, if you like this project please vote for it (in the project page at the top right corner).

    Thanks,

    Eran.

Please Sign in or register to post replies

Write your reply to:

Draft