Is there a way to make showModalDialog support post?



    Hi All,


    How can I make showModalDialog support post method? I have a fat args to pass, post is a must.



    Monday, January 21, 2008 10:54 PM

All replies

  • Hi there,


    I'm not sure I understand your question.  Are you asking how to work around the 4096 character limit for the vArguments parameter of showModalDialog?  If so, the answer is that you can't.  As documented on the reference page, vArguments only supports 4096 characters.


    If you need to send more characters, then you'll need to use something other than showModalDialog, such as a separate data collection page or similar technique.


    If that's not the question you're asking, would you mind clarifying?


    -- Lance

    Monday, January 21, 2008 11:13 PM

    Hi Lance,


    Thanks for the reply.


    I think you answered my question.


    That is exactly what I was asking.. Too bad, I am out of luck now...



    Monday, January 21, 2008 11:56 PM
  • I prefer to think of it as "looking for an alternate implementation."  :-)


    Sorry it wasn't the answer you wanted to hear.


    -- Lance

    Tuesday, January 22, 2008 12:04 AM
  • There is no sorry with your answer. :-)


    I got confirmed otherwise I keep doubt there might be a way for showModalDialog to take some args to tell the IE this call is a POST method call.


    I know that there is other way out there to sove my problem. It just take a little longer than expected if have to choose other way to open the pop up Cuz I am fixing bug not new implementation..


    I do appreciate your answer. :-)



    Tuesday, January 22, 2008 1:18 AM
  • Easy.

    page (a) is your main page

    page (b) is your modal popup (note, using the modal popup means that it will only work in IE, not in any other browser)

    - - - - - -

    on page (a), create a form with all your data.

    open your  popup (b) (modal or non-modal, it doesn't matter)... BLANK.

    as soon as it is open, set the target of the page (a) form to the popup window, and submit your form via method = POST.


    Tuesday, January 22, 2008 3:17 PM
  • Unique, the modal popup works in Firefox too.

    See the link:


    Monday, July 27, 2009 1:53 PM