Bug #2078
closedNeed to post complex queries and check URL changes (pager, etc.)
0%
Description
We have exceeded IE's URL limit and can do so with Firefox, too, depending on
the query. (Choose all the landforms, for example). When the URL is too long,
neither browser does anything or lets you know what might be wrong. The queries
work fine if you change to method="post", but this messes up a number of things:
[not limited to this list, probably]
1) pager -- it uses the full URL even if posted
2) datacart -- adds one item, but that's it
3) vegbank:URLchanger will undoubtedly also be affected.
Updated by Michael Lee over 19 years ago
Perhaps the pager and url changer could be fixed by substituting what is now:
<a href="action.jsp?toomanyParams=this">text</a>
with:
<form action="action.jsp" method="post"><input type="hidden"
name="toomanyParams" value="this" /><a href="javascript:submitParentForm()">text</a>
We'd of course need to include the function submitParentForm() in util.js and
write it, but shouldn't be hard. Would that work??
Updated by Michael Lee over 19 years ago
URL changer can deal with this if postParams is passed to it. See
http://aldo.vegbank.org/vegbank/views/test.jsp. But this does require another
custom tag (written, but needs adding to views where needed). PlotQuery now
uses a post.
Updated by Michael Lee over 19 years ago
New form appears once per page, and javascript can access and submit this form
to change a parameter (such as pageNumber for pager). Thus, all URL changes can
be posted, as is pager. Done!