Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: [Fwd: Regarding the reply message posted by you on p2p.wrox.com]


Message #1 by "SEAK, Teng-Fong" <tfseak@f...> on Tue, 28 Jan 2003 09:49:36 +0100
I think it's always available for IE 5.0 and up, because, if you make an 
XML data island it exposes it to javascript as an object of this type.

-Roy

-----Original Message-----
From: SEAK, Teng-Fong [mailto:tfseak@f...]
Sent: Tuesday, January 28, 2003 6:07 AM
To: javascript
Subject: [javascript] Re: [Fwd: Regarding the reply message posted by
you on p2p.wrox.com]


	To make sure this works in client-side, there has to be
ADODB.Recordset registered in client computer.  Is this always available 
in
any Windows platform?

	OTOH, the instruction beginning with rst.open seems to lack
parentheses, no ?

> -----Message d'origine-----
> De : Scott.Thomas@g...
> [mailto:Scott.Thomas@g...]
> Envoy=C3=A9 : mardi 28 janvier 2003 10:46
> =C3=80 : javascript
> Objet : [javascript] Re: [Fwd: Regarding the reply message
> posted by you
> on p2p.wrox.com]
>
>
> Thats not true, you can use simple ADO rpograming client side
> and hard
> code your SQL statements if you wanted.
>
> Obviously this is not the best solution but it is the
> simplest and crudest
> way.
>
> Below is the crudest example of client side data access to a
> SQL database.
>
> var rst =3D new ActiveXObject("ADODB.Recordset")
>
> rst.open "SELECT * FROM
> ATable","Provider=3DSQLOLEDB.1;Password=3D'';Persist Security
> Info=3DTrue;User
> ID=3Dsa;Initial Catalog=3DMyDB;Data Source=3DMyServer",2,3
> rst.AddNew
>         rst("Field1") =3D 1
>         rst("Field2") =3D Two
>         rst("Field3") =3D 3
>         rst("Field4") =3D Four
>         rst("Field5") =3D 5
> rst.Update
> rst.close
>
>
> Scott Thomas
> Developer Gala Leisure
>
> 
>
> _____________________________________________________________________
> This message and any attachments are confidential and should only be
> read by the intended recipient. If you are not the intended recipient,
> please inform us by replying to this message, delete the message from
> your computer and destroy any copies. Any distribution or copying
> without prior permission is prohibited.
>
> This message has been checked for all known viruses by Star Internet
> delivered through the MessageLabs Virus Scanning Service.
>
> Registered Office: Gala Group Limited, New Castle House,
> Castle Boulevard, Nottingham, NG7 1FT. Registered in England
> no. 3927901
>
>




  Return to Index