User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 373,459 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,948 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

Help with Ajax toolkit drop downs

Join Date: Mar 2008
Posts: 5
Reputation: smithsf22 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
smithsf22 smithsf22 is offline Offline
Newbie Poster

Re: Help with Ajax toolkit drop downs

  #3  
Mar 7th, 2008
Thanks for the reply but if you have the chance I could use some clarification about what you mean. I will also explain better what it is I am trying to do.

The ajax cascading drop downs work great. But I a, using a third party plug in that generates the html for the page. The original drop downs generated by the third party are not ajaxed so in the code behind I hide them all and replace them with new ajax drop downs. This works so far.

Now the problem I have is the third party checks to see if the original drop downs have been selected before you can save. and if not send an alert box saying you didnt fill them out. So what i need to do is when you select anything from the new ajax drop downs I need to set the now hidden original drop downs to the same value.

What I am trying to do, and i have no idea if it will work is register some javascript that does the work. But when I try and add the attribute of onClick to the ajax drop down it never shows up in the html:

  MyDropDownList .Category = "First";
            MyDropDownList .ServiceMethod = "FirstDropDownList";
            MyDropDownList .ServicePath = "CascadeDropDown.asmx";
            MyDropDownList .PromptText = "Please Work...";

       this.MyDropDownList .Attributes.Add("onchange", "doSomething();");
the registered javascript function doSomething does show up in the generated html.

Thanks again
Reply With Quote  
All times are GMT -4. The time now is 5:07 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC