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 375,174 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 2,091 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
Views: 3902 | Replies: 10
Reply
Join Date: Jul 2005
Posts: 10
Reputation: shahdhruv is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
shahdhruv shahdhruv is offline Offline
Newbie Poster

Re: Problem using onload

  #11  
Jul 19th, 2005
I think I am very close. Below code is working. I am passing the value of selectedindex in dd as onchange event from the drop down. setDropdown is my onload event. If I hard code it, it works, but if I use
document.getElementById('ParmMonth').options.selectedIndex = cookiedValue, it doesnt.

Any ideas.
Thanks,
Dhruv


function setDropDown()
{
document.getElementById('ParmMonth').options.selectedIndex = 2
alert("set" & cookiedValue)
}

function changeDropDown(dd)
{

cookiedValue = dd
alert("dD");
alert(dd);
alert("value");
alert(cookiedValue);
}
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 12:19 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC