Re: [mapguide-users] AJAX/FUSION Viewer :: Pass data from Flash to Map (2 Frames)

2009-05-15 Thread briancomeau

Thanks James, I will read through those. 

By the way, where can I find sample data and instructions on integrating it?
I would like to make a small Access database to test these things off of so
that I can change data as I like. The samples that came with MG are in .sdf
format that I cannot get open to edit.

Thanks!

James Card wrote:
> 
> On Fri, 15 May 2009 09:27:11 -0700, briancomeau
>  wrote:
> 
>> Ok, so I found Invoke URL under advanced commands as part of a Web
>> Layout. This looks like it can configure a button to do something. How
>> can I have this execute as soon as the user clicks (selects) an object on
>> any layer.
>>
>> For example, in 6.5, I could have a map and as soon as the user selects
>> Texas, 'TX' is passed to Flash. If the user were to zoom-in and click on
>> 'Dallas', then 'Dallas' is passed to Flash.
> 
> This will require adding a JavaScript function to the page and hooking it
> into the selection-changed event. I'd start with "Hooking to events in the
> AJAX viewer"
> 
> and the "MapGuide Viewer API Reference"
> .
> 
>> Oh, I looked at passData, but even after changing the layer to
>> 'VotingDistricts' (my layer instead of Rooms) it still doesn't work.
> 
> There are several parameters that will need to be configured in the
> invoke-url dialog in order to make this work, and of course you must have
> a page to forward the data to.
> 
> I'll admit that the change from MapGuide 6.5 to MapGuide Enterprise is a
> difficult one; there is much to learn about the new architecture -- it is
> a dramatically different set of technologies than the old one. Much more
> of the processing happens server-side now.
> 
> -- 
> James Card
> California CAD Solutions, Inc.
> 209-578-5580 - Voice
> 209-521-6493 - FAX
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/AJAX-FUSION-Viewer-%3A%3A-Pass-data-from-Flash-to-Map-%282-Frames%29-tp2899031p2909058.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] AJAX/FUSION Viewer :: Pass data from Flash to Map (2 Frames)

2009-05-15 Thread James Card
On Fri, 15 May 2009 09:27:11 -0700, briancomeau  
wrote:

> Ok, so I found Invoke URL under advanced commands as part of a Web Layout. 
> This looks like it can configure a button to do something. How can I have 
> this execute as soon as the user clicks (selects) an object on any layer.
>
> For example, in 6.5, I could have a map and as soon as the user selects 
> Texas, 'TX' is passed to Flash. If the user were to zoom-in and click on 
> 'Dallas', then 'Dallas' is passed to Flash.

This will require adding a JavaScript function to the page and hooking it into 
the selection-changed event. I'd start with "Hooking to events in the AJAX 
viewer" 

 and the "MapGuide Viewer API Reference" 
.

> Oh, I looked at passData, but even after changing the layer to
> 'VotingDistricts' (my layer instead of Rooms) it still doesn't work.

There are several parameters that will need to be configured in the invoke-url 
dialog in order to make this work, and of course you must have a page to 
forward the data to.

I'll admit that the change from MapGuide 6.5 to MapGuide Enterprise is a 
difficult one; there is much to learn about the new architecture -- it is a 
dramatically different set of technologies than the old one. Much more of the 
processing happens server-side now.

-- 
James Card
California CAD Solutions, Inc.
209-578-5580 - Voice
209-521-6493 - FAX
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] AJAX/FUSION Viewer :: Pass data from Flash to Map (2 Frames)

2009-05-15 Thread briancomeau

Ok, so I found Invoke URL under advanced commands as part of a Web Layout.
This looks like it can configure a button to do something. How can I have
this execute as soon as the user clicks (selects) an object on any layer. 

For example, in 6.5, I could have a map and as soon as the user selects
Texas, 'TX' is passed to Flash. If the user were to zoom-in and click on
'Dallas', then 'Dallas' is passed to Flash. 

How do I do this? I haven't found very many tutorials out there on this
software. If any of you kind-hearted souls out there wouldn't mind helping,
that would be fantastic.

Oh, I looked at passData, but even after changing the layer to
'VotingDistricts' (my layer instead of Rooms) it still doesn't work. 


Thanks,
Brian

briancomeau wrote:
> 
> How do I get to the screen showing "Invoke URL"?
> 
> Sorry, I really do need sort of a step-by-step. I'm not familiar with this
> software, just the one I need to connect to.
> 
> Thanks again!
> 
> James Card wrote:
>> 
>> On Fri, 15 May 2009 06:43:40 -0700, briancomeau
>>  wrote:
>> 
>>> I looked at that code and it seems that it was posted in 2006. I'm using
>>> Autodesk's MapGuide Studio 2009. Is there anything for that particular  
>>> piece of software that bears relevance for this?
>> 
>> We're still using that code on our MGOS 2.0.2 servers (same code base as
>> MapGuide Enterprise 2009). That portion of the MapGuide API is unchanged.
>> 
>> -- 
>> James Card
>> California CAD Solutions, Inc.
>> 209-578-5580 - Voice
>> 209-521-6493 - FAX
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> 
>> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/AJAX-FUSION-Viewer-%3A%3A-Pass-data-from-Flash-to-Map-%282-Frames%29-tp2899031p2908690.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] AJAX/FUSION Viewer :: Pass data from Flash to Map (2 Frames)

2009-05-15 Thread briancomeau

How do I get to the screen showing "Invoke URL"?

Sorry, I really do need sort of a step-by-step. I'm not familiar with this
software, just the one I need to connect to.

Thanks again!

James Card wrote:
> 
> On Fri, 15 May 2009 06:43:40 -0700, briancomeau
>  wrote:
> 
>> I looked at that code and it seems that it was posted in 2006. I'm using
>> Autodesk's MapGuide Studio 2009. Is there anything for that particular  
>> piece of software that bears relevance for this?
> 
> We're still using that code on our MGOS 2.0.2 servers (same code base as
> MapGuide Enterprise 2009). That portion of the MapGuide API is unchanged.
> 
> -- 
> James Card
> California CAD Solutions, Inc.
> 209-578-5580 - Voice
> 209-521-6493 - FAX
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/AJAX-FUSION-Viewer-%3A%3A-Pass-data-from-Flash-to-Map-%282-Frames%29-tp2899031p2908536.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] AJAX/FUSION Viewer :: Pass data from Flash to Map (2 Frames)

2009-05-15 Thread James Card
On Fri, 15 May 2009 06:43:40 -0700, briancomeau  
wrote:

> I looked at that code and it seems that it was posted in 2006. I'm using
> Autodesk's MapGuide Studio 2009. Is there anything for that particular  
> piece of software that bears relevance for this?

We're still using that code on our MGOS 2.0.2 servers (same code base as 
MapGuide Enterprise 2009). That portion of the MapGuide API is unchanged.

-- 
James Card
California CAD Solutions, Inc.
209-578-5580 - Voice
209-521-6493 - FAX
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] AJAX/FUSION Viewer :: Pass data from Flash to Map (2 Frames)

2009-05-15 Thread nasp

Hi,
take a look to this:
http://discussion.autodesk.com/autodeskimages/adsk/files/migrating_from_autodesk_mapguide_6.5_to_the_new_mapguide_technology.pdf

PassData.html, mentioned in previous message also contains what you need to
pass data from Mapguide to you application, like you did with MG 6.5.

Naspi



briancomeau wrote:
> 
> Hi James,
> 
> I looked at that code and it seems that it was posted in 2006. I'm using
> Autodesk's MapGuide Studio 2009. Is there anything for that particular
> piece of software that bears relevance for this?
> 
> Thanks,
> Brian
> 
> James Card wrote:
>> 
>> On Thu, 14 May 2009 12:19:08 -0700, briancomeau
>>  wrote:
>> 
>>> I have two frames in a main.php file. One of those frames contains the
>>> reference to the AJAXViewer with the WebLayout that I created, and the  
>>> other
>>> contains a Flash .SWF. I would like to be able to capture key values
>>> from
>>> the selections made on the AJAXViewer and pass those to Flash, and would
>>> also like to be able to pass values from Flash into the AJAXViewer.
>> 
>> The code at  may help with the
>> first part of that; it demonstrates how to get the key values from the
>> selection set. The code samples page at
>>  may also be useful.
>> 
>> -- 
>> James Card
>> California CAD Solutions, Inc.
>> 209-578-5580 - Voice
>> 209-521-6493 - FAX
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> 
>> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/AJAX-FUSION-Viewer-%3A%3A-Pass-data-from-Flash-to-Map-%282-Frames%29-tp2899031p2907906.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] AJAX/FUSION Viewer :: Pass data from Flash to Map (2 Frames)

2009-05-15 Thread briancomeau

Hi James,

I looked at that code and it seems that it was posted in 2006. I'm using
Autodesk's MapGuide Studio 2009. Is there anything for that particular piece
of software that bears relevance for this?

Thanks,
Brian

James Card wrote:
> 
> On Thu, 14 May 2009 12:19:08 -0700, briancomeau
>  wrote:
> 
>> I have two frames in a main.php file. One of those frames contains the
>> reference to the AJAXViewer with the WebLayout that I created, and the  
>> other
>> contains a Flash .SWF. I would like to be able to capture key values from
>> the selections made on the AJAXViewer and pass those to Flash, and would
>> also like to be able to pass values from Flash into the AJAXViewer.
> 
> The code at  may help with the
> first part of that; it demonstrates how to get the key values from the
> selection set. The code samples page at
>  may also be useful.
> 
> -- 
> James Card
> California CAD Solutions, Inc.
> 209-578-5580 - Voice
> 209-521-6493 - FAX
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/AJAX-FUSION-Viewer-%3A%3A-Pass-data-from-Flash-to-Map-%282-Frames%29-tp2899031p2907812.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] AJAX/FUSION Viewer :: Pass data from Flash to Map (2 Frames)

2009-05-14 Thread James Card
On Thu, 14 May 2009 12:19:08 -0700, briancomeau  
wrote:

> I have two frames in a main.php file. One of those frames contains the
> reference to the AJAXViewer with the WebLayout that I created, and the  
> other
> contains a Flash .SWF. I would like to be able to capture key values from
> the selections made on the AJAXViewer and pass those to Flash, and would
> also like to be able to pass values from Flash into the AJAXViewer.

The code at  may help with the first 
part of that; it demonstrates how to get the key values from the selection set. 
The code samples page at  may 
also be useful.

-- 
James Card
California CAD Solutions, Inc.
209-578-5580 - Voice
209-521-6493 - FAX
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] AJAX/FUSION Viewer :: Pass data from Flash to Map (2 Frames)

2009-05-14 Thread briancomeau

Hi Experts,

I have two frames in a main.php file. One of those frames contains the
reference to the AJAXViewer with the WebLayout that I created, and the other
contains a Flash .SWF. I would like to be able to capture key values from
the selections made on the AJAXViewer and pass those to Flash, and would
also like to be able to pass values from Flash into the AJAXViewer.

I was able to do this using MapGuide 6.5 using simple JavaScript. There were
great examples found online for that sort of thing. As yet, I haven't found
anything similar for MapGuide 2009. If anyone knows how this can be done and
can point me to a sample/example/tutorial, that would be fantastic.

Thanks,
Brian
-- 
View this message in context: 
http://n2.nabble.com/AJAX-FUSION-Viewer-%3A%3A-Pass-data-from-Flash-to-Map-%282-Frames%29-tp2899031p2899031.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] AJAX/FUSION Viewer :: Pass data from Flash to Map (2 Frames)

2009-05-14 Thread briancomeau

Hi Experts,

I have two frames in a main.php file. One of those frames contains the
reference to the AJAXViewer with the WebLayout that I created, and the other
contains a Flash .SWF. I would like to be able to capture key values from
the selections made on the AJAXViewer and pass those to Flash, and would
also like to be able to pass values from Flash into the AJAXViewer.

I was able to do this using MapGuide 6.5 using simple JavaScript. There were
great examples found online for that sort of thing. As yet, I haven't found
anything similar for MapGuide 2009. If anyone knows how this can be done and
can point me to a sample/example/tutorial, that would be fantastic.

Thanks,
Brian
-- 
View this message in context: 
http://n2.nabble.com/AJAX-FUSION-Viewer-%3A%3A-Pass-data-from-Flash-to-Map-%282-Frames%29-tp2899016p2899016.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users