3rd Party webcontrol (ESRI)

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
11/4/2008 2:29:53 PM
Gravatar
Total Posts 17

3rd Party webcontrol (ESRI)

I have a user control from ESRI (www.esri.com). It is a map control, used to connect to ArcGIS Server and retrieve a map. This control uses an external set of javascript files that live in the root of the inetpub (specifically C:\Inetpub\wwwroot\aspnet_client\ESRI).

When i load the user control (ie: a Map Control) into my mojo project it will not find the javascript files (webResource.axd). If i simply test my user control project (outside of mojo), it all runs fine. But when i get it into Mojo, none of the webResources are found.

I am not entirely sure what other information would be useful to give in this post. Essentially, i have a 3rd party webcontrol, which uses external javascript and css files (located in the webserver root). The webcontrol works well when it is not in any of the mojo containers. When it is placed in the contatiner (say a page, as a module) none of the external resources are found.

I was thinking it might be some of the HTTP handlers in mojo, but that is just a guess. I copied all web.config stuff (HTTP Modules / HTTP Handlers) to the mojo web.config. But it still does not work.

I have also copied the external JS / CSS to Mojo and referenced it from the root of the mojo application.  But this still does not work.

I have honestly not dug too deeply into the source code to try to figure out why. I thought i would throw this out to the forums to see if anyone has anything to lead me, before getting too deep down a wrong path.

Thanks ... david

11/5/2008 7:42:54 AM
Gravatar
Total Posts 18439

Re: 3rd Party webcontrol (ESRI)

Hi,

I think any related javascript should live beneath the mojoportal site and the third party control should have a configuration option so you can specify the path to the scripts in Web.config. I would review their documentation. Not knowing anything about this control myself I have no idea whether they did make it configurable as they should.

Another thing I would recommend is don't try to add the third party control directly to a page. Instead create your own user control and then add the third party control inside it declaratively with a tag. In other words, host their control inside your own user control.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.