NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: jorgemir on April 23, 2011, 07:16:34 AM

Title: Validate after popup broken in 5.23
Post by: jorgemir 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
Title: Re: Validate after popup broken in 5.23
Post by: Bruce 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
Title: Re: Validate after popup broken in 5.23
Post by: jorgemir on April 25, 2011, 05:18:51 AM
Ok. thanks Bruce.


Title: Re: Validate after popup broken in 5.23
Post by: jorgemir 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
Title: Re: Validate after popup broken in 5.23
Post by: Bruce 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