Show presence text on another webpage

I am a real programming novice so I am not sure how best to accomplish what I need and am hoping someone out there can help. I have installed the presence plugin and it works fine. What I want to do however, is to show both the icon and the text on a different server…

So I can go here:

http://example.com:9090/plugins/presence/status?jid=jsmith@example.com&type=text

and I get “Available” on the page that comes back.

Or I can go here:

http://example.com:9090/plugins/presence/status?jid=jsmith@example.com

and I get the green icon on the page that comes back.

But, I am wanting to display both at the same time on a different server. Something like this:

<?xml version=“1.0” encoding=“UTF-8”?>

<!DOCTYPE html

PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”

“DTD/xhtml1-strict.dtd”>

<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en” lang=“en”>

<head>

<title> Support Chat Test Page </title>

</head>

<body>

<table>

<tr>

<td>

</td>

<td>

WANT TEXT HERE

</script>

</td>

</tr>

</table>

</body>

</html>

How do I display the results of “http://example.com:9090/plugins/presence/status?jid=jsmith@example.com&type=text9090/plugins/presence/status?jid=jsmith@example.com&type=text” in the cell where I have written “WANT TEXT HERE”

I’ve done this with a small PHP script that emits JavaScript that you can include in pages on other servers: http://blogs.reucon.com/srt/2007/11/20/adding_presence_to_your_website.html

Hope that helps you get started.

=Stefan

Worked great. I couldn’t figure out how to make the presence.js call work, so I just put in the applicable php code directly in my my html and it worked. Thanks a lot,.