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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:14:16+00:00 2026-05-19T01:14:16+00:00

I have <iframe src=correctdata.php frameborder=0 width=100% height=330 id=correctdata></iframe> <div class=floatright><a class=button bigger onclick=window.frames[‘correctdata’].document.form[‘correct’].submit();>Submit</a></div> And

  • 0

I have

<iframe src="correctdata.php" frameborder="0" width="100%" height="330" id="correctdata"></iframe>
<div class="floatright"><a class="button bigger" onclick="window.frames['correctdata'].document.form['correct'].submit();">Submit</a></div>

And correctdata.php contains a form

<form method="post" action="correctdata.php" name="correct" id="correct"></form>

(There is other stuff, but I’d much rather not post it.

Yet when I press submit I get

window.frames.correctdata is undefined
[Break On This Error] window.frames.correctdata.document.form.correct.submit();

  • 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-19T01:14:16+00:00Added an answer on May 19, 2026 at 1:14 am

    try your with “jQuery(…)contents()“

    Html:

    <iframe src="correctdata.php" frameborder="0" width="100%" height="330" id="correctdata"></iframe>
    <div class="floatright"><a class="button bigger" id="submit-iframe">Submit</a></div>
    

    JS:

    $('#submit-iframe').bind('click', function(ev) {
    
       ev.stopPropagation();
    
       var correctForm = $("#correctdata").contents().find("#correct");
    
       if (correctForm.length == 0)
          alert('error');
       else
          correctForm[0].submit();
    
       return false;
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have something like this: <p>Element<p> <iframe src = otherPage.html style = width:100%;height:100%>
i have an iframe: <iframe name=printarea id=printarea src=print.php style=display: none;></iframe> i need this iframe
I am trying to replace the height and width on an html iframe src
<div class=left style=float:left id=document-viewer> <iframe src=http://docs.google.com/viewer?url=http://www.mysite.be/doc.ppt&amp;embedded=true width=620 height=780 style=border: none; id=document-preview></iframe> </div> I have
I have iframe that works at the server side : <iframe frameborder=0 runat=server style=width:
I am displaying the iframe in wordpress page template. In iframe src i have
I have a script on jquery that load some site in iframe using: $(#demo_frame).attr('src',
I have this iFrame in my parent window... <iFrame src=http://theirdomain.com id=Post_iFrame></iFrame> Then I have
I have iframe (cross domain) with src from Facebook, Twitter or etc. I need
If I have a page which contains an iframe: <iframe src=blank.html id=frame></iframe> and I

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.