NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started 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
-
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
-
Ok. thanks Bruce.
-
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
-
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