NetTalk Central

Author Topic: getting javascript yes/no answer in embedcode  (Read 3334 times)

Bram Klootwijk

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Email
getting javascript yes/no answer in embedcode
« on: July 16, 2007, 03:37:19 AM »
Hi,

i need a yes/no answer from a user for deleting a record. How can i retrieve the true/false value of a send javascript?

I use this code:
 packet = clip(packet) & '<script>window.confirm(<39>Are you sure to delete this address?<39>)</script>'


Or is there another way of getting a yes/no answer from a popup-dialog?


Greetings,
Bram

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11181
    • View Profile
Re: getting javascript yes/no answer in embedcode
« Reply #1 on: July 16, 2007, 10:46:15 PM »
Hi Bram,

The answer to this is non-trivial. It is in fact quite complicated to do this sort of thing.

I presume you are not deleting from a browse? 'Cause there is already a popup that happens there...

Cheers
Bruce

Bram Klootwijk

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Email
Re: getting javascript yes/no answer in embedcode
« Reply #2 on: July 17, 2007, 11:31:58 AM »
Hi Bruce,

it was for a memory form with some special treatment. I converted it to a "normal" file form and used the standard delete-button.

Thanx,

Bram