473,508 Members | 2,236 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Atlas Update Panel: javascript sequence issue

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
Sep 30 '06 #1
2 2193
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
"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:19**********************************@microsof t.com...
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

Sep 30 '06 #2
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.

"clintonG" wrote:
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
"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:19**********************************@microsof t.com...
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


Oct 2 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1329
by: Varangian | last post by:
I'm not sure if there was already a post on this.. if so I apologise My question is what difference is there between Atlas and ASP.NET callback and why should people go on Atlas rather than on...
0
957
by: Vincent Courcelle | last post by:
Hello, I'm using the Atlas framework to build some dynamic applications. I need to call a javascript method when datas arrives (but after Atlas renders the result). It is possible to do so ? ...
1
1373
by: benthanger | last post by:
This is just a how to question that I'm hoping someone can answer. Is there anyway to update the page cashe after performing a partial page update using atlas so that if someone leaves the page...
1
2236
by: bill | last post by:
I have an update panel that contains a gridview. There are 2 triggers: one for a search button that is outside the panel and one for the gridview EditCommand Event. The search works fine, the...
1
3516
by: jmdolinger | last post by:
Hi all, I'm a newbie to Atlas (and recently ASP.NET) after coming from a long Java background, also have done quite a bit with an Ajax.NET/ASP.NET 1.1 project, but it was basically all...
2
1225
by: simonZ | last post by:
I have atlas update panel which works perfect for couple of hours. Then it stops render part of page when trigger fires submit. Just render nothing. And that happens on all of my pages, where I...
1
1360
by: Jason | last post by:
I have a webpage that I've wrapped in an Atlas UpdatePanel. This page contains four textboxes, each with AutoPostBack set to true. The problem comes when someone edits the first box and tabs to...
2
1726
by: Nobody | last post by:
I have an aspx page where I have a repeater control that repeats a asp:LinkButton. When I click on one of the links, I get a post back, and the page flashes. A friend told me to look into ATLAS/AJAX,...
4
2289
by: ccshine | last post by:
I have several textboxes, a gridview and an image in a panel that need to be updated based upon info entered into a textbox. Everything works like a champ when I don't use the Atlas UpdatePanel,...
0
7227
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7331
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7391
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7501
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5056
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
424
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.