I have a controller and a view class.In my controller class I have this code. I am trying to get the AccNo which is passed in the url. I know this code works fine for retrieving the account number, but I now need to pass the Var in to the view class.
getURLParameter : function(name) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null
},
// Parse URL parameters
parseAndSetURLParameters : function(){
var accNo = this.getURLParameter('accNo');
},