Can anybody tell me how to get source code of page in iframe? (popup
window is clickable image).
When I right click on this popup border to view source, i see just as
follows
<html>
<head>
<title>New offer!</title>
</head>
<body style="margin-left: 0%; margin-right: 0%; margin-top: 0%;
margin-bottom: 0%">
<iframe scrolling="no" marginwidth="0" marginheight="0 " frameborder="0"
height="100%" width="100%"
src="http://ad.yieldmanager .com/iframe3?2gIAAFW kAAATzgIA11UBAA AANAAAAA0AAgABE gACAAHSJgIAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAABZAA AAAAAAAFkAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAFCsI9Z8u8w G6XUHnMRiV9-Tu6-laFxCGFkmTVwAAA AA=,,http://www.findarticle s.com/p/articles/tn_comp/mi_zdpcm/">
</iframe>
</body>
</html>
When i copy iframe url in browser and try to get this page, it just
show empty page:
<html>
<body>
<!-- Delivery record decoding failed with reason = 4 (Query string
expired) -->
</body>
</html>
As far I know, that is a dynamically created iframe, and its difficult
to get it source because the Iframe source comes from a different
domain as the original page. Is there some script-based solution (PHP,
javascript) to retrieve and display target iframe source like this?
Thanks. 12 11147
mistral wrote:
Can anybody tell me how to get source code of page in iframe? (popup
window is clickable image).
When I right click on this popup border to view source, i see just as
follows
<html>
<head>
<title>New offer!</title>
</head>
<body style="margin-left: 0%; margin-right: 0%; margin-top: 0%;
margin-bottom: 0%">
<iframe scrolling="no" marginwidth="0" marginheight="0 " frameborder="0"
height="100%" width="100%"
src="http://ad.yieldmanager .com/iframe3?2gIAAFW kAAATzgIA11UBAA AANAAAAA0AAgABE gACAAHSJgIAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAABZAA AAAAAAAFkAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAFCsI9Z8u8w G6XUHnMRiV9-Tu6-laFxCGFkmTVwAAA AA=,,http://www.findarticle s.com/p/articles/tn_comp/mi_zdpcm/">
</iframe>
</body>
</html>
When i copy iframe url in browser and try to get this page, it just
show empty page:
<html>
<body>
<!-- Delivery record decoding failed with reason = 4 (Query string
expired) -->
</body>
</html>
As far I know, that is a dynamically created iframe, and its difficult
to get it source because the Iframe source comes from a different
domain as the original page. Is there some script-based solution (PHP,
javascript) to retrieve and display target iframe source like this?
Thanks.
There are lots of tools out there fo acheiving this. I think firefox
has built-in support for it. If not, then it'll be the Web Developer
Extension (by Chris Pederick) that I use, which is (IMHO), an essential
piece of kit, and I can't imagine how I ever lived without it. You can
use this to view the 'generated source' as opposed to the static source
that you will see when you click on 'View Source', which is a hard copy
of the original, that never changes.
Also, firefox has a JavaScript console that you could utilise, although
I use a handy extension called Firebug, which lets you do all sorts of
things, such as inspect the DOM. You could try something like this from
the Firebug console:
var newWindow = open("","");
var theFrame=frames[0].cloneNode(true );
newWindow.appen dChild(theFrame );
This should open a new window, take the first frame in your document,
clone it, and place it into the new window document. I think it might
only work with an iframe however, so if they are genuine frames, you
might need move the frame into a frameset on the new document (which I
will leave for you to figure out).
You can also combine the commands into a single line, and prepend
'javascript : ' to it, and then stick it into the address bar, like
this:
javascript : var newWindow = open("",""); var
theFrame=frames[0].cloneNode(true ); newWindow.appen dChild(theFrame );
This will call upon the JavaScript engine to parse the code you just
sent it. Alternatively, you can do it one line at a time.
However, my recommendation is still:
Firefox 2.0 - http://www.getfirefox.com
Web Developer Extension - http://chrispederick.com/work/webdeveloper/
Firebug - https://addons.mozilla.org/firefox/1843/
If you do take the Firefox route, or already have it installed, I
recommend you make another user profile to use for your development
add-ons as you will almost certainly end up using more than the ones I
suggested, and it will bog down your standard browsing. Basically, try
not to use the default profile if you can. Keep business separate from
pleasure. :)
Hope this helps.
Best wishes.
Daz.
"""Daz wrote:
"""
mistral wrote:
Can anybody tell me how to get source code of page in iframe? (popup
window is clickable image).
When I right click on this popup border to view source, i see just as
follows
<html>
<head>
<title>New offer!</title>
</head>
<body style="margin-left: 0%; margin-right: 0%; margin-top: 0%;
margin-bottom: 0%">
<iframe scrolling="no" marginwidth="0" marginheight="0 " frameborder="0"
height="100%" width="100%"
src="http://ad.yieldmanager .com/iframe3?2gIAAFW kAAATzgIA11UBAA AANAAAAA0AAgABE gACAAHSJgIAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAABZAA AAAAAAAFkAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AAAAAFCsI9Z8u8w G6XUHnMRiV9-Tu6-laFxCGFkmTVwAAA AA=,,http://www.findarticle s.com/p/articles/tn_comp/mi_zdpcm/">
</iframe>
</body>
</html>
When i copy iframe url in browser and try to get this page, it just
show empty page:
<html>
<body>
<!-- Delivery record decoding failed with reason = 4 (Query string
expired) -->
</body>
</html>
As far I know, that is a dynamically created iframe, and its difficult
to get it source because the Iframe source comes from a different
domain as the original page. Is there some script-based solution (PHP,
javascript) to retrieve and display target iframe source like this?
Thanks.
---------
There are lots of tools out there fo acheiving this. I think firefox
has built-in support for it. If not, then it'll be the Web Developer
Extension (by Chris Pederick) that I use, which is (IMHO), an essential
piece of kit, and I can't imagine how I ever lived without it. You can
use this to view the 'generated source' as opposed to the static source
that you will see when you click on 'View Source', which is a hard copy
of the original, that never changes.
Also, firefox has a JavaScript console that you could utilise, although
I use a handy extension called Firebug, which lets you do all sorts of
things, such as inspect the DOM. You could try something like this from
the Firebug console:
var newWindow = open("","");
var theFrame=frames[0].cloneNode(true );
newWindow.appen dChild(theFrame );
This should open a new window, take the first frame in your document,
clone it, and place it into the new window document. I think it might
only work with an iframe however, so if they are genuine frames, you
might need move the frame into a frameset on the new document (which I
will leave for you to figure out).
You can also combine the commands into a single line, and prepend
'javascript: ' to it, and then stick it into the address bar, like
this:
javascript: var newWindow = open("",""); var
theFrame=frames[0].cloneNode(true ); newWindow.appen dChild(theFrame );
This will call upon the JavaScript engine to parse the code you just
sent it. Alternatively, you can do it one line at a time.
However, my recommendation is still:
Firefox 2.0 - http://www.getfirefox.com
Web Developer Extension - http://chrispederick.com/work/webdeveloper/
Firebug - https://addons.mozilla.org/firefox/1843/
If you do take the Firefox route, or already have it installed, I
recommend you make another user profile to use for your development
add-ons as you will almost certainly end up using more than the ones I
suggested, and it will bog down your standard browsing. Basically, try
not to use the default profile if you can. Keep business separate from
pleasure. :)
Hope this helps.
Best wishes.
Daz.
----------
Thank you for advice, Daz. This tools are for Firefox browser,
unfortunately. I still use IE. Perhaps it's possible with some server
side script (PHP or CGI), that will parse this page?
Regards,
Mistral
Can anybody tell me how to get source code of page in iframe? (popup
window is clickable image).
I'm not sure if you're trying to programmaticall y achieve this,
it's not clear from the question, or if you just have a particular
iframe and you want to figure out how to look at the source of
it so you can figure out what's going on in there (or something).
If that is the case, have you tried using something like Fiddler?
It monitors all your http traffic. As long as you've cleared cache
first (Ctrl+shift+X in Fiddler) then each file requested will be
visible in there. You just highlight the file request you want, click
on the "Session Inspector" tab, then on the "TextView" tab below
it, then click on "View in Notepad" and the file opens - Exactly as
it was downloaded. I don't think I could do my job without Fiddler:) http://www.fiddlertool.com
It's written by someone at Microsoft and freeware. You need the
..NET framework installed, but it'll grab that for you if you don't
have it.
Of course if I'm entirely wrong and you're looking for some JS to
do this, then cross-domain security is going to fight you all the way.
"""dd wrote:
"""
>Can anybody tell me how to get source code of page in iframe? (popup window is clickable image).
I'm not sure if you're trying to programmaticall y achieve this,
it's not clear from the question, or if you just have a particular
iframe and you want to figure out how to look at the source of
it so you can figure out what's going on in there (or something).
If that is the case, have you tried using something like Fiddler?
It monitors all your http traffic. As long as you've cleared cache
first (Ctrl+shift+X in Fiddler) then each file requested will be
visible in there. You just highlight the file request you want, click
on the "Session Inspector" tab, then on the "TextView" tab below
it, then click on "View in Notepad" and the file opens - Exactly as
it was downloaded. I don't think I could do my job without Fiddler:)
http://www.fiddlertool.com
It's written by someone at Microsoft and freeware. You need the
.NET framework installed, but it'll grab that for you if you don't
have it.
Of course if I'm entirely wrong and you're looking for some JS to
do this, then cross-domain security is going to fight you all the way.
-------------------
I just want to look at the html source of a few particular iframes, so
need way get it. I have not tried Fiddler yet.
But I find some tool that can do this, it seems - 'IE Source'. It's
browser helper object for IE, will try it first. http://www.softcab.com/ie_source/index.php
thanks,
Mistral
mistral wrote on 16 jan 2007 in comp.lang.javas cript:
I just want to look at the html source of a few particular iframes,
rightclick -source
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
"""Evertjan . wrote:
"""
mistral wrote on 16 jan 2007 in comp.lang.javas cript:
I just want to look at the html source of a few particular iframes,
rightclick -source
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
------
Not possible.. You canno get source without some special tool since it
just flash or gif image, dynamically generated iframe that comes from a
different domain as the original page.
Mistral
mistral wrote on 17 jan 2007 in comp.lang.javas cript:
Evertjan. wrote:
>mistral wrote on 16 jan 2007 in comp.lang.javas cript:
I just want to look at the html source of a few particular iframes,
>rightclick -source
Not possible.. You canno get source without some special tool since it
just flash or gif image,
So your Q is wrong, you asked for the "html source".
dynamically generated iframe that comes from a
different domain as the original page.
It does not matter how it is generated, meseems.
If it is not from the same domain,
it has either to have a html source or it is not html.
=============== =============== =============== ==============
Let me test:
<iframe href='http://cnn.com/'></iframe>
rightclick -source YES!!!
<iframe src=
'http://i.a.cnn.net/cnn/.element/img/1.5/ceiling/nav.rt.end.bg_o ver.gif'>
</iframe>
No html
rightclick -NO source
stands to reason.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
"""Evertjan . wrote:
"""
mistral wrote on 17 jan 2007 in comp.lang.javas cript:
>Evertjan. wrote:
mistral wrote on 16 jan 2007 in comp.lang.javas cript:
I just want to look at the html source of a few particular iframes,
>rightclick -source
Not possible.. You canno get source without some special tool since it
just flash or gif image,
>So your Q is wrong, you asked for the "html source".
dynamically generated iframe that comes from a
different domain as the original page.
>It does not matter how it is generated, meseems.
If it is not from the same domain,
it has either to have a html source or it is not html.
=============== =============== =============== ==============
Let me test:
<iframe href='http://cnn.com/'></iframe>
rightclick -source YES!!!
<iframe src=
'http://i.a.cnn.net/cnn/.element/img/1.5/ceiling/nav.rt.end.bg_o ver.gif'>
</iframe>
No html
rightclick -NO source
stands to reason.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
--------------
well. Let's try this: got to the following links: http://www.findarticles.com/p/articl...34/ai_n8967611 http://findarticles.com/p/articles/tn_comp
you should get popup from "http://ads-rm.looksmart.co m - New offer!..."
When right click on this ads, it just show image source: http://spe.atdmt.com/b/NFNFXNFLXNFX/...20300_A_70.gif
Try get they html source code use IE (not Firefox) and explain me how
to do this.
It interesting that IE popup blocker bar show "Pop-up blocked".. but it
can no block this popups..
mistral
mistral wrote on 17 jan 2007 in comp.lang.javas cript:
>Let me test:
><iframe href='http://cnn.com/'></iframe>
>rightclick -source YES!!!
><iframe src= 'http://i.a.cnn.net/cnn/.element/img/1.5/ceiling/nav.rt.end.bg_o ver.gi f'</iframe>
>No html rightclick -NO source
>stands to reason.
well. Let's try this: got to the following links:
http://www.findarticles.com/p/articl...34/ai_n8967611
I will try only this one:
Terrible code, mixture if javascript with and without version,
all spammy advertisements, two flash players.
I am not going to test that.
Please make your own minimal problem.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: TCMA |
last post by:
I am looking for some tools to help me understand source code of a
program written in C++ by someone else.
Are there any non-commercial, open source C or C++ tools to reverse
engineer C or C++ programs with source codes on linux?
i.e. It parses any sized C or C++ project to help reverse engineer,
document, draw UML diagram and understand it and thus maintain it
better.
|
by: Guoqi Zheng |
last post by:
Dear sir,
I am writting an WYSIWYG html editor, I need to get the html source code out
of an iframe. I know I can use innerhtml or innertext. But that will remvoe
the html header info which is what I need. html header may contains
reference to base url or style sheet information.
How can I get the full source code out of an iframe???
--
|
by: SourceChallenged |
last post by:
Can anyone point me in the right direction to extract my source files from a
DLL.
I had a hard drive crash on my dev machine and was not using source safe (
boo )
On the webserver I had just my .aspx pages and my dll
Can i get my source back from the dll ?
Robert.
|
by: syshex |
last post by:
Hi everyone !
I'm really new to javascript, and am possibly aiming quite high
already, but still I feel I just satisfy my curiosity and ask you all
this question.
I've got this really really simple page which has an Iframe with
id="AAA" and a div section with id="BBB" . I've also got a link that
is points to void but onclick action fires a function.
|
by: sandy |
last post by:
hello can anbody help me in getting source code for tcp/ip stack in
ANSI C or source code for http protocol
| |
by: tussi |
last post by:
how can i obtain source code of a software or executable file written in any language......... plz help me
|
by: Jon Skeet [C# MVP] |
last post by:
I'm sure the net will be buzzing with this news fairly soon, but just
in case anyone hasn't seen it yet:
Microsoft are going to make the source code for the .NET framework
(parts of it, including the BCL, ASP.NET and LINQ) available both for
viewing and debugging into.
I won't go into all the details here, as they're covered on Scott
Guthrie's blog:
|
by: Tomás Ó hÉilidhe |
last post by:
I'd post this on a gcc newsgroup but I'd be more productive talking
to the wall.
Anyway, let's say someone throws some source code at you for a
particular program and says, "Just compile it, it works fine". Now
admittedly, I tend to have a phobia of this situation because I recall
from my Windows days the numerous times I was given code that was
supposedly "good to go", but which failed to compile for some stupid
reason. Of course I...
|
by: codejunkie |
last post by:
Iframe is generated on my page by a script like this...
<script src="http://example.com/make_iframe"></script>
How can I get the source code of the generated iframe (or the URL of it)?
Help would be greatly appreciated.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |