Click here to Skip to main content
15,877,618 members
Home / Discussions / Web Development
   

Web Development

 
QuestionJavascript Problem! Pin
Rojan Gh.1-Feb-07 12:31
professionalRojan Gh.1-Feb-07 12:31 
QuestionCreating a sweepstakes popup / storing emails in DB Pin
therick01451-Feb-07 10:58
therick01451-Feb-07 10:58 
AnswerRe: Creating a sweepstakes popup / storing emails in DB Pin
therick01451-Feb-07 11:01
therick01451-Feb-07 11:01 
AnswerRe: Creating a sweepstakes popup / storing emails in DB Pin
Christian Graus1-Feb-07 11:18
protectorChristian Graus1-Feb-07 11:18 
GeneralRe: Creating a sweepstakes popup / storing emails in DB Pin
Bradml1-Feb-07 22:22
Bradml1-Feb-07 22:22 
GeneralRe: Creating a sweepstakes popup / storing emails in DB Pin
therick01452-Feb-07 6:51
therick01452-Feb-07 6:51 
GeneralRe: Creating a sweepstakes popup / storing emails in DB Pin
Bradml2-Feb-07 10:54
Bradml2-Feb-07 10:54 
Questiononchange with select tags Pin
spinanicky1-Feb-07 8:46
spinanicky1-Feb-07 8:46 
Hi,
Im making a webpage that involves dates. So what I have done is once you select the month from one drop down menu it updates the number of days in the second drop down menu. It works perfectly in firefox but in internet explorer it just displays a blank list. I hope someone can help.
<br />
<br />
<script language="javascript"><br />
<br />
function daysInMonth(month,year) {<br />
var dd = new Date(year, month, 0);<br />
return dd.getDate();<br />
}<br />
<br />
<br />
function fromd(month){<br />
	var days = daysInMonth(month, 2007);<br />
	var output = "<option value='00'>DD</option>";<br />
<br />
	for(var i=1;i<=days;i++){<br />
 <br />
 	output +="	<option value=" + i + ">" + i +"</option> ";<br />
	}<br />
	return output;<br />
 }<br />
<br />
	function change1(month)<br />
	{	<br />
		document.getElementById("fromd").innerHTML = "" + fromd(month);<br />
	}<br />
	function change2(month)<br />
	{	<br />
		document.getElementById("departd").innerHTML = "" + fromd(month);<br />
	}<br />
	<br />
 </script><br />
 <br />
<br />
        <td><div class="select2"><span>From:</span></div>    <br />
       <br />
			  <select name="fromd" id="fromd" class="trans"  title=""><br />
			  <br />
			  <option value="0">DD</option><br />
			  <option value="1">01</option><br />
              <option value="2">02</option><br />
              ...etc<br />
              <option value="30">30</option><br />
              <option value="31">31</option><br />
			<br />
			</select><br />
	<br />
/<br />
<select  class="trans" name="fromm"  title="" onchange="change1(this.value)"> <br />
  <option value="00">Month</option><br />
  <option value="1">Jan</option><br />
  <option value="2">Feb</option><br />
  <option value="3">Mar</option><br />
  <option value="4">Apr</option><br />
  <option value="5">May</option><br />
  <option value="6">Jun</option><br />
  <option value="7">Jul</option><br />
  <option value="8">Aug</option><br />
  <option value="9">Sep</option><br />
  <option value="10">Oct</option><br />
  <option value="11">Nov</option><br />
  <option value="12">Dec</option><br />
</select></td><br />
        </tr><br />
        <tr><br />
          <td height="39"><div class="select2"><span>Depart:</span></div>   <br />
<select class="trans" id="departd" name="departd"  title=""><br />
  <option value="00">DD</option><br />
  <option value="1">01</option><br />
  ...etc<br />
  <option value="31">31</option><br />
</select><br />
/<br />
<select class="trans" name="departm"  title="" onchange="change2(this.value)"><br />
  <option value="00">Month</option><br />
  <option value="1">Jan</option><br />
  ...etc<br />
  <option value="12">Dec</option><br />
</select></td><br />
        </tr><br />


Thanks alot
Nicky
AnswerRe: onchange with select tags Pin
Rojan Gh.1-Feb-07 12:50
professionalRojan Gh.1-Feb-07 12:50 
Questionvisual studio 2005 issue Pin
Shaimmaa1-Feb-07 6:02
Shaimmaa1-Feb-07 6:02 
AnswerRe: visual studio 2005 issue Pin
Christian Graus1-Feb-07 9:43
protectorChristian Graus1-Feb-07 9:43 
QuestionCMMI Pin
Member 37855611-Feb-07 5:48
Member 37855611-Feb-07 5:48 
QuestionWeb service issues Pin
Parmenio1-Feb-07 2:09
Parmenio1-Feb-07 2:09 
AnswerRe: Web service issues Pin
parsiphal1-Feb-07 3:46
parsiphal1-Feb-07 3:46 
QuestionJavascript Copy Text Pin
tech_freak1-Feb-07 1:49
tech_freak1-Feb-07 1:49 
AnswerRe: Javascript Copy Text Pin
Vasudevan Deepak Kumar1-Feb-07 3:52
Vasudevan Deepak Kumar1-Feb-07 3:52 
AnswerRe: Javascript Copy Text Pin
David Domingues1-Feb-07 5:44
David Domingues1-Feb-07 5:44 
Questionddl with grid Pin
praveenanand31-Jan-07 20:00
praveenanand31-Jan-07 20:00 
AnswerRe: ddl with grid Pin
badgrs31-Jan-07 22:44
badgrs31-Jan-07 22:44 
QuestionAdd elements from one ListBox to another Pin
varshavmane31-Jan-07 18:09
varshavmane31-Jan-07 18:09 
AnswerRe: Add elements from one ListBox to another Pin
Sachin Pimpale31-Jan-07 19:03
Sachin Pimpale31-Jan-07 19:03 
GeneralRe: Add elements from one ListBox to another Pin
varshavmane31-Jan-07 19:58
varshavmane31-Jan-07 19:58 
Questiondesign and control media player Pin
gigo2k631-Jan-07 11:18
gigo2k631-Jan-07 11:18 
AnswerRe: design and control media player Pin
Bradml31-Jan-07 13:23
Bradml31-Jan-07 13:23 
AnswerRe: design and control media player Pin
Vasudevan Deepak Kumar1-Feb-07 3:53
Vasudevan Deepak Kumar1-Feb-07 3:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.