Thank you so much, Rick. I'm a bit embarassed. The id in the servlet was an int! Now it works.
By the way: in the servlet I do a 'select' on a database. Then I get about 5 parameters which I want to pass to the callback-function in the javascript. Do you know how to do this? --- In svg-developers@yahoogroups.com, "Rick Bullotta" <[EMAIL PROTECTED]> wrote: > 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: svg-developers@yahoogroups.com on behalf of derguteonkeldod > Sent: Tue 5/3/2005 5:30 AM > To: svg-developers@yahoogroups.com > Subject: [svg-developers] Re: getURL() problem > > > > --- In svg-developers@yahoogroups.com, 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/