Refresh Button
This is probably going to sound easy for a lot of people, but it has me stumpted.
I have a AW.Button that I am trying to make refresh the window or redirect to a different page:
For some reason nothing happens when I click the button. As far as location in my code, this script is right above the ending body tag. No other scripts are below this one. You will also notice that I am not writing the button to the page. That is being done in another function.
Any hints??
I have a AW.Button that I am trying to make refresh the window or redirect to a different page:
var btn = new AW.UI.Button;
btn.setId("btn");
btn.setControlText("Refresh");
btn.onControlClicked = function(event){
window.location.href = "index.php";
}
For some reason nothing happens when I click the button. As far as location in my code, this script is right above the ending body tag. No other scripts are below this one. You will also notice that I am not writing the button to the page. That is being done in another function.
Any hints??
Aaron Todd
January 29,