What are the parameters one can substitute for 'xyz' in the topic title? I know of HTML: <a href='po:watch/battleId'> and HTML: <a href='po:reconnect'> but I recall there are more than these two.
Should be all listed in this thread: http://pokemon-online.eu/forums/showthread.php?14372-Chat-Links.
Code (html5): <a href="po:join/channelname">Join Tournaments</a> <a href="po:watchplayer/name_or_id">Watch John's match</a> <a href="po:pm/name_or_id">PM John</a> <a href="po:ignore/name_or_id">Ignore John</a>
The link above that Crystal has provided is no longer available. I've asked auth and they provided a link to new location. I post it here so others can find them. https://github.com/po-devs/pokemon-online/wiki/po:-Protocol Also I think this thread has the wrong prefix. All these all look like Client Scripting only protocols.
The server can send HTML in the same way, hence the reconnect button you always see with or without client scripts. I don't think it was initially intended for client scripts from the way the wiki is worded, but it functions just fine.
Is it possible to call a client script function with this method? I've tried this but no luck. Was hoping to try new script method with more GUI stuff where I click a html link it calls a function. Code (JavaScript): <a href='javascript:myFunction();'>Run function</a> // alerts Internet Explorer error <a href='myFunction();'>Run function</a> // doesn't work <a href='po:myFunction();'>Run function</a> // doesn't work <a onClick='myFunction();'>Run function</a> // doesn't work
I see. Thanks though. I was trying to make something where all user's name in messages are all click-able. Making a html table of options, for that user, like channel kick and lookup, and more.