473,394 Members | 1,715 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,394 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 1717
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.