[jQuery] Re: jQuery + iPhone, improving element animations

2009-02-02 Thread persilj
As I was curious and as I don't know how WebKit/Safari is doing the animating internally, I made a testcase for comparison purposes: http://datacalmers.hoito.org/iphonent/testcase-animate.php Launch button 1 will toggle moving of the blue div-element from side to side using a jQuery-animate. Laun

[jQuery] Re: DatePicker not working--how to debug?

2009-02-02 Thread brian
On Mon, Feb 2, 2009 at 11:55 PM, Richard D. Worth wrote: > This worked for me no problem > > http://paste.pocoo.org/show/102539/ > > - Richard Thanks for following up. This is too strange. Each test I made, I checked that everything was loaded (no bad filenames) and jquery was there. I'll open t

[jQuery] SuperSubs Help Needed

2009-02-02 Thread bklyn2cali
Hi, I'm looking for assistance to solve an odd supersubs problem... On my site the SuperSubs plugin works properly on the first sub-sub- nav only. I'm not sure why. Take a look here and see the second sub nav's display (in the top pill nav rollover "Campus Life" and then "Student Athletics"): ht

[jQuery] Re: DatePicker not working--how to debug?

2009-02-02 Thread Richard D. Worth
This worked for me no problem http://paste.pocoo.org/show/102539/ - Richard On Mon, Feb 2, 2009 at 11:22 PM, brian wrote: > > Something's wrong here. When I use the following files (from the dev > bundle) it does not work: > > ui.core.min.js > ui.datepicker.min.js > > When I substitute the "pe

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

2009-02-02 Thread RobG
On Feb 3, 7:25 am, "Michael Geary" wrote: > That didn't work because .html is a method, not a property you can set. Not exactly - the issue is that the OP is assigning a value to the jQuery.html property instead of calling the function referenced by it and passing the value as an argument. Th

[jQuery] Re: DatePicker not working--how to debug?

2009-02-02 Thread brian
Something's wrong here. When I use the following files (from the dev bundle) it does not work: ui.core.min.js ui.datepicker.min.js When I substitute the "personaized" file (core, datepicker, tabs) it works jquery-ui-personalized-1.6rc6.min.js When, on a hunch, I went back to the individual fil

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

2009-02-02 Thread Mohd.Tareq
may be this [rel="/text.htm"] file not able to load or remove slash from rel tag rel = "text.htm". if it will not sort with this way then write all the content into ur current html file [text.htm] & try for this syntax rel="#id_of_text.html_content" give a try. regards, ragx On Tue, Feb 3, 2009

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

2009-02-02 Thread EricFettman
Hi, folks -- Using the clueTip plugin, it's clear how to display a heading in your popup help window when the text is contained within the title attribute of the a tag selected: $('#popup1').cluetip({ splitTitle: '|', showTitle: true }); Any way to do this when the text comes from an external

[jQuery] Re: DatePicker not working--how to debug?

2009-02-02 Thread brian
On Mon, Feb 2, 2009 at 10:45 PM, Richard D. Worth wrote: > Sounds like you'd be happy with the development bundle (see jqueryui.com top > right for link). It's one zip file with all individual files named like > > ui.core.js > ui.accordion.js > ui.datepicker.js > etc. > > You simply include the f

[jQuery] Re: ajaxForm returns error in IE7

2009-02-02 Thread Mike Alsup
> FYI, this used to work correctly so I've filed a ticket on it.  Still, > it's good practice to avoid names that have special meaning. > > http://dev.jquery.com/ticket/4039 > I managed to get this fixed in the plugin. Version 2.19 is now available: http://www.malsup.com/jquery/form/#download

[jQuery] Re: DatePicker not working--how to debug?

2009-02-02 Thread Richard D. Worth
Sounds like you'd be happy with the development bundle (see jqueryui.com top right for link). It's one zip file with all individual files named like ui.core.js ui.accordion.js ui.datepicker.js etc. You simply include the files you need. There are even minified versions of each individual file. -

[jQuery] Re: DatePicker not working--how to debug?

2009-02-02 Thread brian
On Mon, Feb 2, 2009 at 9:02 PM, Richard D. Worth wrote: > > On Mon, Feb 2, 2009 at 1:23 PM, brian wrote: >> >> I'm struggling to figure out why DatePicker is not working for me. I'm >> including the following files (and they're all loading fine). Is there >> yet another file required? >> >> ui.c

[jQuery] Re: toggle checkbox when clicking

2009-02-02 Thread Karl Swedberg
On Feb 2, 2009, at 6:47 PM, Slafs wrote: Karl thanks for your tutorial. But it seems that examples for adding the selected class doesn't work when I click the row but only the checkbox itself Well, that is very strange. It works with jQuery 1.2.6, but not with 1.3.1. Hmm. Will have to inve

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

2009-02-02 Thread Garito
Sorry, Ricardo, but this isn't so much logic, isn't it? When I see dl:not(:first) I read give me all dl except the first one Imagine this was a mathematics expression We read from left to right: first filter all dl's with the result exclude the first one I can understand a bug but it's dificul

[jQuery] Re: Need help validating a dropdown list

2009-02-02 Thread Kathryn
Jörn, Many thanks for the clarification and tip. When I removed the value attribute completely, it didn't work, but when I left it in with no value, the error message came up as expected. The code below works. Thanks again-- Kathryn --Select One-- Feb 16 - 20, 2009 Mar 16 - 20, 2009 Apr 13 -

[jQuery] Re: DatePicker not working--how to debug?

2009-02-02 Thread Richard D. Worth
On Mon, Feb 2, 2009 at 1:23 PM, brian wrote: > > I'm struggling to figure out why DatePicker is not working for me. I'm > including the following files (and they're all loading fine). Is there > yet another file required? > > ui.core.css > ui.theme.css > ui.datepicker.css > > jquery-1.3.1.min.js

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

2009-02-02 Thread James
I have no idea if this works or is a good way to do it, but hopefully gives you an idea $(function() { $("div[id^=SecondaryBox]").hide(); // hides all secondary boxes $("input[name^=MainStuff]").bind("click", function() { var selected = $(":checked", this).val(); // get val

[jQuery] Re: $.support support and blockUI

2009-02-02 Thread Mike Alsup
> Anyone know if blockUI is slated to transition over to using $.support > instead of $.browser? Yes, blockUI will move towards using $.support in the future. > More generally, what are people's opinions about the adoption of this > feature?  Much of the time, browser-specific code I write is fo

[jQuery] Re: Append Form IE7 Ajax Submit

2009-02-02 Thread Mike Alsup
> Will using > > $("#c_t_form_container form").live('click', function() { > > submit the form? No, that will bind the click event for the entire form. Forms can be submitted w/o a click event though. Mike

[jQuery] Re: yet another frames-related problem

2009-02-02 Thread Cequiel
I think you should use the 'load' event helper.Something like this: var iframe = document.getElementById('iframe_id); $(iframe).load(function() { // here you can manipulate the iframe content var doc = iframe.contentDocument; $('#someDiv', doc).click(function() { // code here

[jQuery] currency validation based on locale settings

2009-02-02 Thread koben
hi. does anyone know if jquery support validation/auto formatting for currency based on locale settings. for example: if in US and you put: 1 => validation or auto format should make this value becomes 10,000.00 4321 => 4,321.00 32.22 => 32.22 100,23 => 10,023.00 or (give a warning msg saying

[jQuery] UI Tabs - change onClick behaviour

2009-02-02 Thread plusz
I have 6 tabs. I changed event to load tab content on hover for tab 'menu_zakladka3' I need to open page HTTP://SOMEURL instead of opening tab or load ajax data (this page has to read variables from the page header and check some cookies, so it is easier to not load with AJAX) How to do this? m

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

2009-02-02 Thread StanW
I am trying to understand show/hide toggled from the value of a selected radio button. I know this topic has been addressed here often, but I cannot seem to apply other's answers. I have a series of primary radio button groups. Each primary group has a single associated secondary group. I want t

[jQuery] events, lock and unlock

2009-02-02 Thread Cequiel
Hi everybody, I have the next silly problem: $(myobject).bind('myevent', function() { var anotherobject = new MyCustomObject(); $(anotherobject).bind('anotherevent', function() { // code here }); }); and then I write these two lines: $(myobject).trigger('myevent'); $(myobject).trigge

[jQuery] $.support support and blockUI

2009-02-02 Thread Chris Pennello
Anyone know if blockUI is slated to transition over to using $.support instead of $.browser? More generally, what are people's opinions about the adoption of this feature? Much of the time, browser-specific code I write is for some esoteric problem that shows up in a particular browser, not some

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

2009-02-02 Thread Ricardo Tomasi
I haven't seen your page, but I know that styling and elements for IE is a pain. And the invalid mark-up might bring you problems with different browsers. The usual behavior for invalid nesting is to close the offended tag to make it valid, so this would become

[jQuery] Re: Can't select an id containing '/' ?

2009-02-02 Thread Dave Methvin
> Just wondering if this is a bug, or me using a html id attribute in a > manner not allowed? Although jQuery will let you escape some of the characters, the W3C says: ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-

[jQuery] Re: DatePicker not working--how to debug?

2009-02-02 Thread brian
Checked all that. And I tried with an ID. Nothing, no joy. This is with FF 2.0.0.14, btw. I'll check it in 3.x On Mon, Feb 2, 2009 at 4:08 PM, James wrote: > > Are your UI image and language (i18n) files somewhere in there also? > I'm not sure if they're required, but put them in. > > Do you ha

[jQuery] Re: block on body onload, unblock on at the end of $(document).ready

2009-02-02 Thread Ricardo Tomasi
There's no guarantee that the 'body' element will exist at the point you inserted the script, it should be right after the tag, not before. Usually there's nothing visible in the page before ready() fires, unless you're dealing with a very large document. On Feb 2, 8:44 pm, cambazz wrote: > w

[jQuery] Re: How to get html string including the selected element

2009-02-02 Thread Ricardo Tomasi
Oops, wrong URL. This is the right one: http://plugins.jquery.com/project/outerhtml On Feb 2, 9:59 pm, Ricardo Tomasi wrote: > Try this: > > http://yelotofu.com/2008/08/jquery-outerhtml/ > > On Feb 2, 7:13 am, Andy789 wrote: > > > Hi All, > > > I need to get html for a dom structure like this:

[jQuery] Re: How to get html string including the selected element

2009-02-02 Thread Ricardo Tomasi
Try this: http://yelotofu.com/2008/08/jquery-outerhtml/ On Feb 2, 7:13 am, Andy789 wrote: > Hi All, > > I need to get html for a dom structure like this: > > > something > > > > if I use > > $('div#test').html(); > > it generates its innerHTML excluding > > How an I get the whole structure

[jQuery] Re: find text within the page

2009-02-02 Thread RobG
On Feb 3, 8:01 am, paulinstl wrote: > I'm looking for a way to locate keywords to help the end user out. > > For instance, if I want to find the word "polar" then i'd like my > function to locate it, wrap it with a span, and assign it a function. > > so far I can locate using a content filter a

[jQuery] Re: Can't select an id containing '/' ?

2009-02-02 Thread Ricardo Tomasi
You have to escape special characters with a double backslash: $('#\\/about\\/') On Feb 2, 4:35 am, starmonkey wrote: > Using jQuery 1.2.6, it would seem that any id containing a forward > slash cannot be selected using jQuery's syntax: > > testing blah > testing about > testing about2 > testin

[jQuery] Re: simple jQuery img src Question

2009-02-02 Thread Ricardo Tomasi
Small correction: it should be bind('readystatechange'.. as jQuery adds the 'on' prefix by itself. cheers, - ricardo On Jan 22, 3:25 am, LoicDuros wrote: > Thanks everyone for your help. many different ways of doing it... I'll > try each of them until something works! THanks! > > On Jan 21, 11:

[jQuery] Re: callback for append function?

2009-02-02 Thread Ricardo Tomasi
Take notice that the image's load event doesn't always fire in IE. You have to use .bind('readystatechange load', loaded) function loaded(){ if (this.complete) // or if (this.readyState == 'complete') //do stuff to guarantee that the function will be called (the .complete property is always

[jQuery] Re: toggle checkbox when clicking

2009-02-02 Thread Slafs
Hi! Thank you all for your replies! With a big help from my friend now i've got this: $(".myTable tr").each(function() { var tr = $(this); var input = $("input[type=checkbox]", tr); tr.click(function() { input.attr('checked',

[jQuery] Re: failing .click() trigger on element created using .replaceWith()

2009-02-02 Thread Karl Rudd
You are correct. If you "replace" an element then any handlers attached to it will be removed. When you say $('p').click( handleClick ) the "handleClick" function is _only_ attached to the currently existing "p" elements. If you add more elements later (or remove and replace an existing element),

[jQuery] frames references

2009-02-02 Thread jquertil
$('#someDiv', top.frames['myFrame'].document) doesn't return anything, what am I doing wrong?

[jQuery] Re: find text within the page

2009-02-02 Thread kim3er
Could you do a string replace on the inner HTML? Something like: .replace(/keyword/, "keyword"); or use indexOf if you want to protect the case. Rich On Feb 2, 5:01 pm, paulinstl wrote: > I'm looking for a way to locate keywords to help the end user out. > > For instance, if I want to find the

[jQuery] retrieve huge set of records using jquery

2009-02-02 Thread varun
Hi everybody I have been using tablesorter plugin in all my pages of website but suddenly I realized on one of page I am retrieving huge record from database and populating that in table.Now the problem is that the script takes too long to load and so i thought of using some ajax call so that only

[jQuery] [autocomplete] - infinite scroll or continious scrolling

2009-02-02 Thread Saumin
Hi, I am using the autocomplete plugin from bassistance.de. I am looking to incorporate infinite scroll or continious scrolling into this plugin...so as the user scrolls down to the bottom, i want to query again and load more records. Can somebody please guide me with this? I will really appreciat

[jQuery] Re: : appearing behind flash

2009-02-02 Thread Michael Smith
Thank you - indeed it does http://dev2.savingforchildren.co.uk/mjs/FirstMap_2.html Much appreciated, Michael On Mon, Feb 2, 2009 at 7:46 PM, Timothy wrote: > > You should try adding to the > parameters of the swf file and it should appear in front. > > On Feb 2, 11:29 am, Michael Smith w

[jQuery] Re: block on body onload, unblock on at the end of $(document).ready

2009-02-02 Thread cambazz
well, what I want is document to be blocked before its ready. and unblock when document is ready is finished so before I made a $('body').block(); and at the end of the document ready $('body').unblock() it works, but I wonder if there is something i missed? best. On Feb 2, 11:11 am

[jQuery] Re: Append Form IE7 Ajax Submit

2009-02-02 Thread Tim
Will using $("#c_t_form_container form").live('click', function() { submit the form? On Feb 2, 2:09 pm, Mike Alsup wrote: > > I've spent the whole day trying to figure this out. I'm appending a > > form into a td, then that form has a submit action on it. It works in > > all browsers except fo

[jQuery] find text within the page

2009-02-02 Thread paulinstl
I'm looking for a way to locate keywords to help the end user out. For instance, if I want to find the word "polar" then i'd like my function to locate it, wrap it with a span, and assign it a function. so far I can locate using a content filter and classname like this... $(".keyword:contains('

[jQuery] Re: RSS Feed Aggregator with $.ajax

2009-02-02 Thread anthonyb
Curious if I could get some more input on weather or not this script is written correctly.. thanks On Jan 31, 9:59 pm, anthonyb wrote: > Hi Richardo, > > Thanks for the help, ive been messing around with what you provided > and cant seem to get it running.. > > Anything im doing wrong?

[jQuery] Re: collapsible list

2009-02-02 Thread Duncan
Hi Stephan Thanks for that it now works like a charm Duncan On Feb 2, 9:43 pm, Stephan Veigl wrote: > Hi, > > that's a feature of the event bubbling in jQuery 1.3 > You need to call stopPropagation(). > > $('li:not(:has(ul))').css({ >          cursor: 'default', 'list-style-image': 'none' >  

[jQuery] Re: Append Form IE7 Ajax Submit

2009-02-02 Thread Mike Alsup
> I've spent the whole day trying to figure this out. I'm appending a > form into a td, then that form has a submit action on it. It works in > all browsers except for IE, where it just goes redirects to another > page. I'm thinking that it might be that the new form isn't a part of > the DOM in I

[jQuery] Re: jQuery + iPhone, improving element animations

2009-02-02 Thread Ricardo Tomasi
The best approach for the iPhone would be to use CSS3 animations, they run much smoother. Also, have you seen jQuery touch? Might be useful: http://www.manifestinteractive.com/iphone/touch/ On Feb 2, 7:04 pm, persilj wrote: > I tend to create versions for different platforms and frameworks from

[jQuery] Re: cycle plugin cleartype demo

2009-02-02 Thread Mike Alsup
> I'm using IE8 RC1, tried in compatibility mode, and still the same. > Can anyone else confirm it doesn't work in IE8? It's working fine for me in IE8 RC1, compat mode and standards mode.

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

2009-02-02 Thread Ricardo Tomasi
You can also write your own methods, that's the beauty of jQuery: jQuery.fn.getCell = function(x,y){ return jQuery( this[0].rows[y].cells[x] ); }; $('#myTable').getCell(5,1).html('New content'); - ricardo On Feb 2, 7:25 pm, "Michael Geary" wrote: > That didn't work because .html is a metho

[jQuery] Re: Odd IE7 problem with (I think) a selector and LiveQuery.

2009-02-02 Thread Dan
Thanks for the response - and sorry about the double-post. Browser was being weird this morning. I don't have a huge amount of inputs; in fact, I was considering doing exactly that earlier. The only problem I see with it is that the number of inputs has to be able to change - the users have to be

[jQuery] Re: Why does it conflict?

2009-02-02 Thread James
I can't see the issue either... I suggest just creating a simplified version of a form with Validator and the banner code and see what happens. Maybe the issue lies somewhere else. Otherwise, strip out code one-by-one in your banner code to see where the issue lies if you're sure it's in the banne

[jQuery] Re: Building a weight calculator, completely stumped

2009-02-02 Thread Zaliek
Thank you! Works perfect!

[jQuery] Re: Odd IE7 problem with (I think) a selector and LiveQuery.

2009-02-02 Thread Karl Swedberg
I don't think the problem is with the selector, per se. It's more a problem with binding the change event to a table row. I'm guessing you have inputs within the table rows and you're relying on event bubbling. The problem is that the change event, like focus and blur, doesn't bubble in IE.

[jQuery] Re: collapsible list

2009-02-02 Thread Stephan Veigl
Hi, that's a feature of the event bubbling in jQuery 1.3 You need to call stopPropagation(). $('li:not(:has(ul))').css({ cursor: 'default', 'list-style-image': 'none' }) .click(function(event) { event.stopPropagation(); return true;

[jQuery] Re: Building a weight calculator, completely stumped

2009-02-02 Thread Eric Garside
You could significantly speed things up by throwing a class on all your input classes. $('#calculateweight').click(function(){ var sum = 0; $('input.weighting').each(function(){ sum += $(this).val()*1; }); $('#totalweight').text( Math.ceil(sum) ); return false; }

[jQuery] Re: How do I get the index of the currently clicked textbox?

2009-02-02 Thread Mauricio (Maujor) Samy Silva
Hi Bittermonkey, There is a great explanation with examples on jQuery documentation. Please have a look at: http://docs.jquery.com/Utilities/jQuery.each#objectcallback Good luck Maurício -Mensagem Original- De: "bittermonkey" Para: "jQuery (English)" Enviada em: segunda-feira, 2 de

[jQuery] Re: Selection by CSS background-color

2009-02-02 Thread kevotheclone
Thank you Balazs! This looks good! I had to hurry for a demo with my management, so I had to write a quick .each() loop (as in Shane's suggestion), examine the "background- color" of each element and show or hide the elements that match the target color. This week I'll try your plugin which w

[jQuery] Re: Building a weight calculator, completely stumped

2009-02-02 Thread Stephan Veigl
Simply use an each loop: $("#calculateweight").click(function() { var sum = 0; $("input[name*='weight']").each(function() { sum += Number($(this).val()); }); $("#totalweight").text( Math.ceil(sum) ); return false; }); @James: looks quite simi

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

2009-02-02 Thread Michael Geary
That didn't work because .html is a method, not a property you can set. This would have a better chance of working: $('#myTable tr:eq(4) td:eq(3)').html( 'new text' ); But what was wrong with your original code? It looked fine to me (except for the "var oCell =" part - that doesn't look right,

[jQuery] Re: How do I use BlockUI with Jquery?

2009-02-02 Thread Mike Alsup
> I know this may sound extremely dumb, but how do I actually use > BlockUI??  I've got jquery working perfectly, but how do I access > BlockUI's methods etc?  I must make a reference to it somewhere? > There is nothing in the documentation. Include the blockUI script after you include jQuery:

[jQuery] Re: Building a weight calculator, completely stumped

2009-02-02 Thread James
Something like (untested): var total = 0; $("#calculateweight").click(function() { $("input[name^='weight']").each(function() { total += $(this).val(); }); alert('total'); return false; // so the link doesn't go through }); This won't work well if you have other input elem

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

2009-02-02 Thread Karl Swedberg
To set the html contents of matched elements using jQuery's .html() method, you would do it like this: $("#myTable tr:eq(4) td:eq(3)").html("new text") http://docs.jquery.com/Attributes/html#val --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 2, 2009

[jQuery] Re: DatePicker not working--how to debug?

2009-02-02 Thread James
Are your UI image and language (i18n) files somewhere in there also? I'm not sure if they're required, but put them in. Do you have more than one elements with the DatePicker class? Maybe try using $("#foo").datepicker(); to see if it works. On Feb 2, 8:23 am, brian wrote: > I'm struggling to f

[jQuery] collapsible list

2009-02-02 Thread Duncan
Hi I'm using the function below to collapse an unordered list which all seems to workfine, but what I want is the lower level items in the the list to be hyper links (again I can get to display) but when I click on the link nothing happens. It seems to be the Jquery function stopping this but as

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

2009-02-02 Thread Sébastien Richer
Hi, I tried to search around for this but have'nt had any luck, so I'll ask here :) I use jquery.js on most of my sites. And most pages have it included in the part. But not all of my pages, some are very old. Along with jquery.js, most pages also have jquery.flash.js. Now I recently needed t

[jQuery] Re: : appearing behind flash

2009-02-02 Thread Timothy
You should try adding to the parameters of the swf file and it should appear in front. On Feb 2, 11:29 am, Michael Smith wrote: > Hi there, > > I love superfish, but can't get it to appear in front of my flash animations. > > Here's an example:http://dev2.savingforchildren.co.uk/mjs/FirstMap.

[jQuery] Building a weight calculator, completely stumped

2009-02-02 Thread Zaliek
I'm new to javascript and jquery. I'm building a shipping calculator that pulls the weights from hidden input fields and adds them together then calculates the shipping price. Due to the proprietary nature of the code I cannot change the code of the input fields. The input fields are named weight1

[jQuery] jQuery Crash - IE7 on use of Back Button with .html() method

2009-02-02 Thread M1ke
I've got a script that gets info from a PHP page via JSON. Normally the script responds to clicks on a form, dynamically loading results. In this mode of operation I found the script worked fine in all browsers except IE7, where the following line would cause the time for the jquery to be executed

[jQuery] Odd IE7 problem with (I think) a selector and LiveQuery.

2009-02-02 Thread Dan
So I have a script that, for the most part, replicates a small Excel sheet. There's a button for adding a row, removing the last added row, etc.; everything works fine except for one small (but crucial) bit. Whenever a user changes any part of a column, the script is set to recalculate everything

[jQuery] Odd IE7 problem with (I think) a selector and LiveQuery.

2009-02-02 Thread Dan
I have a script which, in a nutshell, replicates the functionality of a small Excel spreadsheet the company uses for invoices. It has buttons for save, open, add a row, remove a row, etc., and everything works fine in every browser I've run it on. The only exception is one small but crucial bit t

[jQuery] Re: How do I get the index of the currently clicked textbox?

2009-02-02 Thread bittermonkey
Stephan, that was a good suggestion but I'm trying to minimize HTML code because the page I am working on is asp.net. That's a useful trick to know. Mauricio it worked like a charm. Thank you so much. If you don't mind, can you briefly explain why function(i) seems to know the element's index?

[jQuery] jQuery + iPhone, improving element animations

2009-02-02 Thread persilj
I tend to create versions for different platforms and frameworks from my Nutrition tactician -webservice. It's basically an alternative interface to USDA-database, which contain nutritional values for lots of different foods. This time I wanted to make a version, which is especially crafted for i

[jQuery] Re: Jquery UI Slider Events not raised

2009-02-02 Thread cartic
Thanks for the info.. i will do some poking around. Like i said.. i knew it was something silly that i was missing. :) Thanks for pointing me in the right direction.. On Jan 31, 7:19 pm, "Richard D. Worth" wrote: > Sounds like you are using incompatible versions of jQuery and jQuery UI. > jQuery

[jQuery] Re: jQuery UI Tabs Flash

2009-02-02 Thread Chris
> Thanks Klaus. I think what it is is the CSS necessary to make the > scrollbar plugin work. > > .ui-tabs-hide { >         position: absolute; >         left: -1px; >         display: block; > > } > > If it's set to display: none; then it doesn't flash but the content > doesn't show. I did ad

[jQuery] dragHandle boundary

2009-02-02 Thread Anders Viklund
Hi, How can I add a boundary to the dragHandle to prevent the window from being dragged out of the browser? jQuery('#window').Resizable( { minWidth: 245, minHeight:220, maxWidth: 700, maxHeight: 400, dragHandle: '#windowTop', handlers: {

[jQuery] Autocomplete results list in another element

2009-02-02 Thread James
I'm using Jörn's autocomplete plugin from bassistance.de. What I'd like to do is do a search, which searches two separate database tables (with different column names) on the same query. The results will be returned (eg. as JSON) with two objects, each with results from each table. So a result li

[jQuery] yet another frames-related problem

2009-02-02 Thread jquertil
I did this: $('body').append('

[jQuery] Re: Dynamic url in ajax call based on select value

2009-02-02 Thread James
@Stephan It's ok - quick and dirty definitely works for me at this point! I'm happy to report that your solution did the trick. I just had to change the function as I wanted to return the parent's value both times with a different extension but thanks for helping me see the possibilities. func

[jQuery] Append Form IE7 Ajax Submit

2009-02-02 Thread Tim
I've spent the whole day trying to figure this out. I'm appending a form into a td, then that form has a submit action on it. It works in all browsers except for IE, where it just goes redirects to another page. I'm thinking that it might be that the new form isn't a part of the DOM in IE7. But if

[jQuery] Re: How do I get the index of the currently clicked textbox?

2009-02-02 Thread Mauricio (Maujor) Samy Silva
Try: $('input[type=text]').each(function(i) { $(this).click(function() { alert(i); }); }); Maurício -Mensagem Original- De: "bittermonkey" Para: "jQuery (English)" Enviada em: segunda-feira, 2 de fevereiro de 2009 17:47 Assunto: [jQuery] How do I get the index of the currently

[jQuery] Re: How do I get the index of the currently clicked textbox?

2009-02-02 Thread Stephan Veigl
How about writing the index of the textbox into it's name attribute (or another attribute) and then get the index by var index = $(this).attr("name"); by(e) Stephan 2009/2/2 bittermonkey : > > Hi, > > How do I get the index of the currently clicked textbox? I have 5 > textboxes in a form, all

[jQuery] Re: Dynamic url in ajax call based on select value

2009-02-02 Thread Stephan Veigl
First the bad news: After taking a look at cascade and playing around with the source code I think this is not possible with the original cascade plugin. The cascade plugin is copying the ajax options (including the url) at initialization time to local variable. So ajax: {url: $("select#chained")

[jQuery] How do I get the index of the currently clicked textbox?

2009-02-02 Thread bittermonkey
Hi, How do I get the index of the currently clicked textbox? I have 5 textboxes in a form, all of which I am binding a click event. Here is the code: $("#associate-form input[type=text]").bind("click", function() { alert(this); //what is its index position from the 5 other

[jQuery] Re: pages of 8 thumbnails

2009-02-02 Thread CreativeMind
atleast some idea?? On Feb 2, 10:29 pm, CreativeMind wrote: > hi, i need help to divide the images in groups of 8 images..currently > i m showing 20 images in a div 'stripviewer' but now i want to show > them like paging. i click next and get the next 8 image.. >

[jQuery] Re: sortable update problem

2009-02-02 Thread Tom Shafer
works perfectly, thank you very much -Tom On Feb 2, 12:32 pm, "Richard D. Worth" wrote: > jQuery UI 1.5.3 is only compatible with jQuery 1.2.6. In order to use jQuery > UI with jQuery 1.3+, you'll need the latest preview release1.6rc6. It is > compatible with 1.3 (but not 1.2.6), and the final

[jQuery] Re: Clickable slideshow not working as expected.

2009-02-02 Thread atomk
That worked. Still learning but I'm learning kinda backwards: jQuery first then basic javascript! Thank you. On Feb 1, 9:46 am, "frederik.r...@gmail.com" wrote: > When do you call the hover-function? On $(document).ready? To me it > looks like the hover won't work because it is never applied to

[jQuery] Re: sortable update problem

2009-02-02 Thread Tom Shafer
On Feb 2, 12:32 pm, "Richard D. Worth" wrote: > jQuery UI 1.5.3 is only compatible with jQuery 1.2.6. In order to use jQuery > UI with jQuery 1.3+, you'll need the latest preview release1.6rc6. It is > compatible with 1.3 (but not 1.2.6), and the final release is scheduled for > tonight. See >

[jQuery] Re: Dynamic url in ajax call based on select value

2009-02-02 Thread James
@boermans ajax: {url: $("select#chained").val() +'_1.js'}, SHOULD work, but the element being returned is not the updated form element. It is the original element value from when the page initially loads. If anyone knows how to obtain the updated element value I would be most appreciative...

[jQuery] Re: Jquery Save Layout

2009-02-02 Thread Stephan Veigl
You have to transmit (HTTP post) the HTML string to your php files. You can do this either with AJAX or put the string into a hidden input field and do an ordinary user submit. AJAX could look something like: $.post("your.php", { 'html': $("#root").html() }); In the PHP file you can read the d

[jQuery] DatePicker not working--how to debug?

2009-02-02 Thread brian
I'm struggling to figure out why DatePicker is not working for me. I'm including the following files (and they're all loading fine). Is there yet another file required? ui.core.css ui.theme.css ui.datepicker.css jquery-1.3.1.min.js jquery-ui-1.6rc5.min.js jquery-ui-datepicker-1.6rc5.min.js The

[jQuery] Re: callback for append function?

2009-02-02 Thread Stephan Veigl
You can make a function you call every time an image has been loaded and update a counter in this function. Once the counter reaches the number if images you have on your page, you know that all images where loaded. see: http://jsbin.com/ofici/edit by(e) Stephan 2009/2/2 Liam Potter : > > can

[jQuery] Re: Sortable callback?

2009-02-02 Thread Richard D. Worth
On Mon, Feb 2, 2009 at 12:33 PM, chriscoyier wrote: > > [I realize there is a different group for jQuery UI, but despite being > a member and seemingly successfully posting, the message never showed > up.] First posts are moderated to guard against spam (about 50% that come into the queue are s

[jQuery] Re: Dynamic url in ajax call based on select value

2009-02-02 Thread James
Okay, I am tearing what hair I have left out. The following code should illustrate what exactly I'm trying to accomplish, but with my feeble understanding of jQuery I can't seem to be getting what I want: function which (choice){ var selectVal = document

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

2009-02-02 Thread JAS
With almost 1000 cells in my table, your solution doesn't sound all that easy to me. thanks, JAS On Feb 2, 3:55 pm, jQuery Lover wrote: > The easiest way is to give your td's unique id's and then use > $('#colXrowY').html() > > > Read jQuery HowTo Resource  -  http://jquery-howto.blogspot

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

2009-02-02 Thread JAS
Well I tried: $("#myTable tr:eq(4) td:eq(3)").html = "new text"; and, while it gave no error, it also produced no result. Any other ideas? JAS On Feb 2, 5:15 pm, ksun wrote: > try $("#myTable tr:eq(4) td:eq(1)").html() for the 5th row and 2nd > column > > On Feb 2, 5:46 am, JAS wrote: > > >

[jQuery] Sortable callback?

2009-02-02 Thread chriscoyier
Hello! So I have a simple sortable list with jQuery UI's .Sortable() function. I am hoping to have it fire off a function right after any of the list items are moved. From the documentation, "update" seems to be the paramater to pass it to get it to do that: $(".list").sortable({ handle

[jQuery] Re: sortable update problem

2009-02-02 Thread Richard D. Worth
jQuery UI 1.5.3 is only compatible with jQuery 1.2.6. In order to use jQuery UI with jQuery 1.3+, you'll need the latest preview release1.6rc6. It is compatible with 1.3 (but not 1.2.6), and the final release is scheduled for tonight. See http://blog.jquery.com/2009/01/30/jquery-ui-16rc6-help-us-t

[jQuery] pages of 8 thumbnails

2009-02-02 Thread CreativeMind
hi, i need help to divide the images in groups of 8 images..currently i m showing 20 images in a div 'stripviewer' but now i want to show them like paging. i click next and get the next 8 image.. if(this.id=='mygalone'){ if($(this).find('li').size()>8){ var t1

  1   2   >