Dan Piccolo
Dan Piccolo

Reputation: 94

ioArgs in Dojo 1.10, dojox DialogSimple

Got myself a bit of a problem (only occurring in Tomcat 8.5, but I'll need to handle it)...

I'm trying to open up a dojox.widget.DialogSimple, using an href, that has a long url/data string. Setting the HREF on instantiation causes it to fail as a malformed URL, because it's too long. So, I want to be able to do it as an xhrPost. Is there a way to set this up using the ioArgs property? I haven't been able to find any documentation giving examples of this.

Upvotes: 1

Views: 51

Answers (1)

paulsm4
paulsm4

Reputation: 121759

You are correct. An over-long URL string for an HTTP "GET" can cause problems: Web Services: maximum length of HTTP GET request?. In general, the solution is to do a "POST" instead.

Would this solution work for you?

Dojo - how to submit data using a Dialog form

<div dojotype="dijit.Dialog" id="subscription" title="subscription form" execute="alert('Transmitted');">
  <form action="PATH_TO_PHP_PAGE" method="POST">
      <!--input widgets-->
      <!--submit button widgets-->
  </form>
</div>

Upvotes: 0

Related Questions