Jump to content

jquery not working since update to 4.2.2


loccom

Recommended Posts

Posted

Hi Guys

 

I run a small jquery via advertisements feature. This displays a list of cars i have from a script. Since the upgrade this no longer works. Any ideas how i can get it working again?

<script "type=text/javascript">
                jQuery(function() {
                                jQuery('#motors-banner-2').load('http://www.XXXXXXXX.com/banner.php?qty=4&notmodel=1');
});
</script>

 

Posted
19 hours ago, loccom said:

Hi Guys

 

I run a small jquery via advertisements feature. This displays a list of cars i have from a script. Since the upgrade this no longer works. Any ideas how i can get it working again?


<script "type=text/javascript">
                jQuery(function() {
                                jQuery('#motors-banner-2').load('http://www.XXXXXXXX.com/banner.php?qty=4&notmodel=1');
});
</script>

 

If any help I had to move scripts just before the closing </body> tag and they started working

Posted
20 minutes ago, loccom said:

problem is where i place this jquery is where it displays on the page.

 

Yep that is a problem ... sorry cannot help with that unless you make it a file and then call that file from where you want it on the page

<script src="path_to_your_file.js"></script>

 

Posted
On 8/14/2017 at 6:18 AM, loccom said:

<script "type=text/javascript"> jQuery(function() { jQuery('#motors-banner-2').load('http://www.XXXXXXXX.com/banner.php?qty=4&notmodel=1'); }); </script>

I don't know if you've made a mistake inputting the code inside the code editor, but the script should be like this:

<script type="text/javascript">
  // Code here
</script>

 

Posted

 

14 hours ago, Brian A. said:

I don't know if you've made a mistake inputting the code inside the code editor, but the script should be like this:


<script type="text/javascript">
  // Code here
</script>

 

Well spotted. Howevr, I still have the issue with it not working :(

Support don't want to help as out of their scope.

Posted

Your code is:

<script "type=text/javascript">
                jQuery(function() {
                                jQuery('#motors-banner-1').load('http://www.jaguarownersclub.com/motors-banner.php?direction=v&qty=6&sort=price&notmodel=1');
});
</script>

Can you please change it to the following so that it's correct, and then if it still fails we can see why it might:

<script type="text/javascript">
                jQuery(function() {
                                jQuery('#motors-banner-1').load('http://www.jaguarownersclub.com/motors-banner.php?direction=v&qty=6&sort=price&notmodel=1');
});
</script>

 

Posted

Hello,

14 minutes ago, loccom said:

Should be 2x jquerys, one in the side bar and one in the footer. The one in the sidebar should worked below the Featured Cars section

 

jquery library loads after your code

Change

 js.jpg.49cb7a457a5bb560dafa557dea2be720.jpg

or put your code after jquery

 

Posted
1 hour ago, newbie LAC said:

Hello,

jquery library loads after your code

Change

 js.jpg.49cb7a457a5bb560dafa557dea2be720.jpg

or put your code after jquery

 

Thats works.. thanks!!!!

Thanks to everyone else as well who tried to help. 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...