Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
loccom Posted August 14, 2017 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>
loccom Posted August 15, 2017 Author Posted August 15, 2017 has there been any changes in jquery via IPB???
steve00 Posted August 15, 2017 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
loccom Posted August 15, 2017 Author Posted August 15, 2017 problem is where i place this jquery is where it displays on the page.
steve00 Posted August 15, 2017 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>
Brian A. Posted August 15, 2017 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>
loccom Posted August 16, 2017 Author 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.
Optic14 Posted August 16, 2017 Posted August 16, 2017 Hi @loccom, any browser console errors? A link would be helpful so we can take a closer look.
loccom Posted August 16, 2017 Author 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
Nathan Explosion Posted August 16, 2017 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>
newbie LAC Posted August 16, 2017 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
loccom Posted August 16, 2017 Author 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.