[jQuery] keep executing the script after a few seconds

2010-01-12 Thread runrunforest
Say i want the alert message "hello" appear every 90 seconds, how can i do it ?

[jQuery] Re: help fix syntax

2010-01-07 Thread runrunforest
Thanks for help, with your suggestion, I made it work.

[jQuery] Re: help fix syntax

2010-01-07 Thread runrunforest
Im trying to remove parent of at the click event, and the function remove needs to be within the if statement.

[jQuery] help fix syntax

2010-01-07 Thread runrunforest
syntax a: not working, the parent of current element not being removed $('a.del').click(function(e){ e.preventDefault(); $.post('/img/del.php') , {'img': img },

[jQuery] help fix syntax

2010-01-07 Thread runrunforest
syntax a: not working, but its what I have in mind. $('.del').click(function(e){ e.preventDefault(); $.post('', {ori: response.img_name , thumb: response.thumb_n

[jQuery] imitate link

2009-11-17 Thread runrunforest
Can make behave as ? For exmaple, I have Home, I want to go to homepage when i click b.

[jQuery] Re: simeple drop down menu

2009-11-17 Thread runrunforest
YEah i works right on! Thank you, Michel, for helping me debug that stuff.

[jQuery] Re: simeple drop down menu

2009-11-17 Thread runrunforest
THanks Michel, changed the selector slightly, it works. But only half. The problem now, if i hover in and out multiple times the list will disappear permanently. http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js"> $(function(){ $('div').hover(function(){

[jQuery] simeple drop down menu

2009-11-17 Thread runrunforest
Hello Jquery, I'm making a simple 1lvl dropdown menu. So far this is what i've got. The problem is, I hover the link the ul shows, but i can't hover the list item, they disappears as long as i mouseout the main link. http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js"> $(functi

[jQuery] jquery style carousel

2009-10-04 Thread runrunforest
Hi, I like the carousel in this home page very much: http://www.realtor.com/ Do you know where i can find and download something like that ?

[jQuery] Re: format number

2009-10-04 Thread runrunforest
cool, but that leads to another problem The computer now thinks 15,000 is just 15 instead of fifteen thousands. I need the formated number for later calculation, I have to make the computer think 15,000 is actually fifteen thousands Is there anyway to take the comma out before calculation or a f

[jQuery] Re: format number

2009-10-04 Thread runrunforest
cool, but that leads to another problem The computer now thinks 15,000 is just 15 instead of fifteen thousands

[jQuery] format number

2009-10-03 Thread runrunforest
How can i make 1500 look like 15,000,000 and 1500.00 look like 15,000,000.00 ?

[jQuery] what is call()

2009-10-02 Thread runrunforest
I see it is used in many plugins. I try to find document about it but no help.

[jQuery] why plugin function need 2 parameter sometimes

2009-10-02 Thread runrunforest
I don't see how maxentries as parameter is need in this code jQuery.fn.pagination = function(maxentries, opts) in some plugins, i see everything works fine with just something like this jQuery.fn.pluginname = function(opts)

[jQuery] Re: array object

2009-09-30 Thread runrunforest
I try your code, the result is: [object Object] On Sep 30, 8:05 pm, Karl Swedberg wrote: > On Sep 30, 2009, at 1:00 AM, Poloman wrote: > > > > > Can I get value and text of an option and put them into an array > > object? > > >     > >        britney > >        jackson > >     > > > I'd like to

[jQuery] ebay type menu select

2009-09-29 Thread runrunforest
Do you know where i can jquery code of ebay type menu select, menu that let you select item categories dynamically and progressively ?

[jQuery] help read code

2009-09-29 Thread runrunforest
Hi, this code is from a dropdown box, where clicking on the "a.signin" will open or close the box. So I don't really get how the syntax below work $(document).mouseup(function(e) { if($(e.target).parent("a.signin").length==0) {

[jQuery] simple click drop down menu

2009-09-29 Thread runrunforest
Hi, I need help to close the ul back up when i click on the white space or on the options link. This is what i've got so far http://www.w3.org/1999/xhtml";> http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js"> $(function(){ $('.menu').click(function(){

[jQuery] what does this selector mean ?

2009-09-29 Thread runrunforest
Hi, $('div', this) what does that mean ?

[jQuery] Re: keepp getting NaN vlue

2009-09-28 Thread runrunforest
Thank you everyone. @Liam: thats very neat fix. @Robg: I can learn alot form your solution.

[jQuery] keepp getting NaN vlue

2009-09-28 Thread runrunforest
Hi, I'm making a calculator for freight customer It seems I'm on the right path. But there is two bugs i need help. The TOTAL TO PAY value always seem to appear as NaN at first instead of default 3. And the function of TOTAL TO PAY only work after checkbox is checkd, I need it work regardin

[jQuery] Re: remove anything thats not number

2009-09-28 Thread runrunforest
floating-point number parseFloat gives. > > On Sep 28, 10:22 am, "ryan.j" wrote: > > > parseFloat( yourStr ) > > > On Sep 28, 10:18 am, runrunforest wrote: > > > > Hi, > > > > I have a value that include word letter and some sign such as $. &

[jQuery] remove anything thats not number

2009-09-28 Thread runrunforest
Hi, I have a value that include word letter and some sign such as $. I want to remove all of them just keep the number. For example: i want "$99,99 USD" become "99" or "100" can someone please give the function

[jQuery] check if checkbox is checked dynamicallyH

2009-09-28 Thread runrunforest
Hi, I have a html like this 0 USD I want when checkbox is checked, the span will have 500 USD. When checkbox is unchecked the span will return 0 USD. This is what I've got, have no idea why not work. if ($('#priority').is(':checked')) { $('.presult').text('500 USD'); }else {

[jQuery] Re: dans blog jquery calculate installment

2009-09-28 Thread runrunforest
it just not runs at all. Anyway, I managed to write my own function to do similar purpose. Thanks for getting back On Sep 28, 12:55 pm, RobG wrote: > On Sep 28, 1:26 pm, runrunforest wrote: > > > Hi, > > > I've got a script from dansblog (link > > herehttp

[jQuery] simple lightbox

2009-09-25 Thread runrunforest
Hi, I want a really simple hard coded lightbox. Can some one teach me how to trigger a div in the center of page, if i click the close button inside, it will close back up and if i click somewhere outside the div, it will also close. I guess just that simple as that.

[jQuery] trim string

2009-09-14 Thread runrunforest
Hi, I have an array like this cat=(com12, com1, cop233, com1.1, sap-12-1) I want to take out all the numbers and "." and "-" signs the desire result is cat=(com, com, cop, sap) how can i do that please ?

[jQuery] validation plugin

2009-09-13 Thread runrunforest
Hi, I want to stop class error added to input element, how to do that please ?

[jQuery] Re: get values from a select menu then assign them to an array variable

2009-09-08 Thread runrunforest
Owsome Benn. But i don't understand why "i" is used there ?

[jQuery] get values from a select menu then assign them to an array variable

2009-09-07 Thread runrunforest
Hi, I have a menu like this: vaio thinkpad nokia samsung Can I get all the values com1, com2, mob1 and mob2 then assign them to a variable ?

[jQuery] add class and remove class from perspective element

2009-08-12 Thread runrunforest
Hi, I have 3 image, in turn called img1, img2, img3. I need a code snippet that will add a border to the image when it is clicked, and if I click the other image, the border will disappear, the newly clicked image will have a border. For short, only image has border at a time and only the image

[jQuery] Re: get hover function behave right

2009-07-18 Thread runrunforest
Thank you, do as you said and it works.

[jQuery] Re: get hover function behave right

2009-07-17 Thread runrunforest
make the curwidth and curheight variables global, could you help me?

[jQuery] get hover function behave right

2009-07-17 Thread runrunforest
Hi, I want to animate the width and height of image when hovering it, and when i stop the image's state back to normal. My problem is, the image's state not back to normal when mouseout. here is my code $(function(){ $('img').hover(function(){ var curwidth = $(this).wid

[jQuery] event

2009-06-06 Thread runrunforest
if(o.btnGo) $.each(o.btnGo, function(i, val) { $(val).click(function() { return go(o.circular ? o.visible+i : i); }); }); Hi, I wonder whats the second parameter, val, in the function means ?

[jQuery] finction width(divs) is not defined

2009-06-05 Thread runrunforest
Hi, div { width:40px; height:40px; margin:10px; float:left; border:2px solid blue; } $(function(){ var divs = $('div','body'); var divSize = width(divs); console.log(divSize); }); I want to know the wid

[jQuery] Re: can someone translate this syntax ?

2009-06-04 Thread runrunforest
thank you, I don't see that in other plugin, acutually so far i've not yet see the same plugin structure.

[jQuery] Re: can someone translate this syntax ?

2009-06-04 Thread runrunforest
ah one more thing in o = $.extend({ afterEnd: null }, o || {}); the o || {} means ?

[jQuery] Re: can someone translate this syntax ?

2009-06-04 Thread runrunforest
thank you so much

[jQuery] Re: can someone translate this syntax ?

2009-06-04 Thread runrunforest
thanks man how about $("ul", div)

[jQuery] can someone translate this syntax ?

2009-06-04 Thread runrunforest
(function($) { $.fn.jCarouselLite = function(o) { o = $.extend({ btnPrev: null, btnNext: null, btnGo: null, mouseWheel: false, auto: null, speed: 200, easing: null, vertical: false, circular: true, visible: 3,

[jQuery] cycle plugin image smallen itselft

2009-05-24 Thread runrunforest
Hi, I have used cycle plugin for one of my website, sometime images get small unpectedly, although all image has been photoshoped to fixed same size Wonder is there any known bug about image resizing itself like that ?

[jQuery] Re: FF3 really slow on a mousemove with lots of divs (more then 5000)

2009-05-23 Thread runrunforest
it crashes me, recommend you find alternative script. 30% of browser is FF On May 23, 4:12 pm, geronimo3 wrote: > I have someone else saying it too now So I still have this problem > > On 23 mei, 11:01, geronimo3 wrote: > > > Hmm thanks > > > damn then it is something with my FF then > > I use

[jQuery] Re: cycle plugin with keyboard

2009-05-23 Thread runrunforest
else if(e.which == 39){ $('.next').click();} }); On May 23, 8:34 am, runrunforest wrote: > its IE 7 > > On May 22, 9:13 pm, "ryan.j" wrote: > > > possibly keycode vs. charcode. did you try the keypress thingy on > > quirksmode to see what IE retu

[jQuery] Re: cycle plugin with keyboard

2009-05-22 Thread runrunforest
its IE 7 On May 22, 9:13 pm, "ryan.j" wrote: > possibly keycode vs. charcode. did you try the keypress thingy on > quirksmode to see what IE returns on keydown? > > which version of IE isn't it working? > > On May 22, 3:10 pm, runrunforest wrote: > > &

[jQuery] Re: cycle plugin with keyboard

2009-05-22 Thread runrunforest
even consistently) the keypress event > across different browsers. try keydown or keyup to catch the charcode, > > On May 22, 5:19 am, runrunforest wrote: > > > the all the arrow has charcode of "0" (zero). I know this by the code > > > var key = e.which; >

[jQuery] Re: cycle plugin with keyboard

2009-05-21 Thread runrunforest
, get the id of element you'd normally click to > advance the scroller (inspect it with the mozilla plugin firebug) and > append .click() > > On May 21, 4:45 pm, runrunforest wrote: > > > could you give some further tip, how can I simulate, where should I > > put t

[jQuery] Re: cycle plugin with keyboard

2009-05-21 Thread runrunforest
>     /* keypress left */ >   } else { >     return false; >   } > > }); > > if you can't figure out how to advance the cycle on your own, maybe > try to simulate $('#scrollLeft').click() > > On May 21, 2:48 am, runrunforest wrote: > > > In cycle p

[jQuery] cycle plugin with keyboard

2009-05-20 Thread runrunforest
In cycle plugin, ss there way to switch images by keyboard arrows instead of clicking "next, prev"

[jQuery] binding

2009-05-15 Thread runrunforest
Hi, How can I bind this function to all image tag ? var img_width = $('#slide img:visible').width(); var frame_width = $('#slide img:visible').parent().width(); var target_width = (frame_width-img_width)/2; $('#slide img:visible').css({'left':target_width}); appr

[jQuery] center align absolute positioned element

2009-05-15 Thread runrunforest
I want to align an absolute positioned image horizontally center inside its parent element. Is there any script or guide to do that ?

[jQuery] declare variable

2009-05-13 Thread runrunforest
Hi, I see this line in a plugin var $thisCell, $tgt = $(event.target); does that mean: var $thisCell = $(event.target); var $tgt = $(event.target);

[jQuery] css syntax

2009-05-13 Thread runrunforest
Hi, Can someone help me explain the meaning of these two lines var bgc = $(this).css('backgroundColor'); $(this).css({backgroundColor: bgc == '#ff' || bgc == 'rgb(255, 204, 204)' ? '#ff' : '#ff'});

[jQuery] fadeIn, fadeOut malfunction

2009-05-12 Thread runrunforest
Hi, I have a button hidden initially, when mouse hovers the parent element of the button, button will fadeIn, and when mouse out, the button will fadeOut ( disappear). the problem is when, you hover multiple time in a quick pace (6 hover ins outs in 1 second), the button will disappear forever.

[jQuery] Re: when use addclass and toggleclass

2009-05-10 Thread runrunforest
oh I understand thanks. On May 11, 8:40 am, Steven Yang wrote: > when you do addClass it literally only "add" the class to the element > when you do toggleClass it checks whether the element has the class or not, > if it does then it will "remove" the class if it doesnt then it will "add" > the

[jQuery] why mouseover not mouseOver

2009-05-10 Thread runrunforest
Hi, I notice jquery name space used to capitalize the first letter of the second word of methods, why not do the same with events ?

[jQuery] when use addclass and toggleclass

2009-05-10 Thread runrunforest
Hi, method addClass and toggleClass do pretty much the same thing, what is the true difference between them ?

[jQuery] Jquery should have an image gallery slider UI

2009-03-02 Thread runrunforest
The image gallery with slider is one of the most used javascript plugin in the net, almost every web project would need one. Why don't we make an UI for this ? And should make a very standard one, I sussgest it should behave like the google webalbum's or the yahoo chat photosharing. google webalb