(no subject)

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

Prameela R

Hello ,

 

Is XForms integrated wth google API and Geocoder.

If so give me example code .

 

Prameela



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Google API and Geocoder

Erik Bruchez
Administrator
Currently not.

-Erik

On Dec 10, 2008, at 11:06 AM, Prameela R wrote:

> Hello ,
>
> Is XForms integrated wth google API and Geocoder.
> If so give me example code .
>
> Prameela
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re:

Hank Ratzesberger
In reply to this post by Prameela R

You will need to use JavaScript integration methods

http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-javascript

For example, if you have some xml that has lat and lon points in it,
your javascript can get the xml from a form control:

var EventText = ORBEON.xforms.Document.getValue("event-text-ctrl");

and parse it to get the lat/lon:

        var xml = GXml.parse(EventText);
        var markers = xml.documentElement.getElementsByTagName("origin");
        var qIcon = new GIcon();

        qMarkers = new Array();

        for (var i = 0; i < markers.length; i++) {
                var lat,lon,depth,time,evid,jdate,ml,alg,auth,dummy;
                var n = markers[i].firstChild;
                var last = markers[i].lastChild;
                while (n != last) {

                        // Can skip to every other, why?
                        n = n.nextSibling;
                        switch ( n.tagName ) {
                            case 'lat': lat = n.firstChild.nodeValue; break;
                            case 'lon': lon = n.firstChild.nodeValue; break;
.................

In the xforms, you could use a hidden input control.

<xforms:group ref="instance('event-text')">
        <xforms:textarea ref="text" id="event-text-ctrl" style="display:  
none" />
</xforms:group>

And again, if the source of your data is in xml (inevitably with  
Orbeon) then
you will need to convert it to a string to give it to the javascript:

        <xforms:bind nodeset="instance('event-text')"
                xmlns:xs="http://www.w3.org/2001/XMLSchema">
                <xforms:bind nodeset="text" type="xs:string"
                        calculate="xxforms:serialize( instance('events'), 'html' )"/>
        </xforms:bind>

--Hank



On Dec 10, 2008, at 3:06 AM, Prameela R wrote:

> Hello ,
>
>
>
> Is XForms integrated wth google API and Geocoder.
>
> If so give me example code .
>
>
>
> Prameela
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: Google API and Geocoder

naluns
In reply to this post by Erik Bruchez
Hello, how is it possible to unsubscribe from this list ?

Thank you.

Best regards.


> From: [hidden email]
> To: [hidden email]
> Date: Wed, 10 Dec 2008 12:48:48 +0000
> Subject: [ops-users] Re: Google API and Geocoder
>
> Currently not.
>
> -Erik
>
> On Dec 10, 2008, at 11:06 AM, Prameela R wrote:
>
> > Hello ,
> >
> > Is XForms integrated wth google API and Geocoder.
> > If so give me example code .
> >
> > Prameela
> >
> > --
> > You receive this message as a subscriber of the [hidden email]
> > mailing list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > OW2 mailing lists service home page: http://www.ow2.org/wws
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>


Rejoignez la nouvelle famille de Windows Live Messenger Cliquez ici!

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: Google API and Geocoder

naluns
In reply to this post by Erik Bruchez
Hello, how is it possible to unsubscribe from this list ?

Thank you.

Best regards.


> From: [hidden email]
> To: [hidden email]
> Date: Wed, 10 Dec 2008 12:48:48 +0000
> Subject: [ops-users] Re: Google API and Geocoder
>
> Currently not.
>
> -Erik
>
> On Dec 10, 2008, at 11:06 AM, Prameela R wrote:
>
> > Hello ,
> >
> > Is XForms integrated wth google API and Geocoder.
> > If so give me example code .
> >
> > Prameela
> >
> > --
> > You receive this message as a subscriber of the [hidden email]
> > mailing list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > OW2 mailing lists service home page: http://www.ow2.org/wws
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>


Rejoignez la nouvelle famille de Windows Live Messenger Cliquez ici!

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: Google API and Geocoder

Alexander Žaťko
At the bottom of every post to this list is the following info:

You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws

HTH

On 15.12.2008, at 16:20, Yves Pasche wrote:

Hello, how is it possible to unsubscribe from this list ?

Thank you.

Best regards.


> From: [hidden email]
> Date: Wed, 10 Dec 2008 12:48:48 +0000
> Subject: [ops-users] Re: Google API and Geocoder
> 
> Currently not.
> 
> -Erik
> 
> On Dec 10, 2008, at 11:06 AM, Prameela R wrote:
> 
> > Hello ,
> >
> > Is XForms integrated wth google API and Geocoder.
> > If so give me example code .
> >
> > Prameela
> >
> > --
> > You receive this message as a subscriber of the [hidden email] 
> > mailing list.
> > To unsubscribe: 
> > For general help: [hidden email]
> > OW2 mailing lists service home page: http://www.ow2.org/wws
> 
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
> 


Rejoignez la nouvelle famille de Windows Live Messenger Cliquez ici! 
--
You receive this message as a subscriber of the [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re:

Alessandro Vernet
Administrator
In reply to this post by Prameela R
On Dec 10, 2008, at 3:06 AM, Prameela R wrote:

> Is XForms integrated wth google API and Geocoder.
> If so give me example code .

If you are using nightly builds, you can now use a (still preliminary)  
implementation of a component which uses Google Maps (and hence the  
Google API geo-coder API). You can find more about it on:

http://wiki.orbeon.com/forms/doc/developer-guide/xbl-existing-xbl-components#TOC-Map

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws