Showing posts with label table. Show all posts
Showing posts with label table. Show all posts

Monday, March 26, 2012

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.

Wednesday, March 21, 2012

Delayed GridView Loading

I have a GridView that is loading data from a web service. For each item in the table a call must be made to the web service and they are averaging around a half second per call. So for a GridView with 83 rows it takes around 41 seconds to load the page the first time. After the page is initially loaded the data is cached so it doesn't take nearly as long. What I'm wondering is if there is a way that I could show the user the rest of the page and then load the GridView via Atlas once the rest of the page loads so that the user can at least see the page is loading and doing something? Icing on the cake would be to be able to display a loading gif while the GridView is loading.

Thanks,

Eric

Hello, I think using an UpdatePanel control will make things better.

A.