Showing posts with label Javascript. Show all posts
Showing posts with label Javascript. Show all posts

Friday, 27 February 2009

How to populate asp.net dropdown list from database by passing radio button list’s selected value as parameter with JQuery?

How to populate asp.net drop down list from database by passing radio button list’s selected value as parameter with J Query, J Son?

In my project I am taking off asp.net update panel where ever possible and replacing it with J Query Ajax. J query Ajax is far better then asp.net Ajax and asp.net update panel. I am populating 259 countries list on the basis of parameter passed from asp.net radio button list’s selected text. Using asp.net radio button list and drop down list inside asp.net update panel keeping Radio button list’s auto post back property to true. First time running application from visual studio and clicking on the radio button list item populated drop down list in “176ms” and when chose same option second time it took “76ms” while same Ajax request using J query took “79ms” for first time and when chose same option second time it took “32ms”.

For more details how-to-populate-aspnet-dropdown-list-from-database-by-passing-radio-button-lists-selected-value-as-parameter-with-jquery

Wednesday, 23 May 2007

Java script not working in Firefox while works in IE

Hi Friends,
I was using followig java script function to get rollover effects for the images. I am using ASP.NET. Master page and child page and IIS.
This function was working excellent in Internet Explorer (I.E) (but was not working int the Firefox browser.
i was using this function onmouseover and onmouseout events.

where img_name=name of the image source control
and img_src=name of the image to show.


function movepic(img_name,img_src) {
document.forms[0].elements[img_name].src=img_src;
}

I found solution:

If we change the above function as follow it works with both Firefox and I.E
function movepic(img_name,img_src) {
document.getElementById(img_name).src=img_src;


}