views:

21

answers:

0

I have 2 iframes on a page, a navigation and a detail. The navigation iframe has paging/searching/etc.. functionality that can cause the detail to refresh with new url parameters. After the detail iframe loads, the navigation iframe needs to perform some dom manipulations on elements it already had in memory.

For example:

jQuery(searchResultElems).removeClass('highlight');

In Firefox, even though the searchResultsElems were from a dom that has been reloaded, they are still valid. In IE 8 and i think 7, what i get is "Permission Denied" from within jQuery

if(elem.nodeType==1) -->  Permission denied

the reference to these became "stale". Is that right? Does anyone know how to get around it? Re-query the new dom again? (i have id's)

Both iframes point to the same domain.

EDIT
i was able to avoid accessing those elements, and just re-queried the fresh dom upon reload. But I would still like it to work as in good 'ole FF.