JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 9th, 2008, 02:56 AM
bharanikumarphp bharanikumarphp is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 372 bharanikumarphp Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 2 Days 6 h 42 m 4 sec
Reputation Power: 0
Load years into combo

Hi

am not much familiar in JS,

I just want to load the 100 years into combo ,

I don't like to add static,

Through JS i want to load the 100 years into combo,

I don't want to mingle any server side coding,

Simply i want to so this using JS,HTML,

Example

Just Want to load From 2000 to 2100 years into Combo


Any great challengers there

Reply With Quote
  #2  
Old November 9th, 2008, 03:55 AM
web_loone08 web_loone08 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2008
Posts: 262 web_loone08 User rank is Sergeant (500 - 2000 Reputation Level)web_loone08 User rank is Sergeant (500 - 2000 Reputation Level)web_loone08 User rank is Sergeant (500 - 2000 Reputation Level)web_loone08 User rank is Sergeant (500 - 2000 Reputation Level)web_loone08 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 9 h 47 m
Reputation Power: 8
Code:
<select>
<script type="text/javascript">
for (i=2000;i<=2100;i++) {
document.write("<option value=\""+i+"\">"+i+"");
}
</script>
</select>

Reply With Quote
  #3  
Old November 9th, 2008, 04:21 AM
bharanikumarphp bharanikumarphp is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 372 bharanikumarphp Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 2 Days 6 h 42 m 4 sec
Reputation Power: 0
Reply

Ya , Exactly expected script,

But may i know ,

I view the , Viewsource,

There is nothing like
Quote:

<select>
<option value='2000'>2000</option>
<option value='2001'>2001</option>
<option value='2002'>2002</option>
</select>



Is it possible to explain,

I know its loading through script,

Reply With Quote
  #4  
Old November 9th, 2008, 05:16 AM
MrFujin's Avatar
MrFujin MrFujin is offline
Lord of the Dance
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2003
Posts: 1,506 MrFujin User rank is Brigadier General (60000 - 70000 Reputation Level)MrFujin User rank is Brigadier General (60000 - 70000 Reputation Level)MrFujin User rank is Brigadier General (60000 - 70000 Reputation Level)MrFujin User rank is Brigadier General (60000 - 70000 Reputation Level)MrFujin User rank is Brigadier General (60000 - 70000 Reputation Level)MrFujin User rank is Brigadier General (60000 - 70000 Reputation Level)MrFujin User rank is Brigadier General (60000 - 70000 Reputation Level)MrFujin User rank is Brigadier General (60000 - 70000 Reputation Level)MrFujin User rank is Brigadier General (60000 - 70000 Reputation Level)MrFujin User rank is Brigadier General (60000 - 70000 Reputation Level)MrFujin User rank is Brigadier General (60000 - 70000 Reputation Level)MrFujin User rank is Brigadier General (60000 - 70000 Reputation Level)MrFujin User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 5 h 39 m 14 sec
Reputation Power: 665
view source display the code the browser use to create the output/page.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Load years into combo


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT