When trying to rerender a pageBlockSection with an image tag inside to pick up a new src url from the controller, chrome works just fine but Firefox is encoding the { and the }. Is there any way to stop Firefox from doing that?
NOTE: The brackets are in the url for the image. Yes, this is not normal but it is how Scene7 is set up.
NOTE 2: Oh shoot, I didn't proofread and put escape when I meant encode. The brackets are getting encoded for urls, scenes 7 is choking on that.
Attribution to: Bob Roberts
Possible Suggestion/Solution #1
Because I needed the unencoded values in the url and salesforce was (rightfully) encoding it, I used javascript to change the url and replace the encoded brackets with the brackets themselves.
Attribution to: Bob Roberts
Possible Suggestion/Solution #2
You have to encode your url.
- { ==>
%7B
- } ==>
%7D
Sample :
- url decoded: http://site.com?paramerer={value}
- url params encoded: http://site.com?paramerer=%7Bvalue%7D
Try manually using this: http://meyerweb.com/eric/tools/dencoder/
Also, you could use this function: {!URLENCODE('{value}')}
Attribution to: Martin Borthiry
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/34570