The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How to search for text in an iframe
Zvi
post Sep 13 2006, 03:21 AM
Post #1





Group: Members
Posts: 3
Joined: 13-September 06
Member No.: 122




I have an iframe on a page. I want to be able to press CTRL+F
(find on this page) and search for text in the iframe. Problem is that the
search only returns results from the parent page. How can I search for text
in an iframe?

Maybe some kind of serach text box and button on the parent form with code to search in the iframe?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Sep 13 2006, 05:51 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,649
Joined: 10-August 06
Member No.: 7



QUOTE(Zvi @ Sep 13 2006, 10:21 AM) *

Problem is that the
search only returns results from the parent page. How can I search for text
in an iframe?


On my test page Ctrl+F worked in the IFRAME too. Tested in IE6, latest Firefox and Opera.

Could you post a link to a sample page that doesn't work?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Sep 13 2006, 08:13 AM
Post #3


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



In my browser, Ctrl-F searches whatever the active frame/window happens to be. To make a frame (even an inline frame) active, I need to click on it.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Zvi
post Sep 15 2006, 08:28 PM
Post #4





Group: Members
Posts: 3
Joined: 13-September 06
Member No.: 122



QUOTE(Darin McGrew @ Sep 13 2006, 08:13 AM) *

In my browser, Ctrl-F searches whatever the active frame/window happens to be. To make a frame (even an inline frame) active, I need to click on it.


OK, when opening the page at home, I can only see in the iframe "The page cannot be displayed" because the the iframe is linked to a secure page from inside the company. But starngely enough, when I do a CTRL+F on the iframe at home (Like I search for a word on the "The page cannot be displayed" page... It WORKS fine!!) and of course, when opening the direct page (the one that's linked to my iframe) at work, CTRL+F works.

The page is the Phone List tab here:
http://www.gat101.co.il/idt/Phone%20List.html

(wait a few seconds cause it's trying to load a page that cannot be displayed outside the company)

So can it be that at work, when the REAL page is showing, the search doesn't work for security reasons? and if this is the case, how would I make a search text box and button on the parent page to do a search on the iframe?

This post has been edited by Zvi: Sep 15 2006, 08:35 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 15 2006, 08:52 PM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



No, I don't think so. What browsers are you using? Do you use different ones at home and at work?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Zvi
post Sep 17 2006, 07:21 PM
Post #6





Group: Members
Posts: 3
Joined: 13-September 06
Member No.: 122




I use Internet Explorer on both computers.

It's not a problem of the explorer cause other pages with Iframes work ok. It's just the one with MY site that's not working.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th April 2024 - 02:45 PM