Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8649253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:30:55+00:00 2026-06-12T13:30:55+00:00

<div class=modal hide fade id=modal_window> <div class=modal-header> <button type=button class=close data-dismiss=modal aria-hidden=true>&times;</button> <h3>Modal header</h3>

  • 0
<div class="modal hide fade" id="modal_window">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h3>Modal header</h3>
    </div>
    <div class="modal-body">
        <p>One fine body</p>
    </div>
    <div class="modal-footer">
        <a href="#" class="btn">Close</a>
        <a href="#" class="btn btn-primary">Save changes</a>
    </div>
</div>

This is my html code,

i want to load a remote content into it, let say yahoo.com

I tried

$('#modal_window').attr('data-remote', 'http://www.yahoo.com').modal({show:true, remote:true});

It shows the normal modal content instead of yahoo loaded into modal. How do i make it to load yahoo.com into the modal window?

http://jsfiddle.net/UXU2K/1/

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:30:57+00:00Added an answer on June 12, 2026 at 1:30 pm

    The two ways to load remote data via Javascript is either from AJAX or by setting the url of an iFrame. An iFrame is for when you want to load an entire website. I’m going to assume you don’t want that. You’re using jQuery, so here’s the documentation for their ajax method http://api.jquery.com/jQuery.ajax/.

    Here’s the code to load remote data using jQuery’s ajax method:

        $.ajax({
    
           url: 'http://www.yahoo.com',
           type: 'GET',
           success: function(data) {
    
              $('#modal_body').append(html);
    
           }
    
        });
    

    By the way, if you are loading HTML (opposed to plain text) and want to inject that into the modal_win element, use the following code in the success method instead of what I have above:

    $(html).appendTo('#modal_body');

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

JS $('#CreateUserModal').modal({ keyboard: true, backdrop: 'static' }); HTML <div id=CreateUserModal class=modal fade hide> @{Html.RenderPartial(Partials/CreateUserPartial,
I'm using twitter bootstrap's modal popup. <div id=myModal class=modal hide fade in> <div class=modal-header>
I tried the following: <div class=modal hide fade modal-admin id=testModal style=display: none;> <div class=modal-header>
I am trying to hide the div class hideme based on value of full_day
My div with class name 'header-body-right' doesn't seem to be floating to the left
I have the following HTML code for dialog box: <div id=modal-dialog class=no-display> <div class=form>
I have the following markup using a twitter bootstrap modal plugin: <div class=tabbable> <ul
I have a div class named switch control which has a div class named
JQuery-ui will generate a div with a calendar-div class. Sadly this div is no
I want to scale the picture to fit the main div class http://jsfiddle.net/EyW99/ Sorry,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.