AJAX Request in Bootstrap

1

Hello

I need to open an external page through an AJAX request in my ROW in Bootstrap, but I'm not having success, I'm following the tutorial below, but it's not opening my page in the Bootstrap ROW, like I can do ? Are there any native Bootstrap functions for this?

link

Code:

    <!doctype html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <title>load demo</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><style>body{font-size:12px;font-family:Arial;}</style></head><body><b>Projects:</b><divid="new-projects" style="width:400px, height:400px"></div>

    <script type="text/javascript">
        $( "#new-projects" ).html('<object data="https://pt.stackoverflow.com"/>');
    </script>
    </body>
    </html>

Thank you

    
asked by anonymous 04.08.2017 / 19:38

1 answer

1

Use this:

$( "#new-projects" ).html('<object data="https://pt.stackoverflow.com"/>');
  body {
    font-size: 12px;
    font-family: Arial;
  }
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>load demo</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script></head><body><b>Projects:</b><divid="new-projects"></div>
 
 
</body>
</html>
    
04.08.2017 / 20:07