-
11 Nov 2010 8:40 AM #1
how to call a URL on a button click?
how to call a URL on a button click?
hi all
I have a button, how can I call a URL on click of it.
This button is part of a form panel.
lets say I want to open http://www.sencha.com on click of it
-
13 Nov 2010 5:53 PM #2
Code:{ xtype: 'button', text: 'My Button', handler: function(){ window.location = 'http://sencha.com'; } }
-
14 Nov 2010 4:09 AM #3
That is not a good solution.
Setting window.location is not friendly to the user.
The user does not know that is supposed to be a link (you usually get a status bar telling you what a click would do)
Also, you cannot right click it.
The best solution is a LinkButtonSearch 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
Similar Threads
-
[RESOLVED]execute a url upon button click
By erosszz in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 4 Feb 2010, 7:28 PM -
How to Call Servlet on Click of Button
By myworld100us in forum Ext GWT: DiscussionReplies: 5Last Post: 11 Nov 2009, 7:22 AM -
set url of a tab on a button click
By sabyasachibose in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 5 Jan 2008, 11:49 AM -
on click of the row on grid want to call a url
By vikas.r30 in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 28 Dec 2007, 3:37 AM


Reply With Quote