Complicated HTML Problem - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36) +---- Forum: Website Development (https://www.supportforums.net/forumdisplay.php?fid=43) +---- Thread: Complicated HTML Problem (/showthread.php?tid=3779) Pages:
1
2
|
Complicated HTML Problem - RPicard - 12-19-2009 This is sort of an "under the wraps" idea because I don't want anyone to steal it (yes it's that good). Basically I need to use HTML to get certain text from one page, and print it on another. I know the <span id"---"> of the text that I need on the remote page. Is there any way I can do this? RE: Complicated HTML Problem - Grizzly - 12-19-2009 Is this just for a static html page? Or will you have any PHP etc. on it? RE: Complicated HTML Problem - RPicard - 12-19-2009 It's my understanding that the code needs to be all HTML. But I can try PHP. edit- 500th posts! RE: Complicated HTML Problem - Grizzly - 12-19-2009 I'm just trying to see if it'll open any vulnerabilities if you use XSS that's why I was asking that. Is it on the same server/webpage? Or are you wanting to pull this from a different site? RE: Complicated HTML Problem - RPicard - 12-19-2009 (12-19-2009, 02:19 PM)Grizzly Wrote: I'm just trying to see if it'll open any vulnerabilities if you use XSS that's why I was asking that. Is it on the same server/webpage? Or are you wanting to pull this from a different site? I'm pulling it from a different site. RE: Complicated HTML Problem - Gaijin - 12-19-2009 You could use PHP "file_get_contents" to get source of the other website, and then preg_match or js dom to find the <span id.... and echo/document.write it on the second page. RE: Complicated HTML Problem - RPicard - 12-19-2009 (12-19-2009, 02:24 PM)Master of The Universe Wrote: You could use PHP "file_get_contents" to get source of the other website, and then preg_match or js dom to find the <span id.... I'll try it out. It needs to be pure HTML. Any more ideas? RE: Complicated HTML Problem - Gaijin - 12-19-2009 There is no way you can load any type of content from other servers or files with html only, you will need to use php or javascript... with php the output will be html only..... RE: Complicated HTML Problem - RPicard - 12-19-2009 (12-19-2009, 02:40 PM)Master of The Universe Wrote: There is no way you can load any type of content from other servers or files with html only, you will need to use php or javascript... What's my option with Javascript? RE: Complicated HTML Problem - Gaijin - 12-19-2009 Ajax would do it, http://www.w3schools.com/Ajax/Default.Asp |