@@ -414,7 +414,7 @@ <h1><span>Get In Touch.</span></h1>
414
414
< div class ="eight columns ">
415
415
416
416
<!-- form -->
417
- < form action ="" method ="post " id ="contactForm " name ="contactForm ">
417
+ < form action ="https://script.google.com/macros/s/AKfycbxz0GGZGEwzmmcnmLgP-Mvji11z3ahhlRnb1LgTDOy55ugS1aM/exec " method ="post " id ="contactForm1 " name ="contactForm1 ">
418
418
< fieldset >
419
419
420
420
< div >
@@ -434,11 +434,11 @@ <h1><span>Get In Touch.</span></h1>
434
434
435
435
< div >
436
436
< label for ="contactMessage "> Message < span class ="required "> *</ span > </ label >
437
- < textarea cols ="50 " rows ="7 " id ="contactMessage " name ="contactMessage "> </ textarea >
437
+ < textarea type =" text " cols ="50 " rows ="7 " id ="contactMessage " name ="contactMessage "> </ textarea >
438
438
</ div >
439
439
440
440
< div >
441
- < button class ="submit "> Submit</ button >
441
+ < button type =" submit " class ="submit "> Submit</ button >
442
442
< span id ="image-loader ">
443
443
< img alt ="" src ="images/loader.gif ">
444
444
</ span >
@@ -521,6 +521,24 @@ <h4>Address and Phone</h4>
521
521
522
522
<!-- Java Script
523
523
================================================== -->
524
+
525
+ < script type ="text/javascript ">
526
+ jQuery ( function ( $ ) {
527
+ $ ( "form[name=contactForm1]" ) . submit ( function ( e ) {
528
+ e . preventDefault ( ) ; // Keep the form from submitting
529
+ var form = $ ( this ) ;
530
+
531
+ // Use the POST method to post to the same url as
532
+ // the real form, passing in newNickname as the only
533
+ // data content
534
+ $ . post ( form . attr ( 'action' ) , { newNickname : form . find ( ':text' ) . val ( ) } , function ( data ) {
535
+ alert ( data ) ; // Alert the return from the server
536
+ } , "text" ) ;
537
+ } ) ;
538
+ } ) ;
539
+ </ script >
540
+
541
+
524
542
< script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js "> </ script >
525
543
< script > window . jQuery || document . write ( '<script src="js/jquery-1.10.2.min.js"><\/script>' ) </ script >
526
544
< script type ="text/javascript " src ="js/jquery-migrate-1.2.1.min.js "> </ script >
0 commit comments