Re: New GoogleMaps Example - will convert KML to GPX

"Wolfgang Fahl" <[email protected]> Mon, 05 May 2008 09:11:04 +0200
Newsgroups gmane.comp.web.httpunit.devel
Organization BITPlan GmbH
Message-ID <[email protected]>
Dear Russell

on my Request:
>I allowed for the following work around now:
>    FormParameter parameter = lookupForm.getParameter( 
>"output"  );
>    FormControl outputControl=parameter.getControl();
>    outputControl.setAttribute( "value" , "kml" );
>
>The necessary changes in visibility are an unwanted 
>side effect. I'd rather like to add a function for this 
>like "overrideHiddenParameterValue" ...
>Any thoughts?
you wrote:
>How would you do this from a browser?
In Firefox I could use a browser plug-in to modify a 
hidden form parameter.

Actually I wouldn't have to try to modify a hidden form 
parameter directly at all I'd change the url line.

This is an example for a google maps route (on the 
german google server ... - the button for directions is 
"Route berechnen" here)
http://www.google.com/maps?f=d&output=html&saddr=sfo&daddr=94526&btnG=Route+berechnen

To get kml it just needs to be changed to:
http://www.google.com/maps?f=d&output=kml&saddr=sfo&daddr=94526&btnG=Route+berechnen

The get parameter of the url ends up as a form 
parameter. I tried to change the url as well to no 
avail. 

The reason i went for modifying the value within the 
form itself is that the localized versions of google 
maps are different and that the only parameter I'm 
really dependend on in the example is the "output" one. 


Yours
  Wolfgang

BITPlan - smart solutions
Pater-Delp-Str. 1, D-47877 Willich Schiefbahn
Tel. +49 1805 - BITPLAN / +49 1805 248 752, Fax +49 2154 811-481
Web: http://www.bitplan.de
bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548, 
Geschäftsführer: Wolfgang Fahl

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop