Hello!!, Sorry for the late reply, well, as Mr. Thompson said the
SVG is dynamically on the server using JSP, I generate a field in
the MySQL database so the server must read this field
(called "field") to get more information from database.
The first problem I have is about to load the information of the
database on the SVG graphic as text.
V.G.
<% String abc="SELECT * from table where field='field0'";
ResultSet ghi = def.executeQuery(abc);
ghi.getRow();
ghi.first();
Name = ghi.getName("Name");
Address = ghi.getAddress("Address");
%>
setName.text = <%=Name%>
setAddress.text = <%=Address%>
The objective of the present code is to get information from field0
such as Name and Address, then it can be loaded in two textfields
and change the text property to the data JSP got from the database.
I tried with this code but it seems that it don't works properly...
would someone help me to find what's wrong?
Thanks anyway.
Travsam
--- In [email protected], Peter Thompson
<[EMAIL PROTECTED]> wrote:
> If I understand your question, this is what I suggest: Lets
assume that the main SVG file is created dynamically on the server
using JSP. Lets assume that you use the primary database key as the
id attribute on the SVG objects that you want to detect and get more
information about.
>
> Lets assume that the SVG has been generated, loaded, and
displayed. When the user clicks on one of the objects, you can use
get the id of the clicked object easily. Then you can call a JSP on
the server using getURL(), passing the id as part of url (e.g.,
http://www.yourserver.com/getData.jsp?id=abc123).
>
> The getData.jsp function would get the id parameter, query the
database, and return the results as plain text (or XML or whatever)
to the callback function in the client, which would modify the DOM,
causing the new data to be displayed in the main SVG display.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> [Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12huoj254/M=362131.6882499.7825260.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1124266618/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~->
-----
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/