Saturday, March 17, 2012

Add Wolfram|Alpha Query Box in Blog

I have spent some time on WolframAlfram(WA) computable knowledge engine during evenings recently. What I found is that all Wolfram products, projects or apps are based on Mathemetica software or application. For example, WA, CDF(computable document format), and Mobile apps.

From WA web page, I find a link about how to add WA to blog or web sites. The HTML script is very simple one. There are serval sizes available. Here is an example to add a small size WA:

1 <script id="WolframAlphaScript" 
2   src="http://www.wolframalpha.com/input/embed/?type=medium"
3   type="text/javascript">
4 </script>

Here is what it looks like:

However, I could not find a way to put a query text into the WA input box directly. In WA, you can type a query text there, for example, pi. From there, I can get a URL about the query:

http://www.wolframalpha.com/input/?i=pi

As a result, an alternative way to add a WA query is to add a link with a query text:

Query: pi



References

1 comments:

Keyur said...

there is a way to direct query the result without even the wolfram gadget.
that is with api.
I don't know how to pass that api query from html(my website)and receive the incoming data from the query.
there is option of changing the result data but what i get is "This XML file does not appear to have any style information associated with it. The document tree is shown below."
i was wondering if you can help me