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 8227413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:07:22+00:00 2026-06-07T16:07:22+00:00

I created a demo page to show responsive web template… In the demo page,

  • 0

I created a demo page to show responsive web template… In the demo page, there are three iFrames of different size (for Computer view, Tablet view & Smartphone view)…

The problem is, when i open the demo page, the responsive template loading 3 times (for each iframe)… I don’t want this to happen… The template page should load only one time and it should be displayed in all there iframes…

I don’t have any idea how to achieve this… Someone please help me…

Here is the sample demo page…

http://responsivewebinc.com/demo/?url=http://responsivewebinc.com/templates/responsivewebinc

Here is the iframe coding…

<iframe id="pc" width="98%" src="http://responsivewebinc.com/templates/responsivewebinc" ></iframe>

<iframe id="tablet" width="60%" src="http://responsivewebinc.com/templates/responsivewebinc" ></iframe>

<iframe id="mobile" width="30%" src="http://responsivewebinc.com/templates/responsivewebinc" ></iframe>
  • 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-07T16:07:23+00:00Added an answer on June 7, 2026 at 4:07 pm

    Both proposed solutions doesn’t work.
    In fact The javascript Script just wait first page to be loaded to then set src of second one.
    This will then load second page.
    Same for third one but the page is still loaded once for each iframe.

    Just change the url by an url that takes few seconds to load and you will see it.

    The only solution is to parse html of source url and then set the content of the iframe to this source but i’m not sure this is possible.

    Maybe try something like
    main.php:

    <?php
        $url = 'http://responsivewebinc.com/templates/responsivewebinc/';
        $ch = curl_init();
        curl_setopt($ch,CURLOPT_URL,$url);
        curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    
        $result = curl_exec($ch);
        curl_close($ch);
        $fp = fopen('data.txt', 'w+');
        fwrite($fp, $result);
    ?>
    <iframe id="pc" width="98%" src="open.php" ></iframe>
    <iframe id="tablet" width="60%" src="open.php" ></iframe>
    <iframe id="mobile" width="30%" src="open.php" ></iframe>
    

    and open.php:

    <?php
        $filename = 'data.txt';
        $fp = fopen($filename, 'r');
        $data = fread($fp, filesize($filename));
        echo $data;
    ?>
    

    This avoid loading three times the page but i’m not sure this is a good script (and this also need that you use non-relative url for your css and image files…

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

Sidebar

Related Questions

There is a screenshot page created using 'thickbox 3.1' jquery plugin (http://jquery.com/demo/thickbox/). On the
I'm putting together a demo web-app. I've created a certificate signed by my own
I've got a demo page up here ; you can view source to see
I created a page contains the following code. There I need to alert a
I am trying get tree view in the web page. I am using jstree
I have configured Tridion for User Generated content, and created a web page using
Its too much code to paste here so, I have created demo please have
I created a demo for implementing the shared preferences and it worked for me.
i have created a demo application Using JSF & EJB 3.0 (Stateless session bean
I have created the following demo: http://thedrivepartnership.com/overflow.html The scrolls expand fine in FireFox /

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.