473,563 Members | 2,916 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10231
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
11192
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 this case), and the Button2 linkbutton perform redirect to another page. When I click on Button2 it returns a new page content as the result of the...
2
7989
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 ModalPopUpExtender with the FileUpload <- WORKS - Select the file and click on another LinkButton to close the ModalPopUp <- WORKS - Click on SEND and send...
1
9161
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 Trigger to listen when GridView A posts back from a Select button. This works fine. I can get the Postback from GridView B and I am able to update...
2
1654
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 <formtag. Under that, we have an UpdatePanel object where the rest of my partial rendering controls live. There is simply a basic control, such as a...
4
5348
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 text field which causes the Autocomplete extender to display 10 like items, after the users selects an item (which is a key in the database) I want...
1
2248
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 would expect clicking this Button to do a normal postback. However, when I click it, the browser does not do a postback, although it does execute the...
5
4486
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 the user data, after that a javascript function is called to load a new video. If it wasn't for the video, then I would have used panel controls to...
4
3976
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 has an example of how to change a DataList item with JavaScript? Thank You Peter
2
6930
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 and i am implementing it in my website....
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7638
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7948
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
923
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.