SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-28-2005, 06:19 PM
dntchaseme dntchaseme is offline
SEO Junior
 
Join Date: Oct 2005
Posts: 5 dntchaseme is on a distinguished road
Reflect a Remote Input Box

I need to create a simple page or script of some sort that will look at this line:

<INPUT type=hidden name="PriceSell3" value="214.00">

The line above is located on a remote webpage. I do not own this webpage. I need to monitor the value of this input box so that I get an email or maybe a popup window each time the value changes.

Any help would be appreciated,

Imran Hashmi
www.visionstudio.co.uk
www.seo-professional.co.uk 0044-7969012441
Reply With Quote
  #2  
Old 01-30-2006, 07:40 PM
ERE Breckenridge ERE Breckenridge is offline
SEO Junior
 
Join Date: Jan 2006
Posts: 18 ERE Breckenridge is on a distinguished road
Is that legal? Isn't that scraping.
__________________
Search all Breckenridge Colorado Real Estate including Ski Homes and Condos.
Reply With Quote
  #3  
Old 02-02-2006, 06:31 AM
BSolveIT's Avatar
BSolveIT BSolveIT is offline
SEO
 
Join Date: May 2005
Location: England, UK
Posts: 621 BSolveIT has a spectacular aura aboutBSolveIT has a spectacular aura about
Send a message via MSN to BSolveIT
Thumbs up Answer - works in ASP

Hello!

I have the answer, but it's an ASP based solution. You could convert it to javascript though, without too much trouble.

In the following code sample, i'll assume the remote url is:
http://www.example.com/somepage.htm

Code:
URL = "http://www.example.com/somepage.htm"
Dim objXMLHTTP
Set objXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")
objXMLHTTP.Open "GET", URL, False
objXMLHTTP.Send

IF objXMLHTTP.statusText = "OK" THEN
	html = lcase(objXMLHTTP.responseText)
	TheStart = InStr(1, html, "name=" & CHR(34) & "PriceSell3" & CHR(34)) + 25
	TheEnd = InStr(TheStart, html, CHR(34))
	Length = TheEnd - TheStart
	GotValue= float(Mid(html,TheStart,Length)) 
END IF
Set objXMLHTTP = nothing


So, having got the value you want into your variable "GotValue", it's up to you what you want to do with it?

This solution doesn't involve any security context issues whatsoever. It retrieves the html source of the page using XML, which we can then work with as a text stream.

Easy!

Last edited by BSolveIT : 02-02-2006 at 11:56 AM.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 08:09 PM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.