Thanks, your suggestion has worked.

But I have again a problem.

This is the page in iframe:

<html>
<head>
<title>test page</title>
</head>
<body>
<h1>test-row1</h1>
another row
<h1>test-row2</h1>
<img src="img1.png" />
<img src="img2.png" />
</body>
</html>

I need to apply an absolute xpath, and so I have tried with this:

$('/HTML/BODY/IMG',frameDocument).hide();

and it works, but it doesn't work with index, example:

$('/HTML/BODY/IMG[1]',frameDocument).hide();

and it doesn't work for:

$('/HTML/BODY/IMG',frameDocument).addClass("selected");

(or for '/HTML/BODY/H1' etc)

without index, where "selected" class is:

.selected {
  cursor: pointer;
  border-width: 2px;
  border-color: #FF00FF;
}

Have you any idea?

Thanks,
Julio

On 18 Set, 11:50, Christof Donat <[EMAIL PROTECTED]> wrote:
> Hi,
>
> > // not working
> > $(frameDocument).("//img").hide();
>
> Try $('img',frameDocument).hide();
>
> Christof

Reply via email to