Click here to Skip to main content
15,891,473 members
Articles / Programming Languages / Javascript

AJAX Extender Control with Pop-up Window

Rate me:
Please Sign up or sign in to vote.
4.43/5 (5 votes)
1 Jan 2011CPOL5 min read 27.6K   839   14  
Creating AJAX Extender control with pop-up window
// JScript File

     function onSelect(_this, param)
     {
     var param_array = param.split(";");
     var xname = param_array[0];
     var txtbox = param_array[1];
     var xcorr = param_array[2] - 1;
     var x1=document.getElementById(txtbox);
     var xdiv=document.getElementById(xname);
     if (xdiv === null)
     {
       alert("Property: ListNumber=\"" + xcorr + "\" - number is out of range!");
       return;
     }
     
     showDropDown(x1, xdiv);
     }
     
     function onSelect1(_this, param)
     {
     var param_array = param.split(";");
     var xname = param_array[0];
     var txtbox = param_array[1];
     var xcorr = param_array[2] - 1;
     var x1=document.getElementById(txtbox);
     x1.style.backgroundColor="#CCFFFF";
     var xdiv=document.getElementById(xname);
     if (xdiv === null)
     {
     alert("Property: ListNumber=\"" + xcorr + "\" - number is out of range!");
     return;
     }
     showDropDown(x1, xdiv);
     }

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Loblaw Companies Limited, Mississauga, ON.
Canada Canada
2006 - present Software Developer, Loblaw Companies
Limited, Mississauga, ON, Canada.
1994 - 2006 Software developer in commercial companies
in Toronto, Canada and Moscow, Russia.

Comments and Discussions