[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] 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('?= site_url('play/img/del') ?', {ori:

[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] Re: help fix syntax

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

[jQuery] Re: help fix syntax

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

[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. script type=text/javascript src=http://ajax.googleapis.com/ajax/

[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. script type=text/javascript src=http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js/script script type=text/javascript

[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] imitate link

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

[jQuery] format number

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

[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] 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

[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] 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] 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] 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 k...@englishrules.com 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?    select        option value=c1britney/option        

[jQuery] what does this selector mean ?

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

[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 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; head script

[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] 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] 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 robg...@gmail.com wrote: On Sep 28, 1:26 pm, runrunforest craigco...@gmail.com wrote: Hi, I've got a script from dansblog (link herehttp

[jQuery] check if checkbox is checked dynamicallyH

2009-09-28 Thread runrunforest
Hi, I have a html like this input type=checkbox id=priority /span class=presult0 USD/ span 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'))

[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] Re: remove anything thats not number

2009-09-28 Thread runrunforest
on the floating-point number parseFloat gives. On Sep 28, 10:22 am, ryan.j ryan.joyce...@googlemail.com wrote: parseFloat( yourStr ) On Sep 28, 10:18 am, runrunforest craigco...@gmail.com wrote: Hi, I have a value that include word letter and some sign such as $. I want to remove all

[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

[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] 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] get values from a select menu then assign them to an array variable

2009-09-08 Thread runrunforest
Hi, I have a menu like this: select size=8 class=cat2 option value=com1vaio/option option value=com2thinkpad/option option value=mob1nokia/option option value=mob2samsung/option /select Can I get all the values com1, com2, mob1 and mob2 then assign them

[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] 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

[jQuery] Re: get hover function behave right

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

[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 =

[jQuery] Re: get hover function behave right

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

[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, style type=text/css div { width:40px; height:40px; margin:10px; float:left; border:2px solid blue; } /style script type=text/javascript src=js/jquery-1.3.2.min.js/script script type=text/javascript $(function(){ var divs = $('div','body'); var

[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] Re: can someone translate this syntax ?

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

[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
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, I don't see that in other plugin, acutually so far i've not yet see the same plugin structure.

[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: cycle plugin with keyboard

2009-05-23 Thread runrunforest
();} }); On May 23, 8:34 am, runrunforest craigco...@gmail.com wrote: its IE 7 On May 22, 9:13 pm, ryan.j ryan.joyce...@googlemail.com 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

[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 jeroom...@gmail.com wrote: I have someone else saying it too now So I still have this problem On 23 mei, 11:01, geronimo3 jeroom...@gmail.com wrote: Hmm thanks damn then it is

[jQuery] Re: cycle plugin with keyboard

2009-05-22 Thread runrunforest
different browsers. try keydown or keyup to catch the charcode, On May 22, 5:19 am, runrunforest craigco...@gmail.com wrote: the all the arrow has charcode of 0 (zero). I know this by the code var key = e.which; alert(key); So how the script which is right arrow which is left arrow. On May

[jQuery] Re: cycle plugin with keyboard

2009-05-22 Thread runrunforest
its IE 7 On May 22, 9:13 pm, ryan.j ryan.joyce...@googlemail.com 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 craigco...@gmail.com wrote

[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 craigco...@gmail.com wrote: In cycle plugin, ss there way to switch images by keyboard

[jQuery] Re: cycle plugin with keyboard

2009-05-21 Thread runrunforest
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 craigco...@gmail.com wrote: could you give some further tip, how can I simulate, where should I put the code to (document.ready part

[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] 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] 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});

[jQuery] declare variable

2009-05-14 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] 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] 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] Re: when use addclass and toggleclass

2009-05-10 Thread runrunforest
oh I understand thanks. On May 11, 8:40 am, Steven Yang kenshin...@gmail.com 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

[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