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.

HTMLDW and Common Java Script

2 posts in General Discussion (old) Last posting was on 2000-03-30 15:01:06.0Z
Ashish Mahajan Posted on 2000-03-29 23:56:54.0Z
Newsgroups: sybase.public.easerver
From: "Ashish Mahajan" <ash@NOSPAM.com>
Subject: HTMLDW and Common Java Script
Date: Wed, 29 Mar 2000 18:56:54 -0500
Lines: 976
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: pikachu.sybase.com 204.167.42.191
Message-ID: <347_dlKuSsdm$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25281
Article PK: 155404

If you do not want the bulk of common Java Script in html page sent by the
HTML DW try this workaround:

This is how it works:

1. Unzip the attached zip file and install dwcc[0-7]70.js in your website
(for eg: EASDemo\Site\HTMLdw directory)
2. Create your own HTML Generator which overloads the
DataWindow\HTMLGenerator Generate() function
3. Modify the Generate() code as follows:
----------------------------
string ls_result

if ib_trace then of_log_enter("Generate()")

// The RESOURCEBASE should point back to the place where the js files are
installed
ids_datastore.Modify("DataWindow.HTMLGEN.RESOURCEBASE='http://localhost/EASD
emo/htmldw'")

// The INLINECLASS property tells the DataWindow not to send the script with
the generate and instead refer to the
// installed js files
ids_datastore.Modify("DataWindow.HTMLGEN.INLINECLASS=0")

ls_result = ids_datastore.Describe("DataWindow.Data.HTML")

if ib_trace then of_log_exit("Generate(), length = " +
String(Len(ls_result)))

of_completeWork()

return ls_result
--------------------------

OR

You could modify the Dynamo Script ObjMod to call component.Modify()...
before calling component.Generate()


You will see the following line in the HTML file generated by the HTML DW
<SCRIPT LANGUAGE="JavaScript"
SRC="http://localhost/EASDemo/htmldw/dwcc770.js"></SCRIPT>


-Ashish


Ashish Mahajan Posted on 2000-03-30 15:01:06.0Z
Newsgroups: sybase.public.easerver
From: "Ashish Mahajan" <ash@NOSPAM.com>
Subject: Re: HTMLDW and Common Java Script
Date: Thu, 30 Mar 2000 10:01:06 -0500
Lines: 72
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: pikachu.sybase.com 204.167.42.191
Message-ID: <347_fm4nillm$GA.290@forums.sybase.com>
References: <347_dlKuSsdm$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25231
Article PK: 155360

God ! I am embarrassed!!

I am extremely sorry for the mis-information...

This was a fix which never made it to PB EBF...

I will get working on this and hopefully this time I won't screw up and give
you guys the fix...

Believe me when I say it is going to be on similar lines :-)

-Ashish

"Ashish Mahajan" <ash@NOSPAM.com> wrote in message
news:dlKuSsdm$GA.201@forums.sybase.com...
>
> If you do not want the bulk of common Java Script in html page sent by the
> HTML DW try this workaround:
>
> This is how it works:
>
> 1. Unzip the attached zip file and install dwcc[0-7]70.js in your website
> (for eg: EASDemo\Site\HTMLdw directory)
> 2. Create your own HTML Generator which overloads the
> DataWindow\HTMLGenerator Generate() function
> 3. Modify the Generate() code as follows:
> ----------------------------
> string ls_result
>
> if ib_trace then of_log_enter("Generate()")
>
> // The RESOURCEBASE should point back to the place where the js files are
> installed
>
ids_datastore.Modify("DataWindow.HTMLGEN.RESOURCEBASE='http://localhost/EASD
> emo/htmldw'")
>
> // The INLINECLASS property tells the DataWindow not to send the script
with
> the generate and instead refer to the
> // installed js files
> ids_datastore.Modify("DataWindow.HTMLGEN.INLINECLASS=0")
>
> ls_result = ids_datastore.Describe("DataWindow.Data.HTML")
>
> if ib_trace then of_log_exit("Generate(), length = " +
> String(Len(ls_result)))
>
> of_completeWork()
>
> return ls_result
> --------------------------
>
> OR
>
> You could modify the Dynamo Script ObjMod to call component.Modify()...
> before calling component.Generate()
>
>
> You will see the following line in the HTML file generated by the HTML DW
> <SCRIPT LANGUAGE="JavaScript"
> SRC="http://localhost/EASDemo/htmldw/dwcc770.js"></SCRIPT>
>
>
> -Ashish
>
>
>
>
>