relative v absolute path?
What would the relative path of the following url be? http://domain.com/wp-content/themes/themename/images/breadcrumb%5Fsep.png ...
What would the relative path of the following url be? http://domain.com/wp-content/themes/themename/images/breadcrumb%5Fsep.png ...
I'm sending a php script multiple urls (about 15) at once, all containing about 5 url variables. In my script, I'm parsing the chunk of urls into individual ones by splitting them with two backslashes (which i add upon before to the script), and then curling each individual url. However, when I run my script, it only accepts a url up to ...
I have this rewrite rule that turns foo.com/test (or foo.com/test/) into foo.com/test.txt: RewriteRule ^test/?$ test.txt [NC,L] It works perfectly and, importantly, never reveals to the user that the "real" URL is foo.com/test.txt. Now I want to do the same thing where the "real" URL is foo.com/testdir, where testdir is a directory: ...
i'm having 'domainname1/folder/' .In Domainname1 i'm having a subdirectory which is a subdomain (abc.mydomain.com) of other domain. but this is referred to 'domainname1/folder/' . the thing is that i want the URL links accessing from 'domainname1/folder/' should be displayed following with sub domain like . 'domainname1/folder/' to ...
Hai i'm having a subdomain (abc.example.in) but this is referred to mydomain/folder . the thing is i want the mask URL links and the masked url should be displayed following with sub domain can any one help me out . mydomain/folder/path to abc.example.in/path ...
I've searched for hours, but I couldn't find a solution for this. window.onbeforeunload = warn; This doesn't work: function warn (e) { var destination = e.href; alert(destination ); } Okay, so to clear the things. If the user clicks on a link on the page itself, it is easy, because you can add an eventhandler to all of the ...
Hi I'm writing a web service which expects one of the parameters (called "hlink") to be a url. Before calling the web service I URLEncode the parameter in question ("hlink"). I then call the web service with an hlink parameter value of 'a.apsx?a=1&b=2. When the request arrives at the web service method I can examine hlink - it has rece...
how can i get the full url like:http://www.domain.com/page.php?id=someid&page=1 ? not just http://www.domain.com/page.php ...
What is the following portion of a Gmail URL for? https://mail.google.com/mail/?**zx**=1efobg68r40co&**shva**=1#inbox If you change it, nothing happens!! I know Gmail is not an Open-Source program so we can trace the code. But every website try to make the URL shorter so they ideally shouldn't add redundant data to the URL. At th...
Can we use "&" in a url ? or should "and" be used? ...
If I do url = "http://example.com?p=" + urllib.quote(query) It doens't encode "/" to "%2F" (breaks OAuth normalization) It doens't handle unicode (it throw an exception) is there a better library? ...
Hi! Guys I have a question, hoping you can help me out with this one. I have a bookmarklet; javascript:q=(document.location.href);void(open('http://other.example.com/search.php?search='+location.href,'_self ','resizable,location,menubar,toolbar,scrollbars,status')); which takes URL of the current webpage and search for it in another ...
Hi , i am a newbie on web development, so i have some problems first of all what is the meaning of ~, / on an url? My real question in my javascript code i am doing some ajax calls with jquery like that $.ajax({ ... url: '/Membership/Login', ... }); There is an Membership controller with an Login action method that i need to s...
My page gets a value from a url passed to it. accordId gets a value of 4. I need to make the accordion open to a certain panel based on the fact that the value for accordId is 4. So I want panel 4 to open based on the accordId of 4 that was passed from the url. ...
I have the following code presently: if(isset($_POST['Movie'])) { $check = $_POST['Movie']; echo "(left angle bracket)a target='imdb' href='http://www.google.ca/search?hl=en&source=hp&fkt=3948&fsdt=45174&q=$check imdb } This gives me a link to click which when I do click opens in an iframe called imdb. How do I cut out the ...
I have a form text field that accepts a url. When the form is submitted, I insert this field into the database with proper anti-sql-injection. My question though is about xss. This input field is a url and I need to display it again on the page. How do I protect it from xss on the way into the database (I think nothing is needed since ...
I have a legacy application that I'm trying to port to Java EE. Presently this application calls URL.setURLStreamHandlerFactory() to register some custom URL protocol handlers. This call fails under Glassfish v 2.1 and 3 because glassfish has already registered a factory. I've tried using the java.protocol.handler.pkgs system property...
Hi, I just started Django and Python, so Im still new to this.. This is my urls.py: url(r'(?P<slug>[-\w]+)/$','person_detail'), url(r'(?P<slug>[-\w]+)/delete/$','person_delete'), The problem is that when I try to do to the url: slug/delete/ it's looking for that whole part slug/delete/ as the slug. When i remove the $ in the 1st url i...
I think the question title seems to explain eveything. I want to detect whether a string is in URL format or not using javascript. Any help appreciated. ...
I'm setting up some link_to xml views within a rails app. How can the url display the .xml extension? Need it to appear as: http://localhost:3000/test/1-testing.xml Currently it appears as: http://localhost:3000/test/1-testing ...