[jQuery] Re: Check all and uncheck all like the one in gmail

2008-12-10 Thread Donny Kurnia
ricardobeat wrote: > MorningZ code looks good, except that it doesn't check 'Check all' > automatically when you check all boxes by hand. > > You're creating lots of jQuery objects unnecessarily: > > var allBoxes = $('#main_table :checkbox:not(#checkall)'); > > $("#checkall").click(function(){

[jQuery] Re: a == b, but I don't understand why it doesn't...

2008-12-10 Thread nachocab
Thanks Richard, That's a great refactoring. I need to harness the power of selectors and stop relying on functions so much. Do you think it depends on the case or that selectors beat functions in terms of performance? On Dec 10, 7:10 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > You can shorten th

[jQuery] Re: jQuery Plugin --> DOMisBetter

2008-12-10 Thread sad1sm0
I'm really not sure I see the benefit. To build an entire site on the client side seems useless to me given that most spiders don't evaluate javascript as far as I'm aware. That means bad news to me. And as far as the IEKiller idea, I have to say that's up there with Chatroom Scrollers back in

[jQuery] Re: hover event going to infinite loop

2008-12-10 Thread sad1sm0
try unbinding before attaching the hover event $('#divEmpDetails').unbind().hover();//fill in the gaps Now that I look at your post I realize that's what fixed my gallery issue. Looks like a similar problem. Maybe it'll help you too

[jQuery] Re: Need Help with my plugin

2008-12-10 Thread sad1sm0
Yeah I forgot to include that part... sorry about that. That's right here getImage: function(href2view) { $("#loadingAnimation").css({position: 'absolute', top: '50%', left: '50%'}).show(); var imageLoader = new Image(); $(imageLoader).load(function() {

[jQuery] Re: selectChain Plugin - Fires on Page Load

2008-12-10 Thread Matt Quackenbush
Bump. :-) On Tue, Dec 9, 2008 at 8:04 PM, Matt Quackenbush wrote: > Hello, > > I am using Remy's most excellent selectChain plugin ( > http://remysharp.com/2007/09/18/auto-populate-multiple-select-boxes/), but > I do not want it to fire on page load, unless the top level select box has a > pre-

[jQuery] Re: Top 5 Movies of the Box Office Watch Online

2008-12-10 Thread JQueryProgrammer
Stop spamming the group with such posts. This is irrelevant here. On Dec 11, 7:27 am, "24 Hrs Movies" <[EMAIL PROTECTED]> wrote: >     Top 5 Movies of the Box Office > >   1. Four Christmases  Reese Witherspoon, Vince Vaughn, Mary Steenburgen  2. > Twilight

[jQuery] Re: Need Help with my plugin

2008-12-10 Thread Sridhar
I am not seeing where you are setting the galleryObj.currentSrc when the user clicks on next / prev. may be that is the problem. On Dec 10, 4:04 pm, sad1sm0 <[EMAIL PROTECTED]> wrote: > I'm building my first plugin for jquery and I'm stuck on a really > weird problem.  I'm building a lightbox ima

[jQuery] Re: select input within a table cell with wildcard

2008-12-10 Thread Felix
Thanks for the information. I will try that out tomorrow. On Dec 10, 6:28 pm, MorningZ <[EMAIL PROTECTED]> wrote: > It is because you are not understanding what ">" means in a selector > > http://docs.jquery.com/Selectors/child#parentchild > > "Matches all child elements specified by "child" of

[jQuery] Re: Possible name space issue?

2008-12-10 Thread Sridhar
since you are using jQuery(selector) instead of $(selector), it shouldn't be naming collision. How do you know jQuery lines are executed? if you are thinking that since it is not giving any errors it is executing it is not correct. if jquery cannot find the element, it won't give any error. you ca

[jQuery] hover event going to infinite loop

2008-12-10 Thread Sridhar
Hi, I am trying to use hover event in jquery to accomplish the following. I have a image button. when the user hovers over the image, it should display a div with the details. when the user moves the mouse off of the image and the content, the content should go away. Also, if the user clicks

[jQuery] Re: Click event fires only once with SImpleModal

2008-12-10 Thread Eric Martin
If the element that you bind the click event to is not changing in any way, there is no reason that the event shouldn't fire again. Can you post (pastie.org or here) the structure of your page? On Dec 10, 5:32 pm, Ron <[EMAIL PROTECTED]> wrote: > I guess the confusing thing is that there really

[jQuery] Re: jQuery Plugin --> DOMisBetter

2008-12-10 Thread RobG
On Dec 11, 7:45 am, KillIEbrowser <[EMAIL PROTECTED]> wrote: > DOMisBetter is different from jQuery( html, [ownerDocument] ) > > http://docs.jquery.com/Core/jQuery#htmlownerDocument That part of the documentation needs to be updated. Where it says: "When creating single elements use the clos

[jQuery] Re: select input within a table cell with wildcard

2008-12-10 Thread MorningZ
It is because you are not understanding what ">" means in a selector http://docs.jquery.com/Selectors/child#parentchild "Matches all child elements specified by "child" of elements specified by "parent"" so while "#editableTable" is the id of the tag, then $("#editableTable > input") wouldn'

[jQuery] Top 5 Movies of the Box Office Watch Online

2008-12-10 Thread 24 Hrs Movies
Top 5 Movies of the Box Office 1. Four Christmases Reese Witherspoon, Vince Vaughn, Mary Steenburgen 2. Twilight Kristen Stewart, Robert Pattinson, Billy Burke 3. Bolt John Travolta, Miley Cyrus, Susie Essman 4. Australia Nicole Kidman, Hugh Jackm

[jQuery] Top 5 Movies of the Box Office Watch Online

2008-12-10 Thread 24 Hrs Movies
Top 5 Movies of the Box Office 1. Four Christmases Reese Witherspoon, Vince Vaughn, Mary Steenburgen 2. Twilight Kristen Stewart, Robert Pattinson, Billy Burke 3. Bolt John Travolta, Miley Cyrus, Susie Essman 4. Australia Nicole Kidman, Hugh Jackman

[jQuery] select input within a table cell with wildcard

2008-12-10 Thread Felix
Hi all, I am running into the following problem.   

[jQuery] Re: Click event fires only once with SImpleModal

2008-12-10 Thread Ron
I guess the confusing thing is that there really isn't any AJAX. I understand the event binding problem when new elements are added to the DOM. This page is set up in a way where the div containing the modalpopup is set to display:none, which I imagine SimpleModal toggles. There is no request--A

[jQuery] Re: get a whole html page in a .getJson call

2008-12-10 Thread MorningZ
"Is that possible to pass a complete page into .getJSON call ? " Sure, the HTML of said page would just be a property of the JSON object On Dec 10, 7:19 pm, donb <[EMAIL PROTECTED]> wrote: > I'm not going to claim great expertise here, but wouldn't you only be > able to load/reload the bod

[jQuery] Re: jQuery.uploader released: Flash based jQuery uploader

2008-12-10 Thread Methnen
Strike that. I figured it out. The queueCompleted call back does indeed end before the stuff in the fileUploadServerData completes which is what was causing the issue. As a workaround I kept two tallies of the file counts to be able to make sure the last image had finished and then put the stuf

[jQuery] Possible name space issue?

2008-12-10 Thread Ashish
All my code is in name space Ex where Ex = YAHOO.namespace('pmc'); now inside this code, I have some jquery Ex.myProgressFormatter = function(elCell, oRecord, oColumn, oData) { var iterid = oRecord.getData("id"); var elementid = "pb" + iterid; . jQuery("#" +elementid).progressba

[jQuery] Re: get a whole html page in a .getJson call

2008-12-10 Thread donb
I'm not going to claim great expertise here, but wouldn't you only be able to load/reload the body of a page? That is, the header would never be altered. This may or may not be a problem (stylesheets, scripts, meta tags, title, etc. that were loaded in the header would remain loaded, or so it wo

[jQuery] Re: Click Handler Not Returning False in IE7 Due to getScript()?

2008-12-10 Thread donb
Seems perfectly fine to me. IE version 7 On Dec 10, 5:32 pm, Joe <[EMAIL PROTECTED]> wrote: > Any leads on this? > > On Dec 6, 2:01 pm, Joe <[EMAIL PROTECTED]> wrote: > > > > > Go here: > > >http://www.theshedbbq.com/gulfport/photos/ > > > Click one of the photo gallery links.  In IE7, it does n

[jQuery] Re: Image.css("display") not working

2008-12-10 Thread donb
Now I understand you. 'id' was in so many places I thought you were confused about how to use them. After rereading, I see you refer to as the tag, did you really mean that or did you use in your html? is not the proper HTML tag name, it is On Dec 9, 11:24 pm, JQueryProgrammer <[EMAIL PRO

[jQuery] Re: How to use dynamic id in selectors

2008-12-10 Thread MorningZ
Selectors are (well can be) simple strings so $("#" + elementid) would select the given element On Dec 10, 6:55 pm, Ashish <[EMAIL PROTECTED]> wrote: > I generate ids  for span and divs in my code. So Ids are stored in  js > variables. > > How do I use it in selector? > > elementid is a js va

[jQuery] How to use dynamic id in selectors

2008-12-10 Thread Ashish
I generate ids for span and divs in my code. So Ids are stored in js variables. How do I use it in selector? elementid is a js variable which has the id of a span element. The following does not seem to be working... $(elementid).progressbar().progressbar("progress", status);

[jQuery] Re: Click event fires only once with SImpleModal

2008-12-10 Thread Brian Cherne
There's another thread from today that points to the FAQ< http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F > Brian. On Wed, Dec 10, 2008 at 3:50 PM, Brian Cherne <[EMAIL PROTECTED]> wrote: > Neither JavaScript's nor jQuery's click will auto

[jQuery] Re: Click event fires only once with SImpleModal

2008-12-10 Thread Brian Cherne
Neither JavaScript's nor jQuery's click will automatically re-bind if the object is removed and then added again. If the link you refer to is replaced by a new set of content (with an identical link) you may consider using a plug-in like Brandon Aaron's Live Query: < http://brandonaaron.net/docs/li

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

2008-12-10 Thread Rick Faircloth
I tried that, but I get an error in Firebug that Shadowbox was undefined. So, I need to know how to "define" Shadowbox as a function, then issue the command to close it. I tried: $Shadowbox.close() After the lines below, but that wasn't right...Firebug still tells me that Shadowbox is undefine

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

2008-12-10 Thread brian
Shadowbox.close() (I've never used it Myself, so YMMV) On Wed, Dec 10, 2008 at 4:10 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > > For my "success" callback (I guess that's what you call it...) > I've got a series of events after an $.ajax post. > > Here they are: > > $('#contentdiv').empty()

[jQuery] Re: Click event fires only once with SImpleModal

2008-12-10 Thread Ron
I'm wondering if the issue isn't JQuery's click event. Maybe the problem is that JQuery's click handler doesn't rebind? I seem to remember someone running across this issue before, where they just used javascript's click handler instead of JQuery to resolve it...I'll try that and repost. Ron O

[jQuery] Re: Load new content, new links dont activate jquery function..

2008-12-10 Thread Max
Thanks, it works great now :), however i have one more question, what is the best way to perform a php mysql function to get data and update a div using jquery... i ask because i have a comments section that allows the user to choose how many comments to display the default is just 1, but i want

[jQuery] Re: iframes and livequery

2008-12-10 Thread jquertil
$('.LQelements', frames["myIframe"].document).livequery(function(){... doesn't work either :(

[jQuery] iframes and livequery

2008-12-10 Thread jquertil
after searching I found this, which is close but no cigar. http://plugins.jquery.com/node/3997 I appended an iframe to my document, and use livequery: $('.LQelements').livequery(function(){... which works in the top.document, but not in the iframe. How can I re-use this? I don't want to h

[jQuery] Re: SimpleModal container not showing up

2008-12-10 Thread Eric Martin
Does your page have a valid doctype (and not code before it)? What browser are you using? Do you have any styles applied to the container? Do you have a page I can see? -Eric On Dec 10, 1:37 am, Isaac <[EMAIL PROTECTED]> wrote: > I have a LONG php form which collects data, then submits it to

[jQuery] Re: Click Handler Not Returning False in IE7 Due to getScript()?

2008-12-10 Thread Joe
Any leads on this? On Dec 6, 2:01 pm, Joe <[EMAIL PROTECTED]> wrote: > Go here: > > http://www.theshedbbq.com/gulfport/photos/ > > Click one of the photo gallery links.  In IE7, it does not return > false and immediately jumps back to the top of the page.  Within the > clickhandler, I'm grabbing

[jQuery] Re: JSON2007 and each() ?

2008-12-10 Thread Michael Geary
The first thing I'd suggest would be getting rid of json2007.js. It breaks a lot of code, although I'm not sure why it would be causing a problem in this particular case. Try the json2005.js instead, as described on this page: http://code.google.com/p/reallysimplehistory/wiki/UsageInstructions

[jQuery] Re: SWF chart problem

2008-12-10 Thread sumpa
please someone can help me about that ? On 10 Dez., 15:26, sumpa <[EMAIL PROTECTED]> wrote: >  function updateChart(xml,oid){ >       //var chart=document.my_chart;   is working >       var chart1=$(oid);    / is not wokring . how to get the > object properly >                

[jQuery] Re: Updating the DOM after ".load"

2008-12-10 Thread slandry
Yes, Yes! Yes!!! That works. Thank you so much. It's been keeping me up at night. Thanks! FYI: Now I finally understand the callback :) On Dec 10, 2:06 pm, brian <[EMAIL PROTECTED]> wrote: > The first one isn't rendering for me, but i do see the pie chart. I'm > not familiar with the sparkl

[jQuery] Need Help with my plugin

2008-12-10 Thread sad1sm0
I'm building my first plugin for jquery and I'm stuck on a really weird problem. I'm building a lightbox image gallery that turns an xml doc into a gallery with minimal effort. I've got it almost complete and I've ran into a snag. The plugin generates a lightbox with image controls (prev and n

[jQuery] Form field validation call out (mini pop-up) plugin?

2008-12-10 Thread Eric P
Hi, I've been digging around the net for a jQuery plugin that does a form validation "call out". This would be a little info pop-up near a form field notifying the user why their entry didn't validate. This demo shows pretty much what I'm looking for. Type in a non-integer phone number to see

[jQuery] Re: jQuery Plugin --> DOMisBetter

2008-12-10 Thread KillIEbrowser
DOMisBetter is different from jQuery( html, [ownerDocument] ) http://docs.jquery.com/Core/jQuery#htmlownerDocument On Dec 8, 8:48 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > I think you're all paying attention to the wrong link. > > The 'relevant' one is > this:http://riagallery.appspot.com/s

[jQuery] Re: Load new content, new links dont activate jquery function..

2008-12-10 Thread Richard D. Worth
See http://docs.jquery.com/Ajax/jQuery.get#urldatacallbacktype The callback function you provide to .get() is called with a first parameter 'data' (you can actually give it any name you please, the documentation calls it data). This contains the result of the get, in your case, a web page. funct

[jQuery] Re: Click event fires only once with SImpleModal

2008-12-10 Thread Eric Martin
I don't see anything that is immediately obvious... Make sure you don't have duplicate id's. On Dec 10, 12:05 pm, Ron <[EMAIL PROTECTED]> wrote: > Hi, > > So I have the following code: > >

[jQuery] Re: run a function only on "this"

2008-12-10 Thread Michael Geary
Where you have $('div.out > .inHead') or $('div.out > .outHead'), that selects every .inHead or .outHead element that is a child of *any* div.out element. That's what's causing the behavior you observed. It sounds like what you want instead is to have these select only the .inHead or .outHead ele

[jQuery] Re: run a function only on "this"

2008-12-10 Thread MorningZ
Totally untested, but makes sense $(document).ready(function() { $('div.out').hover( function(){ $(this).find(".inHead").fadeIn('100'); $(this).find(".outHead").hide(); }, function(){ $(this).find(".inHead").hide(); $(this).find(".outHe

[jQuery] Re: Need Open/Shut Function

2008-12-10 Thread David Blomstrom
I see. Thanks. On Wed, Dec 10, 2008 at 1:08 PM, Andy Matthews <[EMAIL PROTECTED]>wrote: > If you're going to have the "same" code in more than one place, you might > consider creating a function for that. Something like this maybe: > > function mouseExpand(source,target) { > $('#' + source).

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

2008-12-10 Thread Rick Faircloth
For my "success" callback (I guess that's what you call it...) I've got a series of events after an $.ajax post. Here they are: $('#contentdiv').empty().fadeIn(1000).append(response.login); $('#my_story').empty().fadeIn(2000).append(response.my_story); $('#email').empty().fadeIn(2000).append(res

[jQuery] Re: Need Open/Shut Function

2008-12-10 Thread Andy Matthews
If you're going to have the "same" code in more than one place, you might consider creating a function for that. Something like this maybe: function mouseExpand(source,target) { $('#' + source).hover(function(){ $('#' + target).show(); },function(){ $('#' + target).hide();

[jQuery] Re: Load new content, new links dont activate jquery function..

2008-12-10 Thread Max
oh, yea thanks :) now if i could just figure out how to pick out each piece of the returned page and load them into each div

[jQuery] Re: JQuery licensing questions

2008-12-10 Thread Michael Geary
That's fine under the MIT license. Don't take my word for it, read the license. It's really pretty easy to understand: http://www.opensource.org/licenses/mit-license.php Basically it just says, "You can do anything you want with this code, but you need to keep the copyright and license notice in

[jQuery] Re: Load new content, new links dont activate jquery function..

2008-12-10 Thread Michael Geary
It's just a popular convention for "put a function here, either an inline anonymous function or the name of a function". In the case of .load(), this is a callback function that will be called when the data has completed downloading. -Mike > From: Max > > Also just wondering what does "fn" mean

[jQuery] Click event fires only once with SImpleModal

2008-12-10 Thread Ron
Hi, So I have the following code:

[jQuery] vertical jcarousel + galleria + IE = bug

2008-12-10 Thread dopeless
Hi, people, i've got such a bug: i'm trying to implemen Galleria together with Jcarousel. It works fine in all browsers, but if I set the option "vertical" as true, it stops wotking in IE... all the vertical examples of Jcarousel from the official site work just ok in IE too.. so i think, the pro

[jQuery] Click event fires only once with SimpleModal

2008-12-10 Thread Ron
Hi, I have the following code: $(document).ready(function() { $('#ctl00_ContentPlaceHolder1_btnRadioHelp').click(function () { $('#ctl00_ContentPlaceHolder1_Panel3').modal(); }); }); As you can tell, the server side code is ASP.NET. I

[jQuery] Re: JQuery licensing questions

2008-12-10 Thread jason.tin...@gmail.com
Hey John, I have a question along the same lines as acesfull9. We are building "components" that easily "plugin" into a content management system we are using. We want to use JQuery to build the components. However, we also want to charge a fee to download them. It is a similar concept to acesf

[jQuery] JSON2007 and each() ?

2008-12-10 Thread Nick Cooley
Hello everyone -- Having a bit of difficulty using jQuery 1.2.6 with json2007.js. (using RSH) Here's the code $('h3').each(function(index){ $(this).attr("id",'button' + (index+1)); }) Has anyone ever seen this error (via firebug) while trying to run similar code: 'String cont

[jQuery] run a function only on "this"

2008-12-10 Thread Sero
Hello, Run into a snag, that's beyond me, hoping someone can help me get this sorted... When you hover over div.third, one of it's child divs disappears and another fades in. On RollOut it reverses. There are many instances of div.third (and it's children) on the page. I got something kindof

[jQuery] Re: change the css into JQuery format( .menu :hover > a )

2008-12-10 Thread evan
On Dec 10, 8:48 am, fony <[EMAIL PROTECTED]> wrote: > Hi all, > I'm a new guy on JQuery,  now reading the JQuery in action, > and I encounter with one issue: > .menu :hover > a { ...} > > anyone who has idea how to change into JQuery format? > or is that possible with jquery, > will be very appr

[jQuery] get a whole html page in a .getJson call

2008-12-10 Thread Bruno Prieto Reis
Hi there, I use an architecture where I call a server script and it allways returns me a json containing some commands to be executed on js. But sometimes I have to send the client pieces of html or even a complete page. Is that possible to pass a complete page into .getJSON call ? What sould be

[jQuery] Re: Load new content, new links dont activate jquery function..

2008-12-10 Thread Max
Also just wondering what does "fn" mean? does it carry some special meaning? .load(url, fn) ... sorry im really slowly trying to learn jquery :/

[jQuery] Re: jQuery tabs - anyway to fire the script prior to onload?

2008-12-10 Thread Illah
Yes, definitely a lot of KBs, but when developing we had the debate on whether to compromise on the visuals and features to improve load times. Ultimately we felt the visuals are more important than the text, so we made the call. I think those on a slower connection are used to a little lag time

[jQuery] Re: jQuery tabs - anyway to fire the script prior to onload?

2008-12-10 Thread Illah
Awesome, putting it inline after the carousel divs did the trick on a test page I created! Believe it or not I've been looking for a solution to this for appx. 6 months...admittedly it was a passive search, but I'm amazed the solution was so simple! It should only take an hour or so to tweak the

[jQuery] Re: Load new content, new links dont activate jquery function..

2008-12-10 Thread Max
Thanks for the reply, but im not exaclty sure how i go about picking a piece of the page and putting it into a div... i jsut cant seem to find out anywhere how to do this :(.. $("#nav").fadeOut("fast"); $("#content").fadeOut("fast"); $.get("http://www.site.com/mypage"

[jQuery] Re: Need Open/Shut Function

2008-12-10 Thread David Blomstrom
Yes, it does work. I just have a couple follow up questions. When I first load the page, the element that's supposed to be hidden is displayed. Is there a way to modify it so that it doesn't display until someone mouses over the yellow "MS-Free" thingy? I put a working example online at http://ww

[jQuery] Re: jQuery.uploader released: Flash based jQuery uploader

2008-12-10 Thread Methnen
Alexandre/Gilles, Whichever you feels like helping out again. Here is where I'm at. I've got everything almost exactly like I wanted but I'm getting behavior that I didn't expect. As I'm understanding when you choose a file for upload it gets added to a queue. So the queueStarted callback wou

[jQuery] Re: form create

2008-12-10 Thread Mean Mike
ahh the joy of being a newbie ... I for some reason thought that the append function was closing the form for me when in fact it was not problem solved function addFormField() { var id = document.getElementById("id").value; $("#content").append("");

[jQuery] Re: Need Open/Shut Function

2008-12-10 Thread David Blomstrom
No, it isn't working. I deleted the JavaScript that previously controlled it, then I looked for any CSS styles that might have been interfering with it. I looked at the page with the Firebug console, and it doesn't report any errors. I know I'm conneced to my JQuery scripts because some JQuery tab

[jQuery] Re: Cross domain Ajax without Proxy

2008-12-10 Thread aquaone
Tangent question: 1. If someone was to add an iframe to a page, would cookies be sent to the page within the iframe? I'm working on an app where we need to scrape content from multiple pages that all use a common login scheme that creates a cookie for a central server, despite the application bein

[jQuery] Re: Trouble with adding 'addClass' to an existing piece of Jquery code

2008-12-10 Thread Ted
I'm using mouseenter and mouseleave because when I was trying to toggle the menus with hover it wasn't working well. On the suggestion of someone else on this forum I used the bind function to call the code on the item and it's children. Now, I just need the top level item to keep it's hover stat

[jQuery] Re: Need Open/Shut Function

2008-12-10 Thread Andy Matthews
Just FYI, you can condense Hector's code into this: $(\'#MSFree\').hover(function(){ // do something on mouse over $(\'#menu2\').show(); },function(){ // do something on mouse out $(\'#menu2\').hide(); }); It's a little more compact, and easier to read. andy matthews

[jQuery] Re: Need Open/Shut Function

2008-12-10 Thread Hector Virgen
That looks good, did it work? -Hector On Wed, Dec 10, 2008 at 10:57 AM, David Blomstrom <[EMAIL PROTECTED] > wrote: > So should the code in my head section look something like this?: > > type="text/javascript"> > type="text/javascript"> > > $(document).ready(function() > { > $("#myTabl

[jQuery] Re: change the css into JQuery format( .menu :hover > a )

2008-12-10 Thread ricardobeat
That CSS is styling an anchor when hovered, what exactly do you want to convert to jQuery? changing styles on hover goes like this: $('.menu a').hover(function(){ $(this).css('color','blue'); //mouseover },function(){ $(this).css('color','red'); //mouseout }); But it's completely unnecess

[jQuery] Re: form create

2008-12-10 Thread Mean Mike
Well here is what I have tried so far the first two parts that are commented out don't work in IE but the last one does yet they are all essentially the same thing, ultimately I just need to be able to read this with ease the last version doesn't really let me do that. here is the code f

[jQuery] Re: Updating the DOM after ".load"

2008-12-10 Thread brian
The first one isn't rendering for me, but i do see the pie chart. I'm not familiar with the sparklines plugin so I can't see what the problem is. You could try something like: $(document).ready(function(){ $('.new_pie').click(function() { $('#orange').load('newcontent.htm

[jQuery] Re: Add click() event to each() loop constructor

2008-12-10 Thread Brett Alton
That was too easy. Thank you for the quick response! $(document).ready(function() { $("a[id*='activate-']").each(function(i){ $(this).click(function(){ $('#toggle1-'+i).slideToggle('slow'); $('#toggle2-'+i).slideToggle('slow'

[jQuery] Re: Add click() event to each() loop constructor

2008-12-10 Thread Brian Cherne
If I understand your question properly, it is possible. Try something like this: $(document).ready(function() { $("a").each(function(i){ $(this).click(function(){ alert(i); }); }); }); Brian. On Wed, Dec 10, 2008 at 10:29 AM, Brett Alton <[EMAIL PROTECTED]>wrote: > > Sorry, I'm new to Google Gr

[jQuery] Re: Need Open/Shut Function

2008-12-10 Thread David Blomstrom
So should the code in my head section look something like this?: $(document).ready(function() { $("#myTable").tablesorter({ widgets: [\'zebra\']} ); $(\'#MSFree\').mouseover(function() { $(\'#menu2\').show(); }); $(\'#MSFree\').mouseout(function() { $(\'#menu2\').hide(); });

[jQuery] Re: TableSorter vs CMS

2008-12-10 Thread Jimbo M
Even though I'm going WAY off topic here, I'd like to stand up and give a great round of applause to the jQuery community. I started working with jQuery a few months back, and one of the things I really like about it is the dev community's willingness and readiness to not only answer questions abo

[jQuery] Re: Need Open/Shut Function

2008-12-10 Thread Hector Virgen
The .show() and .hide() functions are on-demand functions -- they'll happen immediately when the code is called. What you need to do is observe the user's actions and show/hide the div based on what they are doing. For that, you can use .mouseover() and .mouseout with callback functions. The callb

[jQuery] Re: Setting background image does not work...

2008-12-10 Thread ricardobeat
The first one is correct, are you sure your selector is right? Check the styles tab in Firebug and you'll see that the background was indeed applied. - ricardo On Dec 10, 2:54 pm, Kris <[EMAIL PROTECTED]> wrote: > I have tried both the following but neither seem to work. > > [code] > $('#content

[jQuery] Re: Need Open/Shut Function

2008-12-10 Thread David Blomstrom
Here's a condensed version of my code... VMicrosoft-Free This website was designed So I would convert your code to this?: $('#MSFree').show(); $('#MSFree').hide(); Would I just add that to the JQuery code in my head section, and the script would then open whenever someone mouses over it? Th

[jQuery] Re: jquery.css strips out my dashes in IE

2008-12-10 Thread ricardobeat
You have to use the camelCase variants when dealing with javascript: textAlign, backgroundColor, etc; On Dec 10, 2:41 pm, MaTi <[EMAIL PROTECTED]> wrote: > Hi guys, > > i wrote the following code: > >                         var x = jQuery(id); >                         var a = x.data("styles");

[jQuery] Re: Cross domain Ajax without Proxy

2008-12-10 Thread ricardobeat
I believe you have already answered that to yourself but was hoping for a misteryous miraculous solution right? :) No, there isn't, you'll have to do it server-side. Or if you're not playing with the remote page's content use an iframe. cheers, - ricardo On Dec 10, 8:17 am, Roy M <[EMAIL PROTEC

[jQuery] Re: Need Open/Shut Function

2008-12-10 Thread Andy Matthews
You are completely entitled to your opinion, more power to you. andy _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Blomstrom Sent: Wednesday, December 10, 2008 12:29 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Need Open/Shut Function Th

[jQuery] Re: jQuery .ready() being treated as both Filo/Fifo in IE/FF

2008-12-10 Thread ricardobeat
That's interesting, what's causing IE to load the scripts in a different order? On Dec 10, 10:10 am, Comcar <[EMAIL PROTECTED]> wrote: > I've got the same code, with no errors coming up in either browser, > but different behaviours in IE7 and FF2. > > I've got 2 JS files being pulled into the pag

[jQuery] Add click() event to each() loop constructor

2008-12-10 Thread Brett Alton
Sorry, I'm new to Google Groups and was trying to reply to a post but couldn't figure out how without e-mailing the author directly[1]. I'm trying to add the click() event to the each() loop constructor. e.g. $(document).ready(function() { $("a[id*='activate-']").each(function(i){

[jQuery] Re: Need Open/Shut Function

2008-12-10 Thread David Blomstrom
That's the best example I have, as there's currently no content in my Links open/shut script. As a former teacher, I found some of the things Microsoft did to my students distasteful. I decided to speak out, and I never apologize for speaking the truth. On Wed, Dec 10, 2008 at 10:23 AM, Andy Matt

[jQuery] Re: jQuery reloads all JS files on show()

2008-12-10 Thread ricardobeat
That shouldn't happen, and I couldn't reproduce it. Could you put a simple test page up? cheers, - ricardo On Dec 10, 8:09 am, mabu <[EMAIL PROTECTED]> wrote: > Hello out there! > > We're currently implementing jQuery into our community software to > increase usability and lifestyle (effects etc

[jQuery] Re: Need Open/Shut Function

2008-12-10 Thread Andy Matthews
As a side note, I personally find your "ms free" note a little distasteful. I'm no MS fanboy, but it seem a little self-serving to post that note. andy _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Blomstrom Sent: Wednesday, December 10, 2008 12:11 P

[jQuery] Re: Need Open/Shut Function

2008-12-10 Thread Andy Matthews
jQuery has built in show() / hide() methods. The syntax would look something like this: $('#someElement').show(); $('#someElement').hide(); Where someElement was a container with an ID. andy _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Blomstrom

[jQuery] Need Open/Shut Function

2008-12-10 Thread David Blomstrom
I've been looking for JQuery examples pages and started browsing through plugins, but I haven't found what I'm looking for yet, so I wondered if anyone here could make some recommendations. If you visit my web page at http://www.geosymbols.org/World/Arizona/, you'll see a "Microsoft-Free" box in t

[jQuery] Re: a == b, but I don't understand why it doesn't...

2008-12-10 Thread ricardobeat
You can shorten that to: if ( !$('#phrases li.active').is(':first-child') ) { On Dec 10, 12:47 pm, nachocab <[EMAIL PROTECTED]> wrote: > Thanks Richard! > You saved my life :-) > > On Dec 10, 2:36 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > > > You're comparing two different (ie non-equ

[jQuery] Re: Check all and uncheck all like the one in gmail

2008-12-10 Thread ricardobeat
MorningZ code looks good, except that it doesn't check 'Check all' automatically when you check all boxes by hand. You're creating lots of jQuery objects unnecessarily: var allBoxes = $('#main_table :checkbox:not(#checkall)'); $("#checkall").click(function(){ allBoxes.attr("checked",this.chec

[jQuery] Re: Setting background image does not work...

2008-12-10 Thread MorningZ
$('#content-top').css("background-image", "url(" + src + ")"); is the correct code so either: 1) "src" is not a valid path (firebug will tell.show you this) 2) the selector isn't finding anything On Dec 10, 11:54 am, Kris <[EMAIL PROTECTED]> wrote: > I have tried both the following but neithe

[jQuery] Re: TableSorter vs CMS

2008-12-10 Thread David Blomstrom
I do, though I've never really learned how to use it. I'll have to take a closer look at it. Opera is actually my default browser, though I love Firefox for all its extensions. * * * * * On Wed, Dec 10, 2008 at 9:23 AM, Michael Geary <[EMAIL PROTECTED]> wrote: > Don't feel bad! I am also somewh

[jQuery] Re: jQuery Tabs -- Are disjointed tabs possible?.

2008-12-10 Thread ripcurlksm
Hey guys, i dont know what happened but I posted a picture/mock of what I wanted and now the photo is gone.. ?? Anyway its solved-- I wanted to have one tab on the left, then a series of tabs on the same line, but on the right side... someone suggested floating the tabs I wanted on the right and

[jQuery] Re: TableSorter vs CMS

2008-12-10 Thread Michael Geary
Don't feel bad! I am also somewhat chagrined that diffing the two versions of the page as I suggested probably wouldn't have helped in this case. :-) BTW, in addition to Firebug, do you also have the Web Developer Toolbar? It's probably the other most essential developer tool for Firebug. Go get

[jQuery] Re: "please wait while loading..."

2008-12-10 Thread fabrice.regnier
perfect! thanx a lot. days after days, i feel the power of jquery ! "may the js be with you luke" ;) regards, f.

[jQuery] Re: Prefixing all href attributes (or how to get .attr('href') to return a string)

2008-12-10 Thread Karl Swedberg
Hi Kris, The problem is that $(this) is referencing something other than the link at that point -- either some enclosing method or the window object. You can get around this by using a callback function as the second argument of .attr() : $("#content_main a").attr('href', function() { r

  1   2   >