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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:06:19+00:00 2026-06-04T22:06:19+00:00

I have a page with 2 iframes: one iframe consists of a html-form, and

  • 0

I have a page with 2 iframes: one iframe consists of a html-form, and the other one is a graph that is controlled by the ouput of the form. I have included a javascript code that automaticaly submits when I change my choice in a dropdown menu, hence adapting the graph to the new parameters.
This works perfectly when I have already submitted the form manually and then change the parameters. However, when I haven’t outputted a graph before, and I change the parameters, the second iframe shows a copy of the form in stead of the graph.. Can anyone help me with this issue? I can’t seem to find the problem..
This is a part of the code I used for the form:

<select id="Graf1" onchange="makeChoice5();updateSelect(this,'Graf2');this.form.submit();" name="graf1">
    <option value="other">---------- Kies ---------- </option>
    <option value="1">Temperatuur</option>
    <option value="2">Relatieve vochtigheid</option>
    <option value="3">Straling</option>
    <option value="4">Dendrometer 1</option>
    <option value="5">Dendrometer 2</option>
    </select>

And this is the code for the manual submit buttons:

<input type="submit"
style="
font-family: verdana;
font-weight: bold;"
value="Bekijk Grafiek" onclick="action='grafiek.php'; this.form.target='grafiek';return true;" >
</br>
<input type="submit"
style="
font-family: verdana;
font-weight: bold;"
value="Printvriendelijke versie" onclick="action='grafiekPrint.php'; this.form.target='grafiek';return true;" >
  • 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-04T22:06:20+00:00Added an answer on June 4, 2026 at 10:06 pm

    It is tough to say without your entire form code and javascript, but my guess is that you don’t have your target and action set up initially. Thus, when you submit it via the onchange, it doesn’t have anywhere to go. However, when you click your buttons, you then set your form target and action, so future changes to your select will work, which seems to be exactly what you are experiencing. Thus, try putting this on your form:

    <form target="grafiek"..>
    

    and setting up your action variable on page load to the default you would like it to do.

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

Sidebar

Related Questions

I have an ASP.net aspx page that's composed of 3 iframes. One for the
I have a page that loads an external HTML page into an iFrame. There
I have a page that is included as an iframe in my site. I
I have a requirement to have multiple iframes on one page, that all interact
I have a C# webbrowser that holds an html page that has several iframes.
I have a website that consists of one parent page. Using the lightbox-style jQuery
I have two iframes on a page and one makes changes to the other
i have one iframe on my page which has a different domain to that
I have a page that has an iframe From one of the pages within
I have a page with another html page in iframe. In this iframe, 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.