473,226 Members | 1,411 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

window.open not working in IE when trying to write 10,000+ characters

Im having problems getting the window.open function to work properly in internet explorer. The code works fine in firefox, but thats not really an option (cant just force everyone to use that to be able to use the page). anywise, the function im using is as follows:

Expand|Select|Wrap|Line Numbers
  1. function viewallxml(inXML) {
  2.  
  3.     newwindow1=window.open('','name','height=400,width=500,scrollbars=yes,resizable=yes');
  4.     var tmp = newwindow1.document;
  5.     tmp.write('<html><head><title>Input Nodes</title></head><body><font face=arial size=1>');
  6.     tmp.write(inXML);
  7.     tmp.write('</font></body></html>');
  8.     tmp.close();
  9. }
Now im trying to sending the function about 10,000 characters, if i reduce this to a little bit below 3,000 it seems to work fine. Is there some kind of limit for how much text i can send a function in IE? would seem pretty retarded if so, especially since i havent been able to find any documention even hinting at that limitation ... anywise any help would be greatly appreciated, thanks.
Jul 25 '07 #1
7 1707
pbmods
5,821 Expert 4TB
Heya, karamorf. Welcome to TSDN!

I take it, then, that you need to send a lot of variables in the URL of the window. Is this correct?

Perhaps a better way to do this would be to progressively store as much data as possible on the server and then associate that data with the current session (in PHP, for example, the equivalent is storing everything in $_SESSION).

Then you don't have to pass hardly anything in the URL.
Jul 25 '07 #2
im not trying to put anything in the URL, im trying to display alot of data that is in the html page so that when you click the link a window popups with all of the data. the html gets generated by a C# app but i cant use PHP since everything has to be standalone. So in the html i have this:

[HTML]<A HREF="javascript:viewallxml(' some 10,000 characters ') "/>[/HTML]

the link works fine when the text size isnt so big but once it gets above 3,000 or so the link fails to do anything, no error message, just doesnt do anything when clicked.
Jul 25 '07 #3
pbmods
5,821 Expert 4TB
Ah. I see now what you're getting at.

Why not just have the window open the page that calls the C# app that generates the content?
Jul 25 '07 #4
Sorry, i was been specific enough ... the C# app generates one large html page, all of the data that i want displayed in the popup is in the one html page ... if i was to make it so each popup had its own html page there would probably be 1,000's of pages generated per day, a rather large number of files to manage for a feature that probably would not be worth managing that many files.
Jul 25 '07 #5
pbmods
5,821 Expert 4TB
I'm not sure I understand. How many times per page load is the pop-up window getting opened? Does it really save that much of a load on your server to cache the HTML client-side versus regenerating the HTML every time the pop-up is opened?

Alternatively, you could set up a server-side cache, though I would imagine that may be overkill for your app.
Jul 25 '07 #6
There is no webserver for these pages, i suppose that might have been an important detail to mention. they are generated and put onto just a network share.

After messing around with it a little bit ive realized one more thing though, it seems that the function just doesnt get called if the text size is to large. I found this out by making a global variable in the JS that was well voer the 3000 characters and it work fine being written into the new window, but taking that same string and sending it to viewAllXML from the html had the result of not working.

did one other thing that might help, if i add an alert to the begging of the function the alert will work fine when the text size is below this magically 3000 number. but when i increase the size of the input text the alert doesnt even get triggered, which leads me to believe IE has some limit on the amount of text you can send to a JS function.
Jul 25 '07 #7
pbmods
5,821 Expert 4TB
Will it work then if you assign the huge string to a variable and pass the variable to viewAllXML()?
Jul 25 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jawahar Rajan | last post by:
All, I have a printer friendly page that is opened when a user clicks a link on my page to get the printer friendly version, How ever when they close out the printer friendly version and return to...
3
by: Michael | last post by:
I am trying to allow a user to view a PDF in a new window. I currently have this working using the following: <a href="./pdf.do?parameter=01121980" target="top"><b>pdf</b></a> The problem...
9
by: Justin Koivisto | last post by:
Is there a way to create an alert-like message box that uses a custom image? Basically, I want to replace the default ! image with something else. -- Justin Koivisto - spam@koivi.com PHP...
44
by: Carlos Andr?s | last post by:
Hi everybody. I've got a problem. I'd like to avoid opening a new window when you have pressed the shift key and you click in the left button of the mouse. I've tried the next solution, in the...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
4
by: astromac | last post by:
I'm new to php and was wondering if the following was possible... I would like to have a list of items loaded from a text file, process each item in the list and then return the processed result...
4
by: alexandre.brisebois | last post by:
Hi, I am using access 2003, I would like to know if there is an option to reorganize the tables in a maner that is readable, as we can do in sql sever 2000 or 2005. I have been given a database...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.