logo

New Response

« Return to the blog entry

You are replying to:

  1. @Roger - The principle is to inject Javascript into a calling page - I believe this is the way alot of advertisments etc are inserted at runtime into web pages, so to answer your question, JSON is not required but Javascript is.

    So the Javascript can carry any data you want but it has to be valid Javascript in the first instance. What you need to do is have a Javascript function on your page which takes a string as a parameter, when the script tag is inserted into the page this will cause the script to fire straight away - say to an agent, this agent as its output (remember to remove the HTML tags), just prints out the JS function you want to call + the string value. The string value could be HTML or XML but the real value is in JSON which can be easily converted into a Javascript object which makes it easier to extract the data and hence output to the page.

    Thats propably clear as mud, if you want any more info just drop me an email.

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: