Llama explained – Javeline Teleport
When things go wrong
One of the thing I love about Javeline above other solutions is the way errors are handled. This is a feature I actually suggested. When there is an error in the javeline definition, an error box pops up showing what’s wrong. The teleport logs its actions, so you can find what is wrong more easily. A pending feature is to actually show the offending node, which will make it even easier to debug your code.
This error box will also show you any javascript error that occurs. With the checkbox you can give control back to the default debugger of you browser (in my case firebug, which i can highly recommend).
Javeline Teleport support all mayor browsers, Mozilla Firefox/SeaMonkey, Internet Explorer 5, 6 & 7, Safari and Opera. However it is required that your page is valid XML, meaning all tags must be closed. When you use inline javascript you need to put tags around the code.
Next time
Next week I’ll write a post on how to use the output buffer to add this feature to your pages, without having to completely rewriting them. So please visit my blog again.
23 Feb 2007 Arnold Daniels





[...] Well, over time several other protocols were created. A group of people doing a lot of javascript based RPC thought it would be nicer to encode the messages using javascript itself. So they created JSON-RPC. With all the hype around web services the PHP developers felt that this was just bloat. Why not just use REST/POST to get the xml. If you want to call the method getUsers. Just call http://www.example.com/rpc.php?func=getUsers and you are done. No extra protocol needed. In particular for non-enterprise solutions this is a very easy way. [...]
Hi!
I did some playing with your code but I can’t seem to get teleport to pass variables around, or at least more than one. I poked and prodded around the ajax.org and the javelin developer site and couldn’t find the right syntax. I get no errors and the help fields work but my little game engine in ajax (Hammurabi, in honor of one of the very first computer games) doesn’t get the form fields value at all.
You can see the llama_msg.php file at
http://ffproject.net/xfer/llama/hamu_llama_msg.txt
BTW, I hope you don’t mind but I named Hammurabi’s prime minister Mr. Llama in your honor
Hi Renmiri,
Great to hear that you are working with TelePort. I am the developer of that library and Arnold asked me to answer your question. If you look at the following code you will see that it works (if I understood your question correctly that is):
var p1 = document.getElementById(”acresp”).value;
var p2 = document.getElementById(”bushelsd”).value;
var p3 = document.getElementById(”landb”).value;
var p4 = document.getElementById(”lands”).value;
llama_comm.getMessage(’newyear’,p1,p2,p3,p4);
When you type Ctrl-g you will get a debug screen in which you can try this code by pasting it in the ‘Javascript console’ section. If this wasn’t the nature of your problem don’t hesitate to ask me about it. If you wish, please join our mailinglist (http://lists.javeline.net/listinfo/internals) so that everybody can benefit from your questions and the answer to them.
Kind Regards,
Ruben Daniëls
Wooohoo!!!!
Got it to work finally! You should use my mods because it shows how to send mre than one value to the php, plus not only hardcoded msgid but form field values as well, allowing you to do form validation just using javeline teleport. Really cool!!!
http://ffproject.net/xfer/llama/index.html
(Try entering negative values!)
your suggestion worked, thanks!!! try it here
http://ffproject.net/xfer/llama/index.html
Download it here
http://ffproject.net/xfer/llama/hammurabi_ajax.zip
I just gotta say I loved Javeline teleport. This will make my life so much easier!!!