[jQuery] Building functions (newbie question)

2009-02-25 Thread heohni
Hi, I have some jquery code within the $(document).ready(function() { $(input:checkbox).click(function(){ check if checked or unchecked ... do some ajax stuff . do some css class exchange stuff .. }); }); (This is the function to manipulate

[jQuery] tbody:first-child thead

2009-02-25 Thread Alex Wibowo
Hi all, I have a code that counts the number of rows in a table... the table looks like: table id=myTable thead ... /thead tbody tr /tr /tbody /table and my jquery looks like: $(#myTable tbody:first-child tr).length; strange enough that

[jQuery] Re: tbody:first-child thead

2009-02-25 Thread David Muir
It's because tbody:first-child is already selecting the tr, so you're effectively doing: tbody tr tr (where the first tr is the first child of tbody) Cheers, David Alex Wibowo wrote: Hi all, I have a code that counts the number of rows in a table... the table looks like: table

[jQuery] Re: Rich text Editor

2009-02-25 Thread Frederik Ring
Are you using a plugin or are you trying to do oit by yourself? In case you are doing it by yourself this thread might help: http://groups.google.com/group/jquery-en/browse_thread/thread/6902e3e091ec9e4b/f8a135f66d533265#f8a135f66d533265 Works both with selected text and no selection (cursor).

[jQuery] Multiselect listbox

2009-02-25 Thread Bluesapphire
Hi! How can i check that atleast one option is selected in multiselect listbox. How can this be done through JQUERY. Thanks in advance

[jQuery] Re: tbody:first-child thead

2009-02-25 Thread Alex Wibowo
how does that explain the behaviour when there's thead then?? On Wed, Feb 25, 2009 at 7:47 PM, David Muir davidkm...@gmail.com wrote: It's because tbody:first-child is already selecting the tr, so you're effectively doing: tbody tr tr (where the first tr is the first child of tbody)

[jQuery] Re: tbody:first-child thead

2009-02-25 Thread Alex Wibowo
sorry i should say how does that explain the behaviour when there's no thead (because it works when thead doesnt exist) On Wed, Feb 25, 2009 at 8:06 PM, Alex Wibowo alexwib...@gmail.com wrote: how does that explain the behaviour when there's thead then?? On Wed, Feb 25, 2009 at 7:47

[jQuery] Re: tbody:first-child thead

2009-02-25 Thread Karl Rudd
tbody:first-child doesn't select the first child of the tbody it says select the tbody that is the 'first-child' of it's parent. So what you are actually wanting to say is: $(#myTable tbody tr:first-child) Which is select the tr that is the first child of tbody

[jQuery] Re: How to find a div's which have background-img?

2009-02-25 Thread David .Wu
I made a function, but I hope I can do it by jquery selectors. $(function() { $('div').each(function() { var $bk = $(this).css('background-image'); if ($bk.match('png')) { console.log('yes');

[jQuery] Var from Ajax success not defined?

2009-02-25 Thread heohni
Hi, $.ajax({ type: POST, url: /ajax_add_selected_product_to_session.php, success: function(msg){ /* add here what to do on success */ //alert(msg); var how_many_checked = msg;

[jQuery] Re: Css Background-Position and Internet Explorer 7

2009-02-25 Thread Html
Here is the code: var background_image_height = 1232; var background_image_height2 = 1232; $(#breakup-2).css({backgroundPosition: 0px + (0 - (background_image_height - $(#breakup-2).height())) + px});

[jQuery] Re: jquery.corners.js peformance issue

2009-02-25 Thread Davis
or is there any other JQ more good performance can repalce jquery.corners.js ? many thanks/Davis.

[jQuery] Re: Var from Ajax success not defined?

2009-02-25 Thread system div
var how_many_checked= ''; $.ajax({ type: POST, url: /ajax_add_selected_product_to_session.php, success: function(msg){ /* add here what to do on success */ //alert(msg);

[jQuery] Re: easy way to include clueTip content in form

2009-02-25 Thread claus.k...@googlemail.com
On 24 Feb., 15:59, claus.k...@googlemail.com claus.k...@googlemail.com wrote: Hello everyone, I am using a clueTip to show a couple of options (checkboxes) on a form. It took me quite awhile to realize that the cluetip checkboxes are a copy of the original group of checkboxes, existing

[jQuery] Re: Var from Ajax success not defined?

2009-02-25 Thread heohni
Ok, thanks a lot!! On 25 Feb., 10:38, system div divsys...@gmail.com wrote:  var how_many_checked= ''; $.ajax({                type: POST,                url: /ajax_add_selected_product_to_session.php,                success: function(msg){                        /* add here what to do on

[jQuery] Re: Var from Ajax success not defined?

2009-02-25 Thread heohni
Sorry, another question... I just playing arround with different possibilities: $(document).ready(function(){ // on default, disable the submit button $(.requestbutton).attr(disabled, disabled); function check_how_many_products_checked(){ $.ajax({

[jQuery] Re: JQuery size: 19 KB ? 55 KB?

2009-02-25 Thread Rasit OZDAS
Thanks, Richard! I suspected it, but wasn't sure, thank you for your help! 2009/2/25 Richard D. Worth rdwo...@gmail.com On Tue, Feb 24, 2009 at 4:16 PM, rasit rasitoz...@gmail.com wrote: Hi, all! Homepage of JQuery says that JQuery is 19 KB (minified) Actually if you look closely it

[jQuery] Re: tbody:first-child thead

2009-02-25 Thread David Muir
Oops. Got tripped up by this last week too... David Karl Rudd wrote: tbody:first-child doesn't select the first child of the tbody it says select the tbody that is the 'first-child' of it's parent. So what you are actually wanting to say is: $(#myTable tbody tr:first-child) Which is select

[jQuery] Re: Var from Ajax success not defined?

2009-02-25 Thread system div
you try alert(check_how_many_products_checked()); //var x = ; On Wed, Feb 25, 2009 at 6:11 PM, heohni heidi.anselstet...@consultingteam.de wrote: Sorry, another question... I just playing arround with different possibilities: $(document).ready(function(){        // on default, disable

[jQuery] Re: Multiselect listbox

2009-02-25 Thread Bluesapphire
Thanks for guidance. My JS code is as follows: // var zonelocationVal; jQuery('#zonelocation').each(function(){ if(jQuery('#zonelocation').attr('checked') == 'checked'){ zonelocationVal = true; }

[jQuery] JqGrid et ui.jquery ?

2009-02-25 Thread cv
Hello, This could be of interest to add the plugin JqGrid (http:// www.trirand.com/blog/) a ui.jquery:) for a perfect integration. because it lacks a UI MANAGEMENT SYSTEM Grid Do you add this type of a UI component?

[jQuery] Re: Multiselect listbox

2009-02-25 Thread Frederik Ring
2 things: you are referring to multiple checkboxes, but do that with an ID (#zonelocation). That will not work. Use a class instead. Second: Depending on the type of your checkboxes and your DOCTYPE you might need to change the attr('checked') == 'checked' according to your needs. I only used

[jQuery] Re: Multiselect listbox

2009-02-25 Thread Frederik Ring
Also remove the else-part of the attribute checking, this way it'll only return true if the last element is checked. On Feb 25, 11:41 am, Frederik Ring frederik.r...@gmail.com wrote: 2 things: you are referring to multiple checkboxes, but do that with an ID (#zonelocation). That will not work.

[jQuery] Wanted: Autocomplete that doesn't change

2009-02-25 Thread Kaare Rasmussen
Hi I want to find an autocomplete plugin that doesn't fire the current field's change event (as I hook up on that) when it's building the list to choose from. Does such a plugin exist?

[jQuery] Re: Multiselect listbox

2009-02-25 Thread Bluesapphire
Hi! Thanks for guidance. I have changed JS code as follows. And now it is totally ignoring the check. My listbox name is zonelocation[] . I have used name with/without DOT in JQUERY identifier placeholder. The result is same. /*/ var zonelocationVal;

[jQuery] site using [validate] plugin

2009-02-25 Thread hcvitto
hi i published a site using the validate plugin (which is awesome) for the 7 pages registration form. http://www.lavorainmondial.it/tuo_profilo/step1.php Many thanks

[jQuery] Re: Var from Ajax success not defined?

2009-02-25 Thread heohni
Currently my code looks like: var how_many = ; $.ajax({ type: POST, url: /ajax_add_selected_product_to_session.php, success: function(msg){ /* add here what to do on success */ //alert(msg);

[jQuery] Re: Multiselect listbox

2009-02-25 Thread Frederik Ring
The thing is you will not select a named element by $('.name') but an element of the class name. How does your HTML look like? On Feb 25, 12:14 pm, Bluesapphire michealg...@gmail.com wrote: Hi!    Thanks for guidance. I have changed JS code as follows. And now it is totally ignoring the

[jQuery] Re: tbody:first-child thead

2009-02-25 Thread Alex Wibowo
Hi Karl.. thanks for the reply... what i actually wanted is to select the first tbody thats why i specified tbody:first-child there since a table can have multiple tbody... i want to select the first tbody. What I didnt understand is about the thead.. the following works

[jQuery] Re: jQuery 1.3.1 + jQuery UI 1.6rc6 --- AJAX problem

2009-02-25 Thread Dakkar Daemor
Note: FIREFOX3 and IE7 seems to have the same behavior, but json datatype seem give more problems than text 2009/2/25 Dakkar dak...@gmail.com Hi all, I'm trying to use jQuery to send forms to a PHP script, but I've encountered some problems: - with $.post it works only with an alert just

[jQuery] UI/Tabs Losing selected tab on updatepanel postback

2009-02-25 Thread Intelligent Penguin
Hello I've got some of the UI/Tabs (which are very nice, really like them) on a page that is encased in an UpdatePanel. On doing a partial postback, the selected tab reverts to it's initial state (ie, if I do a partial postback from tab #2, it reverts to displaying tab #1). Has this been

[jQuery] Confused by adding confirmation plugin to Rails ajax link

2009-02-25 Thread Jesse
The plugin page, http://nadiana.com/jquery-confirm-plugin The span class of remove is a gray box that turns red on hover. It functions as a link to an ajax delete method. I want to mouseover the box and bring up the Yes/No confirmation buttons. Have been at it for a couple hours now. Help

[jQuery] Superfish

2009-02-25 Thread yak
Hi, I downloaded the updated superfish 1.4.8 but couldn't install it using the Joomla install function. I keep getting the error message: could not find xml setup file in package or unknown archive file. Is there a special process to install this mod using the joomla install function? I

[jQuery] seesion issue is thickbox.

2009-02-25 Thread Mak
HI everyone, I just started using jquery with thickbox, I met a strange issue while using the thickbox. I'm developing the site in php. I have not specified any session time limit though thickbox destroys the session every 2-3 rd time I open the thick box. Does any one else has faced this

[jQuery] Re: load page which includes swf and js functions

2009-02-25 Thread emrah
I'm not sure about the reason why but put the script tags to the end of file like this. //some html here ?php //some code here ? //some html here //jquery and javascript codes try this it will work, I think it is related wiht async,sync working structure of AJAX. By the way it is better if

[jQuery] Ajax Multiplayer Game

2009-02-25 Thread Joe
I've been writing a little ajax based game. It will be multiplayer, and is written with jquery. http://code.google.com/p/ajaxmmo enjoy :)

[jQuery] Superfish menu First level images

2009-02-25 Thread Tasos
Hello I have a Superfish menu on joomla 1.5, I have the first level with images only, the problem is that it show's different the image menu when the url of the image item is a separator and different when the image has a normal joomla link http://joom15.first.gr Thanks

[jQuery] Problem with Date Picker in Thickbox

2009-02-25 Thread schli...@gmail.com
Hi, I am using a plugin called 'jQuery Date Input' v1.1.8 with the latest version of jQuery. The plugin works fine on a normal page, and, although I can get it to display within a thickbox v3.1, I am having trouble with the positioning of the date picker relative to the date input field on the

[jQuery] jQuery 1.3.1 + jQuery UI 1.6rc6 --- AJAX problem

2009-02-25 Thread Dakkar
Hi all, I'm trying to use jQuery to send forms to a PHP script, but I've encountered some problems: - with $.post it works only with an alert just after the $.post instruction - with $.ajax it works without that alert only with async:false option - with both methods it works only with text

[jQuery] superfish

2009-02-25 Thread yak
I'm a newbie and can't install the zipfile superfish 1.4.8 using the joomla install function. I keep getting an error message stating that the xml.is missing. Do you have any suggestions how I might be able to install this file? I'm currently using superfish 1.0 on my site. Also,

[jQuery] callback function

2009-02-25 Thread mlabee01
Hello, I’m pretty new in the jQuery world. I'm struggle with the callback function. script type=text/javascript $(document).ready(function(){ $(#gallery-flickr).flickr({api_key: f28804be7a09c5845676349c7e47d636,per_page: 4 }); $('a').attr({ rel:

[jQuery] .load() duplicate functions problem

2009-02-25 Thread emrah
Hi! I have a question, I have two main divs one for is used for menu, the other is used for content. When an item is clicked from left menu, content is loaded via jquery load() function in to the content div. In one of my content I'm using jquery tabs for a tabbing system. In this system there

[jQuery] Re: CSS Styling Open Item

2009-02-25 Thread TomBombadill
If you just need to a open to function before the tree is created you can do this $('li#com_5').addClass('open').parents('li').addClass('open'); $('#treee').treeview({collapsed:true,unique:true}); Then it open the tree to the node where the li has id com_5

[jQuery] Re: tbody:first-child thead

2009-02-25 Thread David Muir
Because tbody is no longer the first child. What you want is tbody:first which will grab the first tbody. David Alex Wibowo wrote: Hi Karl.. thanks for the reply... what i actually wanted is to select the first tbody thats why i specified tbody:first-child there since a table

[jQuery] How to animate opacity on Internet Explorer

2009-02-25 Thread fambi
Using animate({opacity:}) jQuery provides an excellent way of fading elements in and out of view. However, opacity does not work on IE (which demands the use of silly filters). With that in mind, how do we animate the opacity of an element in IE? Thanks

[jQuery] Re: How to animate opacity on Internet Explorer

2009-02-25 Thread Mike Alsup
Using animate({opacity:}) jQuery provides an excellent way of fading elements in and out of view. However, opacity does not work on IE (which demands the use of silly filters). With that in mind, how do we animate the opacity of an element in IE? Use opacity. jQuery takes care of the IE

[jQuery] Re: Multiselect listbox

2009-02-25 Thread Mauricio (Maujor) Samy Silva
Try this: script type=text/javascript $(document).ready(function(){ var ok = ''; $('button').click(function() { $('#my_form input[type = checkbox]').each(function() { if ( $(this).attr('checked') ) {ok = true} }) ok ? alert('there is at least one checked') : alert('none checked'); }); });

[jQuery] Stopping slideUp/slideDown mid animation

2009-02-25 Thread Jon
I'm using slideUp and slideDown to animate a drop down menu. If i mouse on/off the menu in very quick succession the sliding up and down animations stack up so that when you take your mouse away from it it is still animating up and down. Is there any way to stop the animation in the same way

[jQuery] Re: Multiselect listbox

2009-02-25 Thread RobG
On Feb 25, 6:55 pm, Bluesapphire michealg...@gmail.com wrote: Hi!     How can i check that atleast one option is selected in multiselect listbox. How can this be done through JQUERY. I guess you want to see if at least one option in a multiple select element is selected. Look at its

[jQuery] 413 FULL head

2009-02-25 Thread James Hughes
I realise this may not be related to jQuery specifically but sending the contents of a textarea (rich content being edited in the browser) via an ajax call. I keep getting a 413 FULL head error in the Ajax call. It seems to be occurring because there is too much info being pushed via the Ajax

[jQuery] Re: tbody:first-child thead

2009-02-25 Thread Mauricio (Maujor) Samy Silva
Hi Alex, 1-) Doesn't work because * E F:first-child * pseudo-class selector matches the F element that is the first child of the E element ONLY if there isn't another element BEFORE the E element within the parent E. See specs at: http://www.w3.org/TR/CSS2/selector.html#first-child 2-) If

[jQuery] Re: UI/Tabs Losing selected tab on updatepanel postback

2009-02-25 Thread Klaus Hartl
You're giving way too less information to answer the question if this has been sorted out. Maybe it needs to be sorted out in your own code. Please provide a pastebin or test page. --Klaus On 25 Feb., 11:22, Intelligent Penguin phalling...@googlemail.com wrote: Hello I've got some of the

[jQuery] Re: tbody:first-child thead

2009-02-25 Thread Mauricio (Maujor) Samy Silva
Ops! my faul! sorry. Previous post errata. Read: ...BEFORE the F element ... instead of: ...BEFORE the E element... -Mensagem Original- De: Mauricio (Maujor) Samy Silva Para: jquery-en@googlegroups.com Enviada em: quarta-feira, 25 de fevereiro de 2009 09:24 Assunto: Re:

[jQuery] Re: tbody:first-child thead

2009-02-25 Thread Alex Wibowo
ahhh ok ... now i get it. sorry for wasting your time, guys... i thought its E F:first-child reads the first child of E of type F... i didn't know that it has to explicitly be the first child. I didnt even know that this syntax is CSS thing i thought it is jQuery's syntax.

[jQuery] Re: Multiselect listbox

2009-02-25 Thread Bluesapphire
Thanks alot for your guidance. It really worked. On Feb 25, 5:07 pm, RobG rg...@iinet.net.au wrote: On Feb 25, 6:55 pm, Bluesapphire michealg...@gmail.com wrote: Hi!     How can i check that atleast one option is selected in multiselect listbox. How can this be done through JQUERY. I

[jQuery] Re: tbody:first-child thead

2009-02-25 Thread Mauricio (Maujor) Samy Silva
jQuery uses the power of CSS selectors. :first-child is an CSS pseudo-class selector and eq() isn't from CSS sintax. Further reading: http://www.456bereastreet.com/archive/200509/css_21_selectors_part_1/ Maurício -Mensagem Original- De: Alex Wibowo Para:

[jQuery] What can we use in place of $.browser?

2009-02-25 Thread fambi
Having just upgraded to 1.3.2, I've realised that the $.browser utility has been deprecated. Does this mean it is no longer possible to identify which browser is being used?

[jQuery] Re: UI/Tabs Losing selected tab on updatepanel postback

2009-02-25 Thread David Muir
I think what P is referring to is what using cookies enables: remember what tab you were on when refreshing the page. Which makes me wonder, why not have an option to have the hash set instead of using a cookie? eg index.html: div class=tabs ul lia href=#tab1Tab1/a/li lia

[jQuery] Re: What can we use in place of $.browser?

2009-02-25 Thread Liam Potter
I thought this as well, $.browser still works, as many plugins use it, but I'm interested in what we should be using. fambi wrote: Having just upgraded to 1.3.2, I've realised that the $.browser utility has been deprecated. Does this mean it is no longer possible to identify which browser

[jQuery] Re: callback function

2009-02-25 Thread MorningZ
The syntax would be like $(#gallery-flickr).flickr({ api_key: f28804be7a09c5845676349c7e47d636, per_page: 4, callback: function() { $('a').attr({ rel: prettyPhoto}); } }); On Feb 24, 11:57 pm, mlabee01 mari...@savariba.com wrote: Hello, I’m pretty new in the

[jQuery] Calling HTML pages using post...

2009-02-25 Thread webspee...@gmail.com
Hey all. I have 5 buttons on a page, each one calls a different HTML page. Currently, I have each button in its own form and on click, I'm checking permissions and then submitting the form. Is there an easier way of loading a page via post using JQuery?

[jQuery] Re: Calling method on multiple jQuery objects

2009-02-25 Thread jQuery Lover
Oops, sorry. The snippet that I wrote selects all elements whitin your myJQObj, which is not much of any use... My bad... Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Tue, Feb 24, 2009 at 6:01 PM, jQuery Lover ilovejqu...@gmail.com wrote: You could try:    

[jQuery] Re: UI/Tabs Losing selected tab on updatepanel postback

2009-02-25 Thread Paul Allington
Would the cookies option help in this case? I've come across the cookies option but I haven't been able to make it work (I don't know when it saves the cookie). P 2009/2/25 David Muir davidkm...@gmail.com I think what P is referring to is what using cookies enables: remember what tab you

[jQuery] Re: UI/Tabs Losing selected tab on updatepanel postback

2009-02-25 Thread David Muir
It requires the cookie plugin. David Paul Allington wrote: Would the cookies option help in this case? I've come across the cookies option but I haven't been able to make it work (I don't know when it saves the cookie). P 2009/2/25 David Muir davidkm...@gmail.com

[jQuery] Re: Validation Plugin: Too Much Recursion

2009-02-25 Thread kevinm
Jörn , New issue, that is related. When I use form.submit() inside the modal window it does not submit correctly. When we did this (before applying validate) function submitForm() { document.myform.submit(); parent.$.nyroModalRemove(); // this closes the modal window

[jQuery] Re: UI/Tabs Losing selected tab on updatepanel postback

2009-02-25 Thread Paul Allington
There is a chance this could work perhaps. I've added the cookie plugin, which seems to work partly, but not on the postback. The postback doesn't appear to save the cookie data, it just reverts to the initial state that was initially loaded from the cookie. %@ Page Language=C#

[jQuery] Re: Stopping slideUp/slideDown mid animation

2009-02-25 Thread pedalpete
Check out the hoverIntent plugin http://cherne.net/brian/resources/jquery.hoverIntent.html it puts a 'pause' on the hover so for both loading and unloading the hovered section, it attempts to figure out what the user wants to do. On Feb 25, 3:57 am, Jon cakeordeat...@gmail.com wrote: I'm

[jQuery] Re: Stopping slideUp/slideDown mid animation

2009-02-25 Thread Jon
That is exactly what i was looking for! Thanks very much! =D On Feb 25, 2:10 pm, pedalpete p...@hearwhere.com wrote: Check out the hoverIntent pluginhttp://cherne.net/brian/resources/jquery.hoverIntent.html it puts a 'pause' on the hover so for both loading and unloading the hovered

[jQuery] jQuery TinyMCE

2009-02-25 Thread Dan Vega
I am having an issue with tinymce and jquery ajax form submissions. I have 2 fields (title/content) and a hidden input (id) that I am submitting via ajax. when I use serialize var form = $(form).serialize(); title = My title id = 2124245 content = null It seems to be an issue with tinymce

[jQuery] Re: What can we use in place of $.browser?

2009-02-25 Thread Aaron Gundel
http://docs.jquery.com/Utilities/jQuery.support jQuery now uses feature detection. There are some good links to explain in the post above. It is still possible to detect which browser is being used (plain old js) but jQuery support will probably be removed at some point in the future. On Wed,

[jQuery] Re: Would like to limit toggle to the plus/minus icons

2009-02-25 Thread Mike B
Jorn, could you be more specific about the fix in terms of removing the span tags? I'm using the async script to load the menu... Thanks very much! On Dec 29 2008, 6:41 am, walkinthere mtlmei...@gmail.com wrote: I'd like to do the opposite. Clicking any link in the tree (whether a parent or

[jQuery] Re: What can we use in place of $.browser?

2009-02-25 Thread Liam Potter
ok, lets say I wanted to target IE6 only, how would I do that with support? Aaron Gundel wrote: http://docs.jquery.com/Utilities/jQuery.support jQuery now uses feature detection. There are some good links to explain in the post above. It is still possible to detect which browser is being

[jQuery] Re: What can we use in place of $.browser?

2009-02-25 Thread pete higgins
You would need to find whatever quirk it is you are targeting and create a function or otherwise create a scenario where that quirk is exposed, and use that to populate some identifier. eg: jQuery detects support.opacity by creating a div style=opacity:0.5 and then later testing the opacity

[jQuery] Re: What can we use in place of $.browser?

2009-02-25 Thread Sam Sherlock
Its better to detect features not browsers; that said detecting a single browser such as ie6 I would use conditional comments feeling assured that the code is not interfering with other bits http://www.sitepoint.com/forums/showthread.php?t=455334 2009/2/25 Liam Potter radioactiv...@gmail.com

[jQuery] Re: Loop through JSON data and check for each option specified

2009-02-25 Thread Thomas Jaggi
Well, it looks like indexOf() (or probably better search()) is ok since I just have to check a string for another one (e.g. is 2008 contained in the date value).

[jQuery] Re: jQuery Form Plugin redirects even if I use return false in $('#myForm2').submit(function()

2009-02-25 Thread antcj...@gmail.com
Hi Thanks for replying back. showRequest doesnt do anything. It just print the returned data. Hey one more thing I noted, this plugin works fine with IE but not Mozilla :( Any workaround?? Thanks On Feb 24, 4:45 am, Mike Alsup mal...@gmail.com wrote: I am getting the output xml from the

[jQuery] Re: Calling HTML pages using post...

2009-02-25 Thread brian
Why not just use load()? Are you opening these pages within the same page, or changing location? What do you mean by checking permissions? I'd think that'd be best down on the server. On Wed, Feb 25, 2009 at 8:56 AM, webspee...@gmail.com webspee...@gmail.com wrote: Hey all. I have 5 buttons

[jQuery] Re: easy way to include clueTip content in form

2009-02-25 Thread claus.k...@googlemail.com
On Feb 25, 10:43 am, claus.k...@googlemail.com claus.k...@googlemail.com wrote: On 24 Feb., 15:59, claus.k...@googlemail.com claus.k...@googlemail.com wrote: Hello everyone, I am using a clueTip to show a couple of options (checkboxes) on a form. It took me quite awhile to realize

[jQuery] Re: Validation Plugin: Too Much Recursion

2009-02-25 Thread kevinm
Ah ignore. Team member left of method attribute. On Feb 25, 9:07 am, kevinm sonicd...@gmail.com wrote: Jörn , New issue, that is related. When I use form.submit() inside the modal window it does not submit correctly. When we did this (before applying validate) function submitForm() {  

[jQuery] Re: What can we use in place of $.browser?

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 11:19 AM, Sam Sherlock sam.sherl...@gmail.com wrote: Its better to detect features not browsers; that said detecting a single browser such as ie6 I would use conditional comments feeling assured that the code is not interfering with other bits

[jQuery] Re: How to find a div's which have background-img?

2009-02-25 Thread ricardobeat
This will give you all DIVs which have background-image set: $('div').filter(function(){ return !!this.style.backgroundImage; }) If you need to filter by extension or something use indexOf, it's faster than a regex: $('div').filter(function(){ return

[jQuery] Expandable Sub Tables

2009-02-25 Thread Sir Rawlins
Hello Guys, I've done a little work with expandable div's using slideDown() and slideUp(), I'm guessing I'll be using these again for this challenge but I'm having a little trouble traversing to the correct elements to enlarge and expand and was also a little unsure as to which I should be

[jQuery] Re: tbody:first-child thead

2009-02-25 Thread ricardobeat
Tables have native properties which are much faster to access: $('#myTable')[0].rows.length //number of rows $('#myTable')[0].tBodies[0].rows.length //number of rows in the first tbody cheers, - ricardo On Feb 25, 5:25 am, Alex Wibowo alexwib...@gmail.com wrote: Hi all, I have a code that

[jQuery] jQuery Form Plugin not working in Mozilla 3.0.6!!

2009-02-25 Thread antcj...@gmail.com
Hi, I just downloaded jquery.form.js from http://malsup.com/jquery/form/#download The following code works fine in IE (The returned XML from server is displayed through alert() ) But when I use the same code in Mozilla 3.0.6, It fails. ( I am getting redirected to the sell.php5 page ) Can

[jQuery] Re: Building functions (newbie question)

2009-02-25 Thread ricardobeat
Define the functions in the appropriate scope (either global or inside the function passed to ready). Functions are executed in the scope they are called, so you write them like they were already inside the click handler. $(document).ready(function() { function yourAjaxFunction(){ ... //

[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-25 Thread Kevin Dalman
John wrote: You should always use $(#foo).find(p) in favor of $ (p, $(#foo)) I'm trying to extrapolate some general concepts from this 'rule'... First, I *assume* these two statements are identical in performance: $(p, $(#foo)) == $(p, #foo) If so, then does it matter what the scope selector

[jQuery] Recommendations - Carousel and Fisheye

2009-02-25 Thread DangerMouse
Hi there, I'm wondering if anyone can help me select appropriate plugins to create a cimple carousel (or just fade in fade out image panel) that is navigated using a fisheye effect list? I'm new to jQuery and there seem to be a lot of carousel plugins out there - are there any that can be

[jQuery] Clone Line and Increase Number by +1

2009-02-25 Thread stephen
Hello, I relatively new to Javascript in general, but I've been attempting to use jQuery for a while, I ran into a snag today and I hope someone can help, here is what I have so far: var id = $('#invoice_line_item_rows .item.description textarea').attr (id) $(#add_line).click(function() {

[jQuery] MultiFile plugin not overwriting default options

2009-02-25 Thread phipps_73
Hi, I was previously using version 1.29 of the MultiFile plugin and it was working. Then I upgrade to jquery-1.3.1 and since then the MultiFile plugin seems to fail to apply any options. I have upgraded to the latest version of the MultiFile plugin and it still is not working. I have the

[jQuery] Re: Calling HTML pages using post...

2009-02-25 Thread Webspeeder
What is the syntax for just calling load? And does that use post? Or just GET. I'm checking permissions before re-routing to new page. This is done on the server. On Feb 25, 12:23 pm, brian bally.z...@gmail.com wrote: Why not just use load()? Are you opening these pages within the same page,

[jQuery] Re: What can we use in place of $.browser?

2009-02-25 Thread jerone
Then we probably need a plugin for this. Because browser detection can also be used for information (not only development).

[jQuery] Compatibility Mode of jquery library

2009-02-25 Thread hinkel11
On my website I want to use a module that uses the Java-Framework jquery, together with a plugin that uses the framework mootools. However I didn't got them to work. It seems to be due to a conflict between namespace and equal functions in the js-files. On several pages I read about using the

[jQuery] Change image attribute based on variable

2009-02-25 Thread digital
Hi, pulling my hair out here. When the page loads I'm collecting a variable from the url which corresponds to the class of an image. I want to then change the image source. I'm doing this because the page doesn't reload and the menu needs to respond to the content if you get my meaning. $url =

[jQuery] Using load() to call pages..

2009-02-25 Thread Webspeeder
Hey all. I have a page with 5 buttons and each button calls a different html page. On click of each button, I'm checking security permissions and then I need to call the html page associated with that button. Is it possible to POST with JQuery without having to set the action of the form?

[jQuery] jQuery.height() or css issue?

2009-02-25 Thread chief
So I have been trying to figure out this issue for a few days now. Forgive me if it's something super simple that I am missing. I have a super-simple XHTML 1.0 transitional page (that validates), using Eric Meyer's CSS reset, and loading the latest jQuery from Google's site. Then I have two

[jQuery] jQuery.height() or css issue?

2009-02-25 Thread chief
So I have been trying to figure out this issue for a few days now. Forgive me if it's something super simple that I am missing. I have a super-simple XHTML 1.0 transitional page (that validates), using Eric Meyer's CSS reset, and loading the latest jQuery from Google's site. Then I have two

[jQuery] Issue with addClass and removeClass

2009-02-25 Thread Larry
Below is my complete page. I have two divs, one with class 'large' and one with class 'small'. When you click on the div with the 'small' class, I want to change it to 'large' and vice versa. The classes seem to change as I alert() the small or large class values and they seem correct BUT the div

[jQuery] Re: jQuery Form Plugin redirects even if I use return false in $('#myForm2').submit(function()

2009-02-25 Thread Mike Alsup
showRequest doesnt do anything. It just print the returned data. Hey one more thing I noted, this plugin works fine with IE but not Mozilla :( Any workaround?? I'm afraid you haven't provided enough information. The plugin works fine with both FF and IE so there is something more to the

[jQuery] Re: Calling HTML pages using post...

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 1:04 PM, Webspeeder dr...@bigrocksports.com wrote: What is the syntax for just calling load? And does that use post? Or just GET. http://docs.jquery.com/Ajax/load#urldatacallback

[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-25 Thread Josh Nathanson
First, I *assume* these two statements are identical in performance: $(p, $(#foo)) == $(p, #foo) No -- the first one calls jQuery three times, the second one twice. Big difference. Now, I'm not sure about if it's faster to use find() than the context selector. I would think under the hood

  1   2   3   >