SVG + Ajax

View: New views
6 Messages — Rating Filter:   Alert me  

SVG + Ajax

by Paulo Ortolan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

     Is there a way to integrate SVG with Ajax? I know that I can interact SVG with JavaScript, but I didn't heard anything with JSON parsing in SVG. Could you send me example sites about this? Perhaps just putting Ajax + SVG + Sites on google won't let me on the accurate answer.

     Thanks!

Paulo



      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

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


Re: SVG + Ajax

by Chameleon-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

SVG is a XML file.
You can load it with AJAX and put it inline inside XHTML.
Or you can load XHTML content with AJAX and have an <object> element
inside content which points to a SVG file.

I don't understand the JSON - SVG thing.

A good start position.
https://developer.mozilla.org/en/SVG_In_HTML_Introduction
There is no AJAX here, but this is the easy part.

>  
>
> Hi
>
> Is there a way to integrate SVG with Ajax? I know that I can interact
> SVG with JavaScript, but I didn't heard anything with JSON parsing in
> SVG. Could you send me example sites about this? Perhaps just putting
> Ajax + SVG + Sites on google won't let me on the accurate answer.
>
> Thanks!
>
> Paulo
>

Re: SVG + Ajax

by narendra sisodiya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

@JSON + SVG, plz explain more,
I think you want this ,
http://code.google.com/p/svg-edit/source/browse/trunk/editor/svgcanvas.js
and see the use of function addSvgElementFromJson()

On Mon, Oct 26, 2009 at 7:09 PM, Chameleon <gessos.paul@...> wrote:

>
>
>
> SVG is a XML file.
> You can load it with AJAX and put it inline inside XHTML.
> Or you can load XHTML content with AJAX and have an <object> element
> inside content which points to a SVG file.
>
> I don't understand the JSON - SVG thing.
>

>
> A good start position.
> https://developer.mozilla.org/en/SVG_In_HTML_Introduction
> There is no AJAX here, but this is the easy part.
>
> >
> >
> > Hi
> >
> > Is there a way to integrate SVG with Ajax? I know that I can interact
> > SVG with JavaScript, but I didn't heard anything with JSON parsing in
> > SVG. Could you send me example sites about this? Perhaps just putting
> > Ajax + SVG + Sites on google won't let me on the accurate answer.
> >
> > Thanks!
> >
> > Paulo
> >

--
┌─────────────────────────┐
│    Narendra Sisodiya ( नरेन्द्र सिसोदिया )
│    Web : http://narendra.techfandu.org
│    Twitter : http://tinyurl.com/dz7e4a
└─────────────────────────┘

Res: SVG + Ajax

by Paulo Ortolan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, guys

    JSON (http://json.org/) stands for JavaScript Object Notation. It's an interchange data format for HTML and many other programming languages. I think that I can carry an entire data array between my application written in Java or C# and my front page. My intention is to interact with SVG elements modifying or dynamically creating them.

Paulo


________________________________
De: narendra sisodiya <narendra.sisodiya@...>
Para: svg-developers@...
Enviadas: Seg, Outubro 26, 2009 12:26:44 PM
Assunto: Re: [svg-developers] SVG + Ajax

 
@JSON + SVG, plz explain more,
I think you want this ,
http://code. google.com/ p/svg-edit/ source/browse/ trunk/editor/ svgcanvas. js
and see the use of function addSvgElementFromJs on()

On Mon, Oct 26, 2009 at 7:09 PM, Chameleon <gessos.paul@ yahoo.gr> wrote:

>
>
>
> SVG is a XML file.
> You can load it with AJAX and put it inline inside XHTML.
> Or you can load XHTML content with AJAX and have an <object> element
> inside content which points to a SVG file.
>
> I don't understand the JSON - SVG thing.
>

>
> A good start position.
> https://developer. mozilla.org/ en/SVG_In_ HTML_Introductio n
> There is no AJAX here, but this is the easy part.
>
> >
> >
> > Hi
> >
> > Is there a way to integrate SVG with Ajax? I know that I can interact
> > SVG with JavaScript, but I didn't heard anything with JSON parsing in
> > SVG. Could you send me example sites about this? Perhaps just putting
> > Ajax + SVG + Sites on google won't let me on the accurate answer.
> >
> > Thanks!
> >
> > Paulo
> >

--
┌─────────────────────────┐
│    Narendra Sisodiya ( नरेन्द्र सिसोदिया )
│    Web : http://narendra. techfandu. org
│    Twitter : http://tinyurl. com/dz7e4a
└─────────────────────────┘

   


      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

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


Re: SVG + Ajax

by narendra sisodiya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Oct 26, 2009 at 9:06 PM, Paulo Ortolan <phortolan@...> wrote:
>
>
>
> Hi, guys
>
> JSON (http://json.org/) stands for JavaScript Object Notation. It's an interchange data format for HTML and many other programming languages. I think that I can carry an entire data array between my application written in Java or C# and my front page. My intention is to interact with SVG elements modifying or dynamically creating them.
>
> Paulo
Yes, you can do it. you can write javascript to load json files from
server using AJAX (any API , like jQuery will work fine) ad then you
can eval() or parse the objects and take actions based on data inside
your objects. you can animate and make any kind of graphics. You can
also use Canvas API too based on your requirement you can mix them
too.


>
> ________________________________
> De: narendra sisodiya <narendra.sisodiya@...>
> Para: svg-developers@...
> Enviadas: Seg, Outubro 26, 2009 12:26:44 PM
> Assunto: Re: [svg-developers] SVG + Ajax
>
> @JSON + SVG, plz explain more,
> I think you want this ,
> http://code. google.com/ p/svg-edit/ source/browse/ trunk/editor/ svgcanvas. js
> and see the use of function addSvgElementFromJs on()
>
> On Mon, Oct 26, 2009 at 7:09 PM, Chameleon <gessos.paul@ yahoo.gr> wrote:
> >
> >
> >
> > SVG is a XML file.
> > You can load it with AJAX and put it inline inside XHTML.
> > Or you can load XHTML content with AJAX and have an <object> element
> > inside content which points to a SVG file.
> >
> > I don't understand the JSON - SVG thing.
> >
>
> >
> > A good start position.
> > https://developer. mozilla.org/ en/SVG_In_ HTML_Introductio n
> > There is no AJAX here, but this is the easy part.
> >
> > >
> > >
> > > Hi
> > >
> > > Is there a way to integrate SVG with Ajax? I know that I can interact
> > > SVG with JavaScript, but I didn't heard anything with JSON parsing in
> > > SVG. Could you send me example sites about this? Perhaps just putting
> > > Ajax + SVG + Sites on google won't let me on the accurate answer.
> > >
> > > Thanks!
> > >
> > > Paulo
> > >
>
> --
> ┌─────────────────────────┐
> │ Narendra Sisodiya ( नरेन्द्र सिसोदिया )
> │ Web : http://narendra. techfandu. org
> │ Twitter : http://tinyurl. com/dz7e4a
> └─────────────────────────┘
>
> __________________________________________________________
> Veja quais são os assuntos do momento no Yahoo! +Buscados
> http://br.maisbuscados.yahoo.com
>
> [Non-text portions of this message have been removed]
>
>


--
┌─────────────────────────┐
│    Narendra Sisodiya ( नरेन्द्र सिसोदिया )
│    Web : http://narendra.techfandu.org
│    Twitter : http://tinyurl.com/dz7e4a
└─────────────────────────┘

Re: SVG + Ajax

by Mark T-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Paulo,
Don't forget xml + xslt transforms.
This avoids json data translation layers, both server and client side/s.
Pretty much unlimited flexibility in svg transformations.

Understandable resistance to this:
* xml can be noisy, being that it's bigger. zip can reduce this issue.
* xslt is not.easy. True, but declarative, the flexibility gain can make it
attractive.

Hidden benefits:
* On server-side, if you are parsing xml, then there is a structurally-known
entity being sent.

Disclaimer:
* I've not adventured into the json parsing options which may be too easy to
resist.

Request:
* Please write back here& let us know how it shakes out 4 u?

All best!

MarkT

--
チェックアウトが、Jingle だ!
It's a Jingle Out There!


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