Click here to Skip to main content
15,911,646 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: usb Pin
Yusuf22-Aug-10 23:01
Yusuf22-Aug-10 23:01 
AnswerRe: usb Pin
WoutL23-Aug-10 0:50
WoutL23-Aug-10 0:50 
QuestionImage lazy load issue Pin
tidelgl18-Aug-10 3:14
tidelgl18-Aug-10 3:14 
Questionprint issue Pin
salmonraju16-Aug-10 23:31
salmonraju16-Aug-10 23:31 
AnswerRe: print issue Pin
R. Giskard Reventlov16-Aug-10 23:38
R. Giskard Reventlov16-Aug-10 23:38 
GeneralRe: print issue Pin
salmonraju17-Aug-10 0:01
salmonraju17-Aug-10 0:01 
GeneralRe: print issue Pin
R. Giskard Reventlov17-Aug-10 0:24
R. Giskard Reventlov17-Aug-10 0:24 
Questionconnect to database using javascript Pin
SatyaKeerthi1516-Aug-10 2:18
SatyaKeerthi1516-Aug-10 2:18 
I have to Get data from database and fill data into ListBox using javascript. I did like below

var strConn = 'Provider=SQLOLEDB;server=localhost;user id=sa;pwd=***;initial catalog=xxx;';
var cn = new ActiveXObject("ADODB.Connection");

cn.open(strConn);
var rs = new ActiveXObject("ADODB.Recordset");
rs.Open('SELECT EmpId,Name FROM Employee', cn);
rs.MoveFirst
while(!rs.eof)
{
var opt = document.createElement("Option");
opt.text = rs.fields(1);
opt.value = rs.fields(0);
document.getElementById(ListBoxCtrlName).options.add(opt);
rs.movenext;
}
rs.close;
cn.close;

This is working fine in IE only when access datasource across domains enabled otherwise listbox not getting data.How can I fix this issue in IE And FireFox
AnswerRe: connect to database using javascript PinPopular
J4amieC16-Aug-10 4:03
J4amieC16-Aug-10 4:03 
GeneralRe: connect to database using javascript Pin
SatyaKeerthi1516-Aug-10 22:58
SatyaKeerthi1516-Aug-10 22:58 
AnswerRe: connect to database using javascript Pin
thatraja16-Aug-10 23:06
professionalthatraja16-Aug-10 23:06 
GeneralRe: connect to database using javascript Pin
Yusuf22-Aug-10 23:04
Yusuf22-Aug-10 23:04 
QuestionOverview menu like on www.raytheon.com Pin
harleydk13-Aug-10 1:18
harleydk13-Aug-10 1:18 
AnswerRe: Overview menu like on www.raytheon.com Pin
Not Active15-Aug-10 4:20
mentorNot Active15-Aug-10 4:20 
GeneralRe: Overview menu like on www.raytheon.com Pin
harleydk22-Aug-10 19:24
harleydk22-Aug-10 19:24 
QuestionLink through javascript Pin
offroaderdan12-Aug-10 4:47
offroaderdan12-Aug-10 4:47 
AnswerRe: Link through javascript Pin
daveyerwin12-Aug-10 6:02
daveyerwin12-Aug-10 6:02 
GeneralRe: Link through javascript Pin
offroaderdan12-Aug-10 6:24
offroaderdan12-Aug-10 6:24 
GeneralRe: Link through javascript Pin
daveyerwin12-Aug-10 6:57
daveyerwin12-Aug-10 6:57 
AnswerRe: Link through javascript Pin
NeverHeardOfMe12-Aug-10 7:09
NeverHeardOfMe12-Aug-10 7:09 
GeneralRe: Link through javascript Pin
daveyerwin12-Aug-10 7:17
daveyerwin12-Aug-10 7:17 
GeneralRe: Link through javascript Pin
NeverHeardOfMe12-Aug-10 7:24
NeverHeardOfMe12-Aug-10 7:24 
Questioncountdown timer initializes on refreshing the page but it should not Pin
Amit Spadez11-Aug-10 19:33
professionalAmit Spadez11-Aug-10 19:33 
AnswerRe: countdown timer initializes on refreshing the page but it should not Pin
daveyerwin12-Aug-10 2:33
daveyerwin12-Aug-10 2:33 
GeneralRe: countdown timer initializes on refreshing the page but it should not Pin
Amit Spadez22-Aug-10 23:42
professionalAmit Spadez22-Aug-10 23:42 

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.