fragment-identifier

jquery history plugin

浪子不回头ぞ 提交于 2019-11-30 14:38:28
I am using this plugin: http://plugins.jquery.com/project/history on this page: http://www.crtaci.info/index.php?autocom=majice I dont know why but it seems i cant figure out what to do to get this to work... Guess i need more sleep... :) railscasts has an episode regarding this topic: http://railscasts.com/episodes/175-ajax-history-and-bookmarks I use the jQuery BBQ: Back Button & Query Library. It's simple, robust, and has a http://benalman.com/projects/jquery-bbq-plugin/ An alternative which I use is balupton's jQuery History which provides nice tracking of hash changes for your website.

jQuery removing hash value from URL

别来无恙 提交于 2019-11-30 12:50:22
问题 I have a hard coded URL like so: https://bupacouk.bwa.local.internal.bupa.co.uk/cash-plan-quote/quoteAction.do?getBenefitLevelDetails=getBenefitLevelDetails&productPolicyId=7841#a1 When Javascript is enabled i don't want the hash value on the end so how do i remove it? When Javascript is disabled it needs to be present. Thanks. EDIT Here is the AJAX jQuery that i am using. So i am pasisng the hard coded URL to the same page on the server and retrieving a table from it: // Find href of current

How to access url hash/fragment from a Django Request object

六眼飞鱼酱① 提交于 2019-11-30 06:00:54
As in the title: how can I access the url hash/fragment (the part following the dash # ) from a Django view and so, I suppose, from a Django Request object? I've not found enough information on the documentation here available: http://docs.djangoproject.com/en/dev/ref/request-response/ P.S. Suppose that the fragment part is sent to the server (it is so in my specific case since it's not a browser to send the request). This is not sent to the server, by definition. From URI References: Fragment Identifiers on URIs : "The HTTP engine cannot make any assumptions about it. The server is not even

JavaScript/jQuery - onhashchange event workaround

痞子三分冷 提交于 2019-11-30 04:19:53
问题 Until all browsers support the onhashchange event what is the best workaround for this? Is there something for this in jQuery? or as a plug-in? 回答1: Not sure if this is what you're looking for or not but worth a try: http://plugins.jquery.com/project/ba-jquery-hashchange-plugin 回答2: Yes there is. Check out this jQuery plugin: http://benalman.com/projects/jquery-hashchange-plugin/ 回答3: var lastHash = ""; window.onload=function() { hashChangeEventListener = setInterval("hashChangeEventHandler()

jQuery removing hash value from URL

戏子无情 提交于 2019-11-30 03:21:10
I have a hard coded URL like so: https://bupacouk.bwa.local.internal.bupa.co.uk/cash-plan-quote/quoteAction.do?getBenefitLevelDetails=getBenefitLevelDetails&productPolicyId=7841#a1 When Javascript is enabled i don't want the hash value on the end so how do i remove it? When Javascript is disabled it needs to be present. Thanks. EDIT Here is the AJAX jQuery that i am using. So i am pasisng the hard coded URL to the same page on the server and retrieving a table from it: // Find href of current tab var $tabValue = $(this).attr('href'); // AJAX new table in $.ajax({ type: "GET", cache: false, url

jquery history plugin

北城以北 提交于 2019-11-29 20:49:19
问题 I am using this plugin: http://plugins.jquery.com/project/history on this page: http://www.crtaci.info/index.php?autocom=majice I dont know why but it seems i cant figure out what to do to get this to work... Guess i need more sleep... :) 回答1: railscasts has an episode regarding this topic: http://railscasts.com/episodes/175-ajax-history-and-bookmarks 回答2: I use the jQuery BBQ: Back Button & Query Library. It's simple, robust, and has a http://benalman.com/projects/jquery-bbq-plugin/ 回答3: An

.htaccess redirect with fragment

穿精又带淫゛_ 提交于 2019-11-29 17:28:34
I need to issue a redirect, using .htaccess, to a URL with a fragment (also known as an anchor), but it's automatically escaping the #. At the moment I want a hard-coded fragment, but for the sake of others if you know how to take it from the URL too that would be good. Ideally I should be able to use QSA as well. For example: http://www.exameple.com/test?foo=bar should become 1) http://www.example.com/?foo=bar#MYVALUE or taking the fragment from the url: 2) http://www.example.com/?foo=bar#test My (non-working) code looks like this: RewriteRule /test http://www.example.com/#MYVALE [R,QSA] I

Using hash tags with Facebook share possible?

倖福魔咒の 提交于 2019-11-29 10:45:09
I'm developing an ajax based web site and I want to include a FB share function on the loaded content. The links use a hash tag and I can't manage to get the full links to show up when using the share function, I only get the domain url. Are hash tags not allowed or is there a special method for sharing such links? Use URL Encoding for the # character. Just replace the following: http://www.example.com/#/path/to/whatever/ with: http://www.example.com/%23/path/to/whatever/ This will allow you to pass the # to share on Facebook, Twitter, etc without getting stripped. josh3736 Take a look at

Response.Redirect with a fragment identifier causes unexpected refresh when later using location.hash

萝らか妹 提交于 2019-11-29 07:47:43
I was hoping someone can assist in describing a workaround solution to the following issue I am running into on my ASP.NET website on IE. In the following I will describe the bug and clarify the requirements of the needed solution. Repro Steps: User visits A.aspx A.aspx uses Response.Redirect to bring the user to B.aspx#house On B.aspx#house, the user clicks a button that sets window.location.hash='test' Actual Results: B.aspx is loaded again. The URL now shows B.aspx#test Expected Results: No reload. The URL will just change to B.aspx#test Requirements: Page A must redirect to page B with a

How to access url hash/fragment from a Django Request object

烂漫一生 提交于 2019-11-29 05:30:30
问题 As in the title: how can I access the url hash/fragment (the part following the dash # ) from a Django view and so, I suppose, from a Django Request object? I've not found enough information on the documentation here available: http://docs.djangoproject.com/en/dev/ref/request-response/ P.S. Suppose that the fragment part is sent to the server (it is so in my specific case since it's not a browser to send the request). 回答1: This is not sent to the server, by definition. From URI References: