Posted by kpyro on 03:24:00 06-26-2002
Ok, I don't know php or asp so first off, don't tell me to use it. Second off, I am using JavaScript. Ok, is there a way to read a text file via JavaScript? And is there database capabilities? thanx
Posted by dxprog on 10:04:00 06-26-2002
Yes and yes. Search at MSDN for something called FileScriptingObject.
[addsig]
Posted by KaGez on 11:27:00 06-26-2002
Never look at MSDN stuff. That stuff will 100%ly only work with M$ producs.
[addsig]
Posted by sacah on 21:40:00 06-26-2002
On a local computer you can do it with JS or VBS with the FileSystemobject, but for web based you need either server side JS, to use some hacks or workarounds, they are very browser specific, so use a language that was designed for this sort of thing eg PHP/ASP/SSI
Or if its just for local stuff, you can use both JS and VBS on windows machines, and check out the MSDN stuff.
Posted by Henning on 23:18:00 06-26-2002
JavaScript for reading text files i never had see thatīs.
[addsig]
Posted by kpyro on 14:05:00 06-27-2002
Ok, I got the FileSystemObject to work but now, is there a way to do it in _JavaScript_ without ActiveX???????????
Posted by sacah on 17:16:00 06-27-2002
You could do some browser specific workarounds, or without ActiveX, NO
Simple answer NO
Posted by dxprog on 02:45:00 06-28-2002
Yeah. The filesystem object is an activex thing. Use ASP and you won't have to worry about it.
[addsig]
Posted by KaGez on 13:01:00 06-29-2002
what is this "FileSystem Object"? :/
[addsig]
Posted by sacah on 16:28:00 06-30-2002
Kagez its a Windows only thing probly, search google.
Posted by KaGez on 22:26:00 06-30-2002
I'll take a look later
[addsig]
Posted by dxprog on 23:37:00 06-30-2002
As I said, with the FSO on ASP you wouldn't have to worry about browser or OS since it all runs on the server.
[addsig]
Posted by KaGez on 18:28:00 07-01-2002
same for PHP...
[addsig]
Posted by sacah on 18:57:00 07-01-2002
Server side Javascript does it too.
Plus if you did not want to do anything with the text but display it, use
<script src="sweet.js">
</script>
In Sweet.js include
document.write("<font size='4'><a href='index.htm'>Home</a></font>");
This will print a link to index.htm with caption Home in a font size of 4 at the location the <script src="sweet.js"></script> was located.
Posted by KaGez on 21:37:00 07-01-2002
same for perl and all those other langs used for CGI
[addsig]
Posted by AntiHalcyon on 05:32:00 07-02-2002
JS files do depend on the browser you are running. Technically the server doesn't execute the script like perl. So it is just like pasting JavaScript onto your page. (at least with my experiences thus far)
[addsig]
Posted by dxprog on 09:35:00 07-02-2002
You PHP people will be happy to know that my library got a PHP/MySQL book. I am now going to teach myself. Wish me luck.
[addsig]
Posted by MoX on 15:23:00 07-02-2002
No need for luck there...If you know any C-like language you will know PHP in a matter of a day. By ongoing use you'll get behind all these nice tricks and stuff, but after all it's really easy!
[addsig]
Posted by AntiHalcyon on 15:45:00 07-02-2002
Not bragging, I learned enough PHP/MySQL in one day to create a news section for my website where the ``crew'' could make posts and store them in a database and retrieve them in ascending order to show the most current first. I knew C++ and it was a breeze switching.
[addsig]
Posted by sacah on 17:50:00 07-02-2002
I would have to agree with you, PHP must be nearly the easiest language to learn, and MySQL is a breeze. Anyone whos ever used PHP/MySQL would most likly agree.
dxprog you should find it easy.
Oh, I have no C/C++ knowledge, Im a real programmer.
d-:
Posted by MoX on 01:48:00 07-03-2002
html-only coders are the only real programmers on earth.
[addsig]
Posted by MoX on 01:51:00 07-03-2002
Well, I suppose that's what these langs were invented for, right?
[addsig]
Posted by dxprog on 02:45:00 07-03-2002
MoX was right. Since PGP is so close to JS(and any other C-like language out there) I already know the basics and now I know how to do MySQL. So just to test my skills I am making an "e-mail" program. That is you can send messages to anyone on the same computer.
[addsig]
Posted by sacah on 16:54:00 07-03-2002
PGP close to JS
d-:
Posted by dxprog on 23:20:00 07-03-2002
Aw crud
[addsig]