1-Jun-12 (Created: 1-Jun-12) | More in 'control files'

control: feedback support js file bkp 06/01/2012

function aspire_helpCommand(commandname, subject, body, ci , completesubjectline , completeBody) { var qhelp = "
";
   qhelp = qhelp + "\ncode\ncode1\nimages\nimage\nlink\nquestion\ngquestion\naquestion\nwhoareyou\nhelp";
   qhelp = qhelp + "
"; var baseurl="/akc/display?url=DisplayNoteIMPURL&reportId=3905&downerUserId=satya"; //body exists var newbody = '

Click her to see full help

'; newbody = newbody + qhelp; ci.newSubject=subject; ci.newAppendText = newbody; } function aspire_whoareyouCommand(commandname, subject, body, ci , completesubjectline , completeBody) { var baseurl="http://www.satyakomatineni.com/akc/display?url=DisplayNoteBodyURL&reportId=2177&ownerUserId=satya"; //body exists var newbody = '

Click her to see me

'; ci.newSubject=subject; ci.newAppendText = newbody; } function aspire_code1Command(commandname, subject, body, ci , completesubjectline , completeBody) { if (body == "") { ci.newSubject=subject; return; } //body exists var newbody = body.replace(//g,">"); newbody = newbody.replace(/\t/g," "); newbody = "
\n" + newbody + "\n
"; ci.newSubject=subject; ci.newAppendText = newbody; } function aspire_replaceTabs(ins) { return ins.replace(/\t/g," "); } function aspire_googleCommand(commandname, subject, body, ci , completesubjectline , completeBody) { var baseurl="http://www.google.com/search?hl=en&q=" + escape(subject); //body exists var newbody = '

Search for: ' + subject + '

' ci.newSubject=subject; ci.newAppendText = newbody; } function aspire_imagesCommand(commandname, subject, body, ci , completesubjectline , completeBody) { var baseurl="http://www.google.com/images?hl=en&q=" + escape(subject); //body exists var newbody = '

Show images for: ' + subject + '

' ci.newSubject=subject; ci.newAppendText = newbody; } function aspire_imageCommand(commandname, linkText, linkUrl, ci , completesubjectline , completeBody) { dalert(linkText); dalert(linkUrl); if (linkText == "") { this.errorMessage = "Subject is empty"; return; } if (linkUrl == "") { this.errorMessage = "A image url is required for a image command"; return; } var finalBody = '

'; dalert(finalBody); ci.newAppendText = finalBody; ci.newSubject = linkText; } function aspire_gquestionCommand(commandname, subject, body, ci , completesubjectline , completeBody) { var appendText = '

' + subject + '

'; var baseurl="http://www.google.com/search?hl=en&q=" + escape(subject); //body exists var googleSearchUrl = '

Search for: ' + subject + '

' ci.newSubject=subject; ci.newAppendText = appendText + "\n" + googleSearchUrl; } function aspire_aquestionCommand(commandname, subject, body, ci , completesubjectline , completeBody) { var appendText = '

' + subject + '

'; ci.newSubject=subject; ci.newAppendText = appendText + "\n" + getGoogleText(subject) + "\n" + getAndroidDevelopersText(subject) + "\n" + getAndroidBeginersText(subject) + "\n" + getGoogleCodeText(subject) + "\n" + getAndroidIssuesText(subject) ; } function getGoogleText(subject) { var baseurl="http://www.google.com/search?hl=en&q=" + escape(subject); var googleSearchUrl = '

Search Google for: ' + subject + '

'; return googleSearchUrl; } function getAndroidDevelopersText(subject) { var baseurl="http://groups.google.com/group/android-developers/search?group=android-developers&q=" + escape(subject); var searchUrl = '

Search Android Developers Group for: ' + subject + '

'; return searchUrl; } function getAndroidBeginersText(subject) { var baseurl="http://groups.google.com/group/android-beginners/search?group=android-beginners&q=" + escape(subject); var searchUrl = '

Search Android Beginers Group for: ' + subject + '

'; return searchUrl; } function getGoogleCodeText(subject) { var baseurl="http://code.google.com/search/#p=android&q=" + escape(subject); var searchUrl = '

Search Google Code for: ' + subject + '

'; return searchUrl; } function getAndroidIssuesText(subject) { var baseurl="http://code.google.com/p/android/issues/list?can=2&colspec=ID+Type+Version+Security+Status+Owner+Summary&cells=tiles&q=" + escape(subject); var searchUrl = '

Search Android Issues Database for: ' + subject + '

' return searchUrl; } /* *************************************************** * Dictionary support *************************************************** */ function aspire_dictCommand(commandname, subject, body, ci , completesubjectline , completeBody) { if (body == "") { ci.newSubject=subject; return; } //body exists var newbody = aspire_getWordUrls(body); newbody = '
\n' + newbody + '
\n'; ci.newSubject=subject; ci.newAppendText = newbody; } function aspire_getWordUrls(body) { var lineArray=aspire_splitLines(body); var newbody = ""; for(i=0;i' + word + '

'; return template; } function aspire_splitLines(body) { var lineArray = body.split('\n'); return lineArray; }