Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Why doesn't this program work?

1 view
Skip to first unread message

Beauxdean

unread,
Aug 13, 2000, 3:00:00 AM8/13/00
to
I downloaded ScriptBuilder 3.0 Trial the other day. It looks like it would
be an awesome program if it would work. Maybe someone can help me but as of
right now, I won't be buying it as I don't buy stuff that doesn't work.
Here's the deal:
I'm going for simple to start with. I start the program and make a new
default html file. I drag the Digital Clock from the Client window. The
component inspector appears. I hit the down arrow on is12hour and choose 24
hour. I hit the event tab on the component inspector and double click the
onRender and onStart slots (or any of them, for that matter). My page
changed accordingly. I save the page as Test.html in the ScriptBuilder
directory. Just to make sure that the .js files and .gif's got created in
the ScriptBuilder directory, I go to that directory in Explorer and look and
sure enough, they are there. I go back to ScriptBuilder and hit the External
Preview button. IE 5.0 fires up and displays.....notta, zilch, zero, I mean
nothing.
If one of you guys from NetObjects Technical Support answer this, please
don't tell me "Check out the Using Script Components HTML page in the Docs
folder
in your NetObjects ScriptBuilder folder :)". I read that page. No help. I
also read, here on this NG, someone else's beg for help in this same respect
and that was the answer that was given.
Here's the Test.html's code. I won't post the Test_init.js code as this
program say's "you never touch the .scc description file or the .js include
file".

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JAVASCRIPT" PURPOSE="EVENTHANDLER">
function DigitalClock1_onRender() {

}

function DigitalClock1_onStart() {

}
</SCRIPT>

<SCRIPT LANGUAGE="JAVASCRIPT" SRC="DigitalClock.js" PURPOSE="COMPONENT"
CLASSNAME="com.netobjects.DigitalClock"></SCRIPT>
<SCRIPT LANGUAGE="JAVASCRIPT" PURPOSE="INITIALIZER"
SRC="Test_init.js"></SCRIPT>
<META NAME="GENERATOR" Content="NetObjects ScriptBuilder 3.0">
<TITLE>Document Title</TITLE>
</HEAD>
<BODY>
<!-- Insert HTML here -->
</BODY>
</HTML>

Thanx in advance!

--
beau...@hotmail.com

las...@my-deja.com

unread,
Aug 15, 2000, 3:00:00 AM8/15/00
to
Try putting:
<SCRIPT LANGUAGE="JavaScript">
<!--
DigitalClock1.render();
//-->
</SCRIPT>
in your body section (where you want the clock to appear).
You can also take away the first script in the head section.
The:

<SCRIPT LANGUAGE="JAVASCRIPT" PURPOSE="EVENTHANDLER">
function xxx() {

}
</SCRIPT>
that is generated when you select e.g. events tab->onRender is
a function that will fire on teh event (onRender).
Regards Lars
いいいいいいいいいいいいいいいいいいいいいいい
Hemsida http://home6.swipnet.se/~w-65933/
Homepage http://members.tripod.com/~Bjerges/
いいいいいいいいいいいいいいいいいいいいいいい


Sent via Deja.com http://www.deja.com/
Before you buy.

las...@my-deja.com

unread,
Aug 15, 2000, 3:00:00 AM8/15/00
to
Try putting:
<BODY>
<h1>Digital clock</h1>
<SCRIPT LANGUAGE="JavaScript">
<!--
DigitalClock1.render( );
//-->
</SCRIPT>
</BODY>
in your HTML.
The script that you have in the head section:
"<SCRIPT LANGUAGE="JAVASCRIPT" PURPOSE="EVENTHANDLER">....
are for things to happen when events fire, e.g. onRender.

Jai

unread,
Aug 18, 2000, 3:00:00 AM8/18/00
to
Okay, you wanted to know how to get the digital clock component
working. Easy enough (though their tech support isn't terribly helpful,
NOR is their documentation). And by the way, YES, it IS an AWESOME
product. Anyway, here's what you need to do (I'll do this tutorial
style, so that anyone who wants to try it can do so).

Step 1) Click the NEW button (the blank white paper near the top left
corner). This will create a new default document type (you could also
select FILE->NEW, and then double click on "default HTML document").

Step 2) Click on the Component Gallery tab, and from there the CLIENT
header. This will show the CLIENT components.

Step 3) Drag the DIGITAL CLOCK component and drop it anywhere on the
editor window. This will cause two lines to be created in the HTML
document's <HEAD> section.

Step 4) Remove the unneeded comment "<!-- Insert HTML here -->" from
the <BODY> section, and insert a script block there (either by manually
adding a <SCRIPT LANGUAGE="JavaScript"> tag, OR by going up to the
SCRIPT menu and selecting "Script Block", OR by hitting CTRL-F7). In
any case, your <BODY> section should now look like this:

<BODY>

<SCRIPT LANGUAGE="JavaScript">

</SCRIPT>

</BODY>

Step 5) Now, inside the <SCRIPT> block, add the following line:

DigitalClock1.render();

(if you named your object something else in the object inspector, use
that name instead of DigitalClock1).

Step 6) Save your work somewhere and that's it! Now keep in mind that
the clock currently only displays the time at a resolution of minutes,
so it's not going to change quickly. For future reference, wherever
you want the clock to actually appear on the page, that's the location
in the HTML that you put your ".render()" call.

P.S. Notice that I DIDN'T use any of the Digital Clock's event
functions. I didn't want anything in particular to happen when the
clock STARTED (or whatever), I just wanted the CLOCK ITSELF to start at
the appropriate point...

'Hope this helps!

Jai

------------------------------------------------------
J...@LostMind.com

"Absolute Clarity through Maximum Verbosity!"

--


"Absolute Clarity through Maximum Verbosity"

Chris Ashford-Smith

unread,
Aug 21, 2000, 3:00:00 AM8/21/00
to
You need to call the function from the script you have created.  To do this use the following code
 
<HTML>
<HEAD>

<SCRIPT LANGUAGE="JAVASCRIPT" SRC="DigitalClock.js" PURPOSE="COMPONENT" CLASSNAME="com.netobjects.DigitalClock"></SCRIPT>
<SCRIPT LANGUAGE="JAVASCRIPT" PURPOSE="INITIALIZER" SRC="digital_init.js"></SCRIPT>

<META NAME="GENERATOR" Content="NetObjects ScriptBuilder 3.0">
<TITLE>Document Title</TITLE>
</HEAD>
<BODY onload="DigitalClock1.render( );">
<!-- Insert HTML here -->
</BODY>
</HTML>
The onload event tells the DigitalClock to render. Note that you need to check your digital_init.js file to see what the name it has has given to the digital clock is. In this case it was DigitalClock1. You can either type in the onload event or, after you have inserted the digital clock, place the cursor in the html <BODY> tag and then.
 
1. type onload =  in the first BODY tag
2.right click on the digital clock icon in script builder
3. click method on the tab list
4. select render
5. type in the name of the digitalclock.
6. remember to enclose the whole render statement with quotes.
 
You could also place the same render method anywhere on the page you wanted to by calling the render in the appropriate place.
 
Chris
> <SCRIPT LANGUAGE="JAVASCRIPT" PURPOSE="EVENTHANDLER">
> function DigitalClock1_onRender() {
>
> }
>
> function DigitalClock1_onStart() {
>
> }
> </SCRIPT>
>
> <SCRIPT LANGUAGE="JAVASCRIPT" SRC="DigitalClock.js" PURPOSE="COMPONENT"
> CLASSNAME="com.netobjects.DigitalClock"></SCRIPT>
> <SCRIPT LANGUAGE="JAVASCRIPT" PURPOSE="INITIALIZER"
> SRC="Test_init.js"></SCRIPT>
> <META NAME="GENERATOR" Content="NetObjects ScriptBuilder 3.0">
> <TITLE>Document Title</TITLE>
> </HEAD>
> <BODY>
> <!-- Insert HTML here -->
0 new messages