Re: [jQuery] Re: Removing percentage after dot - font-size: 30.6207px

2010-01-27 Thread Massimo Lombardo
I think that using Math.round() would suit best your needs: $(.ui-selected).css('font-size', Math.round(maxFont * percentage) + px); parseInt(12.9) // 12 Math.round(12.9) // 13 -- Massimo Lombardo Linux user #437712

Re: [jQuery] What software distributes jQuery?

2010-01-12 Thread Massimo Lombardo
://macrabbit.com/espresso/ [6] http://fileability.net/coffee/sugar/jQuery -- Massimo Lombardo Linux user #437712

Re: [jQuery] Extracting content from a div?

2010-01-09 Thread Massimo Lombardo
If the string pattern is always the same -- i.e. nothing but the inner text changes -- then you can simply use a regular expression. I think this will help you: http://www.regular-expressions.info/examples.html -- Massimo Lombardo Linux user #437712

Re: [jQuery] Scroll so that an element is at the bottom of the viewport

2009-11-02 Thread Massimo Lombardo
other plugin I can use? Hi there. What about using some basic CSS? :) #targetElementId { position: fixed; bottom: 0; } -- Massimo Lombardo Linux user #437712

Re: [jQuery] Loading jQuery dynamically

2009-11-02 Thread Massimo Lombardo
alert(jQuery + jQuery.fn.jquery + has loaded successfully and is up and running!); } }; document.documentElement.appendChild(scriptLoader); Hope it's what you're looking for. -- Massimo Lombardo Linux user #437712

[jQuery] Re: What Do I Do wrong?

2009-07-31 Thread Massimo Lombardo
To help us understand better, I think you should post the relevant XHTML as well. -- Massimo Lombardo Linux user #437712

[jQuery] Re: both 'if' and 'else' blocks being executed

2009-07-10 Thread Massimo Lombardo
Please, using plain English only, explain what you want to do. Then we'll try to help ;) The glitch is probably caused by the fact that the two input fields *do* share the same name; then when you touch one, you *do* alter both! Bug or feature? As far as I got it, (and pretending that I got it

[jQuery] Re: Decrement on click?

2009-07-09 Thread Massimo Lombardo
Here's a simple pattern: var counter = $('element0').length; $('element1').text(counter); $('element2').click(function () { $('element1').text(counter--); }); Live example: open a live JavaScript console (like Firebug if you're using Firefox), then paste the following

[jQuery] Re: how to change 2,5 to 2,50 ?

2009-07-08 Thread Massimo Lombardo
Yeah, that's what I mean ;) That's why I explicitly cited IEEE754 in my reply instead of saying something like «heh, you know, it's that weird javascript thing with numbers» :) On Wed, Jul 8, 2009 at 04:53, RobGrobg...@gmail.com wrote: On Jul 7, 9:14 pm, Massimo Lombardo unwiredbr

[jQuery] Re: Checking value

2009-07-08 Thread Massimo Lombardo
...@googlemail.combrightdad...@googlemail.com wrote: Hi Experts, I am trying to conditionally test what the value of href is equal to. like this; if($(this).find('a').attr(href)==map.html){  alert(yes); } This doesn't work. Do anyone knows what i am doing wrong. Psuedocode please. -- Massimo

[jQuery] Re: how to change 2,5 to 2,50 ?

2009-07-07 Thread Massimo Lombardo
at it. On Tue, Jul 7, 2009 at 12:11, weidcmueller.juli...@googlemail.com wrote: hi, thats my code: endpreis =Math.round(endpreis*100)/100; to round the price of something but i'd like to have 2,00 or 2,50 instead of 2 and 2,5. i'd be happy about any help. --weidc -- Massimo Lombardo Linux

[jQuery] Re: how to change 2,5 to 2,50 ?

2009-07-07 Thread Massimo Lombardo
!! -- Massimo Lombardo Linux user #437712

[jQuery] Re: Howto detect DOM element from selected text

2009-07-01 Thread Massimo Lombardo
://developer.mozilla.org/en/DOM/Selection http://msdn.microsoft.com/en-us/library/ms535869.aspx -- Massimo Lombardo Linux user #437712