Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Complicated HTML Problem
#1
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?
Robert Picard
http://www.rpicard.net
#2
Is this just for a static html page? Or will you have any PHP etc. on it?
Do you know how to make games? Do you know 3d Modeling? If so then visit
[Image: logo.png]
#3
It's my understanding that the code needs to be all HTML. But I can try PHP.

edit- 500th posts!
Robert Picard
http://www.rpicard.net
#4
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?
Do you know how to make games? Do you know 3d Modeling? If so then visit
[Image: logo.png]
#5
(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.
Robert Picard
http://www.rpicard.net
#6
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.
#7
(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?
Robert Picard
http://www.rpicard.net
#8
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.....
#9
(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?
Robert Picard
http://www.rpicard.net
#10
Ajax would do it, http://www.w3schools.com/Ajax/Default.Asp


Possibly Related Threads…
Thread Author Replies Views Last Post
  Contact form for HTML Crystal 36 10,918 05-24-2013, 05:51 PM
Last Post: Akai
  Helping with HTML and CSS Ambitious 0 696 08-28-2011, 01:18 PM
Last Post: Ambitious
  Anyone have any free HTML resources? Scalise 7 1,771 06-01-2011, 04:00 AM
Last Post: !LoL
  Mr. Doob :: HTML 5 Examples Gaijin 10 2,571 02-17-2011, 12:33 AM
Last Post: Gaijin
  My first HTML / CSS project. Jordan L. 11 1,706 04-09-2010, 09:44 AM
Last Post: Jordan L.

Forum Jump:


Users browsing this thread: 9 Guest(s)