简体   繁体   中英

Javascript error in IE / iframe

have a problem with shopping cart JS ( add to cart ) - it does work normally as expected in Chrome, FF, Sarafi but doens't work in IE 11 and earlier ( suprisingle works in IE 8 )

JS file- https://volleyballcoachemag.com/jscripts/product.js

add to shopping cart / add to wishlist do not work in IE.

Probably the issue with window.location in IE,

version with iframe ( not working in IE ):

http://softballcoachemag.com/iframe-test/index.html

version that works in IE ( without iframe ) https://volleyballcoachemag.com/s-1-frame_tharrett.aspx

Solution needed so it will work within iframe

'Uncaught ReferenceError: $ is not defined s-1-frame_tharrett.aspx:46'

Looking through your page source I couldn't find a reference to jquery, are you sure you linked it properly? You have these two in the page you linked:

<script type="text/javascript" src="Services_files/jquery.js"></script>
<script type="text/javascript" src="Services_files/jquery-migrate.js"></script>

However the server cannot find the linked file for me. JQuery defines '$', so I would reccomend ensuring it is linked correctly to run your JQuery script.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM