Click here to Skip to main content
15,891,529 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Programatically change image control ImageUrl Pin
Jrnsr850029-Nov-06 15:21
Jrnsr850029-Nov-06 15:21 
GeneralRe: Programatically change image control ImageUrl Pin
Paddy Boyd29-Nov-06 23:13
Paddy Boyd29-Nov-06 23:13 
GeneralRe: Programatically change image control ImageUrl Pin
Jrnsr850030-Nov-06 4:07
Jrnsr850030-Nov-06 4:07 
GeneralRe: Programatically change image control ImageUrl Pin
Jrnsr850030-Nov-06 17:39
Jrnsr850030-Nov-06 17:39 
QuestionJavascript and database Pin
ronapost29-Nov-06 11:29
ronapost29-Nov-06 11:29 
AnswerRe: Javascript and database Pin
Bradml29-Nov-06 11:43
Bradml29-Nov-06 11:43 
AnswerRe: Javascript and database Pin
Dominic Pettifer29-Nov-06 13:34
Dominic Pettifer29-Nov-06 13:34 
AnswerRe: Javascript and database Pin
Torsten Mauz30-Nov-06 2:26
Torsten Mauz30-Nov-06 2:26 
Yes it is possible, but unless you really really really need to (and even if you think you need to you probably don't and you certainly shouldn't) then don't.

var objConn = new ActiveXObject('ADODB.Connection');
var objRs = new ActiveXObject('ADODB.Recordset');

objConn.Open(conn_string);
objRs.Open('SELECT * FROM table', objConn, 2, 3);

if(!objRs.BOF) 
{
    objRs.MoveFirst();
    while(!objRs.EOF)
    {
        document.writeln(objRs.Fields("title").Value +'<br/>\n');
        objRs.MoveNext();
    }
}
It will work, but you will have to have extremely low security settings in IE (it will only work in IE). The user will also get a couple of security warnings which you can't get rid of. The above is provided merely as evidence that it is possible, if you haven't got the hint yet then I'll say once more.... please don't use this for anything other then learning.

As you're using cgi-mail, you obviously have access to some server-side technology so use that for communicating with your DB.

HTH
GeneralRe: Javascript and database Pin
Dominic Pettifer30-Nov-06 11:42
Dominic Pettifer30-Nov-06 11:42 
QuestionWYSIWYG HTML Editor Pin
sam31529-Nov-06 10:09
sam31529-Nov-06 10:09 
AnswerRe: WYSIWYG HTML Editor Pin
Infomine Liam29-Nov-06 13:00
Infomine Liam29-Nov-06 13:00 
QuestionJavascript file existing checking [modified] Pin
Clickok29-Nov-06 6:47
Clickok29-Nov-06 6:47 
AnswerRe: Javascript file existing checking Pin
Torsten Mauz29-Nov-06 10:12
Torsten Mauz29-Nov-06 10:12 
GeneralRe: Javascript file existing checking Pin
Clickok29-Nov-06 11:34
Clickok29-Nov-06 11:34 
GeneralRe: Javascript file existing checking Pin
Torsten Mauz29-Nov-06 11:46
Torsten Mauz29-Nov-06 11:46 
GeneralRe: Javascript file existing checking Pin
Clickok29-Nov-06 11:54
Clickok29-Nov-06 11:54 
GeneralRe: Javascript file existing checking Pin
Torsten Mauz30-Nov-06 1:35
Torsten Mauz30-Nov-06 1:35 
QuestionWORD SEARCHING AND LISTING CODE ON HTML PAGES [modified] Pin
MARSHAX29-Nov-06 1:18
MARSHAX29-Nov-06 1:18 
GeneralASP.NET Caching Problem Pin
Brady Kelly29-Nov-06 0:27
Brady Kelly29-Nov-06 0:27 
GeneralRe: ASP.NET Caching Problem Pin
Torsten Mauz29-Nov-06 11:59
Torsten Mauz29-Nov-06 11:59 
QuestionHow to use CDONTS in UNIX Server using ASP Pin
Debi Prasad28-Nov-06 23:42
Debi Prasad28-Nov-06 23:42 
AnswerRe: How to use CDONTS in UNIX Server using ASP Pin
Bradml29-Nov-06 0:09
Bradml29-Nov-06 0:09 
GeneralRe: How to use CDONTS in UNIX Server using ASP Pin
Brady Kelly29-Nov-06 0:28
Brady Kelly29-Nov-06 0:28 
QuestionAbout the CodeProject page "script/comments/user_reply.asp" Pin
Davids_Maguire28-Nov-06 22:07
Davids_Maguire28-Nov-06 22:07 
AnswerRe: About the CodeProject page "script/comments/user_reply.asp" Pin
Guffa29-Nov-06 0:16
Guffa29-Nov-06 0:16 

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.