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

  • Home
  • SEARCH
  • 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 644861
In Process

The Archive Base Latest Questions

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

At work, we have a report that is generated with IP’s in it. There

  • 0

At work, we have a report that is generated with IP’s in it. There is a link you can click on in that report that will open a new window and call a script which brings up a google map with pin points to where each IP originates from. Depending on the report, it can return a lot of IP’s (around 150 at times). So, in order for this to work out, we are having to POST data to that script since using a GET, the max size of the URL is exceeded at times.

So what I’m doing is when that link it clicked to open the map, I call a Javascript function that I wrote which takes the IP’s, creates a form tag with a target attribute which points to the new window that will be opened, appends it to the current page, then appends hidden input’s of the IP’s to that form. Then I open the new window with the specified name and submit the form. The code looks like this:

function submitToWindow(url, nameValuePairs) {
    var form = document.createElement('form');
    form.setAttribute('action', url);
    form.setAttribute('target', 'newWindow');
    form.setAttribute('method', 'POST');
    for (i=0; i < nameValuePairs.length; i++) {
        var nameValue = nameValuePairs[i].split('=');
        var input = $('<input name="' + nameValue[0] + '" type="hidden" value="' + nameValue[1] + '"/>');
        form.appendChild(input[0]);
    }
    document.body.appendChild(form);
    window.open('http://fakeurl.com', 'newWindow');
    form.submit();
}

I’m creating the hidden input elements with jQuery for cross browser compatibility since IE8 seems to not like it when you call blah.setAttribute(‘name’, ‘value’); It turns that “name” attribute into “submitName”. Which causes issues when the form is submitted.

This works great in FF and even IE8 when there aren’t a large number of hidden input’s that have to be created. However, when we get around 150 hidden input items, nothing seems to happen in IE8. I don’t get any script errors or anything, it’s just as if the click on the map link was ignored. I’m guessing there’s some breakdown in there.

Does anyone have any suggestions on how to do this better?

  • 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-13T21:26:22+00:00Added an answer on May 13, 2026 at 9:26 pm

    I figured out the issue with this.

    This wasn’t an issue with jQuery at all.. It seemed to be an IE8 limitation on string literals. The nameValuePairs was actually a query string that looked like so…

    'Key=Value&Something=Nothing'
    

    This was generated by a script that output some HTML. When that string became fairly large, IE8 just simply wouldn’t call my submitToWindow function above. There were no errors from IE8, it just didn’t call that function.

    The way I worked around this was to have the script generate hidden form elements so that my javascript code wouldn’t have to parse that long string.

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

Sidebar

Related Questions

The company I work for have an access database that is linked to a
I have a ProgressBar that uses the marquee style when a report is being
I have a controller (Spring-MVC) that generates a PDF report on a get request.
I have an open-source application on the Android market. It seems to work fine
I have a SSRS report with a few dropdowns that are chained together. Basically
I have a simple report sending framework that basically does the following things: It
I have a new web app that is packaged as a WAR as part
At work we have an application to play 2K (2048*1556px) OpenEXR film sequences. It
At work we have two competing theories for salts. The products I work on
At work I have a standard desk (4 legs, flat surface, you get the

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.