[jQuery] Re: each() needs documentation

2009-09-14 Thread Jonathan
Did you really look for it? It's like the 2nd or 3rd link under Core. http://docs.jquery.com/Core/each#callback On Sep 14, 6:53 am, Jānis wrote: > Hello! > > I could not find each() in jQuery's documentation. Could it be > included there, please, as I was browsing all the features to find out >

[jQuery] AJAX: Display raw XML Document

2009-09-15 Thread Jonathan
I'm re-writing a test page for a RESTful web service with AJAX, and need to be able to display the XML or JSON response in a textarea or a div. I'm re-writing the web page to work off jQuery, but I'm stuck here. The best response I can get is: [Object XMLDocument] I have to set a custom Authoriz

[jQuery] Re: AJAX: Display raw XML Document

2009-09-16 Thread Jonathan
to the task, and I can't use it for this project. Disappointed. On Sep 14, 11:53 pm, Jonathan wrote: > I'm re-writing a test page for a RESTful web service with AJAX, and > need to be able to display the XML or JSON response in a textarea or a > div. I'm re-writing the

[jQuery] Re: AJAX: Display raw XML Document

2009-09-16 Thread Jonathan
That did it. I was using success which did not provide access to the xml as a string I could output, but complete works great. Thanks! Now I cane easily get the text, the HTTP Response code. On Sep 16, 1:32 pm, Mike Alsup wrote: > > I still can't find a solution to simply print out the XML respo

[jQuery] Re: AJAX: Display raw XML Document

2009-09-17 Thread Jonathan
The REST service requires custom authorization headers, parameters and various methods (GET, PUT, POST, and DELETE) which is why I can't just pass a URL. The earlier solution was better for this. On Sep 17, 5:33 am, DBJDBJ wrote: > var myRESTurl = "..." ; > > $.ajax({ >     ... >     complete:

[jQuery] Re: jQuery(document).ready() Type error on WebKit based Browsers

2009-04-28 Thread Jonathan
Try changing jQuery("#dir").attr("disabled", false) to jQuery ("#dir").removeAttr('disabled'); Also, does it give you a line number for the type mismatch that might help track it down? On Apr 28, 12:12 am, Sulfura wrote: > Hi there, > > I searched the internet for hours but couldn't find

[jQuery] Re: A selector question

2009-04-28 Thread Jonathan
IDs are supposed to be unique. You should change subgroup into a class then you can do the following to select it: $('#group2 .subgroup') On Apr 28, 4:04 pm, Dragon-Fly999 wrote: > Hi, I have the following html and would like to find out how to select > #subgroup under #group2.  I tried $(#grou

[jQuery] Re: Your download is corrupted

2009-04-28 Thread Jonathan
Wow, really? Ok here goes. jQuery is a javascript framework. It has nothing to do with Joomla or the other "site" you're talking about. The way it works is some people create widgets using jQuery to help make life a little bit easier for web developers. One of these widgets is a Superfish menu w

[jQuery] Re: re-bind to DOM after DIV content replace - ajax

2009-05-07 Thread Jonathan
Live events are probably what you're looking for. They allow you to bind events to dom nodes that don't exist yet. http://docs.jquery.com/Events/live However they don't work for change.. you would have to refactor your code a bit to use 'click' On May 7, 7:00 am, vmoravek wrote: > Hi All, > I

[jQuery] Re: Refresh Element After Changing Style

2009-05-11 Thread Jonathan
How are you changing it's style? Are you updated it's classname or doing something else? Also a bit of example code that demonstrates your problem would help in debugging it. On May 11, 4:16 pm, PF wrote: > Hi everyone: > > I am attempting to change the style after the user has loaded the page >

[jQuery] Re: Bassistance Tooltip Transparent Text IE7/IE8 problem

2009-05-13 Thread Jonathan
It's gotta be a cascading style getting applied that IE's debugger misses, I would install firefox and firebug and see if it's also listing color:black when it's clearly not. On May 13, 11:52 am, Pappy wrote: > I'll give this one quick bump... anyone have any ideas what's going > on? > > On May

[jQuery] Re: Matching Columns with JQuery

2009-05-15 Thread Jonathan
The main jQuery file need to be included before you include any scripts. Reorder your script tags to put jQuery.js before jquery.brenelz.equalHeight.js. Also I would recommend using 1.3.2 version of jQuery. On May 15, 8:05 am, "mylessincl...@googlemail.com" wrote: > Just a quick update. I've m

[jQuery] select all a elements whose class attribute does not contain 'myclass'

2009-05-21 Thread jonathan
$('a[class*=myclass]') selects all a elements whose class attribute contains 'myclass', how do I do the opposite?

[jQuery] Re: IE8 Does Not Work

2009-05-26 Thread Jonathan
It works in IE8. What errors are you getting? Need more details. On May 26, 1:44 pm, rickmataka wrote: > I was wondering if there was an update for validate plugin because it > does not work in IE8 > and even though i do server side thats sucks > > Thanks > Rick

[jQuery] performance of html(val)

2009-05-26 Thread jonathan
I am constructing a large table on the fly and add it to the dom using html(val). It takes about 6 seconds. I am wondering if there's any practice that would speed up this process? thanks!

[jQuery] does selectors $ cache?

2009-05-26 Thread jonathan
does selectors cache? for example, if I do $('#myid') twice, does it search through the document twice for myid?

[jQuery] Re: Tablesorter is not enabled on my page

2009-05-27 Thread Jonathan
the ID 1 is invalid. See http://www.w3.org/TR/REC-html40/types.html#type-name On May 27, 10:26 am, bayadmin wrote: > Hello, I am trying out the Tablesorter in Wordpress 2.7.1  to make a > membership list sortable. For some reason the sortable features isn't > being enabled (or at least visible

[jQuery] [validator] IE8 issue with empty Select elements

2009-05-27 Thread Jonathan
875 of jquery.validate.js. > > URL:http://www.ixcape.com/staging/account/create.php > > On May 26, 5:34 pm, Jonathan wrote: > > > It works in IE8. What errors are you getting? > > > Need more details. > > > On May 26, 1:44 pm, rickmataka wrote: > > > > I was won

[jQuery] Re: [validate] IE8 issue with empty Select elements

2009-05-27 Thread Jonathan
Hmm.. threw away the [validate] in the subject. Trying again. On May 27, 4:28 pm, Jonathan wrote: > I took a look at the URL you posted Randall and it looks like it > errors out when trying to validate an empty select box. Updating the > subject to reflect this. > > On May 27, 12

[jQuery] static slider with colorscale

2009-05-28 Thread jonathan
I want to use a gui that's used to show a score from 1 to 10, it looks like a slider except that it's not interactive, when the score is 1, the slider's knot is at the left end of the scale, and right when it's 10. The color also intensifies when the score increases. Does such gui exists? If

[jQuery] Re: Dynamic loading -- newbie question

2009-05-29 Thread Jonathan
Due to .load being Asynch line 10 will execute before 5-8(those are inside a callback) so it makes sense the contents won't be inside the Dom yet. On line 8 what do you mean the 'problem arises here!'. Was the proper data logged to the console, can you not see the contents when you use $ (tag).fi

[jQuery] Re: Validate

2009-05-29 Thread Jonathan
Try removing the trailing comma on the confirmpassword object. confirmpassword: { required: true, minlength: 5,

[jQuery] variable validation rules for the same input field depending on other fields

2009-05-31 Thread jonathan
I have the following html, field xxx requires a number from 0 to 100 when percentage is selected, and 0 to inifinity when dollar is selected. what's the best practice to setup validation for this? the key is to control the maximum value. I have tried depends expression in a max rule, but it doe

[jQuery] Re: jquery dialog - close if clicking outside dialog area?

2009-06-02 Thread Jonathan
$(document).bind('click', function() { $('#dialog_id').dialog('close'); }); Something like this should do it, although you're going to want to put some checks to test if you're clicking on the something within the dialog so it doesn't close erroneously. And you may also want to only bind the ev

[jQuery] Re: jQuery in OfficeLive

2009-06-03 Thread Jonathan
We would need more details or a demo page showing the problem. Did you make sure you're including the base jQuery.1.3.2.js properly? If you don't know how to do that download and install firebug for Firefox and use it to inspect the Script tag to see if it was included. On Jun 3, 11:45 am, GCasa

[jQuery] Re: Using Javascript and stylesheets in an element with injected HTML

2009-06-03 Thread Jonathan
The HTML that was injected with load should automatically pick up any styling information. However any JS binds won't work on the injected content without a bit of tweaking. Do you have a demo page where we can see the problem? Also, look up the Live() function in the jQuery docs. This will allow

[jQuery] Re: Using Javascript and stylesheets in an element with injected HTML

2009-06-04 Thread Jonathan
7;m actually an Actionscript native. > > Click on the 'Email Options' link at the top right, a modal window > opens. Close this window. > > Click on any row, injected HTML appears in a row below. Click on > 'Email To...' link in the injected HTML element. This i

[jQuery] a mortgage and refinance calculator built in jquery

2009-06-08 Thread jonathan
please check out this unified mortgage calculator http://www.mookal.com it's build on jquery, flot, etc. Requires no hits to the server at all, 100% ajax. all advises are welcome. thanks!

[jQuery] copy and paste event

2009-07-01 Thread jonathan
I have a text input box, is there a way to detect a copy and paste event into the box? keyup, focus doesn't really do it. thanks

[jQuery] removing submitHandler

2009-07-02 Thread Jonathan
I have 4 buttons in a form. Save, Back, Submit, Confirm. The submit does form validation and has a submitHandler and invalidHandler. If no errors, a modal Confirm screen is shown with another button of Confirm. This button does the actual post to the form to complete the process. The Save and Ba

[jQuery] input validation

2009-07-02 Thread jonathan
is there a way to prevent user from adding more characters into a text input based on a validation rule(eg. you entered more than n words, you can't enter more, but you can delete or edit)? I think I'll have to programmatically delete the extra letter(s) that user just input somehow if the additio

[jQuery] class inheritance

2009-07-02 Thread jonathan
var A=function(){ }; $.extend(A.prototype, { init:function(){ alert('A init'); } }); var B=function(){ }; $.extend(B.prototype,A.prototype,{ init:function(){ alert('B init'); } }); var p=new A(); p.init(); var x=new B(); x.init();

[jQuery] [jCarousel] resizing slow with a fluid height

2008-12-12 Thread Jonathan
Hey, I'm using the jCarousel to fill a page vertically, while the remains fixed. In order to do this I wrote a function that gets the height of the browser window and then sets the height of the carousel to the browser. var getHeight; function setCarouselHeight() { getHeight = 0;

[jQuery] Re: resizing slow with a fluid height

2008-12-16 Thread Jonathan
Has anyone had the chance to check this out? I'd really appreciate it. On Dec 12, 4:24 pm, Jonathan wrote: > Hey, > I'm using the jCarousel to fill a page vertically, while the remains > fixed. In order to do this I wrote a function that gets the height of > the browse

[jQuery] Re: Undefined function

2009-03-10 Thread Jonathan
I don't think it's valid to have an Element ID that starts with a number. Try prefixing it with something, e.g $("#UIElement_" + currentUI); surreal5335 wrote: > I have been having trouble trying to define a function. I've tried > every idea I have come across on the internet but nothing worked.

[jQuery] Re: Simple toggle between slide up slide down and changing paragraph html contents not working...

2009-03-13 Thread Jonathan
.each() should do what you want. It will iterate through each element that has the class "Item" and will set "this" to that individual element. So no $(this) will not be the same as $(.item) e.g with this markup $(".item").each() will execute twice with "this" being the DIV then the SPAN.

[jQuery] Re: unbind all events from jquery 1.3.2

2009-03-16 Thread Jonathan
jQuerys selector engine is browser independent. So $("*") actually refers to all elements and works in all browsers (this is why we love it). But I would be careful. $("*").unbind() can be slow. On Mar 16, 11:50 am, redcom wrote: > isn't this ie specific? > > On Mar 16, 8:50 pm, MorningZ wrote

[jQuery] Re: JavaScript Loading Question

2009-03-16 Thread Jonathan
Since the browser will always have the Markup and CSS before the javascript is finished it's a pretty typical approach to avoid seeing stuff before the JS is done, although having a simplified version of your page that is accessible to users without JS enabled (for instance all the tabs visible f

[jQuery] Re: Flash within a Tab | Always reloads when you revisit the tab

2009-03-17 Thread Jonathan
I'm guessing you use display:none to hide the tabs. I think that forces the flash object to refresh. Try a different technique to hiding your tabs and see if that helps. On Mar 17, 10:11 am, Sridhar Gowda wrote: > Hi All, > > I have jquery tabs, where I have a flash movie under tab1. > User wil

[jQuery] Re: Simple alert inside each(function.... not working

2009-03-17 Thread Jonathan
Alerts work inside .each() just fine. There has to be another error in your code. I just copy and pasted that snippet into a new page and marked a a few LIs as jqtip and it worked perfectly. Are you positive there is nothing else inside the each() besides the alert? On Mar 17, 5:36 pm, Andy789

[jQuery] Re: compare jQuery objects

2009-03-19 Thread Jonathan
Object comparisons aren't really I think what mkmanning was saying is each time you reference $ ('#home') it's going to call jQuery to create a new Object. So to be honest I think even ($ ('#home') == $('#home)) would return false. Don't try and compare the jquery objects together. Use the ID or

[jQuery] Re: How to use in an IFrame?

2009-03-31 Thread Jonathan
Don't use IFrames, try and redesign your page to just use AJAX and load the response into a div instead. If for whatever reason you are locked into an IFrame you would need to include a script tag for jQuery in the IFrame in order to use jQuery since it's basically a new page within your page.

[jQuery] Re: A general Javascript question: duplicate IDs in a document?

2009-03-31 Thread Jonathan
That approach is only more efficient because the original design was lacking. Also, you can just use the starts(^) attribute selector $("div [id^='event-phase']") to retrieve all IDs that start with 'event-phase'. You don't get to make up new meaning for existing attributes because you think it s

[jQuery] Re: jQuery/ HTML help needed

2009-03-31 Thread Jonathan
ID's have to start with a letter like the validator and james said. You didn't really explain why, you just showed a block of code. I think I get what you're trying to do but you really shouldn't be using IDs like that. ID's are a unique way to IDentify an element, not to get tricky with linking

[jQuery] Re: Using JQuery effects in IE7??

2009-04-01 Thread Jonathan
A bit more details would help plus a link to see it in action. Are you seeing errors or are the effects just not firing? On Apr 1, 8:10 am, "for...@gmail.com" wrote: > I've created my site and it looks great in Firefox.. > > however in IE7 it just wont work, i'm not bothered about getting it > w

[jQuery] Re: All div content showing up in jQuery Tabs

2009-04-03 Thread Jonathan
Wow. People are giving up their free time to try and help you and this is the response? I went to http://www.jqueryui.com/demos/tabs/#default copied the code exactly and it works perfectly. The problem IS YOUR MARKUP like others have stated to obviously deaf ears. You are monkeying with the marku

[jQuery] Re: apply method to new objects

2009-04-03 Thread Jonathan
The .live event may be what you're looking for. http://docs.jquery.com/Events/live#typefn On Apr 3, 4:38 am, neville34 wrote: > hey > > I am having trouble applying thckbox and other scripts to newly > created objects which are created when an ajax call is made. i think > the problem is because

[jQuery] Re: All div content showing up in jQuery Tabs

2009-04-03 Thread Jonathan
was broken and it worked perfect. I also took both of your examples and with a little tweaking of the IDs to follow the example it worked perfectly. On Apr 3, 10:58 am, expresso wrote: > Dude, where is my mark-up wrong?  My   do have matching IDs.  Where are you > NOT seeing this. > &

[jQuery] Re: All div content showing up in jQuery Tabs

2009-04-03 Thread Jonathan
gt; you remove those styles in the demo would break this?  No way would I infer > that. > > I was focusing on the mark-up, not the CSS which is also what the docs are > doing. > > expresso wrote: > > > Dude, where is my mark-up wrong?  My   do have matching IDs.  Where are &

[jQuery] Re: newbie question

2009-04-07 Thread Jonathan
would make $bfa a variable representing > "jQuery.noConflict()" and eliminate the need > to have to write out jQuery.noConflict() or > $.noConflict(), right? > > Rick > > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On &g

[jQuery] Re: newbie question

2009-04-07 Thread Jonathan
Also, you should only ever have to call noConflict() once, right after you include the jQuery.js file. On Apr 7, 12:28 pm, Jonathan wrote: > Basically, although $bfa is a pointer to jQuery, Not jQuery.noConflict > (); > > so if you wanted to call noConflict again you wou

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Jonathan
I know global variables seem convenient but they are really quite evil. Once your project grows to even a moderate size they become a nightmare to deal with violate a number of good design tenants, you lose any modularity the code might have had and will run into namespace conflicts (No matter how

[jQuery] Re: newbie question

2009-04-07 Thread Jonathan
$ is simply an alias to jQuery(). jQuery.noConflict() removes the $ alias so other frameworks don't throw a fit. $bfa = jQuery.noConflict() simply assigns $bfa to jQuery(). The $ tends to confuse people at first but it's just a function alias, It's just a shortcut for jQuery, thats it, nothing

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Jonathan
Check out the jQuery data plugin. It's not going to give you the ability to template it like coldfusion does but it'll mimic session variables pretty well and may work well enough for your needs http://docs.jquery.com/Internals/jQuery.data On Apr 7, 1:22 pm, "Rick Faircloth" wrote: > I am usi

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Jonathan
Oops, think i linked the wrong page. http://docs.jquery.com/Plugins/Metadata/metadata On Apr 7, 1:34 pm, Jonathan wrote: > Check out the jQuery data plugin. It's not going to give you the > ability to template it like coldfusion does but it'll mimic session > variables prett

[jQuery] Re: Simple way to reliably get the title bar text in IE and Firefox..

2009-04-07 Thread Jonathan
Like you suspect the title is probably getting set by javascript after it's loaded and you're just accessing it too soon. Where in your code are you doing 'var txt = docment.title' On Apr 7, 2:57 pm, "Michael Geary" wrote: > document.title *is* the way to do that. You have a case where it doesn'

[jQuery] Re: Simple way to reliably get the title bar text in IE and Firefox..

2009-04-07 Thread Jonathan
gt; (I'm pretty new to Javascript, don't even have a debugger or anything, > just Firebug.) > > Thanks for your thoughts! > > -dave > > On Apr 7, 6:27 pm, Jonathan wrote: > > > Like you suspect the title is probably getting set by javascript after > > it

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-10 Thread Jonathan
'mouseover.dc' is just a namespaced event. It allows you to unbind only that specific mouseover later by calling $boxes.unbind ('mouseover.dc'). It's a useful way of keeping track of events. On Apr 10, 4:17 pm, Lwangaman wrote: > Ok first of all thanks for taking interest! > Then, I've tried go

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-10 Thread Jonathan
Yep. Neat eh. On Apr 10, 4:54 pm, jay wrote: > So if you have multiple mouseover events binded to the same DOM > element you may selectively unbind them? > > On Apr 10, 7:26 pm, Jonathan wrote: > > > 'mouseover.dc' is just a namespaced event. It allows you t

[jQuery] Re: Error with BlockUI: 'parentNode' is null or not an object

2009-04-14 Thread Jonathan
http://www.malsup.com/jquery/block/#page On Apr 14, 4:26 pm, Mike Alsup wrote: > > Thanks for the replies. I found out that the problem has to do with > > the fact that The BlockUi plug-in actually removes the passed in node > > from the DOM. At least I know what's going on now and am able to >

[jQuery] hover and/or fadeTo breaking layout in IE 6 and 7

2009-04-19 Thread Jonathan
rches have yielded very little about this - the closest thing I've come across is an offsetWidth bug that doesn't quite fit the problem I'm having, and the solution doesn't work in my case. Many thanks~ Jonathan

[jQuery] Re: hover and/or fadeTo breaking layout in IE 6 and 7

2009-04-19 Thread Jonathan
Sorry, forgot to include a link. You can see the IE bug here: http://themes.nimblehost.com/preview/sleek/test/ On Apr 19, 10:46 pm, Jonathan wrote: > I'm using jquery to add a smooth fade effect when users mouse over a > menu item. The site has split navigation, with this effect

[jQuery] Re: hover and/or fadeTo breaking layout in IE 6 and 7

2009-04-19 Thread Jonathan
Anyone come across something like this before? I understand it's easy enough to keep IE 6/7 from implementing the script -- if($.browser.msie && $.browser.version < 8) return; -- but I'd like to get IE working with this if possible. On Apr 20, 1:02 am, Jonathan wrot

[jQuery] Re: hover and/or fadeTo breaking layout in IE 6 and 7

2009-04-20 Thread Jonathan
Figured this out - the problem wasn't jquery or hover and/or fadeTo, rather the infamous IE Guillotine Bug. More info and how to fix located here: http://www.positioniseverything.net/explorer/guillotine.html Cheers~ On Apr 20, 2:09 pm, Jonathan wrote: > Anyone come across something l

[jQuery] Re: jquery combobox

2009-04-23 Thread Jonathan
The @ was deprecated in 1.2. Search the script for the @ sign and remove it. On Apr 23, 9:54 am, Langras wrote: > Hello all, > > I used thishttp://jquery.sanchezsalvador.com/samples/example.htm > script for a while but now i use a newer version of jquery and it > doesnt work anymore > i get thi

[jQuery] Re: Loading before dom = ready - Best Practices.

2009-04-23 Thread Jonathan
In a perfect world the things out of your control (ads, feeds, etc) would themselves be loaded after domReady into their placeholder markup. A slow loading Ad shouldn't be able to cripple the site while it loads, but anyway to expand on your topic. 4) Set a class on the Dom elements called 'jscri

[jQuery] Re: New Google Browser announced

2008-09-03 Thread Jonathan
For those interested in more information on Chrome, checkout their comic book here: http://www.google.com/googlebooks/chrome/ It does a nice job of explaining some of the thinking behind Chrome. I have been playing around with it since yesterday and it's great! Super fast and super simple.

[jQuery] Re: Can jQuery do it again and again?

2008-09-27 Thread Jonathan
If you used each then it should repeat for each DIV with the class of box on the page. $(document).ready(function(){ $("div.box").each(function() { $("div.box> *").wrapAll(''); $("div.box").append(''+''+''+''); }); }); What exactly are you trying to achieve though?

[jQuery] How do I remove/delete a function?

2008-02-14 Thread Jonathan
Maybe I'm missing something, but how would I remove a jQuery function after it's no longer in use? I'm using an ajax driven site, so the page never is reloaded, so do all the jQuery functions I define just stay there? Does this cause memory issues? Is there a way to remove it after it's not longer

[jQuery] Re: innerFade and delay? or Cycle and drupal 5.x ?

2008-05-28 Thread jonathan
On May 29, 9:20 am, "Mr.Morton" <[EMAIL PROTECTED]> wrote: > Does anybody have Cycle running with Drupal/Jquery ? I've got Jquery cycle working on Drupal 5.7, using: Drupal 5.7 Jquery Update module 5.x-1.0 jquery.cycle 2.20 It's working fine using the Fade transition and paging on Firefox and Sa

[jQuery] Re: plugin issues

2007-04-09 Thread Jonathan Sharp
Ariel, What version of jQuery are you using? Cheers, -Jonathan On 4/8/07, Ariel Jakobovits <[EMAIL PROTECTED]> wrote: I am working with jdMenu. It works great on FF, throws an "invalid argument" in IE. The example on the site (http://jdsharp.us/code/jQuery/plugins/jdMenu/

[jQuery] Re: ANNOUNCE: New jQuery Book Available for Pre-Order!!

2007-04-09 Thread Jonathan Chaffer
ferings. Here's one with the same cover price: http://www.packtpub.com/drupal/book They tend to offer the eBook either separately or bundled with the print edition at a reduced cost. -- Jonathan Chaffer Technology Officer, Structure Interactive

[jQuery] Re: table paging and sorting together

2007-04-09 Thread Jonathan Chaffer
owser. -- Jonathan Chaffer Technology Officer, Structure Interactive

[jQuery] Re: table paging and sorting together

2007-04-10 Thread Jonathan Chaffer
On Apr 10, 2007, at 16:05 , Paul Malan wrote: Jonathan, thanks for taking time to reply with an excerpt from the book. I have to assume that for potentially large recordsets my best bet is to hand off to the server for sorting/paging rather than storing thousands of rows browser-side. Would

[jQuery] Re: How to load picture after picture

2007-04-10 Thread Jonathan Sharp
Another approach would be to print out the images like: echo ""; Then the following jQuery code: $(function(){ $('img.photo:first').show(); $('img.next').bind('click', function() { $('img.photo:visible').hide().next().is('img.photo').show(); }); $('img.prev).bind('click', funct

[jQuery] Re: How to load picture after picture

2007-04-11 Thread Jonathan Sharp
On 4/11/07, wyo <[EMAIL PROTECTED]> wrote: On Apr 10, 11:58 pm, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote: > Another approach would be to print out the images like: > echo " class=\"photo\">"; > Doesn't this load all the pictures righ

[jQuery] Re: How to load picture after picture

2007-04-12 Thread Jonathan Sharp
On 4/12/07, wyo <[EMAIL PROTECTED]> wrote: Sorry, was to fast with posting, here are more questions. On Apr 12, 12:25 am, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote: > > You could do that too... here's another option: > > echo ""; > That

[jQuery] Re: Displaying a rotated image

2007-04-13 Thread Jonathan Sharp
You have to do that in image manipulation software. When your digital camera takes the photo, most store an orientation flag that programs like iPhoto are smart enough to read and rotate the image for you automatically. In the raw file though the image is still incorrectly stored. There isn't a w

[jQuery] jQuery 1.1.3a / 1.2 ?

2007-04-19 Thread Jonathan Sharp
What's the release status for 1.1.3a (or 1.2)? We're in need of support for expanded namespaces (eg. being able to select foo:bar via $('foo\\\:bar') ) Cheers, -Jonathan

[jQuery] Re: jQuery HTML Documentation Generator

2007-04-25 Thread Jonathan Sharp
I belive there's a java version of one in SVN that they use currently. Take a look at the ant docs target in the build.xml -js On 4/25/07, Matt Kruse <[EMAIL PROTECTED]> wrote: The "jQuery HTML Documentation Generator" at http://jquery.bassistance.de/docTool/docTool.html seems like a great t

[jQuery] Re: behaviors?

2007-04-26 Thread Jonathan Chaffer
On Apr 26, 2007, at 17:18 , Starbow wrote: I was just watching the video of John Resig at Yahoo, and in one slide he talked about behaviors, as jquery bindings that act like css rules and apply themselves to html fragments asynchronously loaded into the page. The code sample looked like this:

[jQuery] Re: behaviors?

2007-04-26 Thread Jonathan Sharp
lick", function() { $(this).load("menu.html"); }); Cheers, -Jonathan On 4/26/07, Jonathan Chaffer <[EMAIL PROTECTED]> wrote: On Apr 26, 2007, at 17:18 , Starbow wrote: > I was just watching the video of John Resig at Yahoo, and in one slide > he talked about behaviors,

[jQuery] Re: behaviors?

2007-04-27 Thread Jonathan Sharp
Could you see this possibly being built directly into the browser or becoming part of the JavaScript/DOM standard? -js On 4/26/07, John Resig <[EMAIL PROTECTED]> wrote: .behavior() does not exist - but it could (without too much effort) the current solution with jQuery is shown in the previo

[jQuery] Re: Estimated 1.1.3 release date?

2007-04-27 Thread Jonathan Sharp
Typically X.Y.Z versioning follows the following: X = Major release (total rewrite, huge codebase changes, usually not backwards compatible) Y = Minor releases, some isolated backwards compatibility issues, new features release Z = Bug fix releases or "point releases". Typically no backwards comp

[jQuery] $(...).children() vs $().childNodes()

2007-04-27 Thread Jonathan Sharp
So we have a situation where we need to clone all of an elements childNodes (including whitespace & text nodes). The code below is an attempt to add a childNodes() function that behaves similar to children() except for it includes the childNodes. Comments/houghts/suggestions/feedback? $.fn.child

[jQuery] Re: Chaining methods

2007-05-02 Thread Jonathan Sharp
//plugin jQuery.fn.toggleText = function (evalText1, evalText2){ $(this).html(($(this).text() == evalText1)?evalText2:evalText1); } jQuery.fn.toggleText = function(txt1, txt2) { return this.each(function() { $(this).html( $(this).text() == txt1 ?

[jQuery] jQuery Site: EverBank.com

2007-05-03 Thread Jonathan Sharp
Spotted in the wild: http://everbank.com/ -js

[jQuery] Re: Pass objects to Ajax Success

2007-05-03 Thread Jonathan Sharp
Hi Jeff, You just need to use a closure. Outside your ajax call do $t = $(this); and then you can reference $t inside of your anonymous function. See below... Cheers, -js $(document).ready(function() { $("table > tbody > tr").hover(function(){$ (this).css("backgroundColor", "#de7121")}, f

[jQuery] Re: ANN: jQuery-Powered Sites: The List Continues to Grow

2007-05-04 Thread Jonathan Sharp
Here's another one I've neglected to mention (I even built it!) It uses thickbox http://www.sharpequestrian.com -js P.S. There's a photo of me on the photos page with my horse Micah. On 5/4/07, Rey Bango <[EMAIL PROTECTED]> wrote: > > > Hi Kevin, > > One of the things that we're trying to do o

[jQuery] Re: jquery.com - hacked?

2007-05-06 Thread Jonathan Chong
shrules.com www.learningjquery.com On May 6, 2007, at 4:42 PM, Matt Stith wrote: for some reason im leaning toward dreamhost, they have a bad rep when it comes to these things -- Jonathan Chong http://jonathanchong.com/ http://arsenal-mania.com/

[jQuery] Re: Firebug shows Too Much Recursion errors after clicking OK in alert box

2007-07-25 Thread Jonathan Sharp
This could also be written as: $('a').click(function() { if ($(this).parents('#nav').size() == 0) { alert('...'); return false; } }); -js On 7/25/07, Erik Beeson <[EMAIL PROTECTED]> wrote: You don't need to wrap the parameter to not in $(...). Maybe try: $("a").not("#nav a

[jQuery] Re: switch between two class - Basic Issue

2007-07-25 Thread Jonathan Sharp
The issue lies in that you're trying to bind your click event to .collapsibleopen at document ready time. The .collapsibleopen class won't be available until the user clicks to have it added. I think below is more of what you're after... $('.collapsible .collapsed .collapsibleopen').bind('click',

[jQuery] Re: switch between two class - Basic Issue

2007-07-25 Thread Jonathan Sharp
Do you have a url to a sample page we could look at? -js On 7/25/07, Mario Moura <[EMAIL PROTECTED]> wrote: Thanks Jonathan Almost but still not working $('.collapsible .collapsed').bind('click', function() { $(this).toggleClass('collapsible').

[jQuery] Re: Are there any particular ways to debug jQuery code?

2007-07-27 Thread Jonathan Sharp
Why simply write bug free code! -js On 7/26/07, cfdvlpr <[EMAIL PROTECTED]> wrote: > > > Firebug is awesome for debugging your Jquery code using firefox. But, > how do you debug problems that occur in IE and IE only? > >

[jQuery] Re: Help with book example - alternating row colors

2007-07-30 Thread Jonathan Chaffer
ndex % 2 == 1){ $(this).addClass('bottom-border'); }; That will add the "bottom-border" class to the second (last) item of each group. You could insert this clause right after the existing .addClass() line. -- Jonathan Chaffer Technology Officer, Structure Interactive

[jQuery] Re: Two words for Jquery

2007-08-01 Thread Jonathan Sharp
super fly. On 8/1/07, Richard D. Worth <[EMAIL PROTECTED]> wrote: > > On 8/1/07, Mario Moura <[EMAIL PROTECTED]> wrote: > > > > BJ AJ > > > > > > (Before JQuery) (After JQuery) > > > Meet BJ :-( > > Meet AJ :-) > > - Richard > > >

[jQuery] Re: Check this, if you've got the time

2007-08-02 Thread Jonathan Sharp
I'd recommend "booglyboogly" since that's what happens when you click on the "X" -js On 8/2/07, Paul Caton <[EMAIL PROTECTED]> wrote: > > > That's neat! > > Now you need a good name for it. Come to think of it, it looks a bit > like table tennis - maybe you could call it "Ping-Pong", something l

[jQuery] Re: :eq vs :nth?

2007-08-04 Thread Jonathan Chaffer
- thus they will be "deprecated". Is that not correct jQuery gurus? They'll be deprecated in 1.1.4, removed in 1.2. And really easy to re-add via a plug-in! -- Jonathan Chaffer Technology Officer, Structure Interactive

[jQuery] Re: new Plugin every: jQuery-oriented setTimeout and setInterval

2007-08-14 Thread Jonathan Sharp
I'm going to throw my suggestion in: $(...).oneTime(); $(...).everyTime(); $(...).stopTime(); Cheers, -js P.S. I approved your account so there shouldn't be a delay anymore. On 8/14/07, Blair Mitchelmore <[EMAIL PROTECTED]> wrote: > > > Maybe it's just my jealousy of pattern matching and mult

[jQuery] Re: Do my emails make it to the list?

2007-08-15 Thread Jonathan Sharp
The reason there's a delay is that new members posts are moderated to fight spam. After x number of "valid" posts the moderation restriction is removed. I've removed this restriction for your account. Cheers, -js On 8/15/07, barophobia <[EMAIL PROTECTED]> wrote: > > > I can see my emails in the

  1   2   3   4   >