Click here to Skip to main content
15,881,248 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Encrypt URL to prevent parameter tampering attacks Pin
User 98858-Feb-07 21:24
User 98858-Feb-07 21:24 
AnswerRe: Encrypt URL to prevent parameter tampering attacks Pin
User 98858-Feb-07 21:28
User 98858-Feb-07 21:28 
AnswerRe: Encrypt URL to prevent parameter tampering attacks Pin
badgrs8-Feb-07 23:05
badgrs8-Feb-07 23:05 
AnswerRe: Encrypt URL to prevent parameter tampering attacks Pin
Bradml9-Feb-07 2:47
Bradml9-Feb-07 2:47 
GeneralRe: Encrypt URL to prevent parameter tampering attacks Pin
SindyatIndy9-Feb-07 4:19
SindyatIndy9-Feb-07 4:19 
QuestionError Opening project Pin
No-e8-Feb-07 7:17
No-e8-Feb-07 7:17 
AnswerRe: Error Opening project Pin
Sandeep Akhare8-Feb-07 23:52
Sandeep Akhare8-Feb-07 23:52 
Questionjavascrpt drop down blank Pin
spinanicky8-Feb-07 3:56
spinanicky8-Feb-07 3:56 
Hi,

Generally what this script does is gets dates input by a user and then redirects to another page to get values from a mysql database where the dates match those input. My problem is that when you go back to change the dates the infromd and indepartd lists are blank rather than having them populated with the previously selected months values. (The selected months are still selected!). Would be greatfull for any help.
<br />
<br />
function daysInMonth(month,year) {<br />
var dd = new Date(year, month, 0);<br />
return dd.getDate();<br />
}<br />
<br />
<br />
	function change1(month,list)<br />
	{	<br />
		if(list == "infromm")<br />
		var fromlist = document.emuas.infromd;<br />
		else if(list != "infromm")<br />
		var fromlist = document.emuas.indepartd;<br />
		<br />
		fromlist.options.length=0;<br />
		var days = daysInMonth(month, 2007);<br />
		for(i=1;i<(1+days);i++){<br />
		fromlist.options[i] = new Option(i,i,false,false);<br />
		}<br />
	}<br />
   (in the body tag and in a form called emuas)<br />
			  <select name="infromd" id="infromd" class="trans"  title=""><br />
<br />
			</select><br />
	<br />
/<br />
<select  class="trans" name="infromm"  title="" onchange="change1(this.selectedIndex,this.name)"> <br />
  <option value="00">Month</option><br />
  <option value="1">Jan</option><br />
  ...etc<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><br />
        <div class="select2"><span>Depart:</span></div>   <br />
<select class="trans" id="indepartd" name="indepartd"  title=""><br />
<br />
</select><br />
/<br />
<select class="trans" name="indepartm"  title="" onchange="change1(this.selectedIndex,this.name)"><br />
  <option value="00">Month</option><br />
  <option value="1">Jan</option><br />
  ....etc<br />
  <option value="12">Dec</option><br />
</select><input type="submit" name="Submit" value="Submit" /></form>';<br />
<br />

Thanks
Nicky
QuestionJavascript : Moving objects Pin
SoftDeveloper8-Feb-07 3:48
SoftDeveloper8-Feb-07 3:48 
QuestionWeb.Config Security settings. Pin
BLOEDHOND8-Feb-07 1:51
BLOEDHOND8-Feb-07 1:51 
AnswerRe: Web.Config Security settings. Pin
Sandeep Akhare8-Feb-07 3:55
Sandeep Akhare8-Feb-07 3:55 
Questionscrollbar using Pin
Shital@icon7-Feb-07 22:45
Shital@icon7-Feb-07 22:45 
QuestionXHTML and css Pin
User 98857-Feb-07 19:56
User 98857-Feb-07 19:56 
AnswerRe: XHTML and css Pin
User 98857-Feb-07 20:01
User 98857-Feb-07 20:01 
GeneralRe: XHTML and css Pin
Bradml7-Feb-07 22:32
Bradml7-Feb-07 22:32 
GeneralRe: XHTML and css Pin
User 98857-Feb-07 22:57
User 98857-Feb-07 22:57 
GeneralRe: XHTML and css Pin
Bradml7-Feb-07 23:00
Bradml7-Feb-07 23:00 
GeneralRe: XHTML and css Pin
User 98857-Feb-07 23:08
User 98857-Feb-07 23:08 
GeneralRe: XHTML and css Pin
Bradml7-Feb-07 23:12
Bradml7-Feb-07 23:12 
AnswerRe: XHTML and css Pin
Bradml7-Feb-07 22:32
Bradml7-Feb-07 22:32 
AnswerRe: XHTML and css Pin
szukuro8-Feb-07 1:29
szukuro8-Feb-07 1:29 
GeneralRe: XHTML and css Pin
User 98858-Feb-07 2:04
User 98858-Feb-07 2:04 
QuestionHelp in asp .net and mysql Pin
Rock Star.7-Feb-07 19:14
Rock Star.7-Feb-07 19:14 
AnswerRe: Help in asp .net and mysql Pin
badgrs8-Feb-07 0:53
badgrs8-Feb-07 0:53 
QuestionHelp in using media player control in C# Asp.net web application Pin
EEmaan7-Feb-07 18:37
EEmaan7-Feb-07 18:37 

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.