0
<!doctype html>
<html lang="en">
<head>
<title>test page</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
</head>
<body>
<div id="My-page" style="width:900px; height:900px; position: absolute;overflow-x:hidden !important;-webkit-overflow-scrolling:touch !important;" class="iframely-widget-container">
<script>$("#My-page").load("http://www.flipbeets.com/display-embed-code/ZG9sY2VnYWJiYW5h/OTAwcHg=/OTAwcHg=/MQ==/MQ==/MQ==");</script>
</div>
</body>
</html>

iam trying to load flipbeets.com url via jquery into a div but it is not working

1

3 Answers 3

1

try this...

<div id="My-page" style="width:900px; height:900px; position: absolute;overflow-x:hidden !important;-webkit-overflow-scrolling:touch !important;" class="iframely-widget-container">
</div>
<script>
$( "#My-page" ).html('<object data=http://www.flipbeets.com/display-embed-code/ZG9sY2VnYWJiYW5h/OTAwcHg=/OTAwcHg=/MQ==/MQ==/MQ=="/>');       

</script>
Sign up to request clarification or add additional context in comments.

1 Comment

is it possible to load url inside a div through jquery without using iframe , object ,embed html tags ?
0

you can use iframe for this like

<html lang="en">
<head>
<title>test page</title>

</head>
<body>

 <iframe style="width:900px; height:900px; position: absolute;overflow-x:hidden !important;-webkit-overflow-scrolling:touch !important;"  src="http://www.flipbeets.com/display-embed-code/ZG9sY2VnYWJiYW5h/OTAwcHg=/OTAwcHg=/MQ==/MQ==/MQ=="></iframe>


</div>
</body>
</html>

Comments

0

You can use iframe instead of div to load your external website content.

 <iframe id="My-page"></div>

jQuery

$("#My-page").attr("src","http://www.flipbeets.com/display-embed-code/ZG9sY2VnYWJiYW5h/OTAwcHg=/OTAwcHg=/MQ==/MQ==/MQ==");

Demo

1 Comment

is it possible to load url inside a div through jquery without using iframe , object ,embed html tags ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.