Infrastructure Map Server Developer

Infrastructure Map Server Developer

Posts: 12
Registered: ‎09-30-2010
Message 1 of 2 (883 Views)

json error in mobileviewer

883 Views, 1 Replies
10-19-2012 09:46 AM

hello everyone.

i am working with the mobileviewer in AIMS2013, but i want to pass the map using post and not inside the URL (to keep the path hidden from the user)

sadly, whenever y try to add funtionality (c#) i got this nasty message (firefox web debug)

Request URL:

Request Method:

Status Code:
HTTP/1.1 404 Not Found

as you can see, this takes the page name instead of the folder, because of this is not able to find the .json files.

i tried using the non compressed version of the mobileviewerSF.js, tried to hard-code the correct path, without success.


you can see the error in the following image.




is there a way to solve this problem? i was contemplating to embed the mobileviewerinside an iframe too, but this approach has another issues of its own (lack of iframe flexibility among devices is one of them).


i also saw this thread but after adding the .json mime type the problem keeps appearing.


i dont know if anyone of you had any similar problem or know how to solve it, i would be really thankful if you can help me, or point me on a path that could solve my problem.


thank you for your help,

best regards,


Wilson H

Valued Mentor
Posts: 426
Registered: ‎10-10-2003
Message 2 of 2 (21 Views)

Re: json error in mobileviewer

11-02-2014 02:57 PM in reply to: wilsonherrera
Check the mobileViewer.getQueryParam() functions in the index.html page. This is "GET"ing the URL parameters such as "baselayers", "map" and "locale" ... you will have to hard-code or set them manually in the page if you are passing them with a POST since there are no url parameters to get any longer....

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.