Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 How do we use Scriptaculous with D.H.E.?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rmmarsh
Super User

USA
396 Posts

Posted - 29 Nov 2007 :  18:39:45  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
OK... I'm new at D.H.E., learning as I go. I saw the post on Scriptaculoous, downloaded it, and now I'm stuck! Where do I place the javascript to accomplish the neat tricks? In an HTML object?

Can someone post an example (or cookbook sample would be better)?

R

Edited by - rmmarsh on 29 Nov 2007 19:22:52

jtarin
Super User

Russia
444 Posts

Posted - 01 Dec 2007 :  21:52:46  Show Profile  Visit jtarin's Homepage  Reply with Quote
http://wiki.script.aculo.us/scriptaculous/show/Usage

Porky
www.pacificwavetour.com
Go to Top of Page

rmmarsh
Super User

USA
396 Posts

Posted - 01 Dec 2007 :  23:17:47  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
Sorry, but that doesn't help me at all... I have placed the code under #4 just about everywhere I could, and nothing happens.

My question is: exactly where do I place the actual scripts?
Go to Top of Page

Northwind
Novice

Italy
8 Posts

Posted - 02 Dec 2007 :  11:21:28  Show Profile  Visit Northwind's Homepage  Reply with Quote
quote:
Originally posted by rmmarsh

Sorry, but that doesn't help me at all... I have placed the code under #4 just about everywhere I could, and nothing happens.

My question is: exactly where do I place the actual scripts?



1? create a folder on your site called: .../javascripts
2? upload to your site the 7 necessary files in the above created folder (prototype.js, scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and slider.js
3? in D.H.E. paste into the head of your HTML page the following code:<script src="/javascripts/prototype.js" type="text/javascript"></script>
<script src="yoursitename/javascripts/scriptaculous.js" type="text/javascript"></script>
4? choose the object on wich you want to apply the effect
5? go to the propertys of the object and click on "events"
6? choose the Event (for example: onClick)
7? choose the Action "JavaCall"
8? in the line java call write the effect you desire to obtain (for example: new Effect.SwitchOff(this)

Done



Northwind
______________________________________________________________________
La vita ? breve, vediamo di godercela il pi? possibile, ...quindi non incazz...con me!
Go to Top of Page

rmmarsh
Super User

USA
396 Posts

Posted - 02 Dec 2007 :  17:00:59  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
Northwind: thank you so much... that was exactly what I was looking for...

R
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000