Can somebody advise if I can / how to do something like this:
getNodeValue.....add this to something.....than set added value to the Node.
Basically, the CityName displays correctly (onclick update). I have a value stored in the CityTime that equals the difference in hours between GMT/UTC and the time for the city (e.g. Frankfurt = 1).
How do I add this to a UTCString to get the actual value and than return this to the Node? Is it possible?
Ive tried many different functions but can't get any positive results. Can this be done? Do I need to change my approach?
Expand|Select|Wrap|Line Numbers
- function showCityInfo(form)
- {
- var cIndex = -1; // Selected city
- cIndex = form.selCityList.selectedIndex;
- // Update city info fields with selected city data
- setNodeValue("CityName", cityData[cIndex].name);
- setNodeValue("CityTime", cityData[cIndex].time);
- }