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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:39:12+00:00 2026-05-26T03:39:12+00:00

My question is somewhat difficult to explain. What I am trying to do is,

  • 0

My question is somewhat difficult to explain. What I am trying to do is, I have a button on a certain page. When I press that button, I must be able to access elements of a form that is located on another page (without having the other page open).

Pressing that button will edit some of the elements in the form from that “unopened” page, and then post it, all this without opening any extra popup/tab/window. After the form has been posted, the button will disappear.

The form in question contains unique parameters that can’t be retrieved without accessing its particular page, so I cannot emulate the form in standalone.

Some of my guesses are to use a dynamic iframe set to “display: none”, or Ajax, but otherwise I’m not exactly sure if it is possible and how to do it.

Would anybody have some ideas? (sorry if the question isn’t very clear, I tried my best to describe the problem)

  • 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-26T03:39:13+00:00Added an answer on May 26, 2026 at 3:39 am

    I did it this way, using jQuery:

    1. Acquire HTML code from the form page using $.get()
    2. Extract the form node from the HTML string
    3. Create an hidden iframe
    4. Parse the form’s HTML inside the new iframe
    5. Modify the form’s values;
    6. “URLEncode” the form’s data using jQuery’s .serialize();
    7. Post the serialized data to the target using $.post(), with a
      callback function receiving the response
    8. If response indicates success, hide the button and remove the hidden
      iframe

    I decided to extract the form out of the HTML string returned by $.get(), since parsing it won’t require to load the whole form page before using the actual form as an object. Using an hidden iframe for parsing is probably not the most “professional” way, but it works.

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

Sidebar

Related Questions

I've a somewhat silly question, if i have a series of processes that are
My question is somewhat weird, but can i add events for any DOM elements(div),
I think my question is somewhat similar to CaptainPicard's but dissimilar enough that I
My question somewhat overlaps with this and several other similar ones. Those have some
I have a particularly difficult business constraint that I would like to enforce at
This question is somewhat related to this. I want to have document storage along
This question is somewhat related to this question: Is it possible to have a
[This question is somewhat related to this question , but the answers are not...]
my question is somewhat conceptual, how is parent process' data shared with child process
My last question was somewhat narrower than this one. I am interested to know

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.