Questions tagged [decodeuricomponent]
56 questions
0
votes
1 answer
decodeURI issue - hyperlink becomes a plain text
I am working on Sharepoint App. Their is one functionality to get the contact details from the sharepoint site list.
Here is my piece of code:
var currentOpeningContent = '
Dilip Kumar Yadav
- 565
- 1
- 7
- 27

Dilip Kumar Yadav
- 565
- 1
- 7
- 27
0
votes
0 answers
decodeURIComponent throwing an error "URIError: URI malformed at decodeURIComponent" as it is not able to decode rawurlencode(data) from the php
decodeURIComponent throwing an error while decoding the encoded data in php.
data is encoded in PHP using rawurlencode function and while decoding in js we are using decodeURIComponent.
For few data I am getting an error for other values it is…

Sunil
- 19
- 1
- 8
0
votes
1 answer
Backbone decodes my query strings
Backbone keeps decoding my query string params. For example when I do
var query_string = encodeURIComponent('New York')
Backbone.history.navigate('search?location='+query_string, {trigger: true})
I get an URL with path:
/#search?location=New York…

Vlatko Ristovski
- 111
- 1
- 11
0
votes
1 answer
understanding how decodeURI works
I am trying to get the decoded value for the string. I notice that decodeURI (i am not using unescape because i read somewhere that its deprecated) works when i do a document.write(), but the alert still shows the non-decoded value.
var uri =…

noi.m
- 3,070
- 5
- 34
- 57
0
votes
1 answer
title does not work with decodeURIComponent and space
I am trying to write with javasctipt line of code, but decodeURIComponent ignore everything after %20 (space). How to solve this?
$(".intome").append($('
'));
Instead of:

MrJ
- 13
- 3
0
votes
4 answers
How to catch error when using decodeURI?
For example if use decodeURI('%C4%97%') it fires and error (yes, it is an error, specially for test):
URIError: malformed URI sequence
...('textarea#encode-url-result').val(decodeURI(jQuery('input#encode-url-input').va...
And even if i put it in…

user1692333
- 2,461
- 5
- 32
- 64
0
votes
1 answer
Error passing to javascript a string encoded with php's urlencode()
i have a string passed from php script to jquery script encoded with rawurlencode():
$str = '';
echo rawurlencode($str);
and i'm trying to decode it with decodeURIComponent:
var decoded = decodeURIComponent(str);
finally i'm getting…

Serg
- 11
- 3
0
votes
2 answers
Issue with using decodeURIComponent
Im trying to decode the %20 in the URL link so that i cant get my value without adding %20 in the textfield when i decode the code from current page to next page, below is my coding for decode the %20 and where i place
function loadRecord(i){
…

newbie
- 41
- 11
-1
votes
1 answer
Difference in behavior parsing unicode in Javascript
When I run the JSON.parse or decodeURI directly with the variable (_) / regex expression that gives the string, it throws error or does not decode but when I run these functions with the same string in the console, it works. I'm sure I'm missing…

Kiran
- 340
- 2
- 11
-1
votes
1 answer
Check checkboxes based on URL parameters
I am trying to check various checkboxes on a form based on parameters found in the URL.
The URL could resemble something like this:
https://development.mycompany.com/project/home.php?profile=profile1,profle2®ion=&rep=
As you will see, the…

John Beasley
- 2,577
- 9
- 43
- 89
-4
votes
1 answer