In your servlet, are you handling the parameter as a string or as an integer?  
Perhaps you have some parsing code in the servlet that doesn't like the "h2004" 
value.  Trace it in your servlet and see what value it is receiving.

________________________________

From: [email protected] on behalf of derguteonkeldod
Sent: Tue 5/3/2005 5:30 AM
To: [email protected]
Subject: [svg-developers] Re: getURL() problem



--- In [email protected], Holger Will <[EMAIL PROTECTED]> wrote:
> derguteonkeldod wrote:
>
> > Hello.
> >
> > I've got this little function here:
> >
> > function getSeatInfos(evt)
> > {        
> >   seat = evt.getTarget();
> >   seatid = seat.getAttribute("id");
> >   getURL("http://localhost:8080/TestServlet/test?id="+seatid,
callback)
> > }
> >
> > I print out the data in a servlet. But it's always '0'.
> > If I do this:
> > getURL("http://localhost:8080/TestServlet/test?id=3";, callback)
> > the servlet prints '3'.
> > The seatid is not '0'. I've tested it with:
> > dummy.getFirstChild().setNodeValue(seatid);
> > and it works.
> >
> > Does anybody know a solution?
> >
> hi
>
> function getSeatInfos(evt)
> {        
>   seat = evt.target;
>   seatid = seat.getAttribute("id");
> st= "http://localhost:8080/TestServlet/test?id="+seatid
> alert(st)
>   getURL(st, callback)
> }
>
> what does the alert say if you do it like this ?

Thank you for this hint.
The alert displays the right seatid. (e.g. h2004)





-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----
Yahoo! Groups Links











[Non-text portions of this message have been removed]



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to