
Originally Posted by
Goonie
Keith, I'd like SWF to be much more sparing on the size and number of request parameters.
[snip]...
Here is why: I am implementing an web UI to a chess game. Each of the 64 fields (much more in certain chess variants) is potentially clickable, which means I really have to keep URL sizes down for the links (64 * 100 chars is already 7 kB just for the links!). Currently (without SWF), I just use the URL "?id=a4" for field a4 (6 bytes). This has kept me from introducing SWF to my project.
Couldn't you use a small bit of Javascript to implement this?
For example:
Code:
<script type="text/javascript">
function clickSquare(whichSquare) {
location.href="${pageContext.request.contextPath}/chessMove.spr?_flowExecutionKey=${flowExecutionKey}&_eventId=clicked&square=" + whichSquare;
}
then, within the page body create "links" for each square which just
call the javascript function:
Code:
<a href="javascript:clickSquare(a4)"/>
...
<a href="javascript:clickSquare(b2)"/>
...etc....
Something like this should be doable. Good luck,
-tom