Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-16-2011, 05:25 PM   PM User | #1
Psionicsin
Regular Coder

 
Psionicsin's Avatar
 
Join Date: Aug 2010
Location: Ann Arbor, Michigan
Posts: 334
Thanks: 51
Thanked 0 Times in 0 Posts
Psionicsin is an unknown quantity at this point
jQuery Modal Email Form Not Working

I recently bought the jQuery Modal Email form from Code Canyon, but I think i'm doing something wrong because I can't configure it like I want to. that is, the pop-up that's supposed to show isn't...popping up.

Can someone help me to understand what I'm doing wrong?

Here are the directions: http://codecanyon.net/item/jquery-mo...preview/205277

And here's a link to the contact page of our site: http://www.rutholsonphoto.com/contact_us.php
Psionicsin is offline   Reply With Quote
Old 04-16-2011, 05:46 PM   PM User | #2
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
Your link to the new library uses scr NOT src.
AndrewGSW is offline   Reply With Quote
Users who have thanked AndrewGSW for this post:
Psionicsin (04-16-2011)
Old 04-16-2011, 05:56 PM   PM User | #3
Psionicsin
Regular Coder

 
Psionicsin's Avatar
 
Join Date: Aug 2010
Location: Ann Arbor, Michigan
Posts: 334
Thanks: 51
Thanked 0 Times in 0 Posts
Psionicsin is an unknown quantity at this point
Quote:
Originally Posted by AndrewGSW View Post
Your link to the new library uses scr NOT src.
Ok I changed it, but it's still not working like it should.

It seems like the plugin isn't creating the
Code:
<div id="mask"></div>
<div id="conact"></div>
<div id="contactForm"></div>
fields automatically like it should.

Last edited by Psionicsin; 04-16-2011 at 06:23 PM..
Psionicsin is offline   Reply With Quote
Old 04-16-2011, 07:05 PM   PM User | #4
oesxyl
Master Coder


 
Join Date: Dec 2007
Posts: 6,682
Thanks: 436
Thanked 890 Times in 879 Posts
oesxyl is a jewel in the roughoesxyl is a jewel in the roughoesxyl is a jewel in the rough
Quote:
Originally Posted by Psionicsin View Post
Ok I changed it, but it's still not working like it should.

It seems like the plugin isn't creating the
Code:
<div id="mask"></div>
<div id="conact"></div>
<div id="contactForm"></div>
fields automatically like it should.
you use prototype, scriptaculous and jquery in the same page, i'm not sure but could be a conflict somewhere. Comment the script element where you load scriptaculous and try again.

best regards
oesxyl is offline   Reply With Quote
Old 04-20-2011, 11:06 PM   PM User | #5
LastRoseStudios
New to the CF scene

 
Join Date: Apr 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
LastRoseStudios is an unknown quantity at this point
try writing your email address as
<p class="emailReplace" title="Email Us!">info[at]rutholsonphoto[dot]com</p>
instead of
<a href="mailto:info@rutholsonphoto.com" title="info@rutholsonphoto.com" class="emailReplace">Email Us!</a>
LastRoseStudios is offline   Reply With Quote
Old 04-20-2011, 11:53 PM   PM User | #6
LastRoseStudios
New to the CF scene

 
Join Date: Apr 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
LastRoseStudios is an unknown quantity at this point
Also,

Code:
<script src="./js/ModalEmail.js" type="text/javascript">
	$('#info').ModalEmail({
		stylesheet : "./css/baseStyle.css",
		action : "./content/contactus/mailer.php",
		simple : false
	});
</script>
Should be
Code:
<script src="./js/ModalEmail.js" type="text/javascript"></script>
<script type="text/javascript">
	$('#info').ModalEmail({
		stylesheet : "./css/baseStyle.css",
		action : "./content/contactus/mailer.php",
		simple : false
	});
</script>
and for some reason, jQuery can't find your $('#info'), try replacing it with $('body')
LastRoseStudios is offline   Reply With Quote
Old 04-21-2011, 03:14 PM   PM User | #7
harbingerOTV
Senior Coder

 
Join Date: Jan 2005
Location: Memphis, TN
Posts: 1,765
Thanks: 8
Thanked 123 Times in 121 Posts
harbingerOTV will become famous soon enough
in addition to what LastRoseStudios said, don't put the script in your head, put i right before your closing body tag like:

Code:
<script src="./js/ModalEmail.js" type="text/javascript"></script>
<script type="text/javascript">
	$('#info').ModalEmail({
		stylesheet : "./css/baseStyle.css",
		action : "./content/contactus/mailer.php",
		simple : false
	});
</script>
</body>
</html>
You are calling the script to find "#info" before the #info div is being loaded by the page. So Call your script in the HTML after your #info div in the code.
__________________
Stop making things so hard on yourself.
i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis
harbingerOTV is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:10 AM.


Advertisement
Log in to turn off these ads.