Newbie: how to tell a URL for a page?

0 views
Skip to first unread message

BobAalsma

unread,
Jul 24, 2010, 1:29:25 PM7/24/10
to Django users
I'm working on a programme where I want the user to register comments
on a third party web page.
To show this third party page, I intend to use frames or iframes, but
I discovered that some of the URLs redirect. This means that the page
shown in the (i)frame will have a different URL from the URL I use.
The redirection is in itself also information I want to show.

So my question is: how can I tell the URL of the page (finally) shown
in the (i)frame?

BobAalsma

unread,
Jul 29, 2010, 1:30:13 AM7/29/10
to Django users
This question has been in the forum for about almost a week & no
response. So please help a newbie out: is it too easy or too difficult
to answer?

BobAalsma

unread,
Jul 29, 2010, 1:30:27 AM7/29/10
to Django users
This question has been in the forum for about almost a week & no
response. So please help a newbie out: is it too easy or too difficult
to answer?

On Jul 24, 7:29 pm, BobAalsma <bob.aal...@aalsmacons.nl> wrote:

BobAalsma

unread,
Jul 29, 2010, 1:31:20 AM7/29/10
to Django users
This question has been in the forum for about almost a week & no
response. So please help a newbie out: is it too easy or too difficult
to answer?

On Jul 24, 7:29 pm, BobAalsma <bob.aal...@aalsmacons.nl> wrote:

BobAalsma

unread,
Jul 29, 2010, 1:30:59 AM7/29/10
to Django users
This question has been in the forum for about almost a week & no
response. So please help a newbie out: is it too easy or too difficult
to answer?

On Jul 24, 7:29 pm, BobAalsma <bob.aal...@aalsmacons.nl> wrote:

BobAalsma

unread,
Jul 29, 2010, 1:57:14 AM7/29/10
to Django users
This question has been in the forum for about almost a week & no
response. So please help a newbie out: is it too easy or too difficult
to answer?

On Jul 24, 7:29 pm, BobAalsma <bob.aal...@aalsmacons.nl> wrote:

Carlos Daniel Ruvalcaba Valenzuela

unread,
Jul 29, 2010, 2:03:50 AM7/29/10
to django...@googlegroups.com
Hello, your question probably does not have much to do with Django (as
a framework), but you may be able to check at the iframe url by
quering the DOM using javascript, either directly or via a library
like jquery if you are already using one.

Check the W3C documentation for the frame/iframe DOM:

http://www.w3schools.com/jsref/dom_obj_frame.asp

The iframe should contain a document object which should contain the
URL loaded on the frame.

Regards,
Carlos Daniel Ruvalcaba Valenzuela

> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>

BobAalsma

unread,
Jul 30, 2010, 12:55:16 AM7/30/10
to Django users
Thanks very much!

Yes, I agree, probably not specifically Django, but it is the
environment where I needed the answer.

At least this will give me something to work with/from :-)

Regards,
Bob

On Jul 29, 8:03 am, Carlos Daniel Ruvalcaba Valenzuela
<clsdan...@gmail.com> wrote:
> Hello, your question probably does not have much to do with Django (as
> a framework), but you may be able to check at the iframeurlby
> quering the DOM using javascript, either directly or via a library
> like jquery if you are already using one.
>
> Check the W3C documentation for the frame/iframe DOM:
>
> http://www.w3schools.com/jsref/dom_obj_frame.asp
>
> The iframe should contain a document object which should contain theURLloaded on the frame.
>
> Regards,
> Carlos Daniel Ruvalcaba Valenzuela
>
> On Wed, Jul 28, 2010 at 10:57 PM, BobAalsma <bob.aal...@aalsmacons.nl> wrote:
> > This question has been in the forum for about almost a week & no
> > response. So please help anewbieout: is it too easy or too difficult
> > to answer?
>
> > On Jul 24, 7:29 pm, BobAalsma <bob.aal...@aalsmacons.nl> wrote:
> >> I'm working on a programme where I want the user to register comments
> >> on a third party webpage.
> >> To show this third partypage, I intend to use frames or iframes, but
> >> I discovered that some of the URLs redirect. This means that thepage
> >> shown in the (i)frame will have a differentURLfrom theURLI use.
> >> The redirection is in itself also information I want to show.
>
> >> So my question is: how can I tell theURLof thepage(finally) shown
Reply all
Reply to author
Forward
0 new messages