jQuery script:
jQuery.noConflict()(function(){
$('a').click(...
});
On Jan 1, 7:29 pm, spstieng <spsti...@hotmail.com> wrote:
> Tha path is correct. I use FireBug to debug the javascript and I can
> see the jQuery script executing.
> I was executing this code inside Wordpress CMS and Drupal CMS.
>
> To test further, I created a test site tha only contains the index.php
> It worked perfectly.
>
> When debugging I see that it first calls the jQuery when executing
> this line:
> $(document).ready(function() {
>
> Then I see it use jQuery one more time executing this line:
> $("a").click(function() {
>
> Doing the same debugging in WordPress and Drupal, it only executes the
> first line, not the second line.
>
> Firefox is not giving me any javascript error, bit IE is giving me
> one, but it makes no sense:
> Line: 4
> Char: 3
> Error: Object doesn't support this property or method
> Code: 0
> Url:http://localhost/mysite/test
>
> On 1 Jan, 19:28, "Matt Quackenbush" <quackfu...@gmail.com> wrote:
>
> > Probably because the path to jQuery is incorrect and therefore jQuery is not
> > actually loaded.
>
> > On Thu, Jan 1, 2009 at 5:26 AM, spstieng wrote:
>
> > > Now, clicking Test B links dislays the 'Hello World' alert.
> > > But nothing happends when I click Test A. Why is that?
No comments:
Post a Comment