Showing posts with label point. Show all posts
Showing posts with label point. Show all posts

Monday, March 26, 2012

Detecting UpdatePanel postback so can prevent onbeforeunload from firing

Hi, I was wondering if any of you AJAX gurus could help me out or point me in the right direction...

I'm using onbeforeunload on a form that has UpdatePanels. Anyone know how to detect the postback is an AJAX partial page update rather than a full page postback so I can prevent the onbeforeunload dialog showing in such cases?

Cheers.

No worries, I've just found this thread that gave me the info I needed to resolve my issue -http://forums.asp.net/p/1153470/1887704.aspx

Detecting point of click on Table

Hi all.
I have a Table on my page. By xml-script I can detect clicks on it.

<components>
<button id="Table1" click="DoSomething" />
</components
But I want to know coordinates of the point on this table, which was clicked. Specifically I want to have them in my function "DoSomething()"
Please, help me.

There are examples here for tracking mouse position:http://www.irt.org/script/pointer.htm

-Damien


DoSomething should be a function like so:

function DoSomethign(ev){}

ev.clientX and ev.clientY will give you the coordinates, and so on.

Saturday, March 24, 2012

Deploying Atlas to Non Dev Machines

I have an intranent application that gets iframecall.axh errors when deployed. It if I change the script manager paths to point back to a development box.(?).

Debug error message: "A web request made using the iframe executor failed. Make sure that the app's web.config registers iframecall.axd"

What am I missing? Something must need to be done to these test machines to deploy.

The http handler is set :

<addverb="*"path="iframecall.axd"type="Microsoft.Web.Services.IFrameHandler"validate="false"/>

Each of the Web Methods.

WebOperationAttribute(true,ResponseFormatMode.Json,true)

Why does Atlas use the header name and the port to call its self? I found the cause of the problem. Its appears that since we use a CSS ( type of cysco router ) to route traffic on shared servers that the call to the service is using the host header and the port which when re-routed back to the server is incorrect. If the site is available on http://<server>:<port> but the users calls it with the host

headerhttp://<host header> the call back to iframecall ishttp://<host header>:<port>

Here is an example: http://MySite/service1.asmx if hosted onhttp://MyServer:8040/service1.asmx gets called viahttp://MySite:8040/service1.asmx and fails.

Is there a work around for this or how do I fix it?