We have an API that outputs XML and JSON based on 2 input parameters (location and keyword). We would like to have a widget created that uses javascript to render a nice HTML interface on this.
Goals:
– The partner wanting to user our widget would not need to use our API.
– They would specify a standard Javascript file
– They would include a div which includes an anchor speficifying a URL with the two parameters (basically, our no-script & bot link out)
– The javascript would then
– Read the URL and parse out the two parameters
– Call our API with those parameters
– Render HTML view of the API contents
We need to have the javascript created for this. We would like the javascript to not be minified or obfuscated in a manner that would prevent extension or bug-fixing.
