Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
finding elements buried in a frameset
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Robert Mark Bram  
View profile  
 More options Oct 2 2008, 4:25 am
From: Robert Mark Bram <robertmarkb...@gmail.com>
Date: Thu, 2 Oct 2008 01:25:04 -0700 (PDT)
Local: Thurs, Oct 2 2008 4:25 am
Subject: finding elements buried in a frameset
Hi All,

I have a frameset and am using Firefox 3 with Firebug 1.2.

I have an element with a given id, "xxx".

When I just press F12 and enter into the console $('xxx') it doesn't
find the element i.e. prints null.

If I right click > This Frame > Show only this Frame and repeat the
action above, it finds the element.

How do I address the element from the main window?

Rob
:)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Odvarko  
View profile  
 More options Oct 2 2008, 10:40 am
From: Jan Odvarko <odva...@gmail.com>
Date: Thu, 2 Oct 2008 07:40:26 -0700 (PDT)
Local: Thurs, Oct 2 2008 10:40 am
Subject: Re: finding elements buried in a frameset
This is a bug:
http://code.google.com/p/fbug/issues/detail?id=814

It should be possible to change the window context using a cd
function, which is available in the Firebug's command line.

Honza

On Oct 2, 10:25 am, Robert Mark Bram <robertmarkb...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Mark Bram  
View profile  
 More options Nov 3 2008, 5:42 pm
From: Robert Mark Bram <robertmarkb...@gmail.com>
Date: Mon, 3 Nov 2008 14:42:09 -0800 (PST)
Local: Mon, Nov 3 2008 5:42 pm
Subject: Re: finding elements buried in a frameset
Hi Jan,

On Oct 3, 1:40 am, Jan Odvarko <odva...@gmail.com> wrote:

> This is a bug:http://code.google.com/p/fbug/issues/detail?id=814

> It should be possible to change the window context using a cd
> function, which is available in the Firebug's command line.

Do you just issue the command as "cd ('frame-name')" ? And can you use
"top" etc?

I have experimented a bit with this, but haven't yet gotten it to do
what I want.

Rob
:)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Odvarko  
View profile  
 More options Nov 4 2008, 2:37 am
From: Jan Odvarko <odva...@gmail.com>
Date: Mon, 3 Nov 2008 23:37:54 -0800 (PST)
Local: Tues, Nov 4 2008 2:37 am
Subject: Re: finding elements buried in a frameset
> Do you just issue the command as "cd ('frame-name')" ? And can you use
> "top" etc?

Yes, there is a few possibilities:

1) If the <iframe> element has a name attribute you can use it
directly.
<iframe name="frameName" ... />
cd(frameName);

2) If the <iframe> element has an ID you can also use it.
<iframe id="frameId" ... />
cd($("frameId").contentWindow);

3) To change the context to the top window again use:
cd(top)

Honza


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »