Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database Reading/Writing

Status
Not open for further replies.

sleuth

Programmer
Jan 12, 2001
134
US

OK, I know that this can be done in javascript. Will someone please give a code that can append to a database, and another function that will read the first line and print that out of the same database as an example.

I know it's a lot to ask but I can't find anything on it and the only way I can learn is to play with the code. I'm a perl programmer so javascript is similar to me but I'm still real rusty.

Thank You so Very Much!!!

Sleuth
 
I do use perl. I need something that will modify a file when the page unloads. Right now I have to launch a popup window onload and onunload using javascript, and in the window a perl program runs and makes the changes. It's a login/logout system. I hate that little window poping up all the time when you leave. Sometimes it hangs too long and other times the server connection is lost for a sec so when you leave the window pops up but is dead and doesn't log you out.

So instead of onunload="pop(blabla);" I wanted to just modify the file right there and get rid of the popup window.

Jscript & vb both ehh, that is bad. Is there a way I could write in some code into the html that will modify the files right there. I need the onunload feature too. Perl doesn't have that.

I've got the feeling it can't be done. Oh wait, what about servlets??? I heard that they run off the server??? How about an applet of some kind? Is there anything there that might be able to do this?

Thanks,

Sleuth
 
Guys, I thought I begun to understand something,
but now I'm really confused.
"jscript... client-side jscript at that... which will only work on the clients computer, if they are using IE."???
So there are limitations?
How about jscript as a server side script, in iis server.
Does anyone know if any cinfigurations should be made?
Is there a site that deals with jscript as server side language, regarding database? when using asp I mean.
 
also, you can't use client-side events to run server-side code.... so, you'd have to open the window anyway. adam@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top