Jump to content

jquery not working since update to 4.2.2


loccom

Recommended Posts

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>

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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>

 

Link to comment
Share on other sites

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>

 

Link to comment
Share on other sites

 

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.

Link to comment
Share on other sites

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>

 

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

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