By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,372 Members | 1,220 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,372 IT Pros & Developers. It's quick & easy.

Javascript Ajax mysql remote connect

P: 6
Dear Sir/Madam,

I develop a website in 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

Expand|Select|Wrap|Line Numbers
  1. var adoConn = new ActiveXObject("ADODB.Connection");
  2. //var adoRS = new ActiveXObject("ADODB.Recordset");
  4. 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;");
  6. adoConn.Execute("insert into tb_savetoolid values('" + tool.toolbarid + ")");
  8. adoConn.Close();
  9. //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.

Awaiting for your detailed answer,

Thanks in Advance,

J. Mohan.
May 10 '08 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
This is not possible with JavaScript, but you should be doing this via a server-side language. Pass the toolid to a server-side script which updates the database.

You've mentioned Ajax, that would make more sense here.
May 12 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.