Comments (5)
I'm not sure what you're asking. Just like $.param.fragment( '/some/url.html', 'a=1' )
will try to merge fragment params "a=1" into url "/some/url.html" and return "/some/url.html#a=1", $.param.fragment( '', 'a=1' )
will try to merge fragment params "a=1" into url "" and return "#a=1".
And you probably shouldn't compare BBQ "params" fragments as strings, because in different browsers (since objects' property order is unsorted and not guaranteed) there's the possibility that the individual params could be encoded in different orders.
from jquery-bbq.
What i'm trying to explain is that .fragment have different behavior when you call it with no params :
if your url is http://google.com/#q=yes
$.param.fragment() return "q=yes" without the #
while $.param.fragment('', 'q=yes') will return #q=yes so i was thinking that the behavior was different.
from jquery-bbq.
That's the expected behavior, the documentation for jQuery.param.fragment states that the method returns:
The parsed fragment (hash) string, with any leading â#â removed.
from jquery-bbq.
I think I actually need to update the documentation for jQuery.param.fragment (build url)
to indicate that it returns:
A URL with a urlencoded fragment (hash) in the format â#a=b&c=d&e=fâ.
from jquery-bbq.
Ok thank you for your anwsers, this is now closed
from jquery-bbq.
Related Issues (20)
- deparam.querystring() returns abnormal results for URLs without a query string HOT 1
- jQuery.param.querystring (build url) should use recursive merge (aka. deep copy).
- removeState & param.fragment questions
- 'window' parameter for module
- Doesn't work on Windows Phone (IE9 Mobile)
- How to display filled forms submitted via ajax when back button clicked
- Merging content on links
- Loading content and animation
- Get into bower! HOT 10
- Integrate with filtrify.js HOT 1
- release jquery-bbq-v1.3
- BBQ dead? HOT 8
- Can qs be part of state
- Uncaught TypeError: Cannot read property 'msie' of undefined HOT 5
- css breaks javascript on android 4.2
- Exception when loaded -- jquery.ba-bbq.min.js:formatted:197 Uncaught TypeError: Cannot read property 'msie' of undefined HOT 1
- TypeError: browser is undefined
- Add support of jQuery 3
- Prototype pollution vulnerability HOT 3
- Is the LICENSE "MIT & GPL" or "MIT OR GPL"? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ď¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-bbq.