Skip to main content

How to get button clicked in dialog

3 replies [Last post]
jucabala
Offline
Joined: 2008-01-16
Points: 0

Hi, how to get button clicked in dialog.
I'm using php with netbeans 6
My sample is
<?php require_once "Jmaki.php";

addWidget( array( "name" =>"yahoo.simpledlg"));
?>

thank's

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sloanb
Offline
Joined: 2003-09-14
Points: 0

When you say how do I get a button clicked are you referring to how do you know when a button is clicked in the dialog? Are you using a yahoo.button? If so you will be able to subscribe to the button topic ("/yahoo/button/onClick")

[code]
glue.js

function processButtonClick(payLoad) {
// Do something with the click?
}
jmaki.subscribe("/yahoo/button/onClick", processButtonClick);
[/code]

If you are referring to the dialog button the topic being published is /yahoo/simpledlg/onClick and you would do the same but use replace the above topic with this one.

Let me know if this is what you are looking for I didn't fully understand the question.

--SB

jucabala
Offline
Joined: 2008-01-16
Points: 0

ok...thank you
sorry my english...I speak only Portuguese...I only know some words

sloanb
Offline
Joined: 2003-09-14
Points: 0

Never a problem you did great. Let me know if you need any additional help.