-
Content Count
87 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout regicidedelferoz
-
Rank
Newbie
Previous Fields
-
Languages
HTML, CSS, JavaScript, MySQL, PHP, Ajax, jQuery
Contact Methods
-
Website URL
http://
-
ICQ
0
Profile Information
-
Location
Pearl of the East
-
Here's the page of my plugin: http://michaeljanea.com/jquery/mj-carousel/
-
What about the plugin code, sir? Here the link: http://pastebin.com/qqRmUMGK
-
But i already posted the line of code i am using to add the plugin in my page just like what Ingolme asked.Here's the code again, sir. $('.mj_carousel').mjCarousel();
-
up
-
Is this the code you're looking for? $('.mj_carousel').mjCarousel();
-
I already attached the jQuery plugin here: http://w3schools.invisionzone.com/index.php?showtopic=53970&p=297123
-
There's no error messages is displaying,. I am using jQuery's tutorial in creating a plugin. There's no error regarding the codes, the only problem is, autoplay feature is only applied with the first carousel whenever there's a multiple instances.
-
I'm sorry, here's the js file mjCarousel.zip
-
up! help me please
-
I'm sorry. Already updated my first post. Thanks!
-
Good day everyone! Can you guys help me regarding the autoplay for my plugin (carousel)? It is working when I only have 1 carousel, but whenever I have more than 1, autoplay is only working with the first carousel. Attached is the copy of the said plugin. Thanks in advance! Regards, Regicide Del Feroz carousel.zip
-
Good day everyone, Do you have a Google Translate script, as much as possible a URL, that returns a JSON format? For example I pass this URL using an AJAX request: https://google-trans...sh&to=afrikaans maybe it will return: {"translation":"groot"} Thanks in advance! - Regicide Del Feroz
-
Good day everyone, Do you have a Google Translate script, as much as possible a URL, that returns a JSON format? For example I pass this URL using an AJAX request: https://google-translate-api-domain.com/q=largeā©=english&to=afrikaans maybe it will return: {"translation":"groot"} Thanks in advance! - Regicide Del Feroz
- 1 reply
-
- google translate
- json
-
(and 1 more)
Tagged with:
-
changing global variable value inside a callback
regicidedelferoz replied to regicidedelferoz's topic in JavaScript
thank you guys. now I understand that JavaScript reads first the console.log() feature before the .load() function of the image. i thought .load() function will be called first before console.log() because of their order (line numbers). now I realized that .load() function will only be executed after the image was loaded and the console.log() will be executed even though the image is not yer loaded. it's like the idea of $(document).ready() and $(window).load() function. thank you guys. i'm enlightened God bless and more power!! - regicide -
good day everyone, i have a problem regarding changing a global variable inside a callback function. for you to visualize my problem, here's my code: <script>var imgWidth;$(function(){ $('img').attr('src', 'http://domain.com/link-to-new-image-src.jpg').load(function(){ window.imgWidth = $(this).width(); console.log(window.imgWidth); //outputs the size of the new image }); console.log(imgWidth); //outputs "undefined" which is my problem});</script> hope you get it thank you in advance and more power- regicide