Follow us on Twitter!
Capitalism is an Island of wealth in a sea of poverty
Thursday, April 17, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 17
Guests Online: 14
Members Online: 3

Registered Members: 82822
Newest Member: TheBunter
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:
Newbie
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


img337.imageshack.us/img337/7336/shadowflameredshadowjr3.jpg
Author

RE: html link if/then

fashizzlepop
Member



Posts: 482
Location: Old folks home.
Joined: 08.04.08
Rank:
Moderate
Posted on 22-11-10 06:12
So you are using a PHP script 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~


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

RE: html link if/then

yours31f
Member



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

document.getElementById('content'Wink.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.


img259.imageshack.us/img259/3713/sigr.png

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

RE: html link if/then

spyware
Member



Posts: 4192
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.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
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
[/s
http://bitsofspy.net