loccom Posted August 14, 2017 Share Posted August 14, 2017 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¬model=1'); }); </script> Link to comment Share on other sites More sharing options...
loccom Posted August 15, 2017 Author Share Posted August 15, 2017 has there been any changes in jquery via IPB??? Link to comment Share on other sites More sharing options...
steve00 Posted August 15, 2017 Share Posted August 15, 2017 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¬model=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 More sharing options...
loccom Posted August 15, 2017 Author Share Posted August 15, 2017 problem is where i place this jquery is where it displays on the page. Link to comment Share on other sites More sharing options...
steve00 Posted August 15, 2017 Share Posted August 15, 2017 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 More sharing options...
Brian A. Posted August 15, 2017 Share Posted August 15, 2017 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¬model=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 More sharing options...
loccom Posted August 16, 2017 Author Share Posted August 16, 2017 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 More sharing options...
Optic14 Posted August 16, 2017 Share Posted August 16, 2017 Hi @loccom, any browser console errors? A link would be helpful so we can take a closer look. Link to comment Share on other sites More sharing options...
loccom Posted August 16, 2017 Author Share Posted August 16, 2017 http://www.jaguarownersclub.com/forums/ 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 cheers Link to comment Share on other sites More sharing options...
Nathan Explosion Posted August 16, 2017 Share Posted August 16, 2017 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¬model=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¬model=1'); }); </script> Link to comment Share on other sites More sharing options...
newbie LAC Posted August 16, 2017 Share Posted August 16, 2017 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 or put your code after jquery Link to comment Share on other sites More sharing options...
loccom Posted August 16, 2017 Author Share Posted August 16, 2017 1 hour ago, newbie LAC said: Hello, jquery library loads after your code Change or put your code after jquery Thats works.. thanks!!!! Thanks to everyone else as well who tried to help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.