/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] mootools noob!!

as basic as it can get here…i think there is something wrong with the .js file. don’t know if it could be the compression or something when i downloaded it. watched a youtube tutorial and of course it worked great for him…tried other tuts as well and i can’t get the most basic of functions to work. any ideas??

i really think its the .js file but don’t know how to fix that!!!!!! 😮

[CODE]

<script type=”text/javascript” src=”mootools.js”></script>

<script language=”text/javascript”>

window.addEvent(‘domready’, function(){

$(‘box’).makeDraggable();

}

[/CODE]

the supposed draggable div

[CODE]

<div id=”box” style=”width:400px; margin:5px; background-color:#00FF00; color:#000000;”>this is a draggable box</div>

[/CODE]

thanks!!!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@kreddauthorMar 19.2008 — wow...had my javascript syntax wrong...was declaring "language" where i should have been declaring "type"...

it's always the little things!!!!!!!!!!!!!!!!!!!!!!
×

Success!

Help @kredd spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...