Showing posts with label window. Show all posts
Showing posts with label window. Show all posts

Monday, March 26, 2012

Access denied Error

HI,

I am getting an Access denied error, if I use AJAX in ASPX page..

intially I got Javascript window ( Do you wish to debug..) When I said 'Yes' it showed me the code below..

//------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//------------------
// MicrosoftAjax.js
Function.__typeName="Function";Function.__class=true;Function.createCallback=..................
........................
g=e.screenLeft-top.screenLeft-top.document.documentElement.scrollLeft+2 ------ its showing error at this point..

What is the solution for this?

Thanks


Try to disable the javascript debugging. See what happens then

Configure AJAX properly

http://www.asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx


Hiasppick,

Please refer to these entries:

http://blogs.msdn.com/delay/archive/2007/02/05/safely-avoiding-the-access-denied-dialog-how-to-work-around-the-access-denied-cross-domain-iframe-issue-in-the-ajax-control-toolkit.aspx

http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx

Hope this helps.

Saturday, March 24, 2012

about AtlasUIDragDrop.js

hi,

i have seen some article described the method how to create the drag and drop window,but all are static.such as:

<control id="content1">
<behaviors>
<draggableListItem handle="content1Title" dataType="HTML" />
</behaviors>
</control>

i has checked that Sys.UI.DraggableListItem is a class in the AtalasUIDragDrop.js,but why i can not use in this way:

var obj=new Sys.UI.DraggableListItem();

the browser alert that it is an error!!!

but why i can use this:

var obj=new Sys.Timer();?

if i can use Sys.UI.DraggableListItem,i think i will implement the dynamic crreating drag and drop function.

who can help me?

Hi,

please verify that

1) you added a reference to the AtlasUIDragDrop.js file.
2) you put the dynamic code after the framework (i.e. the Sys.Application object) has raised the load event.