Re: Configuring JSpell with Mid-Tier 7.0.1 Patch 6

2008-04-02 Thread Craig Carter
We found the same problem when implementing it for the first time--the spelling 
of the function name was wrong and needed to be changed to jspellcheck() as 
you noted.  I'm amazed that hasn't been fixed.

We're on v7.0.1 P5 with ServletExec and we haven't noticed the problem with it 
not using the correct text but we haven't looked for this specific problem.  We 
have noticed it doesn't seem to work properly if you have more than one midtier 
and are trying to call it from the other midtier server.  The form pops up and 
looks correct but the buttons don't function, etc.  As long as it is hosted on 
the same server, it works fine.

We're also looking at a way to make the header code dynamic so we don't have to 
have the URL hard-coded (due to the problem above).  Storing the file on the 
server and including it somehow would be nice.  If anyone has figured out a way 
to dynamically change the header code stored in the Remedy form, please share.

Craig Carter
Software Engineer, RSP

-Original Message-
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of sumeetdas
Sent: Tuesday, April 01, 2008 10:23 PM
To: arslist@ARSLIST.ORG
Subject: Re: Configuring JSpell with Mid-Tier 7.0.1 Patch 6

All,
I finally got this fixed. I am on ARS and MT 7.1

As per the documentation, the function is called spellcheck() but I
scanned thru the jspell.js file and was unable to locate that
function.

It seems that in the future versions OR in the non-IIS versions of the
Java HTML, the function is called jspellcheck().

Another thing which i noticed was that, JSpell worked fine for records
which had been saved. It also works fine for records which have been
modified and not yet saved. But for some reason, once you save the
record, the text field reverts back to the incorrect text field.

e.g. I have text field called Description and has the text I like. I
modify that recrod [and not Save] and change the text to I like wrld
and hit my custom spellcheck button. JSpell is invoked and it corrects
the word wrld to world in the text area.
However, once I save that record, I like wrld is written to the
database.

Has any one of you faced this issues [if its even an issues] ?

Regards,
Sumeet Das

On Apr 1, 11:24 pm, sumeetdas [EMAIL PROTECTED] wrote:
 Hi,

 I tried all the above steps but i keep on getting the Caught
 Exception: Object expected

 Using various alert functions, I can see that the OurSpellCheck
 function is called and it traverses thru till the spellcheck() is
 called. and that is when I get the Exception error.

 any pointers.. or alternative mechanisms to use the spellcheck() would
 be helpful...

 On Feb 11, 2:19 pm, Timothy Powell [EMAIL PROTECTED]
 wrote:





  Here's what we did to get it to work for multiple fields on the same form:

  ARS 6.3 with MT 7.0 Patch 2

  1) Using at least a 6.3 Admin Tool, on the form where we wanted to check the
  spelling.
  Go to the Form/Current View/Properties and the Appearance tab.
  Add the following to the web header portion:

  script language=JavaScript
  src=http://servername/jspellhtml2k4/jspell.js;/script
  script language=JavaScript
  !--
  var fieldsToCheck=new Array();

  function ourSpellCheck(fieldName)
  {
   fieldsToCheck=new Array();
   fieldsToCheck[fieldsToCheck.length]=fieldName;
   spellcheck();

  }

  function getSpellCheckArray() {
   return fieldsToCheck;}

  //--
  /script

  form name = Helpdesk

  2) On the web footer we added the following:

  /form

  3) We created a button on our form for each field we wanted to check.

  4) We added an active link for each field we wanted to check.
  The AL fires on click of the button created in 3 above.
  Run If: $CLIENT-TYPE$ = 9
  If Action: Run Process
  Command Line: javascript
  ourSpellCheck('document.yourformname.aridxxx')

  NOTE: xx = the arid of the field you want to check

  5) In JSpell, on the popup.html form, we added the following line:
  body onload = window.focus()

  HTH,

  Tim

  From: Action Request System discussion list(ARSList)
  [mailto:[EMAIL PROTECTED] On Behalf Of Latter, Kris
  Sent: Monday, February 11, 2008 1:30 PM
  To: [EMAIL PROTECTED]
  Subject: Configuring JSpell with Mid-Tier 7.0.1 Patch 6

  **

  Hello,

  I'm having an issue in trying to setup the JSpell program that has been
  recommended on this list with: (Server, Admin Tool, and Mid-Tier all 7.0.1
  Patch 6) in order to provide spell-checking on a specific form.

  I am wondering if anyone else has successfully setup this program and
  implemented it with Mid-Tier.

  Here is what I have done so far:

  -       Placed the jspellhtml2k4.war file into my Tomcat-webapps directory
  and was able to test the spell checker successfully 
  withhttp://hostname/jspellhtml2k4/test.html

  -       Loaded the form I wanted to implement spell-checking with in the
  admin tool and clicked on EDIT WEB HEADER CONTENT and added the header
  content specified by the help file

Re: Configuring JSpell with Mid-Tier 7.0.1 Patch 6

2008-04-01 Thread sumeetdas
Hi,

I tried all the above steps but i keep on getting the Caught
Exception: Object expected

Using various alert functions, I can see that the OurSpellCheck
function is called and it traverses thru till the spellcheck() is
called. and that is when I get the Exception error.

any pointers.. or alternative mechanisms to use the spellcheck() would
be helpful...

On Feb 11, 2:19 pm, Timothy Powell [EMAIL PROTECTED]
wrote:
 Here's what we did to get it to work for multiple fields on the same form:

 ARS 6.3 with MT 7.0 Patch 2

 1) Using at least a 6.3 Admin Tool, on the form where we wanted to check the
 spelling.
 Go to the Form/Current View/Properties and the Appearance tab.
 Add the following to the web header portion:

 script language=JavaScript
 src=http://servername/jspellhtml2k4/jspell.js;/script
 script language=JavaScript
 !--
 var fieldsToCheck=new Array();

 function ourSpellCheck(fieldName)
 {
  fieldsToCheck=new Array();
  fieldsToCheck[fieldsToCheck.length]=fieldName;
  spellcheck();

 }

 function getSpellCheckArray() {
  return fieldsToCheck;}

 //--
 /script

 form name = Helpdesk

 2) On the web footer we added the following:

 /form

 3) We created a button on our form for each field we wanted to check.

 4) We added an active link for each field we wanted to check.
 The AL fires on click of the button created in 3 above.
 Run If: $CLIENT-TYPE$ = 9
 If Action: Run Process
 Command Line: javascript
 ourSpellCheck('document.yourformname.aridxxx')

 NOTE: xx = the arid of the field you want to check

 5) In JSpell, on the popup.html form, we added the following line:
 body onload = window.focus()

 HTH,

 Tim

 From: Action Request System discussion list(ARSList)
 [mailto:[EMAIL PROTECTED] On Behalf Of Latter, Kris
 Sent: Monday, February 11, 2008 1:30 PM
 To: [EMAIL PROTECTED]
 Subject: Configuring JSpell with Mid-Tier 7.0.1 Patch 6

 **

 Hello,

 I'm having an issue in trying to setup the JSpell program that has been
 recommended on this list with: (Server, Admin Tool, and Mid-Tier all 7.0.1
 Patch 6) in order to provide spell-checking on a specific form.

 I am wondering if anyone else has successfully setup this program and
 implemented it with Mid-Tier.

 Here is what I have done so far:

 -       Placed the jspellhtml2k4.war file into my Tomcat-webapps directory
 and was able to test the spell checker successfully 
 withhttp://hostname/jspellhtml2k4/test.html

 -       Loaded the form I wanted to implement spell-checking with in the
 admin tool and clicked on EDIT WEB HEADER CONTENT and added the header
 content specified by the help file:

 script language=JavaScript src=jspell.js/script

 script language=JavaScript

 !--

 function getSpellCheckArray() {

 var fieldsToCheck=new Array();

 // make sure to enclose form/field object reference in quotes!

 fieldsToCheck[fieldsToCheck.length]=document.getElementById('arid55012154'­)
 ;

 return fieldsToCheck;

 }

 var language;

 //--/script

 -       I also added the content specified to trigger the spell check in the
 active link for the spell check button I have on the form.

 My problem is that Mid-Tier is actually sticking the SCRIPT
 type=text/javascript language=javascript (and so on) /SCRIPT
 information in the body of the document instead of the head of the document,
 so my call to functions on the form from the activelink does not seem to be
 working. Furthermore, the javascript in the activelink does not seem to
 see the form it is running on.

 For example, in the activelink, if I choose RUN PROCESS and type:

 Javascript alert(document.getElementById('arid55012154').value)

 I get Object null

 arid55012154 is specified on the form itself when I view the form as an html
 page, right-click, and go to VIEW SOURCE.

 There is a field, for example, that says textarea id=arid55012154

 I'm hoping that someone can either tell me how to ensure that my SCRIPT
 tags are being put into the HEAD section of the document instead of the
 BODY, or give me other suggestions as to how to properly setup JSpell to
 work with Remedy.

 Any help would be appreciated.

 Thanks,

 Kris Latter
 NAV CANADA
 280 Hunt Club Road
 Ottawa, ON. K1V 1C1
 (613)-248-6568
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

 __Platinum Sponsor:www.rmsportal.comARSlist: Where the Answers Are
 html___

 ___­
 UNSUBSCRIBE or access ARSlist Archives atwww.arslist.org
 Platinum Sponsor:www.rmsportal.comARSlist: Where the Answers Are

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are


Re: Configuring JSpell with Mid-Tier 7.0.1 Patch 6

2008-04-01 Thread sumeetdas
All,
I finally got this fixed. I am on ARS and MT 7.1

As per the documentation, the function is called spellcheck() but I
scanned thru the jspell.js file and was unable to locate that
function.

It seems that in the future versions OR in the non-IIS versions of the
Java HTML, the function is called jspellcheck().

Another thing which i noticed was that, JSpell worked fine for records
which had been saved. It also works fine for records which have been
modified and not yet saved. But for some reason, once you save the
record, the text field reverts back to the incorrect text field.

e.g. I have text field called Description and has the text I like. I
modify that recrod [and not Save] and change the text to I like wrld
and hit my custom spellcheck button. JSpell is invoked and it corrects
the word wrld to world in the text area.
However, once I save that record, I like wrld is written to the
database.

Has any one of you faced this issues [if its even an issues] ?

Regards,
Sumeet Das

On Apr 1, 11:24 pm, sumeetdas [EMAIL PROTECTED] wrote:
 Hi,

 I tried all the above steps but i keep on getting the Caught
 Exception: Object expected

 Using various alert functions, I can see that the OurSpellCheck
 function is called and it traverses thru till the spellcheck() is
 called. and that is when I get the Exception error.

 any pointers.. or alternative mechanisms to use the spellcheck() would
 be helpful...

 On Feb 11, 2:19 pm, Timothy Powell [EMAIL PROTECTED]
 wrote:





  Here's what we did to get it to work for multiple fields on the same form:

  ARS 6.3 with MT 7.0 Patch 2

  1) Using at least a 6.3 Admin Tool, on the form where we wanted to check the
  spelling.
  Go to the Form/Current View/Properties and the Appearance tab.
  Add the following to the web header portion:

  script language=JavaScript
  src=http://servername/jspellhtml2k4/jspell.js;/script
  script language=JavaScript
  !--
  var fieldsToCheck=new Array();

  function ourSpellCheck(fieldName)
  {
   fieldsToCheck=new Array();
   fieldsToCheck[fieldsToCheck.length]=fieldName;
   spellcheck();

  }

  function getSpellCheckArray() {
   return fieldsToCheck;}

  //--
  /script

  form name = Helpdesk

  2) On the web footer we added the following:

  /form

  3) We created a button on our form for each field we wanted to check.

  4) We added an active link for each field we wanted to check.
  The AL fires on click of the button created in 3 above.
  Run If: $CLIENT-TYPE$ = 9
  If Action: Run Process
  Command Line: javascript
  ourSpellCheck('document.yourformname.aridxxx')

  NOTE: xx = the arid of the field you want to check

  5) In JSpell, on the popup.html form, we added the following line:
  body onload = window.focus()

  HTH,

  Tim

  From: Action Request System discussion list(ARSList)
  [mailto:[EMAIL PROTECTED] On Behalf Of Latter, Kris
  Sent: Monday, February 11, 2008 1:30 PM
  To: [EMAIL PROTECTED]
  Subject: Configuring JSpell with Mid-Tier 7.0.1 Patch 6

  **

  Hello,

  I'm having an issue in trying to setup the JSpell program that has been
  recommended on this list with: (Server, Admin Tool, and Mid-Tier all 7.0.1
  Patch 6) in order to provide spell-checking on a specific form.

  I am wondering if anyone else has successfully setup this program and
  implemented it with Mid-Tier.

  Here is what I have done so far:

  -       Placed the jspellhtml2k4.war file into my Tomcat-webapps directory
  and was able to test the spell checker successfully 
  withhttp://hostname/jspellhtml2k4/test.html

  -       Loaded the form I wanted to implement spell-checking with in the
  admin tool and clicked on EDIT WEB HEADER CONTENT and added the header
  content specified by the help file:

  script language=JavaScript src=jspell.js/script

  script language=JavaScript

  !--

  function getSpellCheckArray() {

  var fieldsToCheck=new Array();

  // make sure to enclose form/field object reference in quotes!

  fieldsToCheck[fieldsToCheck.length]=document.getElementById('arid55012154'­­)
  ;

  return fieldsToCheck;

  }

  var language;

  //--/script

  -       I also added the content specified to trigger the spell check in the
  active link for the spell check button I have on the form.

  My problem is that Mid-Tier is actually sticking the SCRIPT
  type=text/javascript language=javascript (and so on) /SCRIPT
  information in the body of the document instead of the head of the document,
  so my call to functions on the form from the activelink does not seem to be
  working. Furthermore, the javascript in the activelink does not seem to
  see the form it is running on.

  For example, in the activelink, if I choose RUN PROCESS and type:

  Javascript alert(document.getElementById('arid55012154').value)

  I get Object null

  arid55012154 is specified on the form itself when I view the form as an html
  page, right-click, and go to VIEW SOURCE.

  There is a field, for example, that says textarea id=arid55012154

Re: Configuring JSpell with Mid-Tier 7.0.1 Patch 6

2008-02-11 Thread Rick Cook
Can't help with that, but there is another product that works on a browser.
http://www.alcodasoftware.com/spell-magic.htm

Rick

On Feb 11, 2008 10:29 AM, Latter, Kris [EMAIL PROTECTED] wrote:

 **

 Hello,



 I'm having an issue in trying to setup the JSpell program that has been
 recommended on this list with: (Server, Admin Tool, and Mid-Tier all 
 7.0.1Patch 6) in order to provide spell-checking on a specific form.



 I am wondering if anyone else has successfully setup this program and
 implemented it with Mid-Tier.



 Here is what I have done so far:



 -  Placed the jspellhtml2k4.war file into my Tomcat-webapps
 directory and was able to test the spell checker successfully with
 http://hostname/jspellhtml2k4/test.html

 -  Loaded the form I wanted to implement spell-checking with in
 the admin tool and clicked on EDIT WEB HEADER CONTENT and added the header
 content specified by the help file:



 script language=JavaScript src=jspell.js/script

 script language=JavaScript

 !--

 function getSpellCheckArray() {

 var fieldsToCheck=new Array();

 // make sure to enclose form/field object reference in quotes!

 fieldsToCheck[fieldsToCheck.length]=document.getElementById('arid55012154');


 return fieldsToCheck;

 }

 var language;

 //--/script



 -  I also added the content specified to trigger the spell check
 in the active link for the spell check button I have on the form.



 My problem is that Mid-Tier is actually sticking the SCRIPT
 type=text/javascript language=javascript (and so on) /SCRIPT
 information in the body of the document instead of the head of the document,
 so my call to functions on the form from the activelink does not seem to be
 working. Furthermore, the javascript in the activelink does not seem to
 see the form it is running on.

 For example, in the activelink, if I choose RUN PROCESS and type:

 Javascript alert(document.getElementById('arid55012154').value)

 I get Object null



 arid55012154 is specified on the form itself when I view the form as an
 html page, right-click, and go to VIEW SOURCE.

 There is a field, for example, that says textarea id=arid55012154



 I'm hoping that someone can either tell me how to ensure that my SCRIPT
 tags are being put into the HEAD section of the document instead of the
 BODY, or give me other suggestions as to how to properly setup JSpell to
 work with Remedy.



 Any help would be appreciated.

 Thanks,

 *Kris Latter*
 NAV CANADA
 280 Hunt Club Road
 Ottawa, ON. K1V 1C1
 (613)-248-6568
 [EMAIL PROTECTED] [EMAIL PROTECTED]*


  __Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are
 html___

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are


Re: Configuring JSpell with Mid-Tier 7.0.1 Patch 6

2008-02-11 Thread Timothy Powell
Here's what we did to get it to work for multiple fields on the same form:

ARS 6.3 with MT 7.0 Patch 2

 

1) Using at least a 6.3 Admin Tool, on the form where we wanted to check the
spelling.
Go to the Form/Current View/Properties and the Appearance tab.
Add the following to the web header portion:
 
script language=JavaScript
src=http://servername/jspellhtml2k4/jspell.js;/script
script language=JavaScript
!--
var fieldsToCheck=new Array();

 

function ourSpellCheck(fieldName)
{
 fieldsToCheck=new Array();
 fieldsToCheck[fieldsToCheck.length]=fieldName;
 spellcheck();
}

 

function getSpellCheckArray() {
 return fieldsToCheck;
}
//--
/script

 

form name = Helpdesk

 

2) On the web footer we added the following:

 

/form

 

3) We created a button on our form for each field we wanted to check.

 

4) We added an active link for each field we wanted to check. 
The AL fires on click of the button created in 3 above.
Run If: $CLIENT-TYPE$ = 9
If Action: Run Process
Command Line: javascript
ourSpellCheck('document.yourformname.aridxxx')

 

 

 

NOTE: xx = the arid of the field you want to check

 

5) In JSpell, on the popup.html form, we added the following line:
body onload = window.focus()

 

 

 

HTH,

Tim

 

 

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Latter, Kris
Sent: Monday, February 11, 2008 1:30 PM
To: arslist@ARSLIST.ORG
Subject: Configuring JSpell with Mid-Tier 7.0.1 Patch 6

 

** 

Hello,

 

I'm having an issue in trying to setup the JSpell program that has been
recommended on this list with: (Server, Admin Tool, and Mid-Tier all 7.0.1
Patch 6) in order to provide spell-checking on a specific form.

 

I am wondering if anyone else has successfully setup this program and
implemented it with Mid-Tier.

 

Here is what I have done so far:

 

-   Placed the jspellhtml2k4.war file into my Tomcat-webapps directory
and was able to test the spell checker successfully with
http://hostname/jspellhtml2k4/test.html

-   Loaded the form I wanted to implement spell-checking with in the
admin tool and clicked on EDIT WEB HEADER CONTENT and added the header
content specified by the help file:

 

script language=JavaScript src=jspell.js/script 

script language=JavaScript 

!-- 

function getSpellCheckArray() { 

var fieldsToCheck=new Array(); 

// make sure to enclose form/field object reference in quotes! 

fieldsToCheck[fieldsToCheck.length]=document.getElementById('arid55012154')
; 

return fieldsToCheck; 

} 

var language; 

//--/script 

 

-   I also added the content specified to trigger the spell check in the
active link for the spell check button I have on the form.

 

My problem is that Mid-Tier is actually sticking the SCRIPT
type=text/javascript language=javascript (and so on) /SCRIPT
information in the body of the document instead of the head of the document,
so my call to functions on the form from the activelink does not seem to be
working. Furthermore, the javascript in the activelink does not seem to
see the form it is running on.

For example, in the activelink, if I choose RUN PROCESS and type:

Javascript alert(document.getElementById('arid55012154').value)

I get Object null

 

arid55012154 is specified on the form itself when I view the form as an html
page, right-click, and go to VIEW SOURCE. 

There is a field, for example, that says textarea id=arid55012154

 

I'm hoping that someone can either tell me how to ensure that my SCRIPT
tags are being put into the HEAD section of the document instead of the
BODY, or give me other suggestions as to how to properly setup JSpell to
work with Remedy.

 

Any help would be appreciated.

Thanks,

Kris Latter
NAV CANADA 
280 Hunt Club Road 
Ottawa, ON. K1V 1C1 
(613)-248-6568
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

 

__Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are
html___ 


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are


Configuring JSpell with Mid-Tier 7.0.1 Patch 6

2008-02-11 Thread Latter, Kris
Hello,

 

I'm having an issue in trying to setup the JSpell program that has been
recommended on this list with: (Server, Admin Tool, and Mid-Tier all
7.0.1 Patch 6) in order to provide spell-checking on a specific form.

 

I am wondering if anyone else has successfully setup this program and
implemented it with Mid-Tier.

 

Here is what I have done so far:

 

-  Placed the jspellhtml2k4.war file into my Tomcat-webapps
directory and was able to test the spell checker successfully with
http://hostname/jspellhtml2k4/test.html

-  Loaded the form I wanted to implement spell-checking with in
the admin tool and clicked on EDIT WEB HEADER CONTENT and added the
header content specified by the help file:

 

script language=JavaScript src=jspell.js/script 

script language=JavaScript 

!-- 

function getSpellCheckArray() { 

var fieldsToCheck=new Array(); 

// make sure to enclose form/field object reference in quotes! 

fieldsToCheck[fieldsToCheck.length]=document.getElementById('arid550121
54'); 

return fieldsToCheck; 

} 

var language; 

//--/script 

 

-  I also added the content specified to trigger the spell check
in the active link for the spell check button I have on the form.

 

My problem is that Mid-Tier is actually sticking the SCRIPT
type=text/javascript language=javascript (and so on) /SCRIPT
information in the body of the document instead of the head of the
document, so my call to functions on the form from the activelink does
not seem to be working. Furthermore, the javascript in the activelink
does not seem to see the form it is running on.

For example, in the activelink, if I choose RUN PROCESS and type:

Javascript alert(document.getElementById('arid55012154').value)

I get Object null

 

arid55012154 is specified on the form itself when I view the form as an
html page, right-click, and go to VIEW SOURCE. 

There is a field, for example, that says textarea id=arid55012154

 

I'm hoping that someone can either tell me how to ensure that my
SCRIPT tags are being put into the HEAD section of the document
instead of the BODY, or give me other suggestions as to how to
properly setup JSpell to work with Remedy.

 

Any help would be appreciated.

Thanks,

Kris Latter
NAV CANADA 
280 Hunt Club Road 
Ottawa, ON. K1V 1C1 
(613)-248-6568
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

 


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are