Helpful Information
 
 
Category: JavaScript Development
javascript simple data searching

is there any way i can use a javascript to take in a number from a form like an acct number, then when submitted, the javascript will search a simple database file then when it finds the account number, set the information for that number into some varialbes that can be outputted to a html page?

You should consider using a server side script language (PHP, ASP, JSP, Perl...) to achieve this, since Javascript is used mainly for client side tasks.

There is a Javascript SQL library, called TrimQuery, which you could use (http://trimpath.com/project/wiki/TrimQuery ), but all the data is sent to the user's browser in a .js file, so it shouldn't contain any critical info and the data collection should be small to avoid long loading times.

what you need is AJAX - JavaScript sending requests to server and parsing the results.

ajax isn't necessary for what is being asked. the user is not asking for real time updates like with a chat forum. A simple php script will do what is being asked for.

lol just noticed the thread is over 5 years old... :eek:

funny i missed that too.

5 years!!!! I swear it was on top of the thread list... :confused:

5 years!!!! I swear it was on top of the thread list... :confused: maybe you see the threads in Ascending order: oldest first. ;)










privacy (GDPR)