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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:38:03+00:00 2026-06-09T10:38:03+00:00

I have dynamic forms in my urls .i want to write a javascript such

  • 0

I have dynamic forms in my urls .i want to write a javascript such that when the users paste that javascript in their web pages the form should dispay.

<script type="text/javascript">
window.location.href = "http://myserver/2a249ccf59e272abb8e7b8582560a45c"
</script>

The problem is using the above code , The url redirects.I want to avoid redirection
I’v tried iframes , but i dont want to use them as per requirements .

  • 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-09T10:38:05+00:00Added an answer on June 9, 2026 at 10:38 am

    You need to use AJAX to fetch a remote page. You must get the page from the same server that your webpage was delivered from to avoid same origin policy issues.

    I would recommend using a library to handle AJAX requests. jQuery has AJAX functions built in, but you could use others also. With jQuery…

    // be sure to include jQuery library in the head of your document...
    
    // general wrapper to execute code only after all page elements have loaded
    $(function(){
        $.get("http://myserver/2a249ccf59e272abb8e7b8582560a45c",function(data,status){
            // put the fetched data (your html form) at the end of the existing body content
            // you could put it somewhere else by changing the `body` selector
            $("body").append(data)
        })
    })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dynamic form that users can add/delete sets of input fields. I
I have a dynamic form that adds users to the site, made so you
I have a ASP.NET Web Forms application and I'm using some dynamic controls in
I have a dynamic form that is to be displayed using an iPad. This
I have a dynamic form that allow to add many fields dynamically, I Know
I have a form that is populated with dynamic form elements based on a
I have a form with a stage that has a dynamic number of groups
I have created dynamic pricing forms within a e-commerce site using javascript and it
I have an Administrator that needs a dynamic form generator with layout capabilities on
I am having problems with dynamic forms in spring. In our form we want

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.