Skip to content

Commit 2ddf232

Browse files
committed
2 parents 3dec307 + 92be785 commit 2ddf232

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

index.html

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ <h1><span>Get In Touch.</span></h1>
414414
<div class="eight columns">
415415

416416
<!-- 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">
418418
<fieldset>
419419

420420
<div>
@@ -434,11 +434,11 @@ <h1><span>Get In Touch.</span></h1>
434434

435435
<div>
436436
<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>
438438
</div>
439439

440440
<div>
441-
<button class="submit">Submit</button>
441+
<button type="submit" class="submit">Submit</button>
442442
<span id="image-loader">
443443
<img alt="" src="images/loader.gif">
444444
</span>
@@ -521,6 +521,24 @@ <h4>Address and Phone</h4>
521521

522522
<!-- Java Script
523523
================================================== -->
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+
524542
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
525543
<script>window.jQuery || document.write('<script src="js/jquery-1.10.2.min.js"><\/script>')</script>
526544
<script type="text/javascript" src="js/jquery-migrate-1.2.1.min.js"></script>

0 commit comments

Comments
 (0)