Login
Register
Questions
Unanswered
Tags
Users
Ask a Question
Blog
How do I combine javascripts? Namely Tiny dropdown2 and tinybox2
I wish to combine the 2 scripts on one page. All that I really care about from tinybox2 is the image loader. I'm thinking about just renaming one of the TINY functions to TINY2 but I don't know how to go from there. Thank you so much again for this great site and great free code.
combine
java
javascript
tinydropdown2
tinybox2
asked
Jun 24, 2011
by
anonymous
Your answer
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
1 Answer
0
votes
Just delete the line
var TINY={};
out of the second included file - this essentially clears out the TINY variable which was setup in the first. You can also get rid of the T$ functions, but this is not essential
answered
Jun 24, 2011
by
l0ft13
(
280
points)
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
[captcha placeholder]
To avoid this verification in future, please
log in
or
register
.