ArcMedia JavaScript Source Code 3000 Pro (gar448) for PC Logo

Related Topics:

Posted on Dec 28, 2009
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

Can i access database using javascript ? - ArcMedia JavaScript Source Code 3000 Pro (gar448) for PC

1 Answer

Anonymous

Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Governor:

An expert whose answer got voted for 20 times.

Hot-Shot:

An expert who has answered 20 questions.

  • Expert 86 Answers
  • Posted on Dec 31, 2009
Anonymous
Expert
Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Governor:

An expert whose answer got voted for 20 times.

Hot-Shot:

An expert who has answered 20 questions.

Joined: Apr 10, 2009
Answers
86
Questions
0
Helped
29963
Points
218

You could use something similar to below:

----Begin Script---

  1. <html>
  2. <head>
  3. <script language="JavaScript">
  4. var cn = new ActiveXObject("SQLiteDb.Connection");
  5. if (typeof(cn)=="undefined" || cn==null)
  6. alert("Unable to create the connection object!");
  7. else
  8. alert("Connection object was successfully created!");
  9. var strConn = "Database=db/test.db";
  10. function getdata(){
  11. cn.Open(strConn);
  12. var rs = new ActiveXObject("SQLiteDb.Recordset");
  13. var SQL = "SELECT CoName from Companies WHERE CoID=1";
  14. rs.Open(SQL, cn);
  15. alert(rs(0));
  16. rs.Close();
  17. cn.Close();
  18. }
  19. </script>
  20. </head>
  21. <body>
  22. <input type="button" value="Get data"
  23. onclick="getdata()">
  24. </body>
  25. </html>
---End Script---

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

113 views

Ask a Question

Usually answered in minutes!

Top ArcMedia Computers & Internet Experts

Rob Hill
Rob Hill

Level 3 Expert

1483 Answers

Anonymous

Level 2 Expert

214 Answers

Dax Estorioso
Dax Estorioso

Level 2 Expert

162 Answers

Are you an ArcMedia Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...