XML Elves

XML Elves

<community>of XML and SVG Developers</community>


input/output by keyboard

This is a discussion on input/output by keyboard within the SVG Questions forums, part of the SVG Forums category; Hi guys, I have a "little" problem. I would like to allow the user to write in a text box ...


Go Back   XML Elves > SVG Forums > SVG Questions

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices


Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-14-2005, 06:23 PM
fable
Guest
 
Posts: n/a
Default input/output by keyboard

Hi guys,
I have a "little" problem. I would like to allow the user to write in a text box and use this input as parameter in my javascript. How can I do that? Also, I don't know if it is possible to edit a text box in SVG....
Thanks for your support
Fabiana
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-15-2005, 04:38 AM
Anonymous
Guest
 
Posts: n/a
Default input/output by keyboard

Example using ASV3
http://pilat.free.fr/english/svg_lib/alert.htm

If you use ASV6 beta, you can put text with editable="true", user can modify this text

Michel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-16-2005, 08:06 AM
ioiufo
Guest
 
Posts: n/a
Default THANKS

Great!!!! Thanks a lot!!!!
Fable
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-25-2005, 06:07 AM
ioiufo
Guest
 
Posts: n/a
Default problem with asv6

Hi Michel,
if I use the 6 version for edit a text, in the same file I can't use the method getOwnerDocument() and I need it to create a new element.
Have you any idea for solving this second problem?
Thanks a lot for your time
Fabiana
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-25-2005, 06:21 AM
Anonymous
Guest
 
Posts: n/a
Default input/output by keyboard

Use ownerDocument simply.
By example
svgdoc = evt.target.ownerDocument

Michel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-25-2005, 07:04 AM
ioiufo
Guest
 
Posts: n/a
Default I'm very stupid

I'm very very studip: I dinistalled asv6 and now I aren't able to find it again...
:'(
help me!! I need a new brain!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-25-2005, 07:34 AM
Junior Member
 
Join Date: Jan 2005
Posts: 10
Default Re: I'm very stupid

Quote:
Originally Posted by ioiufo
I'm very very studip: I dinistalled asv6 and now I aren't able to find it again...
help me!! I need a new brain!!!!
ASV6beta
can't help finding a new brain for you, though -- sorry!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-25-2005, 07:57 AM
ioiufo
Guest
 
Posts: n/a
Default input/output by keyboard

YOU ARE GREAT!!!!!! I MUST DO A STATUE!!!!

However, the problem remain... This is a piece of my code
function addbird(evt)
{
/* var svgobj = evt.target;
var svgdoc = evt.target.ownerDocument();*/
var newbird = evt.target.cloneNode(false); I tried to do directly this one,but nothing!
svgstyle = newbird.getStyle();
..........
I also added the ns url (<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink")
But the problem is the same: method not supported!!!!! The raw "var svgobj = evt.target" is ok. Where I can find the list of methods supported?
With love ( :wink: )
Fabiana
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-25-2005, 02:50 PM
Anonymous
Guest
 
Posts: n/a
Default input/output by keyboard

For methods, look at
http://www.learnsvg.com/tutorial2/catalog.php
Click on method to get example with code.

Use
var svgdoc = evt.target.ownerDocument
and not
var svgdoc = evt.target.ownerDocument()

In your code, you clone a node, but to get this node in DOM, you have to append it somewhere.

Michel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
input or output, keyboard


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -6. The time now is 02:04 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

Printer Cartridges
Low Price printer cartridges. Free UK delivery on compatible printer cartridges. Over 50,000 printer cartridges in stock.

canon ink cartridges
Get Canon Ink cartridges at cheap prices. Huge selection of ink cartridges available.

HARD DISK DRIVE REPAIR RECOVERY MANCHESTER
We are in Manchester and we can fix your problems with hard disk drive repair and data recovery. Do not try to do it yourself!

ink cartridges Free UK Delivery on ink cartridges such as Canon, Dell, Epson, hp & Lexmark.

1 2 3 4 5 6 7 8 9 10