Atlas Update Panel: javascript sequence issue

G

Guest

hey all,
how can i get javascript procedure to execute as the very last thing before
the page is rendered?

Background: I have a DIV element inside an update panel. I am setting the
scrollLeft attribute of the DIV via javascript to move its contents left and
right, fine so far. The problem i'm having is when i postback to the server
via LinkButton that's inside the update panel the DIV scrollLeft attribute is
set back to 0.

Well I've saved the scrollLeft property in a textbox i just can't execute
the javascript late enough to assign the previous scrollLeft value. I know
this because as a test i have a test button on the screen that when clicked,
sets the scrollLeft to previous value and it works.

thanks,
rodchar
 
C

clintonG

The PreRender event is used on the server for last minute processing. I've
read about some developers who have had to resort to writing interstitial
functions that run count-downs or other "stuff" to control the timing of the
client-side event model.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W
 
G

Guest

this isn't working for me, how would you put javascript in this server side
event?
i've tried clientscript.registerstartupscript but may i'm just not
understanding how javascript fits into the ajax update panel.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top