Help needed with Sample Viewer Widgets.........

589
4
04-29-2010 02:44 PM
ZlatkoGrebenar1
New Contributor II
I upgraded my version of the Javascript Sample Viewer to 1.6 and fixed all the errors mentioned by other users in the forums. My dynamic services are showing up but my overview map and all my widgets are not working at all. I ran Firefox bug and found out that some of the widgets can't be found. In some cases the fields are missing (Locate Widget) and some widgets are empty even tough they are configured. It has to be a proxy issue but I can't figure out how my dynamic services are working and nothing else seems to.

Can any shed some light on how this fix this?


Thanks
0 Kudos
4 Replies
ZlatkoGrebenar1
New Contributor II
I was able to fix several widgets but I still can't get the Locate, Earthquake and Service Area Widget to work. I keep getting a 403 forbidden network error. There seems to be no error for the locate widget the fields are just missing. Any help is appreciated.

Thanks
0 Kudos
nicogis
MVP Frequent Contributor
Are you using asp proxy?
In proxy.ashx I have fixed two problem that don't allow call.
0 Kudos
ZlatkoGrebenar1
New Contributor II
Yes I'm using the asp proxy as well. What two things have you fixed that caused a problem.

Thanks for your help,
0 Kudos
nicogis
MVP Frequent Contributor
after this row: string uri = context.Request.Url.Query.Substring(1);
add:


  if (uri.StartsWith("uri="))
{
uri= uri.Substring(4);
}


for problem georss:

change row:
// Text response
if (serverResponse.ContentType.Contains("text") ||
serverResponse.ContentType.Contains("json") )


with:

// Text response
if (serverResponse.ContentType.Contains("text") ||
serverResponse.ContentType.Contains("json") || serverResponse.ContentType.Contains("xml"))
0 Kudos