Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoded string in a parameter results in change not triggering #46

Open
ghost opened this issue Jan 4, 2011 · 2 comments
Open

Encoded string in a parameter results in change not triggering #46

ghost opened this issue Jan 4, 2011 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 4, 2011

When I have URL such as http://page.com/?id=user

and I change the url to:http://page.com/?id=user%ed
then change is not being called.

%ed is í encoded. Any ideas?

@asual
Copy link
Owner

asual commented Feb 19, 2011

Can you please provide some more info?

Is this page using the pushState support or it's http://page.com/#/?id=user

Are you changing the value programmatically or manually using the address bar?

@kokolores
Copy link

I'm having the same problem.

When setting the address.value for example like so:
$.address.value('param1=value1&param2=value2')

and then observing externalChange:
$.address.externalChange(function(event){
$.post('abc.pl?', event.value, function(r){
$('#t').html(r)
});
});

the change event is only being fired in Firefox, which displays the url unescaped:
http://page.com/abc.pl?param1=value1&param2=value2

webkit browsers do not trigger the change event and display the url escaped:
http://page.com/abc.pl?param1%3Dvalue1%26param2%3Dvalue2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants