Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
Latest CopperLicht & jQuery conflict - nailed for now :)

hueman
Registered User
Quote
2013-08-12 03:38:01

OK, nailed it myself - the latest jQuery library seems to conflict with the latest CopperLicht Engine - certainly when I try to use the 'startCopperLichtFromFile' method and have loaded jQuery and CopperLicht.js in my header - in whatever order I load them I get errors.

To get around this for now I've just used the good old 'noConflict();' and replaced the '$' with my own variable (in this case 'my$') and all works fine...

Use like so:

.......
.......

<head>

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">var my$ = jQuery.noConflict();</script>
<script type="text/javascript" src="copperlichtdata/copperlicht.js"></script>

</head>

.......
.......

<body>


<script type="text/javascript">
<!--
startCopperLichtFromFile(...);
-->
</script>


<!-- example: -->

<SCRIPT>
My$('mydiv').fadeOut('slow');
</SCRIPT>

</body>

.......
.......


Cheers ;)


niko
Moderator
Quote
2013-08-13 06:06:49

Ah, nice :)


vonNeumann
Guest
Quote
2014-05-20 21:51:15

Thanks. I wasted one entire day trying to figure this out.


skullboy99
Registered User
Quote
2014-08-25 08:12:29

Thank you,this will be useful for me,because I want to develop a multiplayer game with CopperLicht :)


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact