NetTalk Central

Author Topic: Calling p_web.Popup from <script> code  (Read 3547 times)

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Calling p_web.Popup from <script> code
« on: February 16, 2014, 10:50:24 PM »
Hi Folks (and Bruce, who counts as the MASTER),

NT7 (latest). Clarion 9.0.10376.

Is it possible to call p_web.Popup() functionality from with some '<script>' code without adding any extra js files?

IE .. I have a big string that is a <script>, which is run at some stage.

In the 'success: function(data) {{ ' section of code, I'd like to call a popup window rather than the jGrowl I'm using at the moment.

Can I do this with Nettalk as is?
Cheers,

Stu Andrews

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Re: Calling p_web.Popup from <script> code
« Reply #1 on: February 16, 2014, 11:30:05 PM »
Nevermind! That'll learn me for not checking out netweb.clw first.

Code: [Select]
self.Script('ntAlert(''' & self.jsParm(self._utfjs(p_text)) & ''','''&self.translate('Alert')&''');',p_Send).
Cheers,

Stu Andrews