Join us at IRC!
Become the change you seek in the world. - Gandhi
Thursday, May 24, 2012
Navigation
Members Online
Total Online: 31
Web Spiders: 15
Guests Online: 30
Members Online: 1

Registered Members: 70189
Newest Member: CrownClown
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

html link if/then

shadow31
Member



Posts: 32
Location:
Joined: 25.11.07
Rank:
Apprentice
Posted on 22-11-10 04:56
hey everyone,

basically what I want this link to do is check to see if the src of a iframe within the website is equal to a given string and do something according to that. I just don't know the correct syntax for accessing information within an Iframe.

I know the overall syntax will look a little like this

<?=$page == "home" ? "class='active'" : ""?>

but I just dont know how to access the src of the iframe.
the iframe has the id "content" if that has any impact. I was having a hard time finding the right wording for what I want this to do so google searches were pretty ineffective for me. If someone could shed some light or just point me to the link i probably overlooked that would be awesome



Author

RE: html link if/then

fashizzlepop
Member



Posts: 482
Location: Old folks home.
Joined: 08.04.08
Rank:
Uber Elite
Posted on 22-11-10 06:12
So you are using a PHP scblockedript to pull down a web page and in that you want to find what the src of the iframe is?


"The definition of insanity is doing the same thing over and over again and expecting different results.”
~Albert Einstein~


fashizzlepop@gmail.com http://csullivan.codeinspire.net/
Author

RE: html link if/then

yours31f
Second to one



Posts: 1678
Location: Dallas Texas
Joined: 27.04.07
Rank:
Satan
Posted on 22-11-10 06:18
I'd recommend JS as PHP is server side.

document.getElementById('content';).src = this;


Debugging is what programmers do to beta software to make it take up more room on your hard drive if it is running too efficiently.



yours31f@live.com yours31f@yahoo.com rpwd.info
Author

RE: html link if/then

spyware
Member



Posts: 4190
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 22-11-10 19:43
I'd use PHP, regex to grab the iframe's URL, then cURL/some other way to grab the source of that URL.




"The chowner of property." - Zeph
“Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.”
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
http://bitsofspy.net
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.