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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:52:26+00:00 2026-05-22T18:52:26+00:00

$(form#update).submit(function() { var formData = $(form#update).serialize(); $.ajax({ type: POST, url: graph.php, data: formData +

  • 0
$("form#update").submit(function() {
    var formData = $("form#update").serialize();
        $.ajax({
            type: "POST",
            url: "graph.php",
            data: formData + "&criteria=" + critSelected,
            success: function(data){
                $('div.graph').fadeOut(function(){$('div.graph').html(data).fadeIn();});
            }
        });
    return false;
});

I have this script that responds to a form submit. graph.php will be a full html page I would like to display without loading the entire page again. Is there any way for me to change the source of an iframe on the same page as the form to graph.php (say it’s inside the div ‘graph’)? I’ve tried placing $(‘iframe’).attr(‘src’, url); in the success function to no avail. Help is appreciated. 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-05-22T18:52:26+00:00Added an answer on May 22, 2026 at 6:52 pm

    You can post directly to iframe using form.target=’frame name’
    Than the result will be loaded in iframe automaticly

    For example

    <form method="POST" target="framename">...</form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<script language=javascript type=text/javascript> $('#leftDiv').ready(function(){ $(form).submit(function () { //data structure var radios = []; //for
This is what I have: <form name=myts method=post action=ts.php enctype=multipart/form-data onsubmit=return upuInit(this)> . .
I have the following jQuery code: $('.save').submit(function(e){ var formElement = $(this); var data =
I have a form that I submit through ajax, and returns an updated chunk
I have a simple form (textbox, submit button) which is wrapped in an update
the form is submiting as normal request instead of Ajax. $(document).ready(function () { StatusComments();
I have the following HTML <form id=create_form name=create_form action= method=post> <input name=type id=type value=individuel
I post a form with $.post on the keyup of a input type='text' ,
I have a form which I submit and I use .serialize to help me
I have an SQL query that takes the following form: UPDATE foo SET flag=true

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.