I need to get the SSID of the currently connected WiFi Network (if it is wifi). Is this possible?

I saw something on it here (http://www.w3.org/TR/system-info-api/#network), but I can't seem to get the code to run. Is there a library I need to import or is this just planned implementations?

I'm writing a phonegap application and need to know whether I should connect to a server locally or if I need to go remotely.

Thanks

Edit
Report