[jQuery] Re: Ajax loading of HTML

2009-03-03 Thread jQuery Lover
Have you uploaded your includes directory and usa.html files? Also, your html markup is not valid. Maybe it's causing the problem, who knows... Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Tue, Mar 3, 2009 at 7:52 PM, davidnext wrote: > > Hi All, > > I am having a

[jQuery] Re: new Whitehouse.gov uses jQuery 1.2.9

2009-03-03 Thread jQuery Lover
It's OK Brad, It was discussed here previously and probably the whole internet knows by now :))) PS. And you probably meant 1.2.6 Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Wed, Mar 4, 2009 at 12:39 AM, Brad McMahon wrote: > > just wanted to share that with ever

[jQuery] Re: Images in Superfish Menus

2009-03-03 Thread jQuery Lover
Alsage13, did you solve the problem? Could you post an example of your page?! Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Tue, Feb 24, 2009 at 9:28 PM, David Meiser wrote: > Do you have an example page? > > On Tue, Feb 24, 2009 at 10:20 AM, alsag...@gmail.com > w

[jQuery] Re: How to create dom on the fly using jQuery????

2009-03-03 Thread David Muir
Generating DOM manually as you have in your example is probably the slowest method you can use. Using a document fragment would be much faster and is the way that jQuery 1.3 does its appending. Straight HTML insertion is the fastest though. One method that I've used is to basically roll out

[jQuery] Re: How to create dom on the fly using jQuery????

2009-03-03 Thread Jack Killpatrick
Hi Vikram, jQuery is fine for this. Here's a bunch of info about using .append() for table rows: http://www.learningjquery.com/2009/03/43439-reasons-to-use-append-correctly - Jack SeeVik wrote: Thanks for the reply Jack. the JST Template looks cool. I will surely look into it. Just for the r

[jQuery] Re: html data in IE

2009-03-03 Thread jQuery Lover
.html() should not cause any errors. I remember having similar problem with .append(). I had to use a temporary variable to append new html. Anyone experienced similar problems ? Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Wed, Mar 4, 2009 at 9:15 AM, pedalpete wr

[jQuery] Re: Building Columns From A List Of Items

2009-03-03 Thread Nic Hubbard
Ok, I think I worked out my own solution. If anyone sees and problems with this working when adding more items to the list please let me know. So far it is working great! var total_artists = $('#artistsColumns p').length; var total_artists_mod = total_artists % 3; var to

[jQuery] Re: SIMPLE (newbie) selecting TDs

2009-03-03 Thread RobG
On Mar 3, 1:15 pm, alanfluff wrote: > Hi, > > I am embarrassed to say I can't find a way to select the third cell in > each row of a table and add a class to it. Have you considered using col elements and adding the class to them? http://www.w3.org/TR/html401/struct/tables.html#edef-COL > It

[jQuery] Re: How to create dom on the fly using jQuery????

2009-03-03 Thread SeeVik
Thanks for the reply Jack. the JST Template looks cool. I will surely look into it. Just for the record, if anybody can throw some light on the original question, it would be really helpful. I don't really want to be left clueless about this thing in jQuery. Thanks and Regards Vikram On Mar 4,

[jQuery] Re: IE not fading correctly [PROBLEM SOLVED]

2009-03-03 Thread ixxalnxxi
Because I was using 100 instead of 1 for the fadeTo, IE was not interpreting it correctly and after swithing everywhere it says "1" from "100", the images correctly fade in IE. ixxalnxxi wrote: > > http://teamtalkonline.com/marco/gallery.php bug here > > Using windows xp and FF3, the fade w

[jQuery] Cycle plugin pagerAnchorBuilder and livequery

2009-03-03 Thread kevinm
I have the following $('#fcycle').livequery( function(){ $(this).cycle({ fx: 'fade', timeout: 0, speed: 'slow' , pager: '#qm0', next: '#next',

[jQuery] Re: placing cycle plugin at root document level to use on content loaded via AJAX

2009-03-03 Thread kevinm
Well of course, shortly after I posted I solved the problem. I am using livequery for stuff and reread the documentation and saw could use with functions so I wrote this $('#fcycle').livequery( function(){ $(this).cycle({ fx: 'fade',

[jQuery] Re: Objects Methods as event handlers.

2009-03-03 Thread Dave Methvin
> one area of functionality has me befuddled > - using object methods to handle events. To continue Karl's point, if you use jQuery the same way you would use prototype then you'll be fighting it all the way. The prototype solution squirrels away references to the DOM objects in the class and the

[jQuery] Re: placing cycle plugin at root document level to use on content loaded via AJAX

2009-03-03 Thread pedalpete
>From what I can tell by the code you've included, your abilities here are much better than mine, but I do load content via Ajax into my cycle, What I had to do was to stop the cycle, empty, then replace and restart. My code looks like this [code] success: function(response){ jQue

[jQuery] html data in IE

2009-03-03 Thread pedalpete
I've been struggling with IE for a few days now, and looking through the HTML check in debugbar, it shows that IE would throw an error on every .html(''), so I took any place where I had the html defined within the html(). I put the html into a javascript variable, and then it told me that the

[jQuery] Re: Best practice for processing JSON quickly

2009-03-03 Thread Michael Geary
That "for( i in items )" loop isn't guaranteed to enumerate the items in any particular order. If you need something to be in a particular order, don't use an object with string property names. Use an array, e.g. var items = [ "1010101001010102011010100010101020101020101010101100110

[jQuery] Re: SuperFish not working

2009-03-03 Thread imageshackuza
Hi, I decided to do use something else to make my menu, so if you go to the site, you will not see the sample anymore. Howvever, if it is possible to answer the question "abstractly" i may refer to the solution, when i implement superfish at a later date Thanks On Mar 3, 2:33 pm, imageshackuza

[jQuery] Re: Best practice for processing JSON quickly

2009-03-03 Thread Dave Methvin
> Another thought is that you could just do a replace on 0, 1 and 2 in the > string: replace each number with the div you want, then wrap that in a div. Yeah, I was wondering whether the regexp engine would be faster. Something like this: for(var item in items){ html.push( '', process(

[jQuery] placing cycle plugin at root document level to use on content loaded via AJAX

2009-03-03 Thread kevinm
I want to relocate my cycle plugin call from the file that is loaded via an AJAX call to the parent file. I know I can't just copy, but not sure what I need to do. to illustrate; put $('#fcycle').cycle({ fx: 'fade', timeout: 0, speed: 'slow' ,

[jQuery] Re: How to create dom on the fly using jQuery????

2009-03-03 Thread Jack Killpatrick
This isn't jquery-specific, but I've been using this for a couple years now to generate html from json data: http://code.google.com/p/trimpath/wiki/JavaScriptTemplates works great. - Jack SeeVik wrote: Hello all, I am using Symfony with jQuery plugin. The thing is I am getting some data f

[jQuery] How to create dom on the fly using jQuery????

2009-03-03 Thread SeeVik
Hello all, I am using Symfony with jQuery plugin. The thing is I am getting some data from database in JSON format and I want to use jQuery to display a table using that data on the fly. I was wondering is jQuery the best way to do this? Or will it be an overkill? Should I use simple DOM methods

[jQuery] Re: Best practice for processing JSON quickly

2009-03-03 Thread Jack Killpatrick
Another thought is that you could just do a replace on 0, 1 and 2 in the string: replace each number with the div you want, then wrap that in a div. - Jack Jack Killpatrick wrote: assuming that your json items are objects, try this. The console statements are for Firebug output: comment them

[jQuery] Re: Best practice for processing JSON quickly

2009-03-03 Thread Jack Killpatrick
assuming that your json items are objects, try this. The console statements are for Firebug output: comment them out if you don't have firebug. This uses a few speed tricks. // sample data // var items = {}; items["1"] = '101010100101010201101010001010

[jQuery] Re: How do you handle 2 differents and 1 action?

You can just make "perform the action" a separate function and then call it from the two events function performAction(){ //do stuff } $("#text_input").keyup(function(e) { // Checks if the Enter key was entered if(e.keyCode == 13) { performAction(); } });

[jQuery] Re: Building Columns From A List Of Items

Sure Jack, I would be happy to give it a try. Let me know what I need to do. On Mar 3, 5:24 pm, Jack Killpatrick wrote: > Nic, I've got an almost-completed "listcols". If you'd like to give it a > try, let me know and I'll get you a pre-release copy. It splits a list > (UL, OL or any child node

[jQuery] Re: Objects Methods as event handlers.

Yet another opportunity to mention my hitch plugin (which is .bind in prototype) http://higginsforpresident.net/js/jq.hitch.js http://higginsforpresident.net/js/jq.hitch.min.js Regards, Peter On Tue, Mar 3, 2009 at 8:51 PM, Karl Rudd wrote: > > First a solution for you. Try this plugin: > >

[jQuery] Re: Determine which radio button (if any) is selected on form load.

The problem with an id on the input is there are several inputs, and you need to find which one is checked. If you're containing div is #itemList then this should work if you want the value: $('#itemList input:radio:checked').val() On Mar 3, 5:37 pm, James wrote: > Oops, I forgot the id in the

[jQuery] Re: Objects Methods as event handlers.

First a solution for you. Try this plugin: http://plugins.jquery.com/project/bind Now a note about the "way jQuery is biased" (which you can skip if you prefer). jQuery is primarily focused on DOM elements. Everything else gets "attached" to those elements. It's not a "bad" thing, it's just "

[jQuery] Re: How do you handle 2 differents and 1 action?

Something like: $(document).ready(function() { $("#text_input").keyup(function(e) { checkKey(e); }); }); function checkKey(e) { // Checks if the Enter key was entered if(e.keyCode == 13) { // perform the action } }; On Mar 3, 9:26 am, Thierry wrote: > I

[jQuery] Re: Best practice for processing JSON quickly

I'm not sure if it matters in javascript but I would do this: var length = item.length; for ( var g = 0; g < length; g++) { Instead of this: for (var g=0; g wrote: > > Not sure how much it'll speed up, but instead of: > item.substr(g,1) > try: item[g] > > Then, go through this post: > h

[jQuery] Re: Determine which radio button (if any) is selected on form load.

Oops, I forgot the id in the input: Oh, and make sure you only have one id="ItemList" in your HTML. You cannot have several elements with the same id. On Mar 3, 3:36 pm, James wrote: > The code looks fine. Do you have a value defined on your radio input? > > Suppose your input is: > > > and y

[jQuery] Re: Determine which radio button (if any) is selected on form load.

The code looks fine. Do you have a value defined on your radio input? Suppose your input is: and your code is: $("#ItemList:checked").val() // returns 'blah' if radio is checked $("#ItemList").is(":checked"); // returns true if radio is checked On Mar 3, 3:56 am, Swatchdog wrote: > I have a

[jQuery] Re: Best practice for processing JSON quickly

Not sure how much it'll speed up, but instead of: item.substr(g,1) try: item[g] Then, go through this post: http://www.learningjquery.com/2009/03/43439-reasons-to-use-append-correctly ( http://groups.google.com/group/jquery-en/browse_thread/thread/9889ebd5e10c9122 ) Instead of concatenating stri

[jQuery] Re: Building Columns From A List Of Items

Nic, I've got an almost-completed "listcols". If you'd like to give it a try, let me know and I'll get you a pre-release copy. It splits a list (UL, OL or any child nodes) into evenly balanced columns using the actual height of the list items. It also has options for how many cols and how wid

[jQuery] Best practice for processing JSON quickly

I have some JSON that needs processing, e.g.: items["1"] = '1010101001010102011010100010101020101020101010101100110100"; items["2"] = '101012101010111001011010111001010121011000"; ... (x 1000) I need to process ~1000 rows so that each 0, 1 or 2 appear as

[jQuery] How do you handle 2 differents and 1 action?

I have the following piece of code which checks if a user has pressed the Enter key in a text input with id="text_input" and then performs some action: $(document).ready(function() { $("#text_input").keyup(function(e) { // Checks if the Enter key was entered if(e.keyCode == 13)

[jQuery] jQuery plugins & function calls

I have a jQuery plugin that adds a series of links to my page, and when each one is clicked, it should display the index of the link. The problem is that every link displays the string "11". This is because when I bind the click method, I pass in an actual function, which doesn't get interpreted

[jQuery] Objects Methods as event handlers.

I've recently taken on a job where I have been required to use jQuery instead of my usual framework of choice - prototype. I've handled the transition well enough but one area of functionality has me befuddled - using object methods to handle events. I've been working around the problem but the wo

[jQuery] AJAX in IE 6 providing "Object does not support this property or method"

Here is the function I have created to handle AJAX requests on top of the latest JQuery release: // Portal for an AJAX query function ajax_query(url, data) { var ajax_return = $.ajax({ url: '/scripts/ajax/' + url + '?' + data, async: false }).respo

[jQuery] [validate] french accents

How, I am trying to validate mails with jquery validate and would like to block french accents , eg à è etc how can I implelment this in the email regexp ? Thanks

[jQuery] Superfish Bug - Mouseout in FF does not work over

I have a SF menu that expands over a form. With FF3, when I mouseout over any of the form fields, the menu does not collapse. I need to place the cursor back in the menu and mouseout somewhere else. This is only the case directly over the input, or textarea tags. If I slip the mouse between them i

[jQuery] Ajax loading of HTML

Hi All, I am having a problem with loading an HTML file to populate a dropdown as follows with names of states in the USA: $("select[name=step_2]").load("./includes/usa.html"); The HTML it is going into is as follows: * STEP 2) Select your State/ Province:

[jQuery] Determine which radio button (if any) is selected on form load.

I have an order edit form that is fed from Coldfusion/SQL that shows a radio list of possible product selections. If the customer is editing an order that has already been submitted, one of the products in the radio list is selected. If it is a new order, none is selected. Upon load, I need to de

[jQuery] Re: How do I translate this in jQuery?

function getContentFromIframe(iFrameName) { var myIFrame = $("#"+iFrameName); var content = myIFrame.contents().find("body").html(); $('#myiFrame-content').append(content); On Mar 3, 9:56 am, "Rick Faircloth" wrote: > I've made various attempts at translating this into jQuery w

[jQuery] How do you handle 2 differents and 1 action?

I have the following piece of code which checks if a user has pressed the Enter key in a text input with id="text_input" and then performs some action: $(document).ready(function() { $("#text_input").keyup(function(e) { // Checks if the Enter key was entered if(e.keyCode == 13)

[jQuery] innerWidth + overflow

Hello I have an element with internal scrollbar I noticed the innerWidth() property always return the same value indepentent of my internal scroll is there a way to measure the internal width, considering the overflow? Thanks

[jQuery] SuperFish not working

Hi, I am trying to build my FIRST joomla 1.5 site. I am am using rochen hosting (they host joomla.org etc) and i have a template installed from yootheme. I installed my joomla using a fantastico script provided to me by my host. I have had absolutely no issues installing any plugins or themes. Pri

[jQuery] innerWidth + scrolling

I have a div element with scrolling. Is there a way to measure the internal width counting the scrolling? I noticed innerWidth will return me the same independently of internal width Thanks

[jQuery] new Whitehouse.gov uses jQuery 1.2.9

just wanted to share that with everyone who doesn't follow me on identi.ca

[jQuery] Re: converting HTML to XML using jQuery

@Dreed, could you maybe be a little more specific about why you need to do this in jQuery? A recursive function would be trivial (I can't see how it's brute force) and you could make it generic such that 'tags' are created out of the classnames, no matter what they are. On Mar 3, 3:53 pm, ricardo

[jQuery] Re: multiple conditions?

hey i tried that, and it didn't work. I played around with it for awhile trying everything i could, but to no avail :( any ideas? Ami wrote: > var divFocus=false,textareaFocus=false > $('div').focus(function () {divFocus=true}).blur(function() > {divFocus=false;doSomething()}; > $('textarea').foc

[jQuery] Re: Building Columns From A List Of Items

Would it be a better idea to use the .slice() function rather than what I have? Couldn't I just use the same math function to calculate the number of items in each column? On Mar 3, 11:59 am, Nic Hubbard wrote: > I understand now, and I appreciate your help. > > A new problem has arisen from th

[jQuery] Re: I need a jsonp example

c...@p! I just found the answer: We're using 1.2.6 and there's this patch we need... http://dev.jquery.com/ticket/3045 Thank you all for the help - that IBM link really did help...I can't believe this is so little documented. Thanks again!

[jQuery] Re: I need a jsonp example

James - Thank You for that link! - Very Helpful I've been able to track down what *seems* to be my problem... The call we're trying to make is an HTTPS call, which (I believe) is considered 'cross-domain' even when on the same domain. That's why we chose to try JSONP in the first place. Now wh

[jQuery] Re: Optimize large DOM inserts

Josh, I find this really interesting, thanks for posting this. I'm curious: have you done any looking into 'moving' DOM nodes? IE: taking an existing set of nodes and moving them to under a new parent node (or appending them under various parent nodes, depending on their class or some other at

[jQuery] Re: converting HTML to XML using jQuery

Not showing your js function doesn't help much. All .group are descendants of .map, it's not about context. Maybe you want this (rough): $('.map').each(function(){ var xml = ''; $(this).find('> .group').each(function(){ xml += ''; $(this).find('> .group').each(function(){ xml += '';

[jQuery] Re: toggle a checkbox???

The best you can do is rewrite it to a simple ternary conditional and use the .checked property direclty: $("input[name^=REQ_ACCT_LAB_]").click(function() { $("input[name=MY_CHK]").attr('checked', this.checked ? 'checked' : ''); }); cheers, - ricardo On Mar 3, 4:15 pm, Jael wrote: > tha

[jQuery] Re: How do I translate this in jQuery?

There's not much you can "convert" to jQuery. It's all javascript anyway: function getContentFromIframe(iFrameName) { var content = $('body', $('#'+iFrameName)[0].contentDocument).html (); $('#myiFrame-content').append(content); } - ricardo On Mar 3, 2:56 pm, "Rick Faircloth" wrote: > I

[jQuery] Re: Show/Hide Menu

Hmm, it looks nice to me. :) On Mar 3, 3:20 pm, Jack Killpatrick wrote: > great! but the important part: is it a nice or a bad puppy? > > - Jack > > Nic Hubbard wrote: > > Yes!  That is exactly what I was looking for!  I have implemented it > > and it works perfectly, thank you! > > > On Mar 3,

[jQuery] Re: Reordering rows using JQuery

As other's have said, you should do this server-side. Anyway, here's a way to do it: var csv = 'Row2,Row1,Row3', mytable = $('#mytable')[0]; //save the table for later csv = csv.split(','); //csv is now an array var ln = csv.length; while(ln--){ //loop csv array in reverse $('#'+csv[ln])

[jQuery] Re: Show/Hide Menu

great! but the important part: is it a nice or a bad puppy? - Jack Nic Hubbard wrote: Yes! That is exactly what I was looking for! I have implemented it and it works perfectly, thank you! On Mar 3, 9:54 am, Jack Killpatrick wrote: Here's an example of a way to handle that: http://www.

[jQuery] browser detection for msie 6 7 and 8

What's the best way to detect these three browsers? Here's what I've come up with so far, but there's got to be a cleaner solution... $.browser.msie6 = ($.browser.msie && /MSIE 6\.0/i.test(window.navigator.userAgent) && !/MSIE 7\.0/i.test(window.navigator.userAgent));

[jQuery] Re: jQuery UI 1.6rc6 - how to sort tabular data?

Sorry, just realized this may be misleading. jQuery UI "Sortable" allows you to REORDER items in a list. I am looking to have a user drag/reorder items in a table, basically. On Mar 3, 4:20 pm, Sam H wrote: > I know you can't actually sort tables, it's kinda broken.  I can > easily sort UL lis

[jQuery] jQuery UI 1.6rc6 - how to sort tabular data?

I know you can't actually sort tables, it's kinda broken. I can easily sort UL lists, but whenever I try to use float: left and width: XXXem to give set widths to each span, e.g.: 32 Bob Jenkins #list li { clear: left; } #list li span { float: left; background: #ddd;

[jQuery] Re: Automatically slide all divs up when one slides down

You could simplify your code to this (assuming you're adding/removing the classes for selection only and not styling): $(".question").click(function(){ $(this).children('.answer').slideToggle().end().siblings ('div.question').children('.answer').slideUp(); }); One thing you'll note howev

[jQuery] Re: jQuery UI Question - Tool tip

Thanks Karl & Jörn for both your responses.

[jQuery] linkselect plugin: problem with javascript set value

I'm trying to externally update the value of the linkselect field using this._itemSelect.linkselect("val", newValue); and am getting the following exception on FF3: 'self is undefined' on line 37, since the 'self' lookup from $.data returned null. Digging in to things, it looks like $.data is gett

[jQuery] Re: Moving from .get(xml file) to using .ajax

If thats all it was, i'm going to ROFLStomp my keyboard. Thanks for your wisdom. I thought i was going out of my mind for a second. ~Doc On Mar 3, 3:18 pm, mkmanning wrote: > Make URL lowercase: > ... > url:"kprxy.php", > ... > > On Mar 3, 9:50 am, KrushRadio - Doc wrote: > > > > > Okay.. Th

[jQuery] Re: Moving from .get(xml file) to using .ajax

Make URL lowercase: ... url:"kprxy.php", ... On Mar 3, 9:50 am, KrushRadio - Doc wrote: > Okay.. Thanks..I'll do that with the cache: false, thing. > > I still have the problem where it's not pulling the right data from > the xml, as it used to before.. > Any thoughts on that one, or if you can

[jQuery] Re: Automatically slide all divs up when one slides down

The javascript to do this would be the following, thanks everyone for your help. $('.qa-list div').each(function(i) { $(this).children('.answer').slideUp(); }); $(".question").click(function(){ var $this = $(this); if( $this.is('.questio

[jQuery] Re: Validate Plugin disabling other JS on the page

ANSWER: This was being caused by the onclick event posting back, which the validate plugin had disabled. I changed the behavior of my radio buttons onclick method to get around this. On Mar 2, 1:16 pm, BSpizzle wrote: > Hello all, > > I am using the jQuery Validate plugin (http://docs.jquery.co

[jQuery] Automatically slide all divs up when one slides down

So I have the following code and it works great. I am just curious how I can adapt it in order to only have 1 answer visible at one time. If once item is clicked, then on click of the other item, the last one automatically slides up. How would one go about doing this? JS: $(document).ready(functi

[jQuery] Re: slideToggle is jerky in Safari 3.2.1

Looks like someone else had the same unresolved problem too: http://groups.google.com/group/jquery-en/browse_thread/thread/c929269adfd8ea99 On Mar 3, 8:22 am, marc0047 wrote: > I am using slideToggle and it performs perfectly in FF, IE6&7, and the > new Safari 4. However, in Safari 3.2.1, the e

[jQuery] converting HTML to XML using jQuery

I have been struggling with trying to do the following... perhaps I am looking at it "too" hard since I have a feeling the solution is right in front of me (i hope). I have something like the following: Title Group Name 1 Group Name 1-1 Group Name 2 Gr

[jQuery] Re: Apply class to range of child elements

modulus in JS returns the remainder of the division - whatever is left that couldn't be divided returning an integer. 1/4 = 0.25 -> 1%4 = 1 2/4 = 0.5-> 2%4 = 2 3/4 == 0.75 -> 3%4 == 3 4/4 == 1 -> 4%4 == 0 5/4 == 1.25 -> 5%4 == 1 6/4 == 1.5-> 6%4 == 2 and so on... By

[jQuery] Re: Show/Hide Menu

Yes! That is exactly what I was looking for! I have implemented it and it works perfectly, thank you! On Mar 3, 9:54 am, Jack Killpatrick wrote: > Here's an example of a way to handle that: > > http://www.ihwy.com/Labs/demos/Current/image-hover-menu.aspx > > - Jack > > Nic Hubbard wrote: > > T

[jQuery] Re: checkbox array

http://www.w3.org/TR/html401/interact/forms.html#adef-name-FORM This is still in use because it's the easiest/fastest way of getting an array with the selected options server-side. There is no simpler alternative. - ricardo On Mar 3, 12:53 am, mkmanning wrote: > That argument's been raging for

[jQuery] Re: Building Columns From A List Of Items

I understand now, and I appreciate your help. A new problem has arisen from this. It seems that this loops through elements grouped in 3, rather than apply the class for the first column first, then the second one. Here is what I mean. Say I have 9 p tags containing links. This is how the scr

[jQuery] Re: I need a jsonp example

James... thanks for posting that, great article explaining what's going on during that kind of call On Mar 3, 1:36 pm, James wrote: > Here's an article from IBM I've > Googled:http://www.ibm.com/developerworks/library/wa-aj-jsonp1/ > I think it's fairly easy to understand and detailed. I think

[jQuery] Re: toggle a checkbox???

thanks for the reply! in fact thats exactly what i'm doing but accidentally omitted that event in my post. So the "if" statement is as good as it gets? is there a better jquery (more efficient) way of doing this? James-279 wrote: > > > What you did looks fine if it only runs one on page l

[jQuery] - tableFormSynch if (Empty) {Error}

Nice plugin, I just want report a error if the list is empty, If you delete all itens, you cant add more itens anymore. I tried start from a empty list and same error, but I am still reading and studing this plugin. Congratulations Brian, Regards macm

[jQuery] Re: How do I translate this in jQuery?

It seems that you are trying to insert the content of an existent iframe (name = iFrameName) into another empty iframe (id = myiFrame-content). Is it? If so, do the following: var content = $('iframe[name = "iFrameName"]').attr('src'); $('#myiFrame-content').attr('src', content); Excuse me

[jQuery] Re: Building Columns From A List Of Items

On Tue, Mar 3, 2009 at 1:48 PM, Nic Hubbard wrote: > > Should I keep the division by 10 on the Math function? No, as i said, that's the problem. There's not only no need for it, but it's giving you results you don't want. Quick: what's zero divided by ten? And what's the remainder of that result

[jQuery] Re: Reordering rows using JQuery

anyone? On Mar 3, 8:51 am, spdude wrote: > I dont want to sort the table. Rather, I want to reorder the > based on a csv of the tr ids. This csv can be from the db, viewstate > or session. > > I would rather not add the controls dynamically to the table as the > rows have a lot of complicated c

[jQuery] Re: Reordering rows using JQuery

anyone? On Mar 3, 8:51 am, spdude wrote: > I dont want to sort the table. Rather, I want to reorder the > based on a csv of the tr ids. This csv can be from the db, viewstate > or session. > > I would rather not add the controls dynamically to the table as the > rows have a lot of complicated c

[jQuery] Re: Building Columns From A List Of Items

Should I keep the division by 10 on the Math function? On Mar 3, 10:08 am, brian wrote: > The division by 10 is your problem. Try: > > $(this).addClass(classNames[(i + 3) % 3]); > > On Tue, Mar 3, 2009 at 2:21 AM, Nic Hubbard wrote: > > > I have a list of names wrapped in tags that are sorted

[jQuery] Re: I need a jsonp example

Here's an article from IBM I've Googled: http://www.ibm.com/developerworks/library/wa-aj-jsonp1/ I think it's fairly easy to understand and detailed. I think the difficult part of JSONP is that the jQuery docs does not show an example of how the server-side output is suppose to look like. On Mar

[jQuery] Re: .ajax doesn't execute "success" handler in IE7

Try putting an 'error' callback function also into the ajax options to see if it's falling in there. Maybe something else is affecting it. Do you have any other ajax options set elsewhere on the script? On Mar 3, 3:37 am, MorningZ wrote: > Use Fiddler (http://www.fiddlertool.com) to see what IE

[jQuery] Re: blockui plugin crash ie 6

That would be a problem with IE not with BlockUI as IE doesn't render tables until it hits the end of the table html wrapping the $.blockUI() call inside $(document).ready() should solve the issue, as it makes no sense to block the page until the DOM is ready On Mar 3, 11:26 am, lacroix1547 w

[jQuery] Re: Building Columns From A List Of Items

The division by 10 is your problem. Try: $(this).addClass(classNames[(i + 3) % 3]); On Tue, Mar 3, 2009 at 2:21 AM, Nic Hubbard wrote: > > I have a list of names wrapped in tags that are sorted in > alphabetical order.  I am trying to build 3 even columns out of > these.  There are 63 items,

[jQuery] Re: [listnav] in Chrome

Great, glad to hear it and thanks for letting me know! - Jack simshaun wrote: Excellent. Just implemented 2.0 into my test script and its practically instant. On Feb 23, 1:20 pm, Jack Killpatrick wrote: Hi, I have a new rev of the listnav plugin almost ready for release. Do you want to g

[jQuery] How do I translate this in jQuery?

I've made various attempts at translating this into jQuery without success. I guess I'm just not sufficient enough in regular JS to make it work. It's working, but I'd like it to be written as much as possible in jQuery syntax. Would some please translatethe first three lines of this into

[jQuery] Re: Show/Hide Menu

Here's an example of a way to handle that: http://www.ihwy.com/Labs/demos/Current/image-hover-menu.aspx - Jack Nic Hubbard wrote: Thanks. This almost seems like it would work. But, since the element that the hover is added to, and the element that is shown are different, by the time you move

[jQuery] Re: Moving from .get(xml file) to using .ajax

Okay.. Thanks..I'll do that with the cache: false, thing. I still have the problem where it's not pulling the right data from the xml, as it used to before.. Any thoughts on that one, or if you can eyeball the second part of the code and let me know if there's something goofed? Thanks, Dan O

[jQuery] Re: checkbox array

You don't need to escape them, $('input:checkbox[name=foo[]]:checked').serialize() works as well. If you want the brackets instead of %5B%5D just use unescape: unescape($('input:checkbox[name=foo[]]:checked').serialize()); Either way it's ugly ;) On Mar 3, 6:47 am, dabear wrote: > If you real

[jQuery] Re: Moving from .get(xml file) to using .ajax

You're still going to run into the issue of caching for requests to the same URL, even using ajax. The usual solution, as Ryan suggested, is to append changing data to the querystring of the ajax request, usually in the form of a timestamp: "the_querystring"+new Date ().getTime() As of jQuery 1.2

[jQuery] blockui plugin crash ie 6

Remove the table and it wont crash. $.blockUI(); $.unblockUI();

[jQuery] slideToggle is jerky in Safari 3.2.1

I am using slideToggle and it performs perfectly in FF, IE6&7, and the new Safari 4. However, in Safari 3.2.1, the elements slide out, but it starts of with a quick jerk and then slides. Has anyone else run into this problem and found a solution? Thanks!

[jQuery] Background flash white briefly

I have a project where I am implementing the jQuery library, and I believe it is causing my body backgrounds to flash white very quickly from page to page (the entire site has the same image background). This only appears to be happening in Safari 3.2.1. The reason I believe it is jQuery is becau

[jQuery] Re: serialize array question for dynamic form

Wow... can't believe i didn't try that. thanks! On Mar 2, 4:22 pm, mkmanning wrote: > You need a 'name' attribute on your inputs. > > On Mar 2, 3:56 pm, Matt wrote: > > > Hi, > > > If i create a dynamic form(requirement for a project) serializeArray() > > or serialize() doesn't seem to work. Is

  1   2   >