Welcome Guest Search | Active Topics | Sign In | Register

Permission Denied javascript error after menu item click Options
Bhavesh
Posted: Friday, March 6, 2009 11:30:54 AM
Rank: Newbie
Groups: Member

Joined: 3/6/2009
Posts: 7
We have an application running on .NET Framework 3.5. We have used the EO Web Menu version 6.0 in our application. Menu Loading doesn’t have any problem, only we get a problem while we navigate to page.
We get following javascript error every time we navigate to menu.

Permission Denied
http://192.168.2.145/eo_web.ashx?id=127f53a8-628c-43ac-ad72a932cbfb0a25


To navigate to page I have written following code on menu item click
scriptString = "<script>window.top.frames['Content'].location = '" + NavigationURL + "'</script>"

If (Not ClientScript.IsClientScriptBlockRegistered("clientScript")) Then
ClientScript.RegisterClientScriptBlock(GetType(MenuStructure), "clientScript", scriptString)
End If



In previous version of EO Web menu (i.e. version 3.0) we have added one code on page load
EO.Web.Runtime.AddLicense(license). We have not got this error when we were using version 3.0

Does this license would get change as we are using the latest license version on EO menu? Where do I get this license key?

Any help would be really appreciated!
eo_support
Posted: Friday, March 6, 2009 11:36:20 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I do not think it would have anything to do with license. The most likely problems has to do with frames across domains. You can find more details in the following topic:

http://doc.essentialobjects.com/library/1/menucommon/crossframe.aspx

Check "cross domain security" section.

Thanks!
Bhavesh
Posted: Saturday, March 7, 2009 8:34:15 AM
Rank: Newbie
Groups: Member

Joined: 3/6/2009
Posts: 7
Thanks for a instance reply.

When I set the frame target through javascript I get a permission denied error.

Same If I do using the NavigationUrl property its working fine!!!

But I have some other logic on MenuItem Click Event. If I am using NavigationUrl its not executing the MenuItem Click only.

Any suggestion on above points?
eo_support
Posted: Saturday, March 7, 2009 10:41:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I believe you can use NavigateUrl and client side JavaScript event at the same time. You can do all other things you wanted to do in your code, but just let the menu to do the navigation for you. Please see this page for more information about the sequence of the events:

http://doc.essentialobjects.com/library/1/menucommon/handlingevent/client_event.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.