Browser/Object RPC
De DigiWiki.
(Page créée avec « This "Getting Started" will allow you to talk XML-RPC to Second Life just by using your web browser. A server is not necessary. In a single HTML page, I provide you with (re… ») |
|||
| Ligne 3 : | Ligne 3 : | ||
In a single HTML page, I provide you with (read Instructions below for accessing it): | In a single HTML page, I provide you with (read Instructions below for accessing it): | ||
| - | + | * A ready-to-run, XML-RPC capable SL script that you can attach to any SL object. | |
| - | *A ready-to-run, XML-RPC capable SL script that you can attach to any SL object. | + | * An HTML page that sends RPC requests to and receives responses from the SL script. |
| - | *An HTML page that sends RPC requests to and receives responses from the SL script. | + | * Important Tidbits section about XML-RPC in SL (limitations, etc.) to get you going. |
| - | *Important Tidbits section about XML-RPC in SL (limitations, etc.) to get you going. | + | |
I limited the functionality so that you can easily tweak the code until you're on your own two feet. | I limited the functionality so that you can easily tweak the code until you're on your own two feet. | ||
| Ligne 12 : | Ligne 11 : | ||
IMPORTANT: This works only in Internet Explorer right now. An ActiveX object is used to communicate via XML-RPC: you must unblock it if your IE browser blocks it (the default). I'll change it to work with other browsers when I have the time. | IMPORTANT: This works only in Internet Explorer right now. An ActiveX object is used to communicate via XML-RPC: you must unblock it if your IE browser blocks it (the default). I'll change it to work with other browsers when I have the time. | ||
| - | + | '''Instructions''' | |
| - | Instructions | + | |
Simply copy the contents of the html code below into a file in your computer, save it (with an .html extension, of course), and open it in Internet Explorer. | Simply copy the contents of the html code below into a file in your computer, save it (with an .html extension, of course), and open it in Internet Explorer. | ||
| Ligne 19 : | Ligne 17 : | ||
I will update the code and the Important Tidbits section as things change in the SL protocol/limitations. | I will update the code and the Important Tidbits section as things change in the SL protocol/limitations. | ||
| - | < | + | <php> |
<html> | <html> | ||
<!-- Getting Started Second Life XML-RPC (version 1) -- Ruben Kleiman 11/14/06 | <!-- Getting Started Second Life XML-RPC (version 1) -- Ruben Kleiman 11/14/06 | ||
| Ligne 208 : | Ligne 206 : | ||
</body> | </body> | ||
</html> | </html> | ||
| - | </ | + | </php> |


