[jQuery] jQuery 1.0.3 .click() not firing in IE
I am not set-up to connect to SVN. I tried calling the method with a
blank object and it broke both FF and IE.
Everything seems to be working ok with 1.0.1 for now. I will just stick
with that until the next release and try it then.
Thanks!
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On
Behalf Of Brandon Aaron
Sent: Sunday, November 05, 2006 5:58 PM
To: jQuery Discussion.
Subject: Re: [jQuery] jQuery 1.0.3 .click() not firing in IE
Oh wait ... this is due to some changes to jQuery.event.fix. These are
fixed in Rev 520. If you can't get to SVN then try calling the methods
with a blank object like this:
$("#contact-seller-btn").click({});
At least I think that is whats going on here.
--
Brandon Aaron
On 11/5/06, Marshall Salinger <marshall@salingermultimedia.com> wrote:
> Thanks for the reply.
>
> Here is the js in the head for this section.
>
> $(document).ready(function() {
>
> $("#contact-seller-btn").click(function() {
> $("#contact-form-toggle").toggle();
> }).toggle(function() {
>
>
$(this).children("img").attr("src","/images/btn_contact_seller_minus.gif
> ");
> }, function() {
>
> $(this).children("img").attr("src","/images/btn_contact_seller.gif");
> });
>
> });
>
>
> Here is the html for the form when you submit it with errors. It will
> print the errors and also print the jQuery click event to toggle open
> the div and display the errors.
>
> <div class="contact-form">
> <a href="#" id="contact-seller-btn"><img class="btn-hover"
> src="/images/btn_contact_seller.gif" border="0" alt="Contact Seller"
> /></a>
> <div id="contact-form-toggle" style="display:none;">
>
>
> <form action="" method="post" id="contact-form">
>
> <script type="text/javascript">
> <!--
> $(document).ready(function() {
> $("#contact-seller-btn").click();
> });
> -->
> </script>
> <p class="error">
> · Please provide a valid email address.<br/>
> · Please provide a contact message.<br/>
> · Please provide a valid security code.<br/>
>
>
> <div>
> <label for="email" class="error">Your email address</label>
> <input type="text" name="email" style="width:278px;" maxlength="255"
> value="" class="textfield" />
> </div>
>
> <div>
> <label for="body" class="error">Message</label>
> <textarea name="body" rows="5" style="width:278px;"
> maxlength="1000"></textarea>
> </div>
>
> <div id="captcha-image"></div>
>
> <div>
> <label for="captcha" class="error">Enter the 6 characters from the
image
> above.</label>
> <input type="text" name="captcha"
> style="width:100px;text-transform:uppercase;" maxlength="6" value=""
> class="textfield" />
> </div>
>
> <div style="margin:0 0 14px 0;">
> Can't read the characters above? <br /><a class="nc" href="#"
> id="contact-captcha-link">Generate a new image</a>
> </div>
>
> <div style="margin:0 0 12px 0;">
> <input class="btn-hover" type="image" src="/images/btn_send.gif"
> style="vertical-align:middle;margin-right:2px;" /> <input
> style="vertical-align:middle;" type="button" name="cancel"
> value="Cancel" class="close" />
> </div>
>
> <input type="hidden" name="submit" value="1" />
>
> </form>
> </div>
>
> </div>
>
>
> Thanks for the help!
>
> -Marshall
>
>
> -----Original Message-----
> From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]