SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot Offspring2099's Avatar
    Join Date
    May 2005
    Location
    Los Angeles, CA
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question window.open() param area is too small???

    I'm trying to open an email window with 200+ emails this way...

    Code:
    window.open('mailto:'+allList+'');
    'allList' contains: xxxxx@yyyy.com; xxxxxx1@yyyy.com; and ect....

    When the list consists of a few emails it works, when the list is large, I get "The data area passed to a system call is too small" error.

    I guess I can make a huge mailto hyperlink, but I think that would look horrible. If anybody has an idea please help me out.

    Thanks for your time.

  2. #2
    SitePoint Addict jtrelfa's Avatar
    Join Date
    Oct 2004
    Location
    Troy, Mi
    Posts
    231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A "GET" request has a limit on size. If you're passing a huge list of email addresses, you are probably reaching the GET limit. In IE, I think the limit is something along the lines of 2080 characters or some such thing. The limit for mozilla-based browsers is higher.

    If you're using window.open, you may want to consider leaving your javascript variable in the parent window then just referencing the opener.var_name to fill in your data?
    var me = null;

  3. #3
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The maximum length of a URL in IE is 2083 characters, other browsers accept longer URLs. I have no idea if your mail software's maximum URL size comes into play here.

  4. #4
    SitePoint Addict jtrelfa's Avatar
    Join Date
    Oct 2004
    Location
    Troy, Mi
    Posts
    231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jimfraser View Post
    The maximum length of a URL in IE is 2083 characters, other browsers accept longer URLs.
    Sorry, I should have been more accurate in my response :

    IE URL length: 2083 with no more than 2048 chars for the path
    http://support.microsoft.com/kb/q208427/

    Interestingly enough, Microsoft's IIS allows much, much more:
    http://www.microsoft.com/technet/com...205.mspx#EVAAC

    Apache defaults to 8190 bytes:
    http://httpd.apache.org/docs/2.2/mod...mitrequestline

    I couldn't quickly find a limit to the allowable size of a URL in Mozilla/Firefox, but apparently you'll hit a server limit before the browser stops you.
    var me = null;

  5. #5
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, I should have been more accurate in my response
    We posted at the same time mate, I wasn't being picky

  6. #6
    SitePoint Zealot Offspring2099's Avatar
    Join Date
    May 2005
    Location
    Los Angeles, CA
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys,

    Even making a mailto hyperlink with 200+ emails its a problem. I'll go a different route. Thanks again.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •