1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    4
    Vote Rating
    0
    abhinav44 is on a distinguished road

      0  

    Default Root JS Url

    Root JS Url


    Hello everyone,
    I have two javascripts,first javascript called the second javascript,when i called the second javascript it automatically takes the root path such as http://www.mysite.com/mypath/file.js.
    I have to define the root path in my first javascript.
    From the above we want to get "http://www.mysite.com"
    Anybody know the code in javascript to get the root path
    Thanks

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    4
    Vote Rating
    0
    abhinav44 is on a distinguished road

      0  

    Default


    Hi,
    I have already tried similar concept,but it doesn't work,Kindly tell some other procedure for this

  4. #4
    Sencha User
    Join Date
    Dec 2011
    Posts
    20
    Vote Rating
    2
    jennifer123 is on a distinguished road

      0  

    Default


    Try:

    Code:
    alert('<%=request.getRequestURL().substring(0, request.getRequestURL().length() - request.getRequestURI().length())%>')
    This returns http://localhost:8080 for http://localhost:8080/mywebapp/somepath...

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi