Advertisement
Guest User

Contact Form Diving Club HTML5 CSS3 jQuery

a guest
Nov 28th, 2012
825
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 7.91 KB | None | 0 0
  1. I have been asked for some help from my father who is a student at University currently in his 4th year studying Animation. He has asked me to design a website as part of his compulsary topic E & E which accounts for 40% of his year grade!! They have chosen to produce Television Music Videos and need a website to be designed to showcase what they do and services offered. I agreed to lend a helping hand where I can.
  2.  
  3. Trying to get a contact us form to work to send to a gmail account: "vastgsm@gmail.com" just as a test. Once it works with my gmail account I will change it to my domain email address: "contact@imademedia.co.uk". but and not having much luck!, can you help please?
  4.  
  5. I am new here, I have searched Google for the answer but not had much luck so far! However I did lots of results via Google here but none of the results have fixed the contact form.
  6.  
  7. The directory the websites resides in is NOT at the parent www level its with a subfolder within.
  8.  
  9. http://www.imademedia.co.uk/dc/Diving_Club.zip <------As you can see its NOT in the root of "/WWW" aka or "public_html"
  10.  
  11. The only errors that FireBug throws up from inside "Google Chrome is errors relating to Google maps.
  12.  
  13. I have tried different web hosting providers including HostSurfUk and JustHost with the contact form but that does not work either. I seeked tech support fro my hosts to see if there any kind of special pre-requists needed to get this working but there are none. I have tried upgrading the jQuery to the very latest 1.8.3 but that did not resolve the issue. I have tried a whole heap of contact forms too, but not much luck there either.
  14.  
  15. I even followed the advice to upgrade to AJAX contact form but no luck there either. I contacted Tech Support at Template Monster for some help with the contact form but they say as it is NOT one of their premium templates they can not offer any technical support. Google only churns up so much but a lot of it is unrelated linking to other non related issues.
  16.  
  17. To make life easier for those who can assist I will include as much details as I can to help trouble shoot my problem with a Non Working Contact-Form.
  18. The template I have chosen as an example is a FREE template from Template-Monster and redistribuitable. Here is a link to the FREE template.
  19.  
  20. http://blog.templatemonster.com/2012/08/20/free-website-template-jquery-slider-diving-club/
  21.  
  22. Included in the template is 6 folders
  23.  
  24. Bat "MailHandler.php"
  25.  
  26. "css" "forms.css", "grid.css", "ie.css", "prettyPhoto.css", "reset.css", "style.css"
  27.  
  28. documentation "JustSliderManual.html"
  29. -JustSlider_v.4.1
  30. css "demo.css", "fonts.css", "idea.css", "ie.css", "prettyPhoto.css", "reset.css", "style.css"
  31.  
  32. images (too many to list here)
  33.  
  34. js "too many to list here" however, I did notice the document "forms.js" and "javascript.js" these two files are NOT in the main parent directory but in the documentation folder instead. I did place these into the main "/js" directory and edited the contacts.html file to include the script in the load up of the document but this made no difference either.
  35.  
  36. images (far too many images to list but not relevant to list them to troubleshoot this issue.
  37.  
  38. js "calendar-events.js", "fullcalendar.min", "html5.js", "jquery.cycle.all.min.js", "jquery.easing.1.3.js", "jquery.prettyPhoto.js", "jquery-1.7.1.min.js", "jquery-ui-1.8.17.custom.min.js", "PIE.htc", "PIE.php", "slider.js", "superfish.js", "tms-0.4.1.js"
  39.  
  40. screenshots
  41.  
  42. Also included is the essentials too.
  43. home.html
  44. about.html
  45. gallery.html
  46. calendar.html
  47. contacts.html
  48. members_info.html
  49.  
  50. The part I believe to be editable regions are these below. . .
  51.  
  52. contacts.html - These are at the TOP of my html.
  53.  
  54.    <script src="js/jquery-1.7.1.min.js"></script>
  55.    <script src="js/superfish.js"></script>
  56.    <script src="js/jquery.easing.1.3.js"></script>
  57.    <script src="js/tms-0.4.1.js"></script>
  58.    <script src="js/slider.js"></script>
  59.    <script src="js/jquery.prettyPhoto.js"></script>
  60.    <script src="js/forms.js"></script>
  61.    <script src="http://malsup.github.com/jquery.form.js"></script>
  62.  
  63. I also added this snippet too
  64.  
  65.    <script>
  66.            // wait for the DOM to be loaded
  67.            $(document).ready(function() {
  68.                // bind 'myForm' and provide a simple callback function
  69.                $('#myForm').ajaxForm(function() {
  70.                    alert("Thank you for your comment!");
  71.                 });
  72.             });
  73.         </script>
  74.  
  75. Also here is the Form HTML code.
  76.  
  77.     <!-- Form (start) -->
  78.                             <div class="col-12">
  79.                                 <h3>Feedback</h3>
  80.                                 <form id="contact-form" method="post">
  81.                                   <fieldset>
  82.                                     <label class="name">
  83.                                         <input type="text" value="Your Name" onfocus="if(this.value=='Your Name'){this.value=''}" onblur="if(this.value==''){this.value='Your Name'}">
  84.                                     </label>
  85.                                     <label class="phone">
  86.                                         <input type="text" value="Telephone" onfocus="if(this.value=='Telephone'){this.value=''}" onblur="if(this.value==''){this.value='Telephone'}">
  87.                                     </label>
  88.                                     <label class="email">
  89.                                       <input type="email" value="Email" onfocus="if(this.value=='Email'){this.value=''}" onblur="if(this.value==''){this.value='Email'}">
  90.                                     </label>
  91.                                     <label class="message">
  92.                                       <textarea onfocus="if(this.value=='Message'){this.value=''}" onblur="if(this.value==''){this.value='Message'}">Message</textarea>
  93.                                     </label>
  94.                                     <div class="btns">
  95.                                         <a class="button" onClick="document.getElementById('contact-form').reset()">Clear</a>
  96.                                         <a class="button" onClick="document.getElementById('contact-form').submit()">Send</a>
  97.                                     </div>
  98.                                   </fieldset>
  99.                                 </form>
  100.                             </div>
  101.                         </div>
  102.                     </article>
  103.                 </div>
  104.             </section>
  105.     <!-- Form (stop) -->
  106.  
  107. "MailHandler.php" -
  108.  
  109.     <?php
  110.        $owner_email = "owner_email";
  111.        $headers = 'From:' . $_POST["email"];
  112.        $subject = 'A message from your site visitor ' . $_POST["name"];
  113.        $messageBody = "";
  114.  
  115. I noticed some other templates and websites have this file "MailHandler.ashx" I tried adding this to the "bat" directory but this made no difference, still not working.
  116.  
  117. "forms.js" -
  118.  
  119.    (function($){
  120.         $.fn.extend({
  121.             forms:function(opt){
  122.                 if(opt===undefined)
  123.                     opt={}
  124.                 this.each(function(){
  125.                     var th=$(this),
  126.                         data=th.data('forms'),
  127.                         _={
  128.                             errorCl:'error',
  129.                             emptyCl:'empty',
  130.                             invalidCl:'invalid',
  131.                             successCl:'success',
  132.                             successShow:'4000',
  133.                             mailHandlerURL:'bin/contacts.html',
  134.                             ownerEmail:'vastgsm@gmail.com',
  135.                             stripHTML:true,
  136.                             smtpMailServer:'localhost',
  137.                             targets:'input,textarea',
  138.                             controls:'a[data-type=reset],a[data-type=submit]',
  139.                             validate:true,
  140.                             rx:{
  141.  
  142. Also at the bottom of the "forms.js" I have included the following snippet below.
  143.  
  144.    })(jQuery)
  145.    $(function(){
  146.         $('#contact-form').forms({
  147.             ownerEmail:'vastgsm@gmail.com'
  148.         })
  149.    })
  150.  
  151. Above is a snippet from the "forms.js" as you can see I edited the lines that I believe to be editable but this had no affect either.
  152.  
  153. Running out of ideas now, not sure what to do now. . . ? ? ?
  154. confuzed.com brrrrrrrrr.......
  155.  
  156. Kindest regards,
  157. Adam
  158. vastgsm@gmail.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement