PDA

View Full Version : I need to extract the base URL



blomasky
13 Nov 2013, 12:51 PM
I am sure some of you boys and girls have done this, but I can't figure it out....

I need to get the base url (either localhost or www.mycompanyname.com) while the application is running? How can I do this pls?


thanks

Bruce

mattkim
13 Nov 2013, 1:05 PM
no need for ext, use window.location


window.location.host

blomasky
13 Nov 2013, 1:53 PM
One of the huge advantages of using Sencha (besides the kick-ass grid! and MVCS framework) is the large, robust community that spends significant time helping others.

thanks

bruce

mattkim
13 Nov 2013, 2:48 PM
yeah i ask questions all the time, and someone always answers, so trying to pay it forward :)