URI protocol for invoking pidgin

Steven Gauna smcgauna at gmail.com
Wed Aug 29 20:35:49 EDT 2012


Since you seem to be using JavaScript, might as well use
encodeURIComponent:
http://www.w3schools.com/jsref/jsref_encodeuricomponent.asp

On Wed, Aug 29, 2012 at 5:24 PM, Dave Warren <lists at hireahit.com> wrote:

> On 8/29/2012 3:32 PM, Mohamed Hamed wrote:
>
>> Thank you Daniel for the quick response.
>> It is working fine now after adding the message command.
>>
>> However I had another problem. If the body has a space, nothing come
>> after the space.
>> For ex:
>>   I created a bookmark as the following :
>>
>>   javascript:(function(){window.**location='xmpp:user.name@**
>> oracle.com?message;body=SR<http://xmpp:user.name@oracle.com?message;body=SR>12345';;})();;
>>
>>   This successfully open the chat window for user.name with a body as
>> "SR" and any text after the space is ignored.
>>
>>
> Since we're talking URIs, shouldn't a space be encoded as %20 or similar?
>
> --
> Dave Warren
> http://www.hireahit.com/
> http://ca.linkedin.com/in/**davejwarren<http://ca.linkedin.com/in/davejwarren>
>
>
> ______________________________**_________________
> Support at pidgin.im mailing list
> Want to unsubscribe?  Use this link:
> http://pidgin.im/cgi-bin/**mailman/listinfo/support<http://pidgin.im/cgi-bin/mailman/listinfo/support>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/support/attachments/20120829/0ca8c148/attachment.html>


More information about the Support mailing list