-
Re: Want to open a link on click of the Add-ons
Ryan Rutan Apr 29, 2014 12:43 PM (in response to snigdha.challa)Links for App Actions cannot be non-app targets. The best you can do would be to do something like:
- Open the App Model
- On Gadget Init => construct a new window/browser with the mailto: url with subject & body parameters
- Perhaps its worthwhile to put some sort of "preparing email messaging" etc...
- This should prompt the user's email client to launch
- Then issue the gadget close after the new window is opened.
To my knowledge that is the only way to do this. Hope that helps.
-
Re: Want to open a link on click of the Add-ons
snigdha.challa Apr 29, 2014 12:46 PM (in response to Ryan Rutan)Thanks Ryan Rutan for the prompt response.
The new window would be a simple form that I would need to construct right ?
Or will it open as a new mail in outlook ?
-
Re: Want to open a link on click of the Add-ons
Ryan Rutan Apr 29, 2014 12:53 PM (in response to snigdha.challa)when you defining your action in the app.xml, you will specify the HTML that is that action. The HTML will have little (or no visible elements)...but would use the gadgets.util.registerOnLoadHandler (or jQuery onReady) to execute the init logic. I would double check, but I'm pretty sure if you do a (pseudo-code) => new window('mailto:xxxx') that this should launch the mail client directly...but you'll need to test that theory.
-
Re: Want to open a link on click of the Add-ons
snigdha.challa Apr 29, 2014 2:29 PM (in response to Ryan Rutan)
-
-