NetTalk Central

Author Topic: Validate after popup broken in 5.23  (Read 3872 times)

jorgemir

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Email
Validate after popup broken in 5.23
« on: April 23, 2011, 07:16:34 AM »
Hi. This was working with 5.22:
 packet=clip(packet) & clip('<script>parent.frames.right_frm.location.reload()</script>')
  do sendpacket
 
in popups after end

Now it does not fire in 5.23

It does not reload the right frame as before.

Thanks
Jorge

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Validate after popup broken in 5.23
« Reply #1 on: April 24, 2011, 10:27:11 PM »
you need to be careful with hand-coded scripts, because they can be different in ajax/ non-ajax mode, and where you call it etc can get quite complex.

So the best way to add a script, is to use the p_web.Script method.
The simplest form of this is;

p_web.script('parent.frames.right_frm.location.reload();',net:nosend)

Cheers
Bruce

jorgemir

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Email
Re: Validate after popup broken in 5.23
« Reply #2 on: April 25, 2011, 05:18:51 AM »
Ok. thanks Bruce.



jorgemir

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Email
Re: Validate after popup broken in 5.23
« Reply #3 on: April 25, 2011, 12:16:42 PM »
Where I can find info on this and other webserver methods? Seems I'm driving in a dark forrest with no knowledge of wonderful instructions that lies deep into the software.
Please.
Thanks
Jorge

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Validate after popup broken in 5.23
« Reply #4 on: April 25, 2011, 11:20:41 PM »
there isn't a class reference yet.
The NetTalk book does have a section on what's happening under the hood though, to explain the "flow" of the code.

cheers
Bruce