Archive for January, 2010

25 Jan 2010 @ 6:42 PM 

JQuery Negation

 if(!$(stuff).length > 5){
   // If element ISNT LARGER THAN 5 so in our case the number of elements must be 0 1 2 3 4 and 5
  $(this).doSomething();
}
else {
 // The number of elements is GRATER THAN 5 // do another thing
}

Basically this is a negation of the following, god damnit my head hurts

 if($(stuff).length < 5){
 $(this).doSomething();
}
else {
 $(this).doAnotherThing();
}

Oh well new day, new learned things. God Bless Amerika

Tags

Tags: , ,

Categories: jQuery

Posted By: Dinulescu Alexandru Adrian

Last Edit: 09 Dec 2010 @ 02:04 PM

EmailPermalinkComments (0)

25 Jan 2010 @ 6:19 PM 

Hello

This post is going to be short and sweet. Basically jQuery 1.4 launched a couple of days ago and i thought i’d move my blog from 1.3.2 to 1.4 and lo and behold JS Error.

I was going like WTF, and after trying to debug it for like 15mins i come to the following conclusion. From my own personal experience, in jQuery 1.3.2 when you wanted something to happen to an element you went like this. Since i use WordPress for as my blogging platform not everytime the .elementClass element was present.

+ Continue Reading This Article

Posted By: Dinulescu Alexandru Adrian

Last Edit: 25 Jan 2010 @ 06:19 PM

EmailPermalinkComments (0)

15 Jan 2010 @ 12:23 AM 

Hello

This post is a very straightforward one, basically it involves using javascript to calculate the lowest or highest number from either an array or from some definite variables.

One of the very useful possibilities of this is calculating the height and width of more than 3 columns and equalizing everything to the highest.

To achieve this we can use the Math.max() property and the Math.min() property.

+ Continue Reading This Article

Posted By: Dinulescu Alexandru Adrian

Last Edit: 15 Jan 2010 @ 12:23 AM

EmailPermalinkComments (0)

09 Jan 2010 @ 7:21 PM 

Hello

After a week of work, I finished the modifications to the this theme, based on the Inanis Theme MOD. This theme is used on both my blogs and so far it works good. I havent encountered any issues so i decided to release the files. Compared to V1.3 which can be found here, this version has a shitload of improvements such as: (taken from readme)

+ Continue Reading This Article

Posted By: Dinulescu Alexandru Adrian

Last Edit: 09 Jan 2010 @ 07:24 PM

EmailPermalinkComments (1)

09 Jan 2010 @ 12:14 AM 

Hello

This post may be something very common and very known, however not everyone knows these, so this post may be useful to someone.

Here is an entire list for this

<!--[IF IE 6]> < ![endif]--> this means that everything between those will only be loaded/visible by Internet Explorer 6
<!--[IF lte/lt/gte/gt IE 6]> < ![endif]--> this means that depending on the legend it will load things like
<!--[IF !IE]>--> <!--<![endif]--> this means that all versions of IE will NOT READ the code between those 2
 lines. This is extremely useful when you try to load specific information and u do not want IE to load it, but
 all the other browsers to load said that information. for example
<!--[IF !IE]>--> THIS LINE WILL NOT BE READ BY IE BROWSERS <!--<![endif]-->

+ Continue Reading This Article

Posted By: Dinulescu Alexandru Adrian

Last Edit: 09 Jan 2010 @ 12:18 AM

EmailPermalinkComments (0)