-
21 Feb 2009 9:15 AM #1
do something on buttonclick
do something on buttonclick
Hi there,
i have this function:
but it's not working. It's not redirecting to the index.jsp. What's the problem here?PHP Code:utilities.msgbox = function(p_title,p_msg, p_buttons, p_type){
Ext.Msg.show({
title: p_title,
id: 'btn',
msg: p_msg,
buttons: p_buttons,
animEl: 'elId',
icon: p_type,
handler: function(btn, text){
if (btn == 'ok') {
window.location = 'index.jsp';
}
}
});
Thx
Chriz
-
21 Feb 2009 9:40 AM #2
fn not handler
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
21 Feb 2009 9:55 AM #3
aha,
thank you very much. By the way, I looked at the debugger (again) but couldn't find something cause I used the wrong function as it seems..
mhm I cant' find this fn thing in the api. What is this fn and where can I find a good example to learn for the future?
Thanks
-
21 Feb 2009 10:13 AM #4Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642


Reply With Quote