views:

374

answers:

1

I am using this method to fresh other frame in the same window using java script

function updateTree(val) { 

  if (val == 1) {
   parent.frames['left'].location.reload();
  } else if(val == 2) {
   parent.frames['bottom'].location.reload();
  } 

}

its working in both IE and Mozilla but is not working in Chrome Browser(3.0.195.38).
Any help appreciated.

A: 

You may want to try something along these lines:

parent.left.location = parent.left.location.href

or

parent.frames['left'].location = parent.frames['left'].location.href

There may be a mechanism ignoring 'refreshing' to the same url. in that case, you can order a temporary move to "about:blank" and follow it by a move to the original href.

Y.

Yonatan
Thanks a lot for giving reply,for me parent.frames[0].location = parent.frames[0].location.href this is working finethank u somuch
s kiran
Happy to help! If you would be so kind as to accept the answer (green check-mark), it will be much appreciated.
Yonatan