url

hide url hashtag with jquery

Hi to all. I need the code to hide the hashtag in the url in jQuery; I'm working on a OnePageSite and I wish to obtain "www.mysite.it" and not "www.mysite.it/index.php#hashtag" when clicking on a link. This is a piece of code for Mootools 1.x; is there a way to make the same with jQuery? Thank you in advance. Best regards. if(window.loc...

Target tabs within tabs with #hash URL (or otherwise)

I am using the jQuery Tools library Tabs. You can find them here: http://flowplayer.org/tools/tabs/index.html My basic markup is something like this: $("#tab-holder ul").tabs("div.tab", { history: true, api: true }) $("#profile-sub-tabs ul.menu").tabs("div"); The #profile-sub-tabs is another tab interface within the main #tab-holder ...

how to extract a value of a string which is there in url

i hav a url and want to extract part of the string ... i hav url like www.google.com?id=10&jkhsds=fg.php i want to extract the value of id ...

ASP.NET postbacks lose the hash in the URL

On an ASP.NET page with a tabstrip, I'm using the hash code in the URL to keep track of what tab I'm on (using the BBQ jQuery plugin). For example: http://mysite.com/foo/home#tab=budget Unfortunately, I've just realized that there are a couple of places on the page where I'm using an old-fashioned ASP.NET postback to do stuff, and whe...

jQuery find attribute from url hash

Trying to find the attribute value from a url hash. // URL http://url.com/index.html#link // HTML <a href="#link" rel="3">Some link</a> // JS var anchor = window.location.hash.substring(1); // Need help finding attribute value from finding the anchor var attribute = .find('#+anchor').attr('rel'); //this needs to have a value of 3 Al...

Wordpress - links no longer working in my posts, returning bad request

i'm having problems putting links into my wordpress blog. the site has been up with no problems for two years now but it is no longer letting my post links in my posts. i'm trying to add in a link like this: <a href="http://google.com"&gt;link&lt;/a&gt; when the blog is published this link is returned as this: http://spacesaverscom...

how do python capture 302 redirect url

i try to fetch data from web,but the page use a 302 redirect how can i use python to fetch the real url? ...

How do I use JSONRequest.POST to get parameters from a url?

how to get POST parameters at a URL, using JSONRequest. The original site will be www.abc.com/aServlet. For example, www.abc.com/aServlet?user=tom I want to get the paramter of"user" which is "tom". I am actually keying in the user manually in aServlet which is a servlet. The problem is I dont know how to use JSONRequest to retrieve th...

URL Hash oddities

I've noticed some strange behaviour in JS window.location.hash = ''; var hash = window.location.hash; alert(hash + ' = ' + hash.length); //outputs: ' = 0' window.location.hash = '#'; hash = window.location.hash; alert(hash + ' = ' + hash.length); //outputs: ' = 0' window.location.hash = '_'; hash = window.location.hash; alert(hash + ' =...

Dynamic URLs - with or without a trailing slash?

The short question is - what is the best practice - to use or not to use a trailing slash in URLs. There are many articles: this, this, this. However, they all seem to deal with static directory structure. What about dynamic urls, like those rewritten, or those handled by a central facility (like a web framework, for example), that for...

regex for valid ftp file path

Hi, I am looking for validating a textbox in my asp.net application for a valid file path like \\127.0.0.1\folder http://ftp.google.com and all other valid file paths ...

http url for js file inside a war?

Suppose a WAR layout like so: foo.war -->/WEB-INF -->/classes (..) -->/js -->bar.js -->index.jsp -->web.xml Now suppose the WAR's virtual directory is /blah on server example.com (i.e. http://example.com/blah). What is the HTTP URL of bar.js, one that would be used in a <script src=""> tag that index.jsp might serv...

ASP.Net MVC 2.0 : Absolute action URL using HttpRuntime only (no HttpContext)

I need to build a URL for self-ping action. I want to initialize that URL from Application_Start, which doesn't have HttpContext (on ISS 7.0 integrated mode). I have code to build absolute Action URL using HttpContext, now I need the same but use HttpRuntime instead. ...

PHP: comparing URIs which differ in percent-encoding

In PHP, I want to compare two relative URLs for equality. The catch: URLs may differ in percent-encoding, e.g. /dir/file+file vs. /dir/file%20file /dir/file(file) vs. /dir/file%28file%29 /dir/file%5bfile vs. /dir/file%5Bfile According to RFC 3986, servers should treat these URIs identically. But if I use == to compare, I'll end up...

> sign inside OBIEE GO URL?

Hello, I am trying to use a '>' symbol inside a GOURL to retrieve a report in PDF format automatically to users desktop. I'm actually using a perl script to programmatically request the login page, login using my credentials, and then I use a go url to download pdf report, sending it parameters,(doing URL encoding which includes convert...

Help with .htaccess file. mod_rewrite for custom urls?

Situation: I have a few hundred posts each belonging to a particular category. A] Now when the user visits the home page, the content is irrespective of the category sorted by date. http://www.example.com He can navigate through different pages like: Type 1: http://www.example.com/3 which corresponds to http://www.example.com/inde...

Get URL param/segments conditionally (JS/jQuery)

I'm using an external jQuery url parsing library http://github.com/allmarkedup/jQuery-URL-Parser to grab url segments for GET. The URL's i'm working with include one of two formats: http://example.com/#name or http://example.com/?name=name Depending on the url im getting fed back, I want to use the url parsing library to construct a ...

symfony : how to get rid of ugly GET parameters

Hello, i'm using form filtering to filter data in the frontend. The problem is that the URL is ugly http://............./players/game/?st_player_cv_filters[location_id]=1&amp;st_player_cv_filters[plateforme_id]=3&amp;st_player_cv_filters[level_id]=3&amp;st_player_cv_filters[_csrf_token]=023c5c9fb5fc7e7b6ed60d6839c36f67 (form rende...

jquery - setting the url after the hash

I'd like if I could click a link with class "query" and have it's id attribute come after the hash. For example, a link that looks like this: <a href="#" id="members" class="query">Members</a> When clicked would change the url from example.com/users to example.com/users#members. Here's my code so far: $('.query').click(function(event...

Is this a good way to create a unique URL token in PHP.?

I need to give access to a specific page of a website to un-registered visitors, when the admin sends a link with token (like we often see for account activation or password renewal). Obviously, token needs to be unique as the token itself will dictate what is visible to the visitor (token will be stored in MySQL DB with access given, s...