Accessibility

Table of Contents

Deconstructing the Floogle SMS Application

Setting Variables

I've set both the smscode and activeType variables on the root timeline ("/") for easy reference. In this case the smscode variable is empty, because Google Local (which is being used for Business queries) doesn't take any shortcodes. However, the line on the Froogle button in the combo list reads:

set("/:smscode", "F ");

This is because the Google SMS shortcode for a Froogle query is F. Note the extra space after the shortcode. When the query string is appended, this space separates the shortcode from the query.

After the query type is chosen, it is time to enter the actual query in the input text field, which has the variable name querystring. When submitting the query, the application concatenates the smscode and querystring variables to build the string that is sent to Google SMS.