Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

PD JavaScript Error

2 posts in General Discussion (old) Last posting was on 2000-02-18 20:40:17.0Z
Andrea Michaud Posted on 2000-02-18 19:45:19.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 18 Feb 2000 15:45:19 -0400
From: Andrea Michaud <michauda@marsusa.com>
Organization: MARS Advertising
X-Mailer: Mozilla 4.6 [en]C-CCK-MCD (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: PD JavaScript Error
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 47
NNTP-Posting-Host: mars-4192.marsusa.com 199.249.4.192
Message-ID: <347_38ADA14F.1D0172BF@marsusa.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28355
Article PK: 160384

I have a HTML page that imports two javascript files. One of the files
seems to important and run just fine. The second file doesn't seem to
import. Here is my html (the common.ssc script generates the menu
navigation bar across the top of the page, which displays on the pages
and works -- so that script file is imported):

<BODY link=navy aLink=maroon vLink=navy>
<!--SCRIPT
import ( site.GetRootDocument().location +
"/script/JavaWrappers.ssc");
import( site.GetRootDocument().location + "/script/common.ssc" );

...

var questionIDHolder = java.CreateObject("org.omg.CORBA.IntHolder");
if (site.GetErrorInfo() != '') {
document.writeln('<BR>Error:
java.CreateObject("org.omg.CORBA.IntHolder") questionIDHolder ' +
site.GetErrorInfo());
exit;
}

...


var questionIDHelper = new JavaFieldHelper( questionIDHolder );


Here is the error message I get when I run the page (line 80 is the var
questionIDHelper = newJavaFieldHelper( questionIDHolder):

Warning: undefined variable JavaFieldHelper near line 80 in
"/spinquestion.htm" Warning: undefined variable
questionIDHelper.getInt[getInt] near line 111 in "/spinquestion.htm"
Warning: undefined variable questionHelper.getString[getString] near
line 123 in "/spinquestion.htm" Warning: undefined variable
correctAnswerHelper.getInt[getInt] near line 124 in "/spinquestion.htm"
Warning: undefined variable answersHelper.getString[getString] near line
125 in "/spinquestion.htm" Warning: undefined variable
answers.charAt[charAt] near line 126 in "/spinquestion.htm" Warning:
undefined variable answers.indexOf[indexOf] near line 133 in
"/spinquestion.htm"

Alex from DDS is helping us out, but I thought I'd help out Alex and see
if anyone had any ideas we could try.

Thanks

Andrea
A Beginner


Daniel Coppersmith Posted on 2000-02-18 20:40:17.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
From: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
Subject: Re: PD JavaScript Error
Date: Fri, 18 Feb 2000 15:40:17 -0500
Lines: 69
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: sdn-ar-002insbenP331.dialsprint.net 168.191.108.109
Message-ID: <347_Mm6OsJle$GA.223@forums.sybase.com>
References: <347_38ADA14F.1D0172BF@marsusa.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28353
Article PK: 160380

I just solved this same problem yesterday. I had the JavaWrappers.ssc file
as a text file that I imported into PowerSite. This won't do.

Go into Sybase Central for the web site, right click in the appropriate
folder (/script) and say NEW SCRIPT, the script window will open, paste the
text from JavaWrappers.ssc into this in the appropriate place (it will be
evident when you see it) and save the file to the database... you will be
able to import it then in the PD HTML page...

Note: You will almost surely see a JavaWrappers.ssc there already. It will
be missing some header information. Rename this old one (to be safe) before
recreating the new one.

Andrea Michaud <michauda@marsusa.com> wrote in message
news:38ADA14F.1D0172BF@marsusa.com...
> I have a HTML page that imports two javascript files. One of the files
> seems to important and run just fine. The second file doesn't seem to
> import. Here is my html (the common.ssc script generates the menu
> navigation bar across the top of the page, which displays on the pages
> and works -- so that script file is imported):
>
> <BODY link=navy aLink=maroon vLink=navy>
> <!--SCRIPT
> import ( site.GetRootDocument().location +
> "/script/JavaWrappers.ssc");
> import( site.GetRootDocument().location + "/script/common.ssc" );
>
> ...
>
> var questionIDHolder = java.CreateObject("org.omg.CORBA.IntHolder");
> if (site.GetErrorInfo() != '') {
> document.writeln('<BR>Error:
> java.CreateObject("org.omg.CORBA.IntHolder") questionIDHolder ' +
> site.GetErrorInfo());
> exit;
> }
>
> ...
>
>
> var questionIDHelper = new JavaFieldHelper( questionIDHolder );
>
>
> Here is the error message I get when I run the page (line 80 is the var
> questionIDHelper = newJavaFieldHelper( questionIDHolder):
>
> Warning: undefined variable JavaFieldHelper near line 80 in
> "/spinquestion.htm" Warning: undefined variable
> questionIDHelper.getInt[getInt] near line 111 in "/spinquestion.htm"
> Warning: undefined variable questionHelper.getString[getString] near
> line 123 in "/spinquestion.htm" Warning: undefined variable
> correctAnswerHelper.getInt[getInt] near line 124 in "/spinquestion.htm"
> Warning: undefined variable answersHelper.getString[getString] near line
> 125 in "/spinquestion.htm" Warning: undefined variable
> answers.charAt[charAt] near line 126 in "/spinquestion.htm" Warning:
> undefined variable answers.indexOf[indexOf] near line 133 in
> "/spinquestion.htm"
>
> Alex from DDS is helping us out, but I thought I'd help out Alex and see
> if anyone had any ideas we could try.
>
> Thanks
>
> Andrea
> A Beginner
>