473,386 Members | 1,754 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Execute javascript after a partial postback of an updatepanel?

Hi,

I have a web page and at the end of the page I have inserted some
javascript that checks if Acrobat Reader plugin is installed. If it is
not installed, I disable some elements (buttons, checkboxes, ...) on
the page. This javascript is at the end of the page, because
javascript cannot identify html elements if they are defined below the
script.

Some of the elements that I disable when the plugin is not installed
are on an updatepanel. When a partial postback takes place, these
elements are enabled again, because of course the javascript that
checks for the Acrobat Reader plugin is only executed on page load,
and not after a partial postback...

So I was wondering if there is some way, to execute some javascript
code or a javascript function after a partial postback, so when
rendering the html from the partial postback?

Veerle

Mar 15 '07 #1
1 10196
Howdy,

There are many events you can handle:
http://ajax.asp.net/docs/tutorials/U...Scripting.aspx

--
Milosz
"Veerle" wrote:
Hi,

I have a web page and at the end of the page I have inserted some
javascript that checks if Acrobat Reader plugin is installed. If it is
not installed, I disable some elements (buttons, checkboxes, ...) on
the page. This javascript is at the end of the page, because
javascript cannot identify html elements if they are defined below the
script.

Some of the elements that I disable when the plugin is not installed
are on an updatepanel. When a partial postback takes place, these
elements are enabled again, because of course the javascript that
checks for the Acrobat Reader plugin is only executed on page load,
and not after a partial postback...

So I was wondering if there is some way, to execute some javascript
code or a javascript function after a partial postback, so when
rendering the html from the partial postback?

Veerle

Mar 15 '07 #2

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

Similar topics

2
by: marss | last post by:
Hello, I have a question concerning UpdatePanel. For example, I have two linkbuttons at the UpdatePanel. I want the Button1 linkbutton to update controls within panel (the TextBox1 control in...
2
by: Jl_G_0 | last post by:
I have a form with ALL my controls on an updatepanel, but theres one giving me a hard time, its an asp:FileUpload control. All I want to do is: - Click on a LinkButton <- WORKS - Open a...
1
by: gabe | last post by:
How do you call a client side javascript callback method after an update panel has posted back to the server? I have two update panels (A + B) with a gridview in each panel. GridView B has a...
2
by: CrystalMikeMD | last post by:
Greetings, I've been at this problem for some time now and have decided to seek out some help. Essentially, this is what I have. A basic ASP.NET 2.0 page. On this page is the standard...
4
by: Peter | last post by:
ASP.NET I have an application which use ASP.NET Autocomplete extender which works great. But I have a question how to update all the fields on the screen using Ajax. Users starts typing in a...
1
by: Nathan Sokalski | last post by:
I have a Page that contains an UpdatePanel with a Button inside of it. The UpdatePanel has ChildrenAsTriggers="false" and UpdateMode="Conditional", and the Button is not one of the Triggers, so I...
5
by: voidinutah | last post by:
Hello, I'm new to .NET and was trying to find a solution for having a button control do a post back then execute a javascript function. When the button is clicked a post back occurs to save...
4
by: Peter | last post by:
I have a DataList and each item in the datalist has an imge, I want to change the datalist item image on the client side when user clicks a button. How would I do that with JavaScript, does anyone...
2
by: pankajsingh5k | last post by:
Dear All, Please help me... I had read an article to lazy load a tab in a tabcontainer using an update panel on http://mattberseth.com/blog/2007/07/how_to_lazyload_tabpanels_with.html ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.