Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  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