Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-09-2008, 08:50 AM   PM User | #1
jmohan
New Coder

 
Join Date: Apr 2008
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
jmohan is an unknown quantity at this point
Question Mysql database connection -AJAX and XML

Dear Sir,
I develop a website in asp.net with c#. And also, I develop a toolbar in the toolbar studio separately.

Aim of the Website: Enabling the visitors to become a member of our webiste
by downloading the toolbar from our website.

After the member downloads the toolbar, The toolbar is added to the ie browser. The member can get the facilities such as searching, weather online, internet radio,etc., The toolbar includes a home button. When the user clicks the home button, the page will be redirected to our website.
Member benefits will be displayed in our website. Therefore, the toolbar is added to browser separately. When the user clicks the home button, our website will be opened.

My Request is,

Toolbarstudio provides the unique toolbar id for each user(member). I save the unique toolbar id in the mysql database. For saving the toolbar id, we use the client side javascript by using the following connection string


var adoConn = new ActiveXObject("ADODB.Connection");
//var adoRS = new ActiveXObject("ADODB.Recordset");

adoConn.Open("Driver={MySQL ODBC 5.1 Driver};Server=VBNET4;Port=3306; Database=netmusk; User=root; Password=harsha;Option=3; Min Pool Size=5; Max Pool Size=60; Connect Timeout=2;");

adoConn.Execute("insert into tb_savetoolid values('" + tool.toolbarid + ")");

adoConn.Close();
//adoRS.Close();

I can save the toolbar id via toolbar to mysql database from the remote system if the remote system is installed with odbc driver.

My problem is,

I need to save the toolbar id via (browser) toolbar to mysql without installing any odbc driver in the remote system.

I believe that you have got my problem and please give me a solution.

Can I solve the problem via Ajax with javascript or XML.

Awaiting for your detailed answer,


Thanks in Advance,

J. Mohan.

Last edited by jmohan; 05-09-2008 at 08:55 AM.. Reason: Missing one point
jmohan is offline   Reply With Quote
Old 05-14-2008, 12:19 PM   PM User | #2
Kor
Red Devil Mod


 
Kor's Avatar
 
Join Date: Apr 2003
Location: Bucharest, ROMANIA
Posts: 8,478
Thanks: 58
Thanked 379 Times in 375 Posts
Kor has a spectacular aura aboutKor has a spectacular aura about
Yes, you may send data to a DB using AJAX via a server-side application (php probably)
http://www.js-x.com/page/ajax__send_data.html
__________________
KOR
Offshore programming
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Kor is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:47 PM.


Advertisement
Log in to turn off these ads.