Read An External Page

I'm no ASP/VBScript guru, but I need to read a page from another domain, extract some information, and format it inside one of our own pages at the office.Just to make one thing clear: I'm not ripping off someone else's page. The external site handles employment ads, and we're supposed to include our own ads from there.

Frames or iframes are out of the question, since we use HTML 4.01 Strict. The markup on the external page is horrible (layout tables, presentational markup, etc.). I want to read the external page into a string, and then extract the actual ad information and format that on our page. This would be very easy in PHP, using fopen(), and I assume there is something similar for ASP/VBScript.

View Replies


ADVERTISEMENT

Cookie Via External ASP Page?

I have 3 domains, A, B, and C.

I want to put the same JS tag on sites A and B that call an asp page on domain C.

The tag would look like this:
<script language="JavaScript1.1" src="http://secure.C.com/Demo/Intercept.asp"></script>

The ASP page on domain C would write a cookie, in theory the cookie should have permissions for read and writing from site C.
Something like this:
Response.Cookies("Name").Expires = Date() + 365
Response.Cookies(SurveyName).Domain = ".C.com"
Response.Cookies(SurveyName).Path = "/"

In firefox the result is exactly as planned, a cookie is set when a user goes to sites A or B via site C, and using this same approach, I can read the cookie from domains A and B via the JS tag calling the script on site C.

IE does not like this. Sometimes it doesn't even write the cookie, other times the cookie has to be there b/c of resulting actions taken, but when viewing the list of cookies, it's no where to be found. Additionally, I don't seem to be able to read the cookie the same way as firefox is letting me.

I know this can be done, I went to foodnetwork.com (yeah I love to cook), and saw that they were using a metric service that was calling a back end script from the vendors domain, and setting a cookie from that vendors domain, all without the user seeing anything or leaving the foodnetwork.com domain. I've looked at the resulting JS code that is returned from these vendor back end pages, and it has nothing to do with the cookie being set, it's definitely happening server side.

View Replies View Related

Load External Web Page

I want to load a web page from another server via http into an array or variable, parse it, and pull some data using plain ol ASP / VBScript.an example page to pull:

http://sports.espn.go.com/mlb/players/profile?playerId=4245

I search quite a bit for this info but so many results and not enough knowledge in this area of ASP.

View Replies View Related

Communicating With External App/Device From ASP Page

I have a project in which I need to send info to/get info from a RS-232 port of the server depending on the client clicks on a asp web page.

How can I access a serial port from the ASP code itself. I tried to use MSCOMM... But it is not working. Is there any way to do this?

As an alternative mechanism, we planned to shift all the communication related stuff to Visual C++ application which sits as a service in the Server and do the necesary communication stuff whenever it receives any request from an ASP page. We planned to use socket communication between ASP page and VC++ application if we go with this way. What are the other ways that a VC application and a ASP application can talk to each other...?

View Replies View Related

ASP Read The Execl Cell's Data, Web Page Created From Excel2000 -- Save As Web Page

I created a web page from Excel2000, using "Save as web page..."...Publish
function. then, I moved htm file to my IIS web server. Then I added a form control, and submit button.

How can get the data on the excel file using ASP from server side?
For example, the value of Cell(1,2), Cell(2,3)....

View Replies View Related

Can An ASP Page Read A Cookie Written By A PHP Page?

I am working with a developer, on two portions to a site, he is working in PHP and my work is done in ASP.

Is it possible for my pages to request data from a cookie that was written by his pages that are PHP but residing on the same server? Just want to make sure before I spend too much time planning out the development on my end.

View Replies View Related

Read A Web Page

I am building a link exchange system - It works but I have to validate each recipricol link individually. I want to modify it so that it can read a web page and determine whether the website has added a recipricol link to my site before I add theirs.

View Replies View Related

Allow Users To Read And Set CSS From Web Page

I have an ASP site where the majority of the site style is set in CSS but certain aspects such as font and background colors for sections is set by the user in a web page, with the data being pulled from an Access database.

It should be noted that the site is an open source forum and the user mentioned above is the admin for the site - so this only means limited access to this functionality but allows the admin to customise their forum for their users easily, whilst keeping them from the more crucial aspects of the CSS which afect table layouts etc.

The question has been asked - is it possible to not have to split the CSS like this (some in Db some in CSS sheet) and instead include it all in a style sheet?

I guess what I am asking is - is it possible to read and write to the style sheet from ASP, and if so how would you identify each CSS ID or Class?

View Replies View Related

Read A Remote Page

here is my code:

set objXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP")
objXMLHTTP.open "GET", "http://www.xxx.com/index22.asp", false
objXMLHTTP.send ""
intStatus = objXMLHTTP.status
response.Write(intStatus)

let say the addres is not exist, but the web server will auto redirect the page to a user customize page, and the object track the page as 200. Is there any way to track the error even the page is redirect to a 404 page ?

View Replies View Related

Read From A Dynamic Page

What I need to do is use asp to read the contents of a web page (that is generated on another server), put the html in to a sting, and then take action based on the contents of the string. I can probably do all of the sring manipulation myself, but want to know if I can open the page and read the first 200 characters in to a variable that I can then manipulate.

View Replies View Related

Can't Read Or Write To A Page

I've just re-installed my PC with IIS (WinXP w/ service pack2) and now when I try to access or write data to any .asp site locally I get this error.

'Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Could not use '(unknown)'; file already in use.

View Replies View Related

How To Read/write To Csv From Web Page

I have a csv file that has 2 columns - Name and Team. I want to display both of these on a page in seperate dropdown boxes..Ideally I would then like to have an option where the user of the page can click a button to change which team an employee is a part off, in effect overwriting that line of data but not deleting everything else in the file

The code below lets me see each column from the csv file on a page in a separate dropdown box but I don't think I have the logic right to do what I need..I've checked Google and w3schools but I must not be searching for the correct thing as I can't find a way to do this... Code:

View Replies View Related

How To Read The Contents Of An HTML Page In ASP

i want to read an HTML page in ASP n i m not able to do so.

View Replies View Related

Read In Page On Diff Domain

i have a page that i need to load in an iframe that is on a diff domain (sub domain), i need to get the doc height of the page so that i can adjust the iframes height (so there will be no scroll bars).the problem with that is even though its on the same sever, because it is on a subdomain the browser sees it as different and restricts access to it (makes sense).

so, what we can do is have php read in the page with curl and parse it out in the iframe. that looks like <iframe src="reader.php?page=subdomain.pagename.html">but, we cannot use php on this server so i was wondering if there is an asp solution that can do the same thing (vb script). basically, i just need that asp page to grab the page on the sub domain, read it in and then output it.

View Replies View Related

FROM Statement Should Read Menu In Page

I have a dB with several tables, in my page the visitor should have to choose which table in the dB should be selected. here is my code:

View Replies View Related

Read And Copy Html Page From Another Server

Is it possible to do the following in asp: To read an html page from a server (not mine) every 5 minutes and copy it to my server. The html page just contains a list of numbers.

View Replies View Related

How To Read An SQL Server Into A ASP Page And Then Change, Add, Delete And Write It Back To SQL Server

I need to read a SQL Server table into a Web Page and within the Web
Page to permit my users to make changes to the records, delete or add
new records and then save the entire contents back to the SQL Server
table back.

The functionality I am looking is almost the same as In the SQL
Enterprise Manager whereby I can choose a table open the table and
then return all rows and I can maintain the same and save it back to
the SQL Server table. I want almost a similar web interface to such a
functionality.

Even if not a generic functionality as the SQL Enterprise Manager
table maintenance appreciate if somebody can share the code with a
sample how I can do it in ASP pages + T-SQL if need be.

View Replies View Related

External Xml

how do i include an external xml file, i take it i cant use <link> like with stylesheets.

View Replies View Related

Can I Combine ASP With External CSS?

I am trying to display a random background image for a webpage. I found this code to do it

<%
'Defines the number of background images you have
Const NUMBER_OF_IMAGES = 2

'Initiates the randomize function
Randomize

'Sets a variable: this will be used to hold the
'random generated value
Dim intImageNumber

'This is where we create the random number
intImageNumber = Int((NUMBER_OF_IMAGES * Rnd) + 1)
%>

Modify the body tag to accept the random number. In this case we are going
to place it within the image so as to facilitate the selection of a random
image. Code:

View Replies View Related

Calling External Sub

Im wanting to call a sub funvtion on another page from vbs that is:

<SCRIPT LANGUAGE=vbscript RUNAT=Server>
sql="exec SomeStoredProc"
call DoConnection(sql)
Response.write(recordset.getstring)
call DBClose()
</SCRIPT>

the DoConnection sub is in another page called MyDBConnection in a folder call Common.

I know that I can use serverside includes and embed my con in the page using <%%> but I want the use runat server How can I make call to a function in an external page?

View Replies View Related

External Script

Is there any way I can link to a EXTERNAL (on a different server) VBS script or a include file in an ASP document??

View Replies View Related

External Database

I would like my localhost website to connect to a Access Database on the web.Is this possible and if possible how do I do it?

View Replies View Related

External VBScript

Is it possible to run an external VBScript in an ASP page. ie. A VBScript that will run on it's own outside of ASP.

I have a VBScript that performs a function,there is no user I/O. I want to use this script both on it's own and from within an ASP page.

View Replies View Related

Drop Down Box External File

how can you make a drop down box from an external file?

View Replies View Related

Connecting To External Xml File

i am trying to write a script to parse an external xml file, but am having
problems... the problem i think has to do with me trying to do
Response.Write(xmlDoc.transformNode(xslDoc)) before the xml is fully loaded.
The link to the xml file is valid. Code:

View Replies View Related

Searching An External Website

I have multiple websites on my Intranet. My current search engines can search within their own environment. However, I would like to have one search page, which retreives results from all environments.

My first task is to connect, retreive and display results from a second server (through http). Then I will need to scrub the results to display in a unique template.

View Replies View Related

Parse An External XML File

I have a site that pulls in XML data from an external third party and I need to parse it in my ASP page.

Could someone please suggest examples or online resources where I might learn how to do this? Everything I am Googling is confusing me with DTDs, XSLTs etc.

View Replies View Related

SubFunction In External File

Is it possible to store subfunctions in an external file and then include that file ASP files requiring use of its contents?

View Replies View Related

Customising External .js Files

can you use asp to customise external js files e.g.

<script src="fred.js"></script>

where fred gets the page id and changes an image in the .js file to sui....

View Replies View Related

Include From External Server

I'm looking for a way to include a file from another server in asp page.using #include won't work because it's not on the same server. In php, you can simply include(), and it doesn't care whether or not it's on the same server, is there a similar function in asp?

View Replies View Related

External Viewer Application

i have an asp page to list the result of search page.when i click on a link(href) , which is a 3D CAD file located in a directory ,it should be opened in a new page.This page shld support a 3D cad viewer in built in it.how to inbuild a CAD viewer in the HTML page?and view the link in that page

the code goes like this :

<TD> <a href ="prev.html" target = "new window"> <%=Rs(k).Value %> </TD>

This Rs(k).value is a link to the 3D file (eg. "C:Directoryfile.dwg").When this file is clicked,the value of Rs(k).value has to be passed to the "prev.html" page and the file must be opened with "3D file viewer".How to inbuild the CAD viewer into my HTML page and how to pass the Rs(k).value to that page?

View Replies View Related

External Data Acessing

i need to create a site with a feed back system. one of my friend said to me ASP has nothing to do with this project. is it possible to do this using ASP ?if yes then what r the major functions that i should use.

View Replies View Related

Import From External Source

My company recently hired a third party to handle phone orders during off hours. The third party wants to be able to update our database through their own interface. We are running SQL Server 2000 on Windows 2000 Server with ASP.NET 1.1. The number one thing that come to mind is security for credit cards. Perhaps some kind of web service, xml, etc.? Does anyone have any suggestions on the best way to handle this?

View Replies View Related







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