NetTalk Central

Author Topic: Refresh a frame in embed  (Read 3520 times)

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Refresh a frame in embed
« on: June 06, 2010, 10:20:32 AM »
Hallo,


I have a form with a drop field  filter and a browse. When I select a new value on the drop field I need to refresh this frame. How can I do that ? I know how to refresh when the page open: <script>parent.frames.right_fram.location.reload();</script>  but how can I do that in embed ?

Thank you,
Robert

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Refresh a frame in embed
« Reply #1 on: June 06, 2010, 09:50:48 PM »
Hi Robert,

I'm curious why you want to refresh the frame? As distinct from just refreshing the browse.

However, without testing your exact configuration, the most like place you need to put code is, on the crop-down client-side tab.
There's an option there for "When field accepted in browser" - "JavaScript hand-code".

Theat's where you'd put something like;
'parent.frames.right_fram.location.reload();'

Cheers
Bruce

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Refresh a frame in embed
« Reply #2 on: June 07, 2010, 03:48:53 AM »
Hallo Bruce,

It reset now but it will clear the value of the drop field... so this way the table will not refresh.

The table is in range with drop field and field year. When this values changed the browse will reset. This works ok. The above statistics need to updates when the browse will refresh. I need to refresh this frame to update that totals.When I put the code on java scrip field the frame refresh but not the browse.
Also I made a page with 2 frames and I put that static page on header and the table on footer. Again it not works with java code. If I put the code to refresh the frame the frame will refresh ok, but the not the table. The java code will break the refresh of the table ... Without java code the table works ok.

Any advise on this ?

Thank you,
Robert

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Refresh a frame in embed
« Reply #3 on: June 10, 2010, 10:59:44 PM »
Hi Robert,

I think I need to see a small example of what you're doing to give you a specific answer.
Could you mod one of the frame examples to show what you're looking for?

cheers
Bruce