[fusion-users] Custom Widget + Task Pane + IE(7)

Paul Spencer pspencer at dmsolutions.ca
Wed Aug 6 16:18:20 EDT 2008


Hi Tim,

I suspect an error in your widgets since it sounds like the  
application definition is getting parsed and some widgets are getting  
created.

Typically if something doesn't work in IE but does work in FireFox it  
turns out to be an extra comma in an object or array definition after  
the last thing - for instance:

var test = {
   t1: 'one thing',
   t2: 'another thing', // <--- this will cause an error in IE but not  
in FireFox
};

Hope its a simple as that ...

Cheers

Paul

On 6-Aug-08, at 4:04 PM, Nolte, Tim wrote:

> I've been working on setting up a Fusion (1.0.6) application along  
> with
> UMN MapServer 5.2. I've begun working up two new widgets to use in the
> Task Pane. I've added the information to the ApplicationDefinition.xml
> file and added them to the Task List menu. Everything seems to work
> without a problem in Firefox 2.x, but in IE7 I get a JavaScript error
> and the menu items for my custom widgets don't show up. Anyone got any
> thoughts here? Here is what I've defined:
>
> 		<!-- ContextMenu (Tasks): Menu available to the Task
> Pane -->
> 		<Container xsi:type="UiItemContainerType">
> 			<Name>TaskContextMenu</Name>
> 			<Type>ContextMenu</Type>
> 			<Item xsi:type="WidgetItemType">
> 				<Function>Widget</Function>
> 				<Widget>menuMapAddress</Widget>
> 			</Item>
> 			<Item xsi:type="WidgetItemType">
> 				<Function>Widget</Function>
> 				<Widget>menuSiteSearch</Widget>
> 			</Item>
> 		</Container>
>
> 		<!-- CONTEXT MENU MAP ADDRESS -->
> 		<Widget xsi:type="UiWidgetType">
> 			<Name>menuMapAddress</Name>
> 			<Type>MapAddress</Type>
> 			<ImageUrl>images/icons/building.png</ImageUrl>
> 			<ImageClass/>
> 			<Label>Map Address</Label>
> 			<Tooltip>Click to map an address</Tooltip>
> 			<Extension xsi:type="CustomContentType">
> 				<Target>TaskPane</Target>
> 			</Extension>
> 			<Disabled/>
> 		</Widget>
> 		
> 		<!-- CONTEXT MENU SITE SEARCH -->
> 		<Widget xsi:type="UiWidgetType">
> 			<Name>menuSiteSearch</Name>
> 			<Type>SiteSearch</Type>
> 	
> <ImageUrl>images/icons/transmit_blue.png</ImageUrl>
> 			<ImageClass/>
> 			<Label>Site Search</Label>
> 			<Extension xsi:type="CustomContentType">
> 				<Layer>OnAir</Layer>
> 				<Attribute>BTS_SWITCH_ID</Attribute>
> 				<Target>TaskPane</Target>
> 			</Extension>
> 			<Disabled/>
> 		</Widget>
>
> - Tim
>
> ----
> Timothy J Nolte - tnolte at ilpcs.com
> Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS:    616-706-2438
> Fax:    616-554-6484
> Web: www.ipcswirelessinc.com
> _______________________________________________
> fusion-users mailing list
> fusion-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fusion-users


__________________________________________

    Paul Spencer
    Chief Technology Officer
    DM Solutions Group Inc
    http://www.dmsolutions.ca/



More information about the fusion-users mailing list