| cgmail2.js | |
| Constants | |
| GMAIL_MAIN_DOC_URL | The url of the mail document for gmail |
| GMAIL_MAIN_DOC_URL2 | The url of the mail document for gmail and https. |
| FireGPG. | This is the main class to manage gmail’s function with the new interface. |
| Variables | |
| doc | A list of document who can be used. |
| docOccuped | A list of document who wait to be checked. |
| current | The current document id used (to be unique) |
| Functions | |
| checkDoc | This function check a document for sign and button to add on a page. |
| callBack | This function create a function witch is called when the user click on a button |
| getWriteMailContent | Return the content of a mail in composition (his selection if something is selected) |
| getWriteMailContentForDirectSend | Return the content of a mail in composition (his selection if something is selected) |
| iframeOrTextarea | Return iframe if the iframe is used to compose the mail, textarea if not. |
| getTheIframe | Return the iframe used to compose a mail |
| getTheTextarea | Return the textarea used to compose a mail |
| getToCcBccMail | Return the To, CC and BCC filds’ value of a mail in composition. |
| setWriteMailContent | Set the content of a mail in composition (his selection if something is selected) |
| getMailContent | Retrun the content of a mail, need the div object with the mail |
| setMailContent | Set the content of a mail, need the div object with the mail |
| initSystem | This function init the class : she load specific options, and attach listeners to the webpages. |
| pageLoaded | This function is called when a page is loaded. |
| clickOnDock | This function is called when the user click on the page. |
| getMimeMailContens | Return the mime source of a mail |
This is the main class to manage gmail’s function with the new interface.
| Variables | |
| doc | A list of document who can be used. |
| docOccuped | A list of document who wait to be checked. |
| current | The current document id used (to be unique) |
| Functions | |
| checkDoc | This function check a document for sign and button to add on a page. |
| callBack | This function create a function witch is called when the user click on a button |
| getWriteMailContent | Return the content of a mail in composition (his selection if something is selected) |
| getWriteMailContentForDirectSend | Return the content of a mail in composition (his selection if something is selected) |
| iframeOrTextarea | Return iframe if the iframe is used to compose the mail, textarea if not. |
| getTheIframe | Return the iframe used to compose a mail |
| getTheTextarea | Return the textarea used to compose a mail |
| getToCcBccMail | Return the To, CC and BCC filds’ value of a mail in composition. |
| setWriteMailContent | Set the content of a mail in composition (his selection if something is selected) |
| getMailContent | Retrun the content of a mail, need the div object with the mail |
| setMailContent | Set the content of a mail, need the div object with the mail |
| initSystem | This function init the class : she load specific options, and attach listeners to the webpages. |
| pageLoaded | This function is called when a page is loaded. |
| clickOnDock | This function is called when the user click on the page. |
| getMimeMailContens | Return the mime source of a mail |
clickOnDock: function( docid )
This function is called when the user click on the page. She will call checkDoc 5s later.
| docid | The document ‘s id of the click. |
This function check a document for sign and button to add on a page.
checkDoc: function( id, retry )
This function create a function witch is called when the user click on a button
callBack: function( doc )
Return the content of a mail in composition (his selection if something is selected)
getWriteMailContent: function( dDocument, boutonxboxnode, betterTextOnly, forMime )
Return the content of a mail in composition (his selection if something is selected)
getWriteMailContentForDirectSend: function( dDocument, boutonxboxnode )
Return iframe if the iframe is used to compose the mail, textarea if not.
iframeOrTextarea: function( dDocument, boutonxboxnode )
Return the iframe used to compose a mail
getTheIframe: function( dDocument, boutonxboxnode )
Return the textarea used to compose a mail
getTheTextarea: function( dDocument, boutonxboxnode )
Return the To, CC and BCC filds’ value of a mail in composition.
getToCcBccMail: function( dDocument, boutonxboxnode, onlyto, onlycc, onlybcc )
Set the content of a mail in composition (his selection if something is selected)
setWriteMailContent: function( dDocument, boutonxboxnode, newText )
Retrun the content of a mail, need the div object with the mail
getMailContent: function( i, doc )
Set the content of a mail, need the div object with the mail
setMailContent: function( papai, doc, data )
This function init the class : she load specific options, and attach listeners to the webpages.
initSystem: function()
This function is called when a page is loaded.
pageLoaded: function( aEvent )
This function is called when the user click on the page.
clickOnDock: function( docid )
Return the mime source of a mail
getMimeMailContens: function( id, doc )