jquery Programming Glossary: window.location.protocol
Get host name in JavaScript http://stackoverflow.com/questions/1368264/get-host-name-in-javascript you'll get sub.domain.com 8080 or sub.domain.com 80 window.location.hostname you'll get sub.domain.com window.location.protocol you'll get http window.location.port you'll get 8080 or 80 window.location.origin you'll get http sub.domain.com Update..
JavaScript/jQuery method to find base URL from a string http://stackoverflow.com/questions/1420881/javascript-jquery-method-to-find-base-url-from-a-string
Whose fault is it? CSS or JavaScript? http://stackoverflow.com/questions/6179174/whose-fault-is-it-css-or-javascript soapenv Body soapenv Envelope var port window.location.port if port.length 0 port else port port var webservice window.location.protocol window.location.hostname port L_Menu_BaseUrl _vti_bin lists.asmx .ajax url webservice type POST dataType xml data soapEnv.. window.location.port if port.length 0 port else port port Change the below to point to your image library var imageURL window.location.protocol window.location.hostname port L_Menu_BaseUrl Splash Image Rotator var itemURL window.location.protocol window.location.hostname.. var imageURL window.location.protocol window.location.hostname port L_Menu_BaseUrl Splash Image Rotator var itemURL window.location.protocol window.location.hostname port L_Menu_BaseUrl Splash Image Rotator Forms DispForm.aspx ID #slideshowContentArea .html xData.responseXML..
JavaScript - Get Portion of URL Path http://stackoverflow.com/questions/6944744/javascript-get-portion-of-url-path #top window.location.href http www.somedomain.com account search filter a#top window.location.port empty string window.location.protocol http window.location.search filter a Update use the same properties for any URL It turns out that this schema is being standardized..
|