Hello,

I created a text input widget available from 
http://www.carto.net/papers/svg/gui/textbox/

with an example here:
http://www.carto.net/papers/svg/gui/textbox/index.svg

This works in ASV, Opera (with some restrictions), Batik, Firefox 3, 
Firefox 2 (with restrictions).

The main problem with Firefox 2 and Safari is that they don't 
implement the necessary DOM methods on the text elements to make 
individual characters selectable. As soon as Safari implements the 
text DOM stuff properly, it will be able to use this widget as well. 
A bug report was sent to Safari, and partial fixes exist in the 
branch, but not yet in the main trunk.

If you would like to see this implemented in Safari, please join 
bugzilla and add your voice, potentially through voting for this bug. 
This will increase chances to get it into the main trunk.

Here is the bugreport:
http://bugs.webkit.org/show_bug.cgi?id=12290

The (minor) problem with Opera is that it does not support 
evt.charCode and as a result, some keyboard entries are ambiguous. 
See 
http://www.carto.net/neumann/operasvgbugs/ambiguous_keyboard_events.sv
g for an illustration of the problem.

Additional SVG GUI stuff is available from:
http://www.carto.net/papers/svg/gui/

As for the second problem: posting to the server. You may use 
XMLHttpRequest or getURL/postURL for that purpose.

http://www.carto.net/papers/svg/network_requests/index.shtml is a 
tutorial and a wrapper function for network requests. Maybe this is 
useful for you or can serve as a starting point.

Hope this helps a little bit. Feedback is always welcome.

Andreas


--- In [email protected], "russellgum" <[EMAIL PROTECTED]> 
wrote:
>
> I have an svg document that includes several rectangles that change 
color when clicked on 
> and a rectangle that sends the color of the rectangles to my server 
as a POST message 
> using Ajax. What I would like to add is a text input field that the 
user could fill in with 
> data ( a date) related to the rectangles that changed colors that 
could be processed by 
> javascript and included with the POST message. In short, what I 
need is a way to include 
> forms in an svg object.
> 
> The only browser I need this to work with is Safari 3.
> 
>  I tried using an embedded svg file but Safari would not process 
the POST message when I 
> did this. I thought that maybe I could put the form in the html 
file and still have the Post 
> work from the embedded svg. 
> 
> I also thought it might be possible to change the data (a date) 
with javascript (by using a 
> mouseover on an object to change the date) and display the results 
as a text object in svg. 
> However, I couldn't figure out a simple way to get the value of a 
javascript variable 
> displayed in a text object in javascript. Is there a simple way to 
do this? 
> 
> Thanks
> 
> Russ
>




-----
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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