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 403,112 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,287 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

Problem using onload

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  
All times are GMT -4. The time now is 2:12 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC