jQuery.load content
-
Hej everybody,
I'm trying to load content from a specific div on a page that is originally placed on a different page of the website and place it in another div on another page.
<script> window.laytheme.on("newpageshown", function(layoutObj, type, obj){ jQuery( "#div-that-gets-content" ).load( "https://www.url/example #div-i-like-to-get-content-from" ); }); </script>It works perfectly for desktop browsers and smartphones but it doesn't work for tablets.
Do you have any idea why? :)
Thanks in advance,
basti
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login