|
I am looking for any books on writing web crawlers or web spiders and maybe someone knows the difference between the 2. If you know of any good books please let me know also if possible I am looking for books with c++. This seemed like the place to post this message because it is internet related. Thanks for your time.
|
|
|
|
|
Hi
I use ASP , ADO
I have an access file in a password protected directory.. when I use the connection string :
strCon="Data source=" & server.MapPath("FilePath/FileName.mdb") & "; Provider=Microsoft.jet.oledb.4.0;Jet OLEDB:Database Password=MYPASS;"
I get the error :
Microsoft JET Database Engine error '80004005'
The Microsoft Jet database engine cannot open the file 'FilePath/FileName.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
How can I include the Directory username and password in the connection string ?
|
|
|
|
|
Hi,
I have a form, with different fields. It happens that the form fields have same name repeating for 5 times (fields generated from function) like this
textfield1 txtf
submitbutton
textfield2 txtf
submitbutton
textfield3 txtf
submitbutton
textfield4 txtf
submitbutton.
Now the problem is, when I try to retrive the value as Request.Form ("txtf"), it gives values like this.....
, , , txtval
I mean the text values are appended by , between them. Is there a method to remove it, by maintaining same field names??
I was born intelligent Education ruined me!.
|
|
|
|
|
Are all these in the same FORM tag?
try and split them up into different forms maybe...
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
theJazzyBrain wrote:
Are all these in the same FORM tag
Yes
theJazzyBrain wrote:
try and split them up into different forms maybe
I did in a different way.... by combing the fields in a mnner that it serves the same purpose.. and made them acceptale by the PM
Thanks
I was born intelligent Education ruined me!.
|
|
|
|
|
Do you use Macromedia Dreamweaver MX to develop the web?
|
|
|
|
|
NO
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
We don't develop the whole web using Dreamweaver -- but we do use it for much of our stuff at work in static HTML and classic ASP.
|
|
|
|
|
Just design and template pages are designed with Macromedia Dreamweaver and from then on, the IDEs like Visual Studio etc take over for ASP etc.
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
Yep, but from watching other people using it my main difference is that I know how to.
David Wulff
"Without hopes and dreams we're directionless" - Anna
|
|
|
|
|
No I use a program called html kit from chami it can be customized to anythig you like to use to develop. it has a lot of plugins and it lets you develop the code unlike frontpage.
|
|
|
|
|
Hi,
I have a web site, written in ASP, where a page needs to be updated regularly by a non-technical person. I want to end up with a system whereby the user will complete the information in a text file and upload it to the web server, where the ASP file reads it and outputs the information.
After reading various tutorials on doing this I can see that the process and scripting is quite basic. I have tried using the following script created by Chris Maunder on this site:-
<% Option Explicit
Const Filename = "/readme.txt" ' file to read
Const ForReading = 1, ForWriting = 2, ForAppending = 3
Const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0
' Create a filesystem object
Dim FSO
set FSO = server.createObject("Scripting.FileSystemObject")
' Map the logical path to the physical system path
Dim Filepath
Filepath = Server.MapPath(Filename)
if FSO.FileExists(Filepath) Then
' Get a handle to the file
Dim file
set file = FSO.GetFile(Filepath)
' Get some info about the file
Dim FileSize
FileSize = file.Size
Response.Write "File: " & Filename & " (size " & FileSize &_
" bytes)"
' Open the file
Dim TextStream
Set TextStream = file.OpenAsTextStream(ForReading, _
TristateUseDefault)
' Read the file line by line
Do While Not TextStream.AtEndOfStream
Dim Line
Line = TextStream.readline
' Do something with "Line"
Line = Line & vbCRLF
Response.write Line
Loop
Set TextStream = nothing
Else
Response.Write "File " & Filename &_
" does not exist"
End If
Set FSO = nothing
%>
As far as I can tell, this script should work. However, when I try to open the ASP document (hosted on IIS on my laptop, which is running Win XP Professional), the browser just hangs ? The status bar message say's it is opening test.asp, but it just sit's there and nothing happens ?
I have tested other ASP files on my version of IIS to ensure ASP is installed and working, and every file that doesn't try to access a text file works fine. I have also tested various aspects of the FileSystemObject to make sure it wasn't that, FileExists, FolderExists, GetFolder all work fine so it can't be the FileSystemObject. The only thing I can think of it being is the file permissions in IIS, but I have tried changing them but that doesn't seem to help either, am I doing it right ?
Any help you can give on this situation would be greatly appreciated.
Thanks in advance
Chris
"Inside, alway's tryin to get back inside" ~ Lane Staley
|
|
|
|
|
Just a couple of thoughts...
Before you set TextStream = Nothing, you really should call TextStream.Close. Another thing to try might be to call Response.Flush after each line is read to send the text to the browser, rather than waiting until the entire file is loaded to output the text. That would let you see the process as it progresses, rather than waiting for the end, and might give you some insight as to where the process is failing. Alternatively you could use Response.Buffer= False as the first line following the language declaration on the page to disable buffering completely and send output immediately.
"Ask not for whom the bell tolls; It tolls for thee..."
|
|
|
|
|
Touson wrote:
the user will complete the information in a text file and upload it to the web server, where the ASP file reads it and outputs the information
My answer may not solve/fix the browser hanging problem. May b, I can suggest another method to invoke the sit updation.
Make a ASp script which opens as a list of input fields, and make the data entry person to enter the data and let the submit @ the asp page update the site??
Sorry for drifting from ur existing code/idea!
I was born intelligent Education ruined me!.
|
|
|
|
|
Ha, i'm facing the same problem too
But funny, it works in my prof's server but not in my own computer
I'm looking for it now but if you can solve it, pls let me know
Thanks
|
|
|
|
|
Hello everyone,
I have a question about vb + assess + asp.
If i write a code in vb in the access database is there a way to run this code from server side
asp.
What i want to do is add a function to assess database that searches the access table to find out if this person has already been on the site.
Does anyone knows if this possible?
And y is there a vb editor in access???
Thank you
Ilya
|
|
|
|
|
iluha wrote:
If i write a code in vb in the access database is there a way to run this code from server side
asp.
I haven't found a way to do so yet, but I'm still looking. But why do you want to do this? Why not simply add a userid to the database on the first visit, then use ADO to query the database to find if that userid exists? Using cookies will allow you to accomplish the same thing without the user having to supply a userid, but this requires that the user have cookies enabled in the browser. You can't always depend on that, but you can provide a notice on the site to the effect that it won't work if cookies are disabled.
iluha wrote:
And y is there a vb editor in access???
Access isn't meant to be a full relational database server. It's designed for use in a small office for developing custom database applications for internal use. VBA is included, along with the VB editor, to let you provide the functionality needed to respond to user input appropriate to your application. For general database purposes, SQL Server is the recommended solution, and you can access stored procedures remotely using a SQL Server database. MSDE is a freely distributable version of SQL Server that you can install on computers running your application so that your customers don't have to own SQL Server to use it.
"Ask not for whom the bell tolls; It tolls for thee..."
|
|
|
|
|
Hi
When you include a src="javascript.js" in your html code, am I correct in assuming that only the actual html file are downloaded by the user, and you will save download time because the code in the .js file are only downloaded when used? Or are both the html file and the .js file downloaded when the page is opened?
tx
|
|
|
|
|
Both files are downloaded.
Regards,
Brian Dela
|
|
|
|
|
Check out the cache on IE and you will see the .js file
He who laughs last thinks slowest.
|
|
|
|
|
hi,
i have a java applet being used in my application. but when someone right clicks on one of the menu items it pops up a new window and tries to connect to a web page on internet.
Since my web application is on a Local Area Network it tries and fails...
How can i kill that window using JavaScript?
is that possible to kill that window although source of it is a Java Applet?
thanks for ur help
atilla.selem
just listening to you...
|
|
|
|
|
Hi.
I'm a beginner, so may be you'll find this question easy to answer.
I'm trying to upload a file from a web page with an tag, and I want to submit it without refreshing the actual page. I'm working with two frames: the visible one and a hidden one (not visible) with which I've been trying to send the form included in the visible one with javascript/DOM, but when I get the name of the file to upload I can't clone the input object to the not visible frame and send the form from the hidden frame (I think this is due to the impossibility to copy the path of the input tag to the hidden frame).
Could any one help me, please? I've been searching the web, but I found no example (may be because it's too obvious for someone with a minimum experience).
Thanks in advance.
|
|
|
|
|
There is one possibility I can think of to stop the page refreshing.
When a request is made to a server a status code is returned whether it be 200 (OK) or 404 (Not Found) by default, otherwise the Internet would not work. There is however a status code which does not return which is 204.
On the client side submit a page as normal. On the server side page do what you have to do with the the request and finally return a staus code of 204. The page will not move.
He who laughs last thinks slowest.
|
|
|
|
|
Thanks for such an easy way to do things work!
|
|
|
|
|
I was wondering,
I am writing some CGI script in Perl to use on my website. Since perl script is interpreted, does that mean that if you heavily comment your code,let's say in a loop, and this loop is exectuted many times, could it significantly slow your program down?
Kevin Shaffer
Student of Computer Science
University of Kansas
kshaff03@msn.com
|
|
|
|