473,394 Members | 1,735 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.

Overcomming IEs 2083 byte URL restriction

Hi all,

I'm trying to generate an M3U playlist file (series of line separated music resources) from a generated link, this works fine until the number of "characters" in the URL exceeds 2083 at which point IE refuses to play.

I thought I could code around this by adding a form which javascript fills and submits when the user asks for the playlist.

Expand|Select|Wrap|Line Numbers
  1. function submitPlaylistRequest{
  2.    var pListForm=documet.getElementByID('playlistForm');
  3.    pListForm.urls.value=urls;
  4.    pListForm.submit();
  5. }
  6. ...
  7. <form name=doesOtherStuff>
  8. ...
  9. <a href="#" onClick="submitPlaylistRequest">Get this List</a>
  10. ...
  11. </form>
  12. <form id="playlistForm" method="post"  action="/Playlist" target="_self">
  13.    <input name=urls value="noneYet">
  14. </form>
  15.  
Unfortunately IE won't auto-prompt for download for this request unless the site is specifically whitelisted in the security settings, though it did when the data altered the href of the link.

So to the question, (at last), has anyone else encountered this and if so is there an established way of coding around it?

Thanks in advance, Skrynesaver.
Apr 4 '08 #1
1 2663
Hi all,

Sussed it, ahh that wonderful feeling of outwitting my incompetence ;)

By setting the link href to the action of the form IE co-operates, (this was set dynamically in the actual code, (not quite that incompetent).



Expand|Select|Wrap|Line Numbers
  1. function submitPlaylistRequest{
  2.    var pListForm=documet.getElementByID('playlistForm');
  3.    pListForm.urls.value=urls;
  4.    pListForm.submit();
  5. }
  6. ...
  7. <form name=doesOtherStuff>
  8. ...
  9. <a href="/Playlist" onClick="submitPlaylistRequest">Get this List</a>
  10. ...
  11. </form>
  12. <form id="playlistForm" method="post"  action="/Playlist" target="_self">
  13.    <input name=urls value="noneYet">
  14. </form>
  15.  
Hope this solves someone elses problem @ some stage.

Cheers, Skrynesaver
Apr 4 '08 #2

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

Similar topics

0
by: S.W. Rasmussen | last post by:
Does anyone known if it is possible to exceed the 2083 character length limit for an url? I believe that this limitation is imposed by IE . I need this when sending very long long urls with the...
3
by: Brett Gerhardi | last post by:
Hi all, can anyone explain why the following isn't valid? <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"...
43
by: Bill Cunningham | last post by:
I've been reading the C standard online and I'm puzzled as to what multibyte chars are. Wide chars I believe would be characters for languages such as cantonese or Japanese. I know the ASCII...
4
by: Shashi | last post by:
Can somebody explain how the byte alignment for structures work, taking the following example and considering: byte of 1 Byte word of 2 Bytes dword of 4 Bytes typedef struct { byte a; word...
289
by: napi | last post by:
I think you would agree with me that a C compiler that directly produces Java Byte Code to be run on any JVM is something that is missing to software programmers so far. With such a tool one could...
5
by: bclark76 | last post by:
I am getting a strange error, maybe someone knows why it is occurring.. I get the following error when I try to validate Untitled8.xml in Altova XMLSPY: Validation error in another file:...
0
by: Moshe Kravchik | last post by:
Hi! I have a following problem. I have a web service (written in ATL Server). It has 2 function, lets name them getData and setData. The getData returns a byte array, setData receives a byte...
6
by: burkley | last post by:
In XML Schema, is it possible to derive a complex type via restriction and have the new derived type be in a different namespace than the original base type? I've banged on this for 2 days now...
0
by: Cho Cho | last post by:
Hi I am kind of new to Silverlight so sorry if this is a stupid Q. I have this query string in my Silverlight app that has 1 large (more than 2083) parameter that need to get to my DomainServiceClass...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.