Parsing Remote File

I'm using the code below to get the contents of a remote file on my domain.
The problem is all the "£" signs are being changed to "?" signs.
Does anyone know why and how to fix it.

Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
url "http://www.domain.com/file.asp"
xmlhttp.open "GET", url, false
xmlhttp.send()
Response.write xmlhttp.responseText

View Replies


ADVERTISEMENT

[ASP]Parsing A CSV File

Hey so I ran into a pretty big problem here and hoping someone could lend some advice.

Scenario:

- User uploads CSV file to server through ASP form (Check)
- ASP then reads that file parses it throws in a HTML table for user to preview (Check)
- Throw headers and body columns into 2 seperate array to store for database saving capability (Check)

- If user has a "," in the header name or a field entry things go crazy! (Check)

That's the process and all is great except if there is a comma in one of the field entries or in the header names. Code:

View Replies View Related

Parsing Text File With ASP

I have a text file that is the result of using XMLHTTP object to pull back a
page of search results from a search engine.

So I have the entire results page in HTML, and want to break out each hit
result from the text file as a unique item and do what I want with each hit
result.

Is there any suggested algorithms or any other techniques I could be
directed to?

View Replies View Related

Parsing File Path

I'm needing some help on this. I need to know how to parse a file path for the file name in a browse box. Lets say I have a browse box in a form with the input of

C:/somedirectory/somefile.asp

I need a piece of code that could convert the input into just somefile.asp?

View Replies View Related

Parsing A File/ASP/Upload

I have a user that has a PTF containing a list of values. Instead of this user manually entering each value into our DB we want to automate the data entry as much as possible. Is it possible to write a page that can read the contents of a file the user points to on their computer?

View Replies View Related

Parsing A Text File With Vbscript

I know this is a little off topic, but this is the best resource I know of for anything coding related.

I'm needing to read through a text file that will have the following format:

c:ools
c:docs
c:htdocs

And have the the results put in an array for later processing. What I'm trying to build is a small vbscript that will automatically backup each path that may be in a given txt file.

View Replies View Related

Remote File

How to include remote file in an asp file? Anybody woh know about it.

View Replies View Related

ASP Read Remote File

If ASP can read remote file like php does.I am trying to read this weather forecast page, and only output certain line from it.I only know how to read a local file using server.mapPath()

View Replies View Related

Remote Txt File To Marquee

I'm trying to write an ASP script that will draw information from a remote txt file (Simple Weather Information) and then display it in a marquee.I've managed to write the marquee script, but am having trouble with the remote connection via DSN-Less or any other way.

View Replies View Related

File Copy To A Remote Mechine

I have sucessfully able to copy file to a remote mechine in our network by writing some asp code. To make it sucessful, I had to keep destination folder in remote mechine as "Share" for IUSER that my ASP code running with.

I thought just giving the IUSER write permission on the destination folder will allow to copy the file. But it does not, I had to keep the folder "Shared". Is there any way that I can copy file to a remote mechine without havving the folder "Shared".

View Replies View Related

Upload File To Remote Computer

I'm looking for a method to upload a file from a site to the Unix server running my database. How can I connect this computer to create a file on it ? and can can I read
and write the files on it ? I'm able to upload to the server running IIS but that's not what I want.

View Replies View Related

Load Text File From A Remote Server?

Is there a way to load a text file from a remote server into a string much like using the Inet Control in VB? I am familiar with reading in RSS feeds, but what should I do if the content is a straight text file?

View Replies View Related

Cannot Access Remote File From Mapped Drive

I want to access files from a remote server so I mapped it in my
server under z: for myserverwebmysiteimages

I added this UNC path to my IIS virtual directory and name it as
"upload" but I still cannot use any FSO to read it. Here is my code:

View Replies View Related

Fetching Xml File Data From Remote Server

We are working on a real estate web site which lists real estate listings from different affiliated realtors.

Our client wants to have a system where it display real estate listings from affiliated realtors without having to enter listing information into our database.

Affiliated realtor will provide a link to xml file containing listings information and we have to fetch the data from it and display it into our web site. The xml file will be on some other server.

Is this possible?

View Replies View Related

Save A File From Remote Location To Local?

Is there a way to save a file from a remote location to my local computer with asp?

Let's say as an example that I would like to save a file from
http://www.somesite.com/file.txt
to
c:file.txt
on my pc using an asp page located either on one of the two locations?

View Replies View Related

Asp Copy File From Local To Remote Share Drive Disk

I have two machines, one generate files, and copy to the other.
I try wscript.shell in my program, but it dit not work.

The two machines are not in the same domain. I saw some people's
question but not suitable for me,their machine are in the same domain.
They can assign permission to do the job.

View Replies View Related

Parsing Value

i want to ask is there any way that i could get the value from field (the value will be used in SQL statement) without submit the form coz if i use Request.form("name"), it need to submit the form to get the value

View Replies View Related

Parsing Xml Using Asp

I'm interested in creating an asp function that enables the general parsing of xml. The function needs to take into account the structure of the xml document, as the document(s) can be quite complex.

The use of getElementsByTagName() is not appropriate in this case as I'm trying to avoid picking up the wrong data. The function also needs to be able to test if a node has any attributes and what the attributes are. Here's an example of the document I'm trying to parse: Code:

View Replies View Related

Parsing

ASP

I have

value(0) = 1
value(1) = 2
value(2) = 3
value(3) = 4
etc...

I need to have as output
1,2,3,4 ...

Finnaly I must submit that to 2nd asp page, and use it inside the javascript. Any ideas?

View Replies View Related

Parsing Xml

I do a regular HTML form POST to a third party server. The server processes the request and displays result in XML format. However, I need to parse this xml and display in HTML. The problem is how can I get the control from the form POST.right now, the form posts and the result is displayed but I need the control back.

View Replies View Related

Parsing

I need to use forum code for my site, and making things bold, etc, is very easy however, I cannot work out how to use the tags [*url]http://site.com[/*url], the asterix will avoid it being parsed to create links.

I want to be able to get the text between the two URL tags, and build a link, so <a href=""" & textinbetween & """>" & textinbetween & "</a>".

View Replies View Related

Parsing URL With ?'s And &'s

How can I parse it so that I can just get:
/newthread.php?do=newthread&f=5

I can get /newthread.php with script_name, but I'm not sure how to get the whole string.

View Replies View Related

Parsing Value

is there any way that i could get the value from field (the value will be used in SQL statement) without submit the form coz if i use Request.form("name"), it need to submit the form to get the value.

View Replies View Related

Parsing XML

I need to do one SelectNodes loop inside another. anyone know how I can do this ? I'm trying the following code at the moment which doesnt work:

[VBS]'WORK EXPERIENCE
Set TheseNodes = DomDoc.SelectNodes("CLASS/Work_Experience/job")
For Each node in TheseNodes

Response.Write node.attributes(0).text & "<br/><b>Time Frame/b> " & node.attributes(1).text & " - " & node.attributes(2).text & "<br/><br/>"

Set ResponsibilitytNodes = DomDoc.SelectNodes("CLASS/Work_Experience/job[@employer='" & node.attributes(0).text & "']/Responsibility/")
For Each node in ResponsibilitytNodes
Response.Write ResponsibilitytNodes.text
Next

Next[/VBS]

View Replies View Related

Parsing?

I have a script that Technicweb helped me make. However it is just short of
what I need. The players data still has the html code around it. I want to
extract the name only with the statistics. I cant seem to get my head around
it - all I have learned from picking apart Technicweb's script seem not to work for me.
Here is the latest of what I have come up with, it gives me an error:

Microsoft VBScript runtime error '800a01c2'

Wrong number of arguments or invalid property assignment: 'MID'

/scrapes/testparse.asp, line 33

am I way off track? Code:

View Replies View Related

Parsing XML

I think this has been asked before but I can't find the reply. I'm using the XML parser to post data to a server and receiving a reply. The reply is in XML and I want to find elements of the retrieved data. Eg. I receive a string with: Code:

<food>Love it</food>
<drink>lager</drink>

I want to get the value of the <food> tag.

View Replies View Related

Parsing A String

Lets say I have a string like "www.ssss.com/images/theimage.jpg"

I want to parse the string and just return the image: theimage.jpg

View Replies View Related

ASP And Input Parsing

I am looking for something similar to "preg_match" and "preg_match_all" in PHP.

I have searched the forum with no luck. I hope you are able to give me some pointers

Basically I want to match some text from a form and loaded it into new variables making use of regular expressions. the text comes form a textarea input type. Code:

View Replies View Related

Parsing Time

I have to display time in HH:MM AM/PM format. My date/time values are being pulled from a MS SQL database that is in smalldatetime field format.

I need to take a date such as "5/5/2006 7:35:00 AM" and display it as "7:35 AM". I can't seem to find how to parse this or display only the hours, minutes, and AM/PM designator.

View Replies View Related

Parsing Csv Files

I am looking for code for parsing csv files. The files I am parsing can be:

-pure csv: a,b,c
-quotes: 'a','b', 'c'
-quotes or non-quotes: 'a',,'b','c'
-with or without carriage return

Can anybody help me with this one?

View Replies View Related

Parsing-out XML Data...how?

I've found the MS XML parser as shown in below code. I'm just attempting to display the various ListNames in the ListStruc section of an incoming XML file (generated by the SelectLists API call). On the line with the astrik though, I'm getting the error "Object required: '[object]'. Is this because I don't have this parser installed? (I'm running XP Pro w/IE 6.0.)

Also, I'm not sure about the line xmlDoc.load(request), shouldn't it be xmlDoc.load(xml.responseText)? Code:

View Replies View Related

Parsing A String

I have a string problem that I would like to resolve. I am submittting multiple values to a form that is posted to query string. The string looks like this:

http://localhost/csiapp/test.asp?Submit=Submit&menu2=436%A0AbdallahFadi&menu2=430%A0AdkinsAngela&menu2=425%A0AleemAmina

So what I need to do is to take the id number of the user and put it into an array so I can later insert it into the database. So for the example above, I need an list that looks like this:

436, 430, 425

Once I have this list I can make it an array and then put it into the database.

My question is how do I make the string above look like the string below? I know that I need to use some function of asp to parse the name oout of the string, but i just don't know exactly what....

View Replies View Related

Form Parsing

I have searched on parsing some strings but I don't know how to apply it to my string. The string I am parsing looks like: $$1,0,0,0,0,0,7,8,0,0,0,0,13,14,0$$None
What I am looking to do is get the non-zero numbers.

I will then use these for another portion of the page where checkboxes corrosponding to those numbers will appear and the zeero numbers will not. The string after the last two $$ must be used as well for text on the page. I can change the string to look however
is easiest to parse.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved