[jQuery] Re: Beginner question about toogeling a status

2008-12-30 Thread brian
On Mon, Dec 22, 2008 at 7:20 AM, heohni wrote: > > > This: status.addClass(the_new_status); > prints the new status, but the browser does not show the image which > is connected with the new status class? > Can I somehow refresh the div only? Is that possible? > Sorry for the delay; I've been a

[jQuery] Re: Posting multiple values from a checkbox

2008-12-30 Thread brian
On Wed, Dec 31, 2008 at 1:16 AM, Michael Geary wrote: > >> There is nothing wrong with doing both -- nesting the inside the >> and using the "for" attribute. Or is there? I'm in the habit of doing so because I sometimes change my mind about nesting inputs inside their labels. Because ... > No

[jQuery] Re: Autocomplete plugin rare behaviour

2008-12-30 Thread brian
On Wed, Dec 31, 2008 at 2:14 AM, R0bb13 wrote: > > Hi > > I'm using the autocomplete plugin to edit the name of a product in a > CMS. When the name field (with autocomplete) is empty the autocomplete > works perfectly. However when the field is not empty and you remove > the content the suggestio

[jQuery] Re: Autocomplete plugin rare behaviour

2008-12-31 Thread brian
On Wed, Dec 31, 2008 at 5:29 AM, R0bb13 wrote: > > The text input has an initial value but the autocomplete does not care > about it. Sometimes it works and some times it doesn't. However the > ajax requests for the text in the input is done but the results are > not displayed under the input. C

[jQuery] Re: Event callback question

2008-12-31 Thread brian
On Wed, Dec 31, 2008 at 11:26 PM, Cam Spiers wrote: > Hey, > > function closeMainPanels(){ > jQuery("div.mainLiner div.panel").each(function(){ > jQuery(this).slideUp(750); > }); > } > > How can I tell when all panels have finished animation? > > As I need to call another function

[jQuery] Re: How to make a layout work with firefox and IE and look the same?

2009-01-01 Thread brian
On Fri, Jan 2, 2009 at 12:28 AM, Aaron wrote: > > Question is in the subject. I notice with jquery and also css, that > the position is different on different internet browsers. > > ... > > So the layout is differnet between firefox and IE. > > so I wonder if there is any solution to this??? We

[jQuery] Re: Jquery coding direction

2009-01-02 Thread brian
On Fri, Jan 2, 2009 at 10:16 AM, tawright915 wrote: > > I'm having problems wrapping my head around how to code this: > > I have two textboxes both are required. However if a user fills out > one of the textboxes then the other is no longer required. > $('#the_form').submit(function() {

[jQuery] Re: jQuery Validate plugin with cake php form won't submit

2009-01-02 Thread brian
On Fri, Jan 2, 2009 at 2:32 PM, nate wrote: > > Jörn, > > Thanks for your response. > > I got it to submit with > > submitHandler: function(form) { > form.submit(); > }, > > now I have a problem when using the cakephp form helper. > > This works with the manually created input >

[jQuery] Re: Absolute Image location

2009-01-02 Thread brian
On Fri, Jan 2, 2009 at 5:26 PM, MarkAtHarvest wrote: > > > I am trying to run a javascript for a dropdown menu, I need to access the > down.gif from images/down.gif , I have two links from where I need to > include this javascript > > one link is in index.jsp in root folder and other is /admin/li

[jQuery] Re: jQuery Validate plugin with cake php form won't submit

2009-01-02 Thread brian
On Fri, Jan 2, 2009 at 8:19 PM, nate wrote: > > Brian > > thanks for the tip. I tried both single and double quotes but that > didn't work. hmmm ... I just found this in the docs: http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_complex_names_.28brackets.2C_d

[jQuery] Re: Why would this code not allow a $ as part of the input?

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 12:26 PM, Rick Faircloth wrote: > > Hi, all... > > I'm writing some validation code and have an input > for dollar amounts and would like for users to be able to > enter digits or $ or , or . all of which are commonly > used in US dollar values. > > The code I've written s

[jQuery] Re: Why would this code not allow a $ as part of the input?

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 2:28 PM, Rick Faircloth wrote: > > Thanks for the tips, Brian! > > That gave me just the insight I needed. > > Here's what I finally ended up with: > > if ( isNaN (this.value.replace(/\$|,|\./g,''))) > > That disregards any

[jQuery] Re: questions on event delegation

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 4:36 PM, wrote: > > My question's are > > 1. If you have a Div class= content with children anchors. Then > empty and load in new content in that div with children anchor those > anchors will get the same event handling that the previous anchors had > right? No (well, n

[jQuery] Re: questions on event delegation

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 8:06 PM, brian wrote: > On Sat, Jan 3, 2009 at 4:36 PM, wrote: >> >> My question's are >> >> 1. If you have a Div class= content with children anchors. Then >> empty and load in new content in that div with children anchor th

[jQuery] Re: hidden form field

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 8:45 PM, bob wrote: > > How do I insert a value to hidden form field "user_name"? > > > > > > > > jQuery('form#myForm input:hidden ???').val('fast_fish'); > > Thats what I need: > jQuery("#myForm input[name='user_name']").val('fast_fish'); You can leave out the '

[jQuery] Re: Absolute Image location

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 8:57 PM, MarkAtHarvest wrote: > > > Brian, > > I am a newbie on CSS , let me try to change it and update you back on how it > goes, thanks it seems this should work. > BTW, changing to /images/down.gif, does not work at all, my images folder is > a

[jQuery] Re: Absolute Image location

2009-01-04 Thread brian
On Sat, Jan 3, 2009 at 9:54 PM, MarkAtHarvest wrote: > > > Brian, > > Here is the html code on my http://localhost:8080/mytrial/admin.gsp, on my > grails application. > Just added this to find the absolute location for the images > if I use > > images/do

[jQuery] Re: questions on event delegation

2009-01-04 Thread brian
On Sun, Jan 4, 2009 at 10:27 AM, wrote: > > Being an self taught old school C coder I thought it would be easier > to migrate to PHP but I cant really complain other than my termanology > yes thats exactly correct the anchor inside the div Looks like we have a similar background wrt to programm

[jQuery] Re: How is it possible to have click on each 'a href' menu item and ALSO have another 'a href' trigger as well?

2009-01-04 Thread brian
On Sun, Jan 4, 2009 at 4:56 AM, yvonney wrote: > > Hi... > ALL the following occurs on ONE page of markup with ONE css file. > > [OBJECTIVE: when I click on my menu items I need another 'a href' to > ALSO trigger it's link event. I COULD put the second set of link > somewhere visible out of the w

[jQuery] Re: Dateformat problem

2009-01-04 Thread brian
I don't understand about the lowercase/uppercase thing. But I do know that datePicker expects the 4-digit format string to be 'yy' not ''. Maybe that's the problem. I do think it *should* be '', though. 'yy' is a bad choice, IMHO. http://docs.jquery.com/UI/Datepicker/%24.datepicker.forma

[jQuery] Re: jQuery way

2009-01-04 Thread brian
What does #container look like? Can you post an example of just that element with its HTML? On Mon, Jan 5, 2009 at 12:53 AM, Dirceu Barquette wrote: > Hi Ricardo, > > Thats right! I know it works. But not with the dirty code of my job, both > doesn't work... > You are from Brazil like me. Don't

[jQuery] Re: how to get form data

2009-01-05 Thread brian
It might help if you give your elements IDs and use those as selectors. I'm not even certain that the form tag can have a "name" attribute. On Mon, Jan 5, 2009 at 1:43 PM, bob wrote: > > Hi, > I would like to keep jQuery('fo...@name=myform1]') in variable so that > I can utilize it > later on. >

[jQuery] Re: [validate] Attaching events to dynamically added fields

2009-01-05 Thread brian
On Mon, Jan 5, 2009 at 2:40 PM, Rob wrote: > > Hi Jörn or anyone else familiar with this plugin, > > First off, thanks for the great validation plugin. I hope I do not > impose too much with this question. > > I have a dynamic form with fields named using brackets ([]). See this note: http://doc

[jQuery] Re: iterate over json

2009-01-06 Thread brian
You know, I didn't even realise it, having just been working on a lot of PHP with "${variables} inside strings". Yeah, that is unwieldy. On Tue, Jan 6, 2009 at 12:33 AM, Michael Geary wrote: > > That's an unusual JSON object. Does it really have to be structured that > way, or do you have some

[jQuery] Re: Best way to preload an image to obtain dimensions

2009-01-08 Thread brian
On Thu, Jan 8, 2009 at 6:06 PM, nabrown78 wrote: > > Hi All, > I am building a simple little gallery where you click on a thumbnail, > and a larger image displays on the same page. I was trying to adjust > the padding around the large image using the new image's dimensions. I > pieced together th

[jQuery] Re: Saving HTML as an image...

2009-01-11 Thread brian
You'll certainly have to look at something server-side. I suggest you create a form with hidden fields that jQuery populates (I'm assuming that the data is user-generated) and which is then sent to an application to create the chart/graph. If you use PHP, you coulduse the PEAR Image_Graph package

[jQuery] Re: table striping - skip hidden rows

2009-01-12 Thread brian
The way I sometimes do this with PHP is to set a $counter var and then use the modulo operator on the incremented counter to write the classname for the row. So, something like this might work: // where you have CSS classes Row0 & Row1 $(this).find("tbody tr:visible").each(function(i, el) {

[jQuery] Re: table striping - skip hidden rows

2009-01-12 Thread brian
Right - that's way simpler. Yay, jQuery! On Mon, Jan 12, 2009 at 2:46 PM, MorningZ wrote: > > Should work: > > $(this).find("tbody tr").not(":hidden").filter(":even").addClass > ("alt"); > > > On Jan 12, 1:08 pm, brian wrote:

[jQuery] Re: anyone knows vertical carousel ?

2009-01-12 Thread brian
What's wrong with that example? What, specifically, are you looking for, aside from a plain, vertical implementation? On Mon, Jan 12, 2009 at 5:36 PM, merihsaka...@yahoo.com wrote: > > any other example?

[jQuery] Re: getJSON problem - Urgent

2009-01-13 Thread brian
Are any of these links dynamically generated? That is, are any of them not in the page when its first loaded for the user? It may be a binding issue. On Tue, Jan 13, 2009 at 8:05 AM, g...@getsharepoint.com wrote: > > Hi, > > I've got a deadline to get a project working and I'm stuck with a > get

[jQuery] Re: Masked Input Plugin

2009-01-13 Thread brian
I think this misses the point of having a mask. You should decide which format *you* want the data in and force the user to follow suit. Probably the best way in your case would be to force 4 digits for the year. Unless, of course, you're dealing with existing IDs or something, where the year mig

[jQuery] Re: What am I getting this error?

2009-01-13 Thread brian
You have too many quotes in these 2 lines: var tour-info-div = '$('this').prev('.tour-info-div')' ; var update-div = '$('this').prev('.update-div')' ; try: var tour-info-div = $(this).prev('.tour-info-div') ; var update-div = $(this).prev('.update-div'); On Tue, Jan 13, 2009 at

[jQuery] Re: Selector help

2009-01-13 Thread brian
You could maybe follow with not(). What are you trying to do? On Tue, Jan 13, 2009 at 5:26 PM, km...@fensys.com wrote: > > I'm using a attribute selector and I want to combine the *= with the ! > = on href. Is there any way to do this? >

[jQuery] Re: Selector help

2009-01-14 Thread brian
to the current page, it is allowed to go > through. If it navigates away, a popup needs to appear displaying > certain information. I have two different strings that point pack to > the current page. One is a normal url, the other is a javascript > postback. > > On Jan 13, 10:

[jQuery] Re: Autocomplete, can we change the "q" and "limit" parameters name ?

2009-01-14 Thread brian
The 'q' is hard-coded in the makeUrl() method. But it'd be simple enough to change it to grab the param name from the options hash: var url = options.url + "?" + options.q + "=" + encodeURI(q); And adjust the jQuery.fn.autocomplete at the bottom of the file to reflect the change: options.q = op

[jQuery] jQuery website errors

2009-01-14 Thread brian
FYI, this page currently is throwing a "DBQueryError": http://docs.jquery.com/UI/Tabs

[jQuery] UI Tabs bug

2009-01-15 Thread brian
synopsis: UI.tabs faisl hard when there is no UL for which to apply tabs. I have an admin section for which I'm using a tabbed nav bar. But, in a few pages, the UL does not appear (by design). Because I have this line in my admin.js: $('#nav_admin').tabs({ ... }); ... jQuery is coming to a scre

[jQuery] Re: UI Tabs bug

2009-01-15 Thread brian
sorry, jQuery 1.2.6 UI 1.6rc4 On Thu, Jan 15, 2009 at 10:49 PM, brian wrote: > synopsis: UI.tabs faisl hard when there is no UL for which to apply tabs. > > I have an admin section for which I'm using a tabbed nav bar. But, in > a few pages, the UL does not appear (by design

[jQuery] Re: Autocomplete - Minimum Size of Possible Matches

2009-01-16 Thread brian
Are you using MySQL? You can change the default minimum word length. See this page: http://dev.mysql.com/doc/refman/5.1/en/fulltext-fine-tuning.html Also, the stop-word list can be adjusted: http://dev.mysql.com/tech-resources/articles/full-text-revealed.html On Thu, Jan 15, 2009 at 11:25 PM

[jQuery] Re: sorting a list of elements

2009-01-16 Thread brian
Maybe use makeArray() first. Something like: $.makeArray($('#ops-memb option')).sort(... On Fri, Jan 16, 2009 at 11:04 AM, mtz wrote: > > I have a select list into which I place new option elements, and I > want to show them in sorted order. I've searched around and tried some > approaches, but

[jQuery] Re: sorting a list of elements

2009-01-16 Thread brian
http://docs.jquery.com/Utilities/jQuery.makeArray#obj -- snip -- jQuery.makeArray( obj ) Turns anything into a true array. -- snip -- On Fri, Jan 16, 2009 at 1:25 PM, Kean wrote: > > Only true arrays will inherit the sort method. > > On Jan 16, 10:10 am, brian wrote: >> M

[jQuery] Re: sorting a list of elements

2009-01-16 Thread brian
1:44 PM, mtz wrote: > > Thanks. > I can make the array now and it legitimately sorts. > However, I can't see an easy way to get the values in the array back > into the A name > format again, so I can put teh HTML into the select . > > On Jan 16, 1:33 pm, brian wrote: >

[jQuery] Re: objects, prototypes, and closures

2009-01-16 Thread brian
There seems to be a missing brace in there. ANyway, try this: $.extend(MyObject.prototype, { save: function(id) { var self = this; var html="some html"; $.post( 'post_page.php',

[jQuery] Re: way to identify if width of element was defined in percentage

2009-01-18 Thread brian
You could try reading the styles directly (not getComputedStyle). Have a look at the document.styleSheets object, specifically its cssRules array. http://www.javascriptkit.com/domref/stylesheet.shtml On Sun, Jan 18, 2009 at 8:48 AM, david wrote: > > Hi all, > > Is there a way to know if an elem

[jQuery] hover & show: how to avoid looping?

2009-01-18 Thread brian
I have a simple unordered list of links that I want to animate. But I can't remember how, using jQuery, I should ensure that the UL stays showing when I move the cursor over it. The problem is that I have position: relative on the container, and absolute on the UL (I need this for z-index purposes

[jQuery] Re: Column highlite

2009-01-18 Thread brian
$('#your_table_id tr').find('td:odd').css('background-color', '#EEE'); You need to operate on each TR separately or jQuery will count each TD without regard for the row it's in. On Sun, Jan 18, 2009 at 10:32 PM, wrote: > > I have table which need to have alternate column highlight and work in

[jQuery] Re: Column highlite

2009-01-19 Thread brian
ss('SomeClassName'); On Mon, Jan 19, 2009 at 10:55 AM, Liam Potter wrote: > > $('#your_table_id tr:odd').children('td').css('background-color', '#EEE'); > > > > brian wrote: >> >> $('#your_table_id tr').find

[jQuery] Re: the new whitehouse.gov - jQuery powered

2009-01-20 Thread brian
$(nation).ready(function() { $('.POTUS').not('#a_jackass').change(); }); On Tue, Jan 20, 2009 at 2:21 PM, rolfsf wrote: > > I just noticed that team Obama pushed a new website live today - > powered with jQuery! > > http://www.whitehouse.gov > >

[jQuery] Re: Need access to index within loop

2009-01-22 Thread brian
You're passing the string "i". Remember that the selector is just a string passed to the jQuery object. Try this: $('li:eq('+i+')').fadeIn('slow'); On Thu, Jan 22, 2009 at 5:41 AM, elduderino wrote: > > > HI, > > I have this code: > > $(document).ready(function(){ > > $('li').each(functi

[jQuery] Re: Need access to index within loop

2009-01-22 Thread brian
Oh--I missed that entirely. Yes, what Karl said! On Thu, Jan 22, 2009 at 5:43 PM, Karl Rudd wrote: > > You don't have to "select" the LI again. Within the "each" function > the "this" variable refers to the LI DOM node. So you can write: > > $(document).ready(function(){ > $('li').each(function

[jQuery] Re: remove()

2009-01-24 Thread brian
$('#test').text('') or $('#test').html('') might be what you want. On Sat, Jan 24, 2009 at 11:22 AM, Charlie22 wrote: > > I have question how easy remove content from DIV, e.g. > test text > > I thought that code > $('#test').remove() > managed it, but it doesnt true. Thx in advance.

[jQuery] Re: id question

2009-01-24 Thread brian
Better yet, don't use such characters for IDs and get on with life. On Sat, Jan 24, 2009 at 5:05 AM, Mauricio (Maujor) Samy Silva wrote: > > Use the attr() sintax to retrieve an id value: > > alert( $('#id\\{0\\}\\___').attr('id')); > > Maurício > > -Mensagem Original- De: "gvangass" >

[jQuery] Re: remove()

2009-01-24 Thread brian
est>*').remove(), but no success. > > On 24 Led, 17:54, brian wrote: >> $('#test').text('') or $('#test').html('') might be what you want. >> >> >> >> On Sat, Jan 24, 2009 at 11:22 AM, Charlie22 wrote: >>

[jQuery] Re: id question

2009-01-24 Thread brian
Use a different CMS? On Sat, Jan 24, 2009 at 12:19 PM, Mauricio (Maujor) Samy Silva wrote: > > Brian, > Weird charaters in ID values are often auto generated by some CMS, so there > is no way to avoid them. > Maurício > > -Mensagem Original- De: "brian"

[jQuery] Re: How do I get the actual HREF of a link?

2009-01-25 Thread brian
$('#testlink')[0].attr('href') On Sun, Jan 25, 2009 at 9:14 PM, Jumpfroggy wrote: > > Here's the short version: > I have a link: >page.html > > But when I do this: >alert($('#testlink')[0].href); > > I get this: >http://localhost/page.html > > How do I get the *actual* HREF of the li

[jQuery] Re: newbie: jquery to modify look of broken links?

2009-01-29 Thread brian
On Thu, Jan 29, 2009 at 9:36 AM, T wrote: > > On Jan 28, 10:27 pm, Ricardo Tomasi wrote: >> Possible it is, but it's a very very heavy burden on the user, >> completely inneficient and unreliable. You'd have to load the URL in >> an iframe and wait for the 'onload' call, if it's not called after

[jQuery] Re: Opening a div causes jump to top of page

2009-01-29 Thread brian
You have a hash (#) in the href attribute. This is the expected behavior. You'll need to return false from your click handler. On Thu, Jan 29, 2009 at 6:21 PM, EricC wrote: > > Hi, > > I have a page that opens some divs based on user feedback (try the > more photos links please). If you happen t

[jQuery] Re: [jquery.form.js v2.18] file upload field and standard fields

2009-01-29 Thread brian
What does the error field say? And I'm pretty sure that MAX_FILE_SIZE must come immediately before your file input element. Also, are you sure the file is within your upload limit? On Thu, Jan 29, 2009 at 1:01 PM, phicarre wrote: > > jquery.form.js v2.18 > > I have a form with a lot of fields a

[jQuery] Re: HTML support

2009-01-29 Thread brian
Have you tried it? On Thu, Jan 29, 2009 at 1:02 PM, Dinesh B Vadhia wrote: > Hi! I've always assumed that the text displayed in an autocomplete box is > 'text'. What if the text has html tags eg. mathML tags? Is this supported > and if not could it be? Thanks. > > Dinesh >

[jQuery] click fires twice

2009-01-29 Thread brian
both jquery-1.3.1 and 1.2.6 on FF No beginner here, but I'm absolutely stumped. The following function is firing twice. There are no other event handlers involved (and, anyway, it's only whatever I put in this function that runs). I've found a couple of messages online about similar problems but

[jQuery] Re: click fires twice

2009-01-29 Thread brian
nds like you've bound the event twice. Can we see the whole page? > > On Jan 29, 8:03 pm, brian wrote: >> both jquery-1.3.1 and 1.2.6 on FF >> >> No beginner here, but I'm absolutely stumped. The following function >> is firing twice. There are no other even

[jQuery] Re: click fires twice

2009-01-29 Thread brian
On Thu, Jan 29, 2009 at 8:47 PM, Pedram wrote: > > Check your mark Up maybe You have two LInks .!!! There are actually about a dozen links. They don't have any inline onclick attributes.

[jQuery] Re: click fires twice

2009-01-29 Thread brian
After putting this aside for awhile, it occurred to me that our own JS include system may be at fault. Sure enough, I looked at the source more closely and saw that it had let a duplicate through. The bug's all mine. Sorry for the noise.

[jQuery] Re: .text()

2009-01-31 Thread brian
On Sat, Jan 31, 2009 at 10:47 PM, Bob O wrote: > > Coupon <-- > This is the reference text that is dynamic > > **Html Form Piece** > > **Html Form Piece** > > $(document).ready(function() { > var $coupon_div = $('#campaign_create_coupon'); > var $contest_div = $('#campaign_crea

[jQuery] Re: jQuery and Javascript timer question

2009-01-31 Thread brian
On Sat, Jan 31, 2009 at 11:19 PM, thertze...@gmail.com wrote: > > \$(this).css({ backgroundColor:color }); never seem to fire, as far as > I know though, its valid jquery javascript... > > As for the statement above "("input#color_code").val() " is whatever > the user selects from the color picke

[jQuery] Re: jQuery and Javascript timer question

2009-02-01 Thread brian
On Sun, Feb 1, 2009 at 12:09 PM, thertze...@gmail.com wrote: > > what? > > That statement checks to see if the element clicked has the class > of .btn px, I dont know what your saying, the statement there does > work correctly, its "\$(this).css({ backgroundColor:color }); " that > isnt modifying

[jQuery] Re: jQuery and Javascript timer question

2009-02-01 Thread brian
; inside of another with classname 'btn'. Remember that jQuery's classname and ID selectors mirror those found in your stylesheets, not your element attributes. [1] Of course, either '.btn' or '.px' would work, also but '.btn.px' is what's required to n

[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: DatePicker not working--how to debug?

2009-02-02 Thread brian
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 figure out why DatePicker is not working for me. I'm >>

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

[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: 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: 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] Re: Math.ceil rounds down instead of up!?

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

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

2009-02-03 Thread brian
On Tue, Feb 3, 2009 at 1:27 AM, brian wrote: > 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

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

2009-02-03 Thread brian
I think you're looking at the wrong line. You're decrementing the totalweight var. weightpricearray = (pricesarray[--totalweight]).split(","); On Tue, Feb 3, 2009 at 2:02 PM, Zaliek wrote: > > I've finished my shipping calculator script, but now for some reason > Math.ceil used on "var sum" in

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

2009-02-03 Thread brian
On Tue, Feb 3, 2009 at 1:41 PM, daveJay wrote: > > I've got a page set up where it loads each image on the page, one > after the other. As you can see here: > > http://sandbox.exit42design.com/photography/folio_1.html > > The problem with this is that if one of the images is broken, it'll > stop

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

2009-02-04 Thread brian
On Wed, Feb 4, 2009 at 10:46 AM, daveJay wrote: > >> I'd try to avoid writing a routine explicitly for each image and >> instead use a loop. This is thoroughly untested. > > Thanks a ton Brian for the help with that code, I had no idea you > could load an array like

[jQuery] Re: Posting a serialized string without Ajax ??

2009-02-04 Thread brian
On Wed, Feb 4, 2009 at 12:10 PM, sinkingfish wrote: > > > Hi, > > I think i might be overlooking the obvious but I've got a string from my > sortable list, something like : > item[]=3&item[]=1... > > I don't want to post this using ajax, I want to do a plain old post, but how > do I append the st

[jQuery] Re: Map navigation

2009-02-05 Thread brian
On Thu, Feb 5, 2009 at 2:55 PM, ebru...@gmail.com wrote: > > Hello, > > I am working on a map just like mmog games have like travian etc. > > The map has 4 navigation buttons nord east south west. If someone > presses on it it loads the page again, i just want the map to move. > > Is there some k

[jQuery] Re: how to pass id to function

2009-02-05 Thread brian
On Thu, Feb 5, 2009 at 11:45 PM, Praveen wrote: > > so that's why i am generating different div id > > {% for name in eventname %} > > ... > > so now my div id is > class="viewalldetailslinktext"> It appears that you first must fix how your application assigns the ID to

[jQuery] Re: Newbie question - downloading jQuery

2009-02-06 Thread brian
What did you download? There is the main jquery library (plain, minified, etc.) and there's all the UI stuff. If you want to use the UI widget/effect libraries you'll have to get them separately. However, you can get them as prepackaged bundles based on the things you want: http://ui.jquery.com/d

[jQuery] Re: Using selectors successfully...?

2009-02-07 Thread brian
Do you see the class added in firebug's HTML view? On Sat, Feb 7, 2009 at 10:49 PM, gberz3 wrote: > > Ok, this is odd. I can perform a .fadeOut() on the acquired divs, but > the .addClass() method specifically isn't working. Is there anything > in particular that I can check? Specific syntax?

[jQuery] Re: Does it hurt to call functions that don't do anything on the page?

2009-02-07 Thread brian
On Sat, Feb 7, 2009 at 11:21 PM, Ricardo Tomasi wrote: > > > Alternatively you could add a different class to the body of each > page, then use this rather amusing construct: > > $(document).ready((function(){ > var is = function(v){ return ++document.body.className.indexOf(v) }; > > return( >

[jQuery] Re: Using selectors successfully...?

2009-02-07 Thread brian
found this bit of information? What, exactly, is > the most efficient workflow for testing items of this nature? > > On Feb 7, 11:32 pm, brian wrote: >> Do you see the class added in firebug's HTML view? >> >> On Sat, Feb 7, 2009 at 10:49 PM, gberz3 wrote: >>

[jQuery] Re: Using selectors successfully...?

2009-02-07 Thread brian
On Sun, Feb 8, 2009 at 12:37 AM, gberz3 wrote: > > I'm just glad it only took 2 hours, and not 2 weeks. I always tend to > think outside the box. Unfortunately, I often find myself inside > another box just beside the original box. Are there any sorts of > explicit documentation that warns aga

[jQuery] get visibility state after toggle()

2009-02-08 Thread brian
How can I tell what the visibility state of an element is which has just been toggled? Is my selector no good or is it a matter of timing? . The situation is that I'm displaying a page of search results. I'd like the "advanced" search features to be present at the top but I'd prefer to hide them.

[jQuery] Re: input file and val()

2009-02-09 Thread brian
File inputs have traditionally been difficult to modify, for security reasons. AFAIK, it shouldn't work in FF, either. Maybe it works only because you're emptying it. I wonder if that would work if you tried to set the value to some other string. On Mon, Feb 9, 2009 at 11:39 AM, ezod wrote: > >

[jQuery] Re: get visibility state after toggle()

2009-02-09 Thread brian
The video won't play for me :-( tthanks anyway. FF3.0.6 on linux So ... do you happen to know the answer to my query, by any chance? On Mon, Feb 9, 2009 at 8:08 AM, Paul Mills wrote: > > Brian > Here are a couple of demos that might help. > http://jsbin.com/ojuju/edit >

[jQuery] tabs, ajax mode, spinner not removed

2009-02-09 Thread brian
jquery 1.3.1, UI.Tabs 1.6rc6, FF3.0.6 Whenever any tabs load the spinner img will remain visible. I'm using the following for the spinner option for tabs (I've removed everything else with the same result) spinner: '' The default "loading ..." does change back to the label text. I see that the

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-10 Thread brian
On Tue, Feb 10, 2009 at 4:21 AM, Klaus Hartl wrote: > > Hello Brian, would you mind to file a bug for this? > > --Klaus I don't mind at all.In fact, I've found a partial fix. Not really a fix, but a lead, anyway. However, I don't see any obvious way to reset my

[jQuery] Re: get visibility state after toggle()

2009-02-10 Thread brian
$( selector ).is(':visible') <-- this is precisely what I was looking for. How did I forget that? Thanks a bunch! On Tue, Feb 10, 2009 at 2:51 PM, Paul Mills wrote: > > Hi, > You don't need to run the video - try this link instead > http://jsbin.com/ojuju > > There are two snippets of Javsscrip

[jQuery] Re: ID's start with #

2009-02-10 Thread brian
On Tue, Feb 10, 2009 at 2:44 PM, Shredder36 wrote: > > Unfortunately, the HTML is generated by a 3rd party application and I > have no control over the id's (and in many cases the lack thereof). You might want to consider taking that up with the 3rd party, then. Using # in an ID == broken, IMHO.

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-10 Thread brian
On Tue, Feb 10, 2009 at 4:12 PM, Klaus Hartl wrote: > > As a quick workaround, does the following work: > > spinner: '' no difference > Or, you could also not touch the default spinner, but add the image as > background-image: > > .ui-tabs-load em { >padding-left: 20px; >background: url

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-10 Thread brian
On Tue, Feb 10, 2009 at 4:17 PM, Klaus Hartl wrote: > > I've created the ticket aready: > http://dev.jqueryui.com/ticket/4109 > Thanks, Klaus. I think I've sorted this out, actually. Although I'm not certain of a fix. I should have been logging this[0].tagName, not inner(this)[0].tagName. The a

[jQuery] Re: Errors

2009-02-10 Thread brian
On Tue, Feb 10, 2009 at 11:17 AM, atomk wrote: > > Would somebody mind taking a look at this page > http://consolidatedaggregates.com/ > . > > I'm suddenly getting many cryptic jQuery errors. I'm not sure what is > causing them because I don't know what they mean. > As cryptic as this msg? What

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-10 Thread brian
$index.val() returns the value. $index.val(VALUE); assigns VALUE. So, this should (might) work: $index.val(--$index.val()) It doesn't look so great, though. I say "might" because I'm not sure if that needs to be set as a var, first. You also want the decrement on the left or you'll be decremen

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-10 Thread brian
Wed, Feb 11, 2009 at 1:14 PM, brian wrote: >> >> $index.val() returns the value. $index.val(VALUE); assigns VALUE. >> >> So, this should (might) work: >> >> $index.val(--$index.val()) >> >> It doesn't look so great, though. I say "might&q

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-11 Thread brian
On Wed, Feb 11, 2009 at 5:16 AM, Klaus Hartl wrote: > > Thanks for this information. I'm about to rewrite this stuff a bit > anyway due to some other bug, and I'll take your findings into > account. Thanks again. No problem. I'll try again to get logged into Trac, create a new UID, if necessary,

[jQuery] Re: onclick event on

2009-02-11 Thread brian
If you bind your event handlers using an element's onclick attribute (or onwhatever) you should write it like so: onclick="return myClickHandler(...);" And return false from the function to avoid having the link followed. Note that the attribute should be all lowercase, btw. The camelcase versi

  1   2   3   4   5   6   7   8   >