> HI, sorry if I wasn't clear enough.
>
> This is an extract from my config File and I suppose enough to understand my
> scenario :D.
> .....................................................................
> <WebServiceForm id="webServiceForm">
> <htmlTagId>webServiceForm</htmlTagId>
> <targetModel>ResultModel</targetModel>
> <stylesheet>xsl/NtsForm.xsl</stylesheet>
> <requestStylesheet>xsl/Null.xsl</requestStylesheet>
>
> <webServiceUrl>
http://10.90.0.192:11080/geoserver/wfs</webServiceUrl>
> </WebServiceForm>
> </widgets>
> ..............................................................................................
> The NTsForm (I get it from mapbuilder distribution )
> specifies a get method in the definition of the form,(method="get")
> so when the scriptFile WebServiceForm.js is executed, the condition (in line
> 57) (httpPayload.method.toLowerCase() == "get") --> TRUE
>
> (WebServiceForm.js)
> Line 57 if (httpPayload.method.toLowerCase() == "get") {
> httpPayload.url = this.webServiceForm.action + "?";
> for (var i=0; i<this.webServiceForm.elements.length; ++i) {
> var element = this.webServiceForm.elements[i];
> Line 61 webServiceUrl += element.name + "=" + element.value + "&";
> this.formElements[element.name] = element.value;
> }
>
> webServiceUrl is an unknow property (perhaps this.webServiceUrl would
> work),
> but the correct property is httpPayload.url because in line 67 its create a
> newrequest
>
> Line 67 this.targetModel.newRequest(this.targetModel,httpPayload);
>
> So the error is fixed by replacing Line 61 by this
> httpPayload.url += element.name + "=" + element.value + "&"
>
> I hope I have been clear enough :D
> Regards
>
> Nacho
>
> On Thu, Jul 17, 2008 at 6:03 PM, Andreas Hocevar <
[hidden email]>
> wrote:
>>
>> Ignacio,
>>
>> can you please give a bit more detail on your error? Like post the
>> config and context xmls and your html page, or even better a hosted
>> live example?
>>
>> Thanks!
>> Andreas.
>>
>> On Thu, Jul 17, 2008 at 9:56 PM, Ignacio Talavera
>> <
[hidden email]> wrote:
>> > Hi While Trying a sample using that widget whit get method I suppose
>> > I've
>> > found an error :) in WebServiceForm
>> > Line 61
>> > webServiceUrl += element.name + "=" + element.value + "&";
>> > And replacing this line with this one
>> > httpPayload.url += element.name + "=" + element.value + "&";
>> > solves the problem
>> >
>> > :D
>> >
>> >
>> >
>> >
>> > -------------------------------------------------------------------------
>> > This SF.Net email is sponsored by the Moblin Your Move Developer's
>> > challenge
>> > Build the coolest Linux based applications with Moblin SDK & win great
>> > prizes
>> > Grand prize is a trip for two to an Open Source event anywhere in the
>> > world
>> >
http://moblin-contest.org/redirect.php?banner_id=100&url=/>> > _______________________________________________
>> > Mapbuilder-users mailing list
>> >
[hidden email]
>> >
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users>> >
>> >
>
>