[text =show=3DF]crlf=3D[unurl]%0D%0A[/unurl][/text]
[text =show=3DF]PageCapture00=3D[tcpconnect =host=3Dwww.x-rates.com&port=3D80&ssl=3DF][!]
[/!][tcpsend skipheader=3DT]POST /d/AUD/table.html =HTTP/1.0[UnURL]%0D%0A[/UnURL][!]
[/!]USER-AGENT: Mozilla/4.0 =(compatible; MSIE 5.01; Windows NT =5.0)[UnURL]%0D%0A[/UnURL][!]
[/!][UnURL]%0D%0A[/UnURL][!]
[/!][UnURL]%0D%0A[/UnURL][!]
[/!][/TCPSend][!]
[/!][/tcpconnect][/text]
[text =show=3DF]PageCapture01=3D[Middle StartAfter=3D[url]<table width=3D350 border=3D0 cellpadding=3D1 cellspacing=3D0 =bgcolor=3D#999999>[/url]&endbefore=3D[url]historical =graphs[/url]][PageCapture00][/Middle][/Text]
[Table =name=3Dremovespace&fields=3Dfrom,to]
%26nbsp%3B%26nbsp%3B%0A%20%20%26nbsp%3B
%26nbsp%3B%0A%20%20%26nbsp%3B:
%26nbsp%3B%0A%0A%0A%20%20%26nbsp%3B%26nbsp%3B=
[/Table]
[!] =-------------- DETERMINE THE RATES -------------- [/!]
UKXR=3D[text show=3DT]UKXR=3D[Listwords words=3D[middle =EndBefore=3D:][convertwords table=3Dremovespace][url][removehtml][Middle =StartAfter=3DBritish =Pound][PageCapture01][/Middle][/removehtml][/url][/convertwords][/middle]&=amp;delimiters=3D:][showif =[index]=3D1][word][/showif][/ListWords][/text]<BR>
USXR=3D[text =show=3DT]USXR=3D[Listwords words=3D[middle EndBefore=3D:][convertwords =table=3Dremovespace][url][removehtml][Middle StartAfter=3DAmerican =Dollar][PageCapture01][/Middle][/removehtml][/url][/convertwords][/middle]=&delimiters=3D:][showif =[index]=3D1][word][/showif][/ListWords][/text]<BR>
NZXR=3D[text =show=3DT]NZXR=3D[Listwords words=3D[middle EndBefore=3D:][convertwords =table=3Dremovespace][url][removehtml][Middle StartAfter=3DNew Zealand =Dollar][PageCapture01][/Middle][/removehtml][/url][/convertwords][/middle]=&delimiters=3D:][showif =[index]=3D1][word][/showif][/ListWords][/text]<BR>
EUXR=3D[text =show=3DT]EUXR=3D[Listwords words=3D[middle EndBefore=3D:][convertwords =table=3Dremovespace][url][removehtml][Middle =StartAfter=3DEuro][PageCapture01][/Middle][/removehtml][/url][/convertword=s][/middle]&delimiters=3D:][showif =[index]=3D1][word][/showif][/ListWords][/text]<BR>
On =23/05/2012, at 12:30 PM, Diane Blackmore wrote:
Hi
Is there =a WebDNA way of pulling the contents of a DIV from a URL that is on =another domain?
There are ways of doing thins =with jQuery/AJAX, but not from another domain due to that 'same origin =policy'. PHP has a method that goes something like =this;
<?php
$link =3D file_get_contents("http://www.domain.com");
$file =3D strip_tags($link, "<div>");
preg_match_all("/<div/>(?:[^<]*)<\/div>/is", $file, $content);
=print_r($content);
?>
Obviously =[include] requires the file be on the same domain/directory, and I can't =think of any other way of doing =this.
Ideas??
=
Thanks in advance,
<CohesionSig_Diane12.gif>
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
=--Apple-Mail=_FA28BEA7-DF2C-4497-B73A-EA7326096259--
Associated Messages, from the most recent to the oldest: