Welcome Guest, Not a member yet? Register   Sign In
URL help
#7

[eluser]Pascal Kriete[/eluser]
Glad it works for you Smile .

There is a list of permitted characters, called permitted_uri_chars, in config/config.php. Interestingly, I can't reproduce the forward slash error today. Do you have a sample url?

Also, there may be an easier way. Since the user needs to have javascript enabled for any of this to work, we can assume that we have access the url hash. So we could just add it there. On our site we then grab that and post it to the backend. No encoding needed.

Code:
// Link
http://[mydomain]/bookmark/addbookmark/#'+location.href

// addbookmark page
var url = window .location .hash.substring(1);
new Ajax.PostRequest('whatever you use');


Messages In This Thread
URL help - by El Forum - 01-02-2008, 01:23 PM
URL help - by El Forum - 01-02-2008, 01:51 PM
URL help - by El Forum - 01-07-2008, 09:21 AM
URL help - by El Forum - 01-07-2008, 02:13 PM
URL help - by El Forum - 02-13-2008, 07:24 PM
URL help - by El Forum - 06-03-2008, 07:18 AM
URL help - by El Forum - 06-03-2008, 08:31 AM
URL help - by El Forum - 06-03-2008, 08:42 AM
URL help - by El Forum - 06-03-2008, 09:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB