Obvious guess: the second page doesn't have jQuery.

2013/8/16 Ebrahim <[email protected]>

> I have noticed something strange. I use the following command to simulate
> click event of a radio button in my Firebug extension:
>
> targetClickableElement.setAttribute('data-id','1');
> //targetClickableElement is a radio button element
>
>
> var str =  "var element = jQuery('[data-id=1]',document).get(0);"+"\n";
>
> str = str + "jQuery(element).trigger('click');";
>
> Firebug.CommandLine.evaluate(str, Firebug.currentContext, null, null,
> function(res) {}, function failure() { /* won't happen */ });
>
>
> It works for some Websites (e.g.,
> http://www.dressbydesign.com/dress/design) but not for all (e.g.,
> http://www.mydogtag.com/#).
>
>
> Ebrahim
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Firebug" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/firebug/DDCxlrXsC-c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/firebug.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/firebug/62edb571-f9c5-43a8-b7f0-e2fd8a223729%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/firebug.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/firebug/CAK%3DTff24HbJz048WDNhPgfC21Q%2BdB1ngQPwharWz9wQ1h%2BDBaw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to