Click here to Skip to main content
15,898,993 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Javascript Visible Pin
CWIZO1-May-06 21:27
CWIZO1-May-06 21:27 
AnswerRe: Javascript Visible Pin
Guffa1-May-06 23:28
Guffa1-May-06 23:28 
GeneralRe: Javascript Visible Pin
CWIZO1-May-06 23:40
CWIZO1-May-06 23:40 
GeneralRe: Javascript Visible Pin
Guffa2-May-06 11:05
Guffa2-May-06 11:05 
GeneralRe: Javascript Visible Pin
Kanjinghat4-May-06 2:59
Kanjinghat4-May-06 2:59 
Questionmagicajax or outpost Pin
w3Nima1-May-06 4:57
w3Nima1-May-06 4:57 
QuestionCalling Windows API in ASP 3.0 via Vbscript Pin
Hassan Akhtar Ali1-May-06 3:53
Hassan Akhtar Ali1-May-06 3:53 
QuestionBrackets Problem With Drop down ListBox In the ASP and Javascript Pin
Dharmendra Gupta1-May-06 2:48
Dharmendra Gupta1-May-06 2:48 
I Have 2 Drop Down ListBox.On the Page Load, I populate the data from the database in the 1st listbox.When I Select Any Item from the listbox which contains any type of brackets like (),{},[], It will refreshes the Selected Item and shows the first item of the 1st list box. Due to this problem I m Not Able to populate the data from the database in the 2nd drop down ListBox.
Please suggest the appropriate suggetions for this:
I m providving the code which I m using for this:

***********************************************

function initControls()
{
populateBrand();
populateType();
}
var i;
function populateBrand()
{
<%
var rs = Server.CreateObject("ADODB.Recordset");
var sql = "select distinct(ActName) from ActsMaster order by ActName"
rs.Open(sql,strconnection);
var n=1;
while (!rs.EOF)
{
var stateID = rs.Fields(0);
var stateDesc = rs.Fields(0);
Response.Write("document.form1.ActName[" + n + "] = new Option('" + stateDesc+ "','" + stateID + "');");
if (new String(strpcode).search(stateID) != -1)
Response.Write("document.form1.ActName[" + n + "].selected = true;");
rs.MoveNext();
n++;
}
rs.Close();
%>
}

function populateType()
{
<%
if (strpcode != "")
{
var rs2 = Server.CreateObject("ADODB.Recordset");
var sql = "select * from ChapterMaster where ActName='" + strpcode + "' order by ChapterName"
rs2.Open(sql,strconnection);
var n=1;
while (!rs2.EOF)
{
var qqstateID = rs2.Fields("ChapterName");
var qqstateDesc = rs2.Fields("ChapterName");
Response.Write("document.form1.ChapterName[" + n + "] = new Option('" + qqstateDesc+ "','" + qqstateID + "');");
rs2.MoveNext();
n++;
}
rs2.Close();
}
%>
}
function fillType()
{
document.form1.action = "createSections0.asp?stateChanged=true";
document.form1.submit();
}
function saveData()
{
document.form1.action = "./Browse_Product.asp";
return true;
}



*****************************************************


Select Act Name


******************************************************


Select Chapter
Name



dharmendra gupta
QuestionTwo Questions About Web UI Automation Pin
WaleedH1-May-06 0:35
WaleedH1-May-06 0:35 
QuestionI have two opend internet windows..how to close one when closing the other? Pin
coolshad30-Apr-06 21:55
coolshad30-Apr-06 21:55 
Questionhelp with javascript Pin
babamara29-Apr-06 22:09
babamara29-Apr-06 22:09 
GeneralRe: help with javascript Pin
Guffa29-Apr-06 22:19
Guffa29-Apr-06 22:19 
GeneralRe: help with javascript Pin
babamara29-Apr-06 22:27
babamara29-Apr-06 22:27 
QuestionIs there a way to include parts of a html file in another html file? Pin
chasetoys29-Apr-06 15:12
chasetoys29-Apr-06 15:12 
AnswerRe: Is there a way to include parts of a html file in another html file? Pin
TimWallace29-Apr-06 15:37
TimWallace29-Apr-06 15:37 
QuestionCustomValidator in C# Pin
Lash2028-Apr-06 6:42
Lash2028-Apr-06 6:42 
AnswerRe: CustomValidator in C# Pin
Dustin Metzgar28-Apr-06 7:57
Dustin Metzgar28-Apr-06 7:57 
QuestionHooking IE's Address Bar Pin
NadirK28-Apr-06 2:43
NadirK28-Apr-06 2:43 
AnswerRe: Hooking IE's Address Bar Pin
Guffa28-Apr-06 2:51
Guffa28-Apr-06 2:51 
GeneralRe: Hooking IE's Address Bar Pin
NadirK28-Apr-06 18:32
NadirK28-Apr-06 18:32 
Questionwriting code consistently Pin
centrex28-Apr-06 1:11
centrex28-Apr-06 1:11 
AnswerRe: writing code consistently Pin
Paddy Boyd28-Apr-06 1:18
Paddy Boyd28-Apr-06 1:18 
GeneralRe: writing code consistently Pin
centrex28-Apr-06 3:25
centrex28-Apr-06 3:25 
QuestionGET-Parameter Encoding Pin
AttaTroll28-Apr-06 0:29
AttaTroll28-Apr-06 0:29 
QuestionEnable ActiveX by javascript Pin
thainam27-Apr-06 17:05
thainam27-Apr-06 17:05 

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.