Posts by Yaeko

715 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Belgium
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
Yaeko says

Thanks mate!!

715 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Belgium
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
Yaeko says

Hello,

I’m curious, how do you guys test your sites in IE using a Mac? I’m asking this because I recently switched to full time freelancer so my Mac should have a legal copy of Windows in order to avoid problems.

But when I’m searching for a Windows 7 license (I’ve tested W8 and I completely hate it, can’t work with it) the prices are quite high just for testing purposes. The cheapest that I’ve found is 99€ (euro), you guys found anything cheaper than that?

Now I’m not sure about taking the free VirtualBox or the paid VMWare Fusion, for testing I’m thinking VirtualBox, but for more compatibility when I’m working at a client (I’m a Freelance consultant), is it better taking the VMWare Fusion?

So with VMWare it’s paying 2 softwares and have a more “integrated” interface, with Virtualbox it’s only paying 1 software and not having a “integrated” interface.

What do you guys think?

715 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Belgium
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
Yaeko says

You’re absolutely correct.

But when you apply some CSS to any element via .css() and you execute another whatever function and there you add a log of that one element, in Chrome the CSS isn’t always correct, sometimes it’s applied before the log, sometimes after … this is because Chrome executes it to quickly.

That’s why I would like to work with a callback, changing $(document).ready() to $(window).load() works, but then you’re elements are ‘glitching’ if you know what I mean.

Just tested it with a custom event, for the moment it seems to be working.

715 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Belgium
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
Yaeko says

You can’t create an onStyleChange event in jQuery unless you edit the jquery.js file itself, and it would be a bad practice (caching, updates and so on). You can write a plugin that overrides the .css function and does your callback.

Check out this – the answer is in the question.

But still, I would stick to calling the callback where I call the css change in code.

This looks great, I’ll try out. Thanks!

715 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Belgium
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
Yaeko says

Hi guys,

I’ve been Googling for some time now to find a way to use a callback when CSS is being applied with jQuery to an element.

I need this because I’m putting dynamically CSS to an element and if that applied CSS property is applied another function has to be triggered.

I thought using a setTimeout, which works, but I find the too unstable.

Anyone has another idea?

Thanks!

715 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Belgium
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
Yaeko says

Thanks guys!

I thought so, but was hoping if someone else knew a ‘hack’ where it was possible to perform it with an actual ‘hover’ :D

715 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Belgium
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
Yaeko says

Hello,

I’m a bit stuck with this simple piece of code: JSFiddle . Seems that it the trigger event doesn’t work on a ‘hover, mouseover’ or ‘mouseenter’ event?

Or does it only work with custom events except of ‘click, submit’?

715 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Belgium
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
Yaeko says

Phpstorm

715 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Belgium
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
Yaeko says

Found it:

$(items).each(function(){ itemWidth += $(this).width(); });
715 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Belgium
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
Yaeko says

Hi,

Here’s a simple question for you Javascript guru’s :).

Here’s the thing, I have a ul list in which every li tag has an image. (don’t know how many li items with images there can be, it’s dynamic).

Now I want to know the width of the image (which should all be the same but you never know).

So I have my code here:

$(items).each(function(){ itemWidth = $(this).width(); totalWidth += itemWidth; }); console.log("totalWidth: ", totalWidth);

items is the var where I get the images. So I don’t think that this code will work and it doesn’t :).

If anyone can help me out here?

Thanks!

by
by
by
by
by
by