hi guys,
i'm creating a bookmarking script that allows my website visitors to bookmark a special link that executes some javascript code that detects the title(document.title) and url(window.location) of the site they are viewing then redirects them to a pre-filled form with those two items that they can edit and submit for approval.
however the problem i'm having is that if the url has extra parameters some are getting lost....
gets chopped down to...Code:http://www.example.com/?a=1&b=2
is there a javascript function that can encode the url so nothing gets lost on the way over?Code:http://www.example.com/?a=1
also what should i use to encode the title if has special characters like ellipses(...), pipes(|), etc?
thanks guys,
Michael.


Reply With Quote

Bookmarks