473,503 Members | 1,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript Ajax help..to mysql remote connect

6 New Member
Dear Sir/Madam,

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


Expand|Select|Wrap|Line Numbers
  1. var adoConn = new ActiveXObject("ADODB.Connection");
  2. //var adoRS = new ActiveXObject("ADODB.Recordset");
  3.  
  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;");
  5.  
  6. adoConn.Execute("insert into tb_savetoolid values('" + tool.toolbarid + ")");
  7.  
  8. adoConn.Close();
  9. //adoRS.Close();
  10.  
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
1 2454
acoder
16,027 Recognized Expert Moderator MVP
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

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

Similar topics

8
2245
by: Kenneth | last post by:
I want to know how you can access a remote mySQL database from a php script. Also how can I connect to a remote mysql database from mysql administrator?
8
5451
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
4
8400
by: Ian Davies | last post by:
Hello all The following code allows me to connect to a local MySQL database on my pc from a VB6 project. **************************************************************************** ** Dim...
5
3830
by: Ike | last post by:
Through Java, I am attempting to connect to a MySQL 4.12 server on a remote computer. I can connect fine via php. I cann connect fine via Java, through a servlet, when the servlet is on the same...
3
3372
by: apostolosl | last post by:
Hi there. I need to update a remote database from a local one. I use mysqldump in my php page in order to create a file for each table, like this: $command="mysqldump table_products >...
7
2478
by: Ike | last post by:
Let's say I have a MySQL 4.12 database, opened to the internet on 111.111.111.111 allowing all incoming and outgoing ports. I have a username and password setup, which CAN connect to this database,...
4
2658
by: courtney.machi | last post by:
Hello, I am trying to connect to a remote mysql server through php. Here's the code: mysql_connect("my.hostname.edu", "username", "password") or die (mysql_error());...
3
3442
by: SM | last post by:
Hello, Im trying to access elements in my XML file using the JavaScript DOM but i'm not sure how. I use AJAX to access the XML and then use the responseXML property to access the XML file data. I...
0
7188
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7063
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7258
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6970
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7441
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4663
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3146
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1489
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.