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?
Is this just for a static html page? Or will you have any PHP etc. on it?
It's my understanding that the code needs to be all HTML. But I can try PHP.
edit- 500th posts!
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?
(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.
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.
(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....
and echo/document.write it on the second page.
I'll try it out.
It needs to be pure HTML. Any more ideas?
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.....
(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...
with php the output will be html only.....
What's my option with Javascript?