[jQuery] Re: events, lock and unlock

2009-02-03 Thread Stephan Veigl
Hi Cequiel, I've some questions to your problem. 1. Who triggers your events and when are they (supposed) to be dispatched? 2. If anotherevent happens before myevent it will have no effect on anotherobject. So what is anotherevent for? 3. What do you mean with lock/unlockEvent()? by(e) Stephan

[jQuery] Re: Hide or show div depending on the value of radio button

2009-02-03 Thread Beres Botond
It's fairly simple to do. I haven't tested this piece of code, but it should work. $(div[id^=PrimaryBox] :radio).click(function() { var clicked_val = $(this).val(); var div_idstr = $(this).parent('div').attr('id') var group_number = div_idstr.substring

[jQuery] Re: Why does it conflict?

2009-02-03 Thread david.0pl...@gmail.com
I found the problem, since the banner include needs jquery, in a page where jquery is altready included (with script src) I have actually two instances of jquery, with only one it works perfectly. Now I just need to understand how can I check if jquery is already in a page! Thanks On Feb 2,

[jQuery] jquery validation on non java complaint browser

2009-02-03 Thread david.0pl...@gmail.com
Since I started messing around with jquery, I'm astonished on how simple a java web form validation is.. the problem is when a person has a non java brower or disable it, then basically the java validation is useless! Now, since I use php I also have the standard server side validation but I was

[jQuery] Problem with Chrome firing events correctly

2009-02-03 Thread Caleb Morse
I am having trouble getting this piece of code to work correctly in Chrome. It works just fine in in IE7, IE8, and FF. Watching the Chrome javascript console doesn't reveal anything useful. I manually checked each value in the if statements, and they are all coming back true. The textbox is not

[jQuery] Re: Why does it conflict?

2009-02-03 Thread david.0pl...@gmail.com
Mhhh still I would love to understand why this happens, this is the situation: update.php has before the head: script src=../js/jquery.js type=text/javascript/script script src=../js/jquery.validate.js type=text/javascript/ script The script works as normal, then it has a preview of the banner

[jQuery] [Superfish] Submenus appear underneath menu items when the menu wraps

2009-02-03 Thread Michael Smith
Hi, As per this example: http://dev2.savingforchildren.co.uk/mjs/menu.epl I find that if my menus wrap in IE, then the submenus appear underneath the other menus. In Firefox it's fine. Is there a way round this or is wrapping menus not supported? Thanks Michael

[jQuery] Re: [Superfish] Submenus appear underneath menu items when the menu wraps

2009-02-03 Thread jQuery Lover
Try setting z-index value in CSS for the current menu list with a higher value like 1000. Read my jQuery HowTo Blog- http://jquery-howto.blogspot.com On Tue, Feb 3, 2009 at 2:42 PM, Michael Smith smi...@gmail.com wrote: Hi, As per this example:

[jQuery] Re: Problem with Chrome firing events correctly

2009-02-03 Thread Stephan Veigl
Hi Caleb, Could you please post your LiveSaver object and the element variable initialization as well. I tested your code with a more or less meaningful dummy implementation of LiveSaver and element and it works for me in: FF3, Chrome1, Opera9, IE8 I guess the problem is either in

[jQuery] Re: How do I write a function to close shadowbox?

2009-02-03 Thread zemm
Where you call the shadowbox element? instead of doing shadowbox.whatever(), try var myShad=shadowbox.whatever() , then myShad.close() should do the trick. On 10 Dic 2008, 22:10, Rick Faircloth r...@whitestonemedia.com wrote: For my success callback (I guess that's what you call it...) I've

[jQuery] Re: access table row[y] cell[x]

2009-02-03 Thread JAS
I agree. The overloading does make the methods inscrutable (at least for a beginner). JAS On Feb 3, 5:50 am, RobG rg...@iinet.net.au wrote: On Feb 3, 7:25 am, Michael Geary m...@mg.to wrote: That didn't work because .html is a method, not a property you can set. Not exactly - the issue

[jQuery] Re: access table row[y] cell[x]

2009-02-03 Thread JAS
I'll give your idea a try. I am learning jQuery (albeit slowly). Thanks for your help. JAS On Feb 2, 11:01 pm, Ricardo Tomasi ricardob...@gmail.com wrote: You can also write your own methods, that's the beauty of jQuery: jQuery.fn.getCell = function(x,y){    return jQuery(

[jQuery] Re: jquery validation on non java complaint browser

2009-02-03 Thread Jörn Zaefferer
First of all, it's JavaScript, not Java. Second, you always need serverside validation - anything on the clientside can be disabled. An attacker wouldn't even have to use a browser to submit the form. In other words: Implement both. Serverside for security and data integrity, clientside for a

[jQuery] Re: Need help validating a dropdown list

2009-02-03 Thread Jörn Zaefferer
Ah, good catch. I forgot that the text is used as a value when no value-attribute is provided. Good to know you got it working! Jörn On Tue, Feb 3, 2009 at 3:10 AM, Kathryn kathry...@gmail.com wrote: Jörn, Many thanks for the clarification and tip. When I removed the value attribute

[jQuery] Re: [Superfish] Submenus appear underneath menu items when the menu wraps

2009-02-03 Thread Michael Smith
Thanks jQuery Lover - I messed around with a few things without success. Any chance you can be more specific as to the css change needed? Thanks again Michael On Tue, Feb 3, 2009 at 9:48 AM, jQuery Lover ilovejqu...@gmail.com wrote: Try setting z-index value in CSS for the current menu list

[jQuery] Re: DOM manipoulation after ajax load

2009-02-03 Thread Beres Botond
Ok, I'll be more specific to make your life easier :) The reason your code example doesn't work, is because you start the load request, but that is asynchronous (the first A in AJAX :)), and javascript will execute your next statement with 'each' before the .load is finished, it doesn't wait for

[jQuery] DOM element as message when blocking element

2009-02-03 Thread HJ
I seem to have found a bug. If I try to use $('#someelement').block ({ message: $('#loadingMessage') }); Then when I unblock with $('#someelement').unblock(); the loading message is removed from the DOM, so any subsequent calls to block it fail and cause a JS error. Everything works fine if I

[jQuery] autocomplete-comma delimeter string from servlet

2009-02-03 Thread thomas.confuse
Hi, all. i just started to use Jquery. i m using remote data to pass into jQuery widget, autocomplete. but the data from the servlet is generated in this format a, b,c, how can i break the data from the servlet to populate the autocomplete ? Please advice.i m using java for the servlet and

[jQuery] jQuery (English)

2009-02-03 Thread christy
http://www.freewebs.com/massmodern/ http://www.runautowithwater.com http://seniorfriendfinder.com http://www.adbrite.com/mb

[jQuery] Jquery cycle plugin - YouTube videos

2009-02-03 Thread Ado
Hi, Im trying to create a rotating promo area using the cycle plug-in. I have to to embed YouTube videos (example here http://www.grouptools.com/adrian/sbc-new/promo/) The main issue is FF works fine in that if a video is playing and you go to another 'slide' the video/sound stops. Where as

[jQuery] DIV position

2009-02-03 Thread Paresh
Is there any way to set the z-index of the div? I have series of hidden DIVs (in each row of table and clicking any of those would pop-up a information guide) Here is my code: function showProfile(id) { $('#profile_' + id).show(slow, hideAllProfile (id)); } function

[jQuery] Re: jquery validation on non java complaint browser

2009-02-03 Thread david.0pl...@gmail.com
I was just using java as a nickname for javascript Anyway thank you, it's what I suspected, at least now I'm sure! Thanks On Feb 3, 11:57 am, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: First of all, it's JavaScript, not Java. Second, you always need serverside validation - anything

[jQuery] Accordion menue with up to 3 levels

2009-02-03 Thread heohni
Hi, I am wanting to use the jquery accordion menu with a structure up to 3 levels. Is that a) possible and b) has somebody a demo / tutorial for this kind of menu for me? Thanks! Heidi

[jQuery] Div's conflicting with each other

2009-02-03 Thread zeckdude
Hello all, I am using the jqGalScroll v2.1 Photo Gallery on my site. I have implemented the version that koesbong made at http://www.ryanbrenizer.com/wedding_portrait, but I am having an issue with Internet Explorer that I was hoping you can help me with. This is the Image Gallery in it's

[jQuery] Re: DIV position

2009-02-03 Thread Eric Garside
Div's require a position attribute before they will obey a z-index rule. Make sure your div has position:relative; or position:absolute; or position:fixed; On Feb 3, 6:22 am, Paresh pareshva...@gmail.com wrote: Is there any way to set the z-index of the div? I have series of hidden DIVs (in

[jQuery] Performance suggestion: Use object hash instead of regexp

2009-02-03 Thread George Adamson
(This is really directed at the jQuery core team) I notice that jQuery uses regexp statements like this one... (used in the position() and offsetParent() methods for example) .../^body|html$/i.test(offsetParent.tagName) Might it be faster to use a simple object hash like this instead...?

[jQuery] Re: autocomplete-comma delimeter string from servlet

2009-02-03 Thread thomas.confuse
Hi, Eric. Thanks for the response. but i somehow kinda bump into the another way of getting it done. trial and error . :-) Its done using formatline option in autocomplete. I will paste the code here very soon. On Feb 3, 10:14 pm, Eric Garside gars...@gmail.com wrote: I'm not sure what kind

[jQuery] Re: Accordion menue with up to 3 levels

2009-02-03 Thread plusz
On 3 Lut, 14:32, heohni heidi.anselstet...@consultingteam.de wrote: I am wanting to use the jquery accordion menu with a structure up to 3 levels. Is that a) possible and b) has somebody a demo / tutorial for this kind of menu for me? try this

[jQuery] Re: UI Tabs - change onClick behaviour

2009-02-03 Thread plusz
On 3 Lut, 15:17, Eric Garside gars...@gmail.com wrote: Try: $('#menu_zakladka3').unbind('click').click(function(){     window.location = 'http://some.url';     return false; }); hmm.. doesn't work but thank you very much :) I had to define behaviuor for 'a' inside #menu_zakladka3 and I

[jQuery] Accordion menue with up to 3 levels

2009-02-03 Thread DCT, Heidi Anselstetter
Hmm, thanks, but in my case I need it for a vertical column. Any other ideas maybe? -Ursprüngliche Nachricht- Von: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] Im Auftrag von plusz Gesendet: Dienstag, 3. Februar 2009 15:35 An: jQuery (English) Betreff: [jQuery]

[jQuery] Need solution for select element value change...

2009-02-03 Thread Rick Faircloth
Hi, all... Here's the code: $(document).ready(function() { $('.agents').change(function() { $('option:selected', this).each(function() { Here's the problem: I would like for the function triggered in the code above by .change to work if the same

[jQuery] Re: toggle checkbox when clicking td

2009-02-03 Thread Dave Methvin
Well, that is very strange. It works with jQuery 1.2.6, but not with   1.3.1. Hmm. Will have to investigate. Most likely the problem is that .trigger()ed clicks bubble in 1.3 but they didn't in 1.2, and it's bubbling back up to the tr.

[jQuery] Re: Hide or show div depending on the value of radio button

2009-02-03 Thread Beres Botond
typo: group_numer = group_number On Feb 3, 10:31 am, Beres Botond boton...@gmail.com wrote: It's fairly simple to do. I haven't tested this piece of code, but it should work. $(div[id^=PrimaryBox] :radio).click(function() {      var clicked_val = $(this).val();      var div_idstr =

[jQuery] Re: UI Tabs - change onClick behaviour

2009-02-03 Thread Eric Garside
Ah, yep, that'd do it. I'm terrible at reading HTML snippets early in the AM. Glad you got it fixed! :D On Feb 3, 9:45 am, plusz pluszpica...@googlemail.com wrote: On 3 Lut, 15:17, Eric Garside gars...@gmail.com wrote: Try: $('#menu_zakladka3').unbind('click').click(function(){    

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread Eric Garside
Hmm. Lets say you need it to grow 100px. Would: $('#anim').animate({paddingLeft: 50, width: 50}); work? It's hard to say what would help without a better idea of what the element you want to grow looks like. On Feb 3, 9:34 am, David .Wu chan1...@gmail.com wrote: animate function can change

[jQuery] Re: Performance suggestion: Use object hash instead of regexp

2009-02-03 Thread Eric Garside
The problem I can forsee getting into is the sheer lack of power in a hash. It's stock and faster for a reason: everything is predefined and a simple check. Try your method vs. jQuery's on the following selector: #somelem.ui-state-active.container .list li a span.enabled That should match only:

[jQuery] Re: find text within the page

2009-02-03 Thread paulinstl
Rob, My problem is that I have no way of knowing where the keyword may appear. It might be tabular data (TD) or in descriptive paragraph (p). So if my keyword is RED, then... BEFORE p the red fox /p AFTER pthe spanred/span fox/p I'll have an array of keywords as well. var arrayx[one, two

[jQuery] Re: find text within the page

2009-02-03 Thread Eric Garside
Try: $(function(){ var keywords = [ ... ]; $.each(keywords, function(){ var kw = this, rx = new RegExp('/^ '+kw+' $/'); $(.keyword:contains('+kw+')) .each(function(){ $(this).text($(this).text().replace(rx, 'span'+kw+'/ span')); }); }); }); It's untested,

[jQuery] Simple selector not working in 1.3.1 and webkit (safari and chrome)

2009-02-03 Thread Javier Martinez
I'm creating a component for an application I'm developing and I have upgraded jquery to the last version to get it's speed boost. After some testing I have seen that my component is not working correctly in webkit browsers because there is some bug with the new Sizzle selector of the new jquery.

[jQuery] Re: Simple selector not working in 1.3.1 and webkit (safari and chrome)

2009-02-03 Thread Eric Garside
Try this: var containerSelecteds = function() { return $('ul.selected', container); }; I've had pretty good luck using that syntax instead of using .find() or .children(). It might solve the problem on safari (as I think the reason I stopped using find() or children() was that the above

[jQuery] Re: clueTip - can you parse out heading when reading from external file?

2009-02-03 Thread EricFettman
Thanks, ragx. I'm not having any problem with reading the text in from and internal, just with parsing out the header as I can do when the text is contained in the title attribute of the a tag and not an external file. On Feb 2, 11:21 pm, Mohd.Tareq tareq.m...@gmail.com wrote: may be this

[jQuery] Google maps

2009-02-03 Thread Rui Costa
Hi, Hi have develop a google maps with a form at the top of a marker, but i want to register information by using ajax - $post(...) -. I've tried to manipulate the textboxes, but, with no success. code var infoTabs = [ new GInfoWindowTab(Dados,

[jQuery] Re: Simple selector not working in 1.3.1 and webkit (safari and chrome)

2009-02-03 Thread Javier Martinez
Thanks for the fast response. Unfortunately it doesn't work :( 2009/2/3 Eric Garside gars...@gmail.com Try this: var containerSelecteds = function() { return $('ul.selected', container); }; I've had pretty good luck using that syntax instead of using .find() or .children(). It

[jQuery] Ajax: not understanding 4th param of $.post( url, [data], [callback], [type] )

2009-02-03 Thread Professor B
I have stared at the docs for a while and still don't understand the purpose of the option 4th parameter in the $.post() method. The wording and examples at http://docs.jquery.com/Ajax/jQuery.post seem odd. E.g: [quote] Gets the test.php page contents which has been returned in json format (?php

[jQuery] How to make Jquery work properly

2009-02-03 Thread MH1988
I have only been recently introduced to using JQuery and I am having basic problems of making it work. I previously used Takashi's MudCorp's Image Gallery but it came into conflict with the simple JQuery slideshow gallery I am implementing. What I have in my wordpress post is this: div

[jQuery] Using jQuery with Wordpress

2009-02-03 Thread MH1988
I am having problems using jquery with wordpress. I would like to use the simple gallery plugin but it will not fade in/out my images. Help?

[jQuery] Re: append can not with form submit for IE

2009-02-03 Thread Hussu
Hi Ken.. It seems problem in your jQuery.. reason is that some kind of statements cant be understood by the ie.. Ken Phan wrote: hi all ! i usage jquery appent 2 radio group to form. It work when submit in FF but does't work in IE. My code function checklistPanel (type, id,url){

[jQuery] Help creating a function

2009-02-03 Thread ebru...@gmail.com
Hello, I have a site where i want to run a realtime check. I have 6 form fields, when someone fills a number in jquery has to check if he doesn't go over the max what he can fill in. So for example he kan take 40 bags: Field one he fills in 10 Field two he fills in 10 Field three he fills in

[jQuery] Re: Ajax: not understanding 4th param of $.post( url, [data], [callback], [type] )

2009-02-03 Thread maggus.staab
at api.jquery.com there is a well documented version.. @api doc devel: would be nice if we can link to a specific api page... On 3 Feb., 16:55, Professor B vtbludg...@gmail.com wrote: I have stared at the docs for a while and still don't understand the purpose of the option 4th parameter in

[jQuery] Cascade plugin - feature/improvement request (data optimization)

2009-02-03 Thread James
Mike et all: Now that I've worked through some of the basics, I would like to know how easy it would be to accommodate a JSON file in a bit of a more efficient structure using arrays rather than simple value pairs. IE.: You have designed around this structure:

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
Sorry for my bad explanation, I make a sample online http://chan.idv.tw/animate/enlarge.html On 2月3日, 下午11時11分, Eric Garside gars...@gmail.com wrote: Hmm. Lets say you need it to grow 100px. Would: $('#anim').animate({paddingLeft: 50, width: 50}); work? It's hard to say what would help

[jQuery] Re: autocomplete-comma delimeter string from servlet

2009-02-03 Thread Eric Garside
I'm not sure what kind of data autocomplete accepts, as I'm not familiar with the plugin, but I assume an array of values will work. If your Java servlet is returning a, b, c, d as your value string, call: var servletResponse = a, b, c, d; // Or however you get the value servletResponse =

[jQuery] Re: Help creating a function

2009-02-03 Thread Stephan Veigl
Hi Erwin, Of course you can code it by hand, but I would suggest that you take a look at the various validation plugins for jQuery (e.g. http://plugins.jquery.com/project/validate) first. by(e) Stephan 2009/2/3 ebru...@gmail.com ebru...@gmail.com: Hello, I have a site where i want to run

[jQuery] Re: Simple selector not working in 1.3.1 and webkit (safari and chrome)

2009-02-03 Thread John Resig
That's odd. Could you file a bug on this? http://dev.jquery.com/newticket Thanks! --John On Tue, Feb 3, 2009 at 10:39 AM, Javier Martinez ecentin...@gmail.com wrote: I'm creating a component for an application I'm developing and I have upgraded jquery to the last version to get it's speed

[jQuery] Re: Using jQuery with Wordpress

2009-02-03 Thread MorningZ
Can you elaborate on having problems? On Feb 3, 8:57 am, MH1988 m.lawrencehu...@gmail.com wrote: I am having problems using jquery with wordpress. I would like to use the simple gallery plugin but it will not fade in/out my images. Help?

[jQuery] Re: Help creating a function

2009-02-03 Thread Eric Garside
Try out the jQuery UI Scaling effect. http://docs.jquery.com/UI/Effects/Scale On Feb 3, 11:33 am, Stephan Veigl stephan.ve...@gmail.com wrote: Hi Erwin, Of course you can code it by hand, but I would suggest that you take a look at the various validation plugins for jQuery

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread Eric Garside
Try the jQuery UI Scaling effect. http://docs.jquery.com/UI/Effects/Scale On Feb 3, 11:21 am, David .Wu chan1...@gmail.com wrote: Sorry for my bad explanation, I make a sample onlinehttp://chan.idv.tw/animate/enlarge.html On 2月3日, 下午11時11分, Eric Garside gars...@gmail.com wrote: Hmm.

[jQuery] Re: Using jQuery with Wordpress

2009-02-03 Thread Penner, Matthew
Is jQuery working at all? I've noticed that WordPress can be very intrusive when you put javascript in posts. When I would first write a post with js embedded it would work, but the instant I edited it online the helpful editor textbox would reformat my js and break it. If you want your

[jQuery] Re: Jquery cycle plugin - YouTube videos

2009-02-03 Thread Mike Alsup
Im trying to create a rotating promo area using the cycle plug-in. I have to to embed YouTube videos (example herehttp://www.grouptools.com/adrian/sbc-new/promo/) The main issue is FF works fine in that if a video is playing and you go to another 'slide' the video/sound stops. Where as

[jQuery] Re: Help creating a function

2009-02-03 Thread Eric Garside
Sorry for that last post, wrong thread. :( Anyway, you could try something like this: form input id=lim type=hidden value=40/ input id=input_1 type=text class=counter/ input id=input_2 type=text class=counter/ input id=input_3 type=text class=counter/ input id=input_4 type=text class=counter/

[jQuery] Re: Ajax: not understanding 4th param of $.post( url, [data], [callback], [type] )

2009-02-03 Thread Eric Garside
Basically, the 4th parameter tells jQuery what to do with the response data. JSON indicates you're expecting a JSON string as the post response. 'xml' indicates you want the return text parsed as XML (true AJAX). 'html' means it's coming in as, I think a jquery object. And text is just text.

[jQuery] Re: How to make Jquery work properly

2009-02-03 Thread ripple
Did you try adding jquery-1.2.3.js before adding jquery.cycle.js to the page?             http://2whoa.com/dominate       --- On Tue, 2/3/09, MH1988 m.lawrencehu...@gmail.com wrote: From: MH1988 m.lawrencehu...@gmail.com Subject: [jQuery] How to make Jquery work properly To: jQuery (English)

[jQuery] Re: find text within the page

2009-02-03 Thread paulinstl
yeah.. this finds it by classname (.keyword) , I need to be able to traverse all elements On Feb 3, 9:39 am, Eric Garside gars...@gmail.com wrote: Try: $(function(){    var keywords = [ ... ];    $.each(keywords, function(){       var kw = this, rx = new RegExp('/^ '+kw+' $/');      

[jQuery] Re: about :not(:last)

2009-02-03 Thread Ricardo Tomasi
It's not a bug, it's the documented behavior: :first Matches the first selected element. http://docs.jquery.com/Selectors/first Let's go through it again. When you call $(this).parents() you get this array of elements: [0] dd [1] dl [2] dd [3] dl [4] dd [5] dl Which are all the element's

[jQuery] Re: UI Tabs - change onClick behaviour

2009-02-03 Thread Eric Garside
Try: $('#menu_zakladka3').unbind('click').click(function(){ window.location = 'http://some.url'; return false; }); I think that should work fine? On Feb 2, 5:48 pm, plusz pluszpica...@googlemail.com wrote: I have 6 tabs. I changed event to load tab content on hover for tab

[jQuery] Re: Ajax: not understanding 4th param of $.post( url, [data], [callback], [type] )

2009-02-03 Thread Professor B
@Eric I think I get it. So I assume -- again, using this example -- if your server returned json content AND the appropriate header, you were expecting json and you did NOT pass 'json' as the 4th param to $.post(), then data.name etc would be undefined. Right? And conversely, if your server

[jQuery] Re: Jquery.js include multiple times header / footer / etc.

2009-02-03 Thread Sébastien Richer
Hi Jim and Eric, I did a bit of testing around, and what I found is that i I want to include a js file from my js code, I'll need to have that script end, before the .js is loaded. So I tried a couple of things and the following now works : script language=JavaScript type=text/javascript

[jQuery] Re: Jquery cycle plugin - YouTube videos

2009-02-03 Thread Ado
Thanks Mike. I dont suppose you have a quick demo, or code to hand to show me how this would be done. Would be most appreciated... Adi On Feb 3, 4:46 pm, Mike Alsup mal...@gmail.com wrote: Im trying to create a rotating promo area using the cycle plug-in. I have to to embed YouTube

[jQuery] Re: toggle checkbox when clicking td

2009-02-03 Thread Karl Swedberg
Hello again, Thanks a lot for pointing out the problem in the tutorial. I have fixed it to work for 1.3.1: http://www.learningjquery.com/2008/12/quick-tip-click-table-row-to-trigger-a-checkbox-click#update1 --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Ajax: not understanding 4th param of $.post( url, [data], [callback], [type] )

2009-02-03 Thread Eric Garside
I'm not positive how jQuery handles mismatched response expectations. Testing it for yourself would be the best way to go, if you're worried about it. But your best case is to specify your expected return, if only to keep a record somewhere of what you should be getting back. On Feb 3, 12:06 pm,

[jQuery] Re: Jquery cycle plugin - YouTube videos

2009-02-03 Thread Mike Alsup
I dont suppose you have a quick demo, or code to hand to show me how this would be done. Would be most appreciated... Hmm, I thought I did but can seem to find it. It depends what functions are exposed on the element so you may want to google it. Maybe someone else will chime in with a

[jQuery] Tooltip Issue

2009-02-03 Thread Pedram
Dear Folk I'm going to use a tooltip in my website I was wondering which one of these ToolTips In the Internet is great . thanks

[jQuery] Re: find text within the page

2009-02-03 Thread Eric Garside
Replace $(.keyword:contains('+kw+')) .each(function(){ With $(:contains('+kw+')).each(function(){ On Feb 3, 11:54 am, paulinstl paulsha...@gmail.com wrote: yeah.. this finds it by classname (.keyword) , I need to be able to traverse all elements On Feb 3, 9:39 am, Eric Garside

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
yup, I tried, but still not know to to do it proportionally. sigh.. On 2月4日, 上午12時43分, Eric Garside gars...@gmail.com wrote: Try the jQuery UI Scaling effect. http://docs.jquery.com/UI/Effects/Scale On Feb 3, 11:21 am, David .Wu chan1...@gmail.com wrote: Sorry for my bad explanation, I

[jQuery] Re: Performance suggestion: Use object hash instead of regexp

2009-02-03 Thread George Adamson
Absolutely, it is very very limited. So this technique is only suited to the type of regex's that I quoted, like the one used internally by jquery to test for body or html tags only, or to test for t(able|d|h) only. Particulalry when used inside a loop. For parsing a selector we still need regex.

[jQuery] Re: Problem with Chrome firing events correctly

2009-02-03 Thread morse.caleb
Sure, here you go // begin code // var cookie_name = 'WP_LiveSaver', element = 'wpTextbox1'; var LiveSaver = { init: function() { this.lastSave = (new Date()).getTime(); var wikiSection = window.location.href.match(/section=\d+/),

[jQuery] Re: Performance suggestion: Use object hash instead of regexp

2009-02-03 Thread Eric Garside
In that case, wouldn't a switch statement have even less overhead than creating an object to check everytime? I'd think switch(tag){case 'body':case 'html': /* ... */ break;} would be an even faster solution, no? On Feb 3, 12:39 pm, George Adamson george.adam...@softwareunity.com wrote:

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread Mike Alsup
yup, I tried, but still not know to to do it proportionally. sigh.. Look at the technique used in this plugin: http://www.malsup.com/jquery/hoverpulse/

[jQuery] Re: Jquery cycle plugin - YouTube videos

2009-02-03 Thread Ado
Thanks for looking, cant see much on Google at the moment apart from people having similar problems with flash video when they try and make it display:none (which is esentially cycle plug-in is doing) Anybody else have any code for this? I will keep hunting and post back here if I come across

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
thanks, this plugin is really cool. On 2月4日, 上午1時50分, Mike Alsup mal...@gmail.com wrote: yup, I tried, but still not know to to do it proportionally. sigh.. Look at the technique used in this plugin: http://www.malsup.com/jquery/hoverpulse/

[jQuery] Re: Help creating a function

2009-02-03 Thread ebru...@gmail.com
Looking good Eric, i tied it out, but it doenst seem to work. I already fixed the bug in the alert with the ' in it, but no reponse when filling in alot of numbers. On 3 feb, 17:48, Eric Garside gars...@gmail.com wrote: Sorry for that last post, wrong thread. :( Anyway, you could try

[jQuery] Re: Need solution for select element value change...

2009-02-03 Thread Eric Garside
It sounds to me like you want the .change event to fire if someone selects an option that's already selected. If that's the case, try this: $(function(){ $('.agents') .focus(function(){ $('option:selected', this).attr('selected', ''); }) .change(function(){

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
but is that mean I have to write lots code to do what I want? actually I know the trick, just want to know can it complete through jQuery effect by only set the options. On 2月4日, 上午1時55分, David .Wu chan1...@gmail.com wrote: thanks, this plugin is really cool. On 2月4日, 上午1時50分, Mike Alsup

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread Ricardo Tomasi
$('#anim').animate({marginLeft: '-=50', width: '+=100'}); or $('#anim').css('position', 'relative').animate({left -50, width: '+=100'}); On Feb 3, 1:11 pm, Eric Garside gars...@gmail.com wrote: Hmm. Lets say you need it to grow 100px. Would: $('#anim').animate({paddingLeft: 50, width: 50});

[jQuery] Re: Help creating a function

2009-02-03 Thread Eric Garside
Ah, I'm pretty sure i missed wrapping the loop's this in a jQuery obj Try replacing this line: num += this.val()*1; with num += $(this).val()*1; Also, do an alert before and after the loop and just see what the values are: alert('Limit: ' + lim + \nNum: + num); On Feb 3, 12:58 pm,

[jQuery] How to enlarge size proportionally

2009-02-03 Thread David .Wu
animate function can change object's size by control css, such as width and height, if if we want to increase the width, the width increased to right - how to do it like below - -

[jQuery] Re: Help creating a function

2009-02-03 Thread ebru...@gmail.com
I get it now. I didn't add a submit button. Do you now if it's also possible to use it without pressing on the submit so it would be a realtime check. On 3 feb, 19:08, Eric Garside gars...@gmail.com wrote: Ah, I'm pretty sure i missed wrapping the loop's this in a jQuery obj Try replacing

[jQuery] Re: Jquery.js include multiple times header / footer / etc.

2009-02-03 Thread Jim D
You could check whether or not $ is a function. If jQuery has been included, typeof($) should return the string function otherwise it will return undefined On Feb 2, 11:32 am, Sébastien Richer sebastienric...@gmail.com wrote: Hi, I tried to search around for this but have'nt had any luck, so

[jQuery] [plugins] [jcarousel] Add new item

2009-02-03 Thread Kpitn
Hi all, I'm trying to add new item on the fly with jcarousel. The function itemLoadCallback, didn't work to add item when you want. The plugin is build like this : $.fn.jcarousel = function(o) { return this.each(function() { new $jc(this, o); }); };

[jQuery] Live Event Firing Multiple Times Instead of Just Once?

2009-02-03 Thread Vik
I have the following code: $(#element_id).live(mousedown, function(event){ ChangeView(); return false; }); When $(#element_id) is clicked, the ChangeView() function is called not once, but multiple times. I see the

[jQuery] Re: Jquery.js include multiple times header / footer / etc.

2009-02-03 Thread Eric Garside
Honestly, best practice here is to redo how you include javascript. Sad, but true. :( On Feb 3, 9:15 am, Jim D nofxbassist1...@gmail.com wrote: You could check whether or not $ is a function.  If jQuery has been included, typeof($) should return the string function otherwise it will return

[jQuery] Re: Jquery.js include multiple times header / footer / etc.

2009-02-03 Thread Eric Garside
jQuery does provide a $.getScript function that replicates your jsInclude functionality. I've also written a quick snippet that you might find beneficial. It does automatic script includes based on your other script tags. For example, if you add the small plugin I wrote and have the following

[jQuery] Re: DIV position

2009-02-03 Thread James
If I'm correct, your callback inside your show() function cannot include parameters. Instead of: $('#profile_' + id).show(slow, hideAllProfile(id)); Use: $('#profile_' + id).show(slow, function() { hideAllProfile(id); }); On Feb 3, 1:22 am, Paresh pareshva...@gmail.com wrote: Is there

[jQuery] Math.ceil rounds down instead of up!?

2009-02-03 Thread Zaliek
I've finished my shipping calculator script, but now for some reason Math.ceil used on var sum in my script does the opposite of what it's supposed to! When it's used in an older version of my script it works correctly so I would assume I've done something wrong that's borking the script now.

[jQuery] Re: Cascade (chained) works in Firefox but not in IE

2009-02-03 Thread Mike Nichols
@james, There is not a fixed schema for items in cascade. The json structure is outside the scope of cascade. For smaller lists I might load some javascript when the page hits and assign the 'url' as the var I gave it. For larger lists or more complex objects I might just have an ajax call for

[jQuery] Re: Math.ceil rounds down instead of up!?

2009-02-03 Thread Zaliek
Using decrement the way I did will change the actual var at the same time? It needs to be decremented to pull the correct array value since arrays start at [0] instead of [1] Is there a way to get the decremented value without changing the actual variable? I still need to display the total weight

[jQuery] Re: Detecting wether an image link is going to work

2009-02-03 Thread Stephan Veigl
You can set a timeout and jump to the next image if the image was not loaded before the timeout. see: http://jsbin.com/evitu/edit The third image is a broken link and will run into a 5s timeout. by(e) Stephan 2009/2/3 daveJay davidjo...@exit42design.com: I've got a page set up where it

[jQuery] Re: Math.ceil rounds down instead of up!?

2009-02-03 Thread brian
On Tue, Feb 3, 2009 at 2:28 PM, Zaliek zali...@gmail.com wrote: Using decrement the way I did will change the actual var at the same time? It needs to be decremented to pull the correct array value since arrays start at [0] instead of [1] Is there a way to get the decremented value without

[jQuery] Re: Performance suggestion: Use object hash instead of regexp

2009-02-03 Thread jay
I imagine a switch is the same speed as a hash (switches generally evaluate to a hash). Using a trie structure could be faster than regex in some circumstances I imagine: http://en.wikipedia.org/wiki/Trie On Feb 3, 12:45 pm, Eric Garside gars...@gmail.com wrote: In that case, wouldn't a

[jQuery] Re: Help creating a function

2009-02-03 Thread Eric Garside
Change $('form').submit(function(){ to $('input.counter').change(function(){ This will prompt the check to run each time the user changes a value in any of the concerned fields. On Feb 3, 1:18 pm, ebru...@gmail.com ebru...@gmail.com wrote: I get it now. I didn't add a submit button. Do you

  1   2   >