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

  • Home
  • SEARCH
  • 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 6698119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:32:24+00:00 2026-05-26T06:32:24+00:00

In my code I have an iFrame which loads dynamic content it’s like a

  • 0

In my code I have an iFrame which loads dynamic content it’s like a webpage(B.html) inside a page(A.php). in “A.php” user can edit inline the “B.html” once the process of editing has completed. In my submission I am sending iframes information to another page (script.php). I tried everything but content is not comming up in “script.php”.

In nutshell, I want to tranfer my big html text with all stuff to a PHP via AJAX. I have no idea how to do it… my code would be something like below :-

Code for “A.php” inscript :
“myframe” is the iframe which contains the big chunk of HTML.

sendString = $("#myframe").contents();//Tried everything here[JSON as well] 
 $.ajax({
    url: "script.php",
    type: "POST",       
    data: sendingString,    
    cache: false,
    success: function (html) { 

         return html;
    } 
});

Any help would be appreciated.

Regards,
Amjad

  • 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-05-26T06:32:25+00:00Added an answer on May 26, 2026 at 6:32 am

    $("#myframe").contents() will get you it’s nodes as a jQuery object. Try $("#myframe").html() instead to get the contents as a string.

    EDIT: Oh, and it also helps if you fix your variable names. Change data: sendingString to data: sendString.

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

Sidebar

Related Questions

I have a dynamic webpage that includes an iFrame where external html code is
I have an IFrame inside my 1st page that loads another page which I
I have the following code: <td colspan=7height=200 valign=top> <iframe id=myframe name=myframe src=index.php?page=1 width=810 height=100
I have an aspx master/content page scenario. The parent page has an IFrame which
i have created a html page which contain two iframe . first iframe refer
I'm doing an app which loads as tab (iframe) inside a Page I'm using
So I have the following code which is doing a setInterval until the iframe
I have a page P1 loading from site S1 which contains an iframe. That
I have a jQuery fancybox with an iframe. It loads the code from a
I have a main page in which I have an iframe I have bound

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.