[jQuery] jquery session handling versus PHP
I'd vote for letting PHP do the session management. That way all of that load is on the server (which is made for handling it). Then you can, at any time, reference a session with AJAX. It's what I do on my cookbook site. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of
[jQuery] More DOM Query Speed Tests
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hey everyone,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I have results of a few more speed tests that I ran this evening at<DIV><A href="http://test.learningjquery.com/speed-test.htm">http://test.learningjquery.com/speed-test.htm</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Method: I clicked 10 times on each query in Firefox 2.0 and Safari 2.0.4 (See HTML source for
[jQuery] JQuery driven site
That is a great way to learn jQuery. Create an actual web app that has could be useful. I look forward to any updates or improvements as you continue developing. Thanks for sharing. -Marshall -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Stefan Holmberg Sent: Tuesday, December 19, 2006 10:55 AM To: discuss@jquery.com Subject: [jQuery] JQuery driven site fellows, Finally my first JQuery driven site has been released - http://www.findfreefonts.net
[jQuery] Fix: ExternalInterface breaks jQuery in firefox 2
Hi, We're developing music service using flash to stream music. jQuery is tugging away at the core. I ran into trouble with firefox 2 - all of a sudden almost every jquery call would break after playback had started. Googling yielded very few results, but of the three I found, this was the most helpful. http://www.nabble.com/forum/ViewPost.jtp?post=7295186 Anyway, here's the actual problem, and it's not really jQuerys fault <snippet> function test(){ var a = "text"; var isString = (a.constructor==String);
[jQuery] JQuery driven site
Not bad Stefan... The site works fine, but you have some UI issues that you might want to deal with. For example, the search form takes up fully half of the vertical width of the screen. I have to scroll to see ANY of the fonts that come back in my search. May I suggest putting the search inside a hidden DIV that shows up when you click on a "Search" button? Then the fonts show up all the way at the top, but people can search whenever they need to. Also, your checkboxes need some help...they're very
[jQuery] plugins: writing methods vs. objects
<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>When writing plugin, when is best to write simply methods, as opposed to an object with helper functions? Not sure when to use jQuery.foo versus jQuery.fn.foo Thanks.<span style="font-family: monospace;"> </span></div></div> __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam
[jQuery] $.getJSON - global scope
Hi, Just wondering whether it's possible to get the $.getJSON -generated object into local scope? Something along the lines of this: $(document).ready(function(){ createObject(); appendObject(); }); function createObject(){ $.getJSON('animal.js',function(json){ animal = json; }); } function appendObject(){ $("body").append(animal.type); } -------------8<---------------8<----------------------- my json: { "type" : "cat" } -------------8<---------------8<-----------------------
[jQuery] Speed Tests
> The first thing my code does is test how long it takes to run a
[jQuery] Speed Tests
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=078284017-19122006><FONT face=Arial color=#0000ff size=2>My results:</FONT></SPAN></DIV> <DIV><SPAN class=078284017-19122006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=078284017-19122006> <TABLE> <TBODY> <TR> <TD><A class=test href="http://yehuda.jquery.com/jq_test.html#">$('body')</A></TD>
[jQuery] NEWS: jQuery in Ajaxian
I'm happy to announce the jQuery project has received some great press via Ajaxian. http://ajaxian.com/archives/jquery-updates-104-documentation-and-people Its awesome to see jQuery getting some great exposure on this top-notch Ajax news site. Rey _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Speed Tests
In the vein of the discussion we've been having on this list (and, of course, heavily inspired by the first speed test), I've created a more extensive speed test that tests a bunch of similar cases. A word of warning: your browser will not be available for a good 30 seconds or so while the test is running, but it will not lock up. The first thing my code does is test how long it takes to run a $(".class") query, and bases the number of attempts for each test on the speed of that query (not a perfect
[jQuery] plugins: writing methods vs. objects
I've been curious about this myself for jquery in general... I looooove OO programming and tend to always try to use it (including sticking with PHP objects, etc) unless terribly unnecessary; is there a compelling reason to NOT use objects whenever possible in jquery, since objects provide such marvelous encapsulation/clean code/etc? thanks, --kim --- Anaurag Gupta <anauraggupta@yahoo.com>
[jQuery] Question about remove();
> I have the need of removing list items from List A and > then adding them to List B. I'm using the .remove() > function to remove the elements from the DOM. The API > says very urgently that the remove() method doesn't > remove the items from the jQuery object, so that I can > use them later. > How exactly do I go about "using them later"? I think something like this: $("#listA").find(".chosen").remove().appendTo("#listB"); If you are targeting just one node as the example above, the remove() isn't
[jQuery] (no subject)
<div>Ok i'm a newbie in jquery and i'm trying to write function that will replace all <span class="y"><!-- --></span> element's content with current year.</div> <div> </div> <div>My function looks like this:</div> <div> </div> <div>$(function(){ $(".y").ready(function() { var today = new Date(); var year = today.getFullYear(); document.write(year); });</div> <div>});<br clear="all"></div> <div>but when i run it - it replaces all the document with current year. In which place my mistake is
[jQuery] Position.clone in jquery
I've recently moved from prototype to jquery, and wonder if there's something simmilar to Position.clone. That is, match an arbitrary elements position exactly, (with all the offsets and parents and so on, it's more to it than just match top and left attributes) I googled a bit and came up with a test case on the jquery side for the prototype code, which I found somewhat interesting. Andreas _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] oneclick working in Firefox but not IE
Hi, I'm binding an event with oneclick and it's working just fine in firefox, but the contents of the code actually fires itself in IE like an .each instead of binding it to the click event. Here's the context: I've got a page that will list an address, with a little add/remove button. When the button is on the add state, it will add a marker to a google map and bind the remove marker command to it on a click (then change the state to "remove". In IE, when the add button is clicked, it will add the
[jQuery] Finding child element with no class
Hi folks, I am trying to use the InnerFade plugin on a site I am developing using Drupal. In it, I have a block that lists up to the last 5 stories posted. Due to the way Views work in Drupal, I am not able to add a class to the UL element directly, the code looks like below: <div id="block-views-last_5_stories" class="block block-views"> <h2>Last 5 Stories</h2> <div class="content"> <div class="view view-last-5-stories"> <div class="view-content view-content-last-5-stories"> <div class="item-list">
[jQuery] Hide div only if no child checkbox is selected
Hi I have a div element full of checkboxes that gets hidden on page load via $(document).ready(function() {$('#testDiv').hide(); }. This works fine, but what I really want to do is to only hide the testDiv if none of the checkboxes within it have a 'checked="checked"' attribute. All I've managed to do so far is to hide/not hide the checkboxes that are checked - not quite the result I was hoping for :) Is this the sort of selection that JQuery can handle easily, or do I have to write a function? Many
[jQuery] How to not select something?
Hi I thought I was getting the hang of JQuery until I tried to optionally not select an element.... What I'm trying to achieve is the element with id="save-search" only gets hidden if it does not contain a div with the class="error-message" This is what I thought it should be, but it doesn't have the desired effect: $(document).ready(function() { if (!$("#save-search div.error-message")) $("#save-search").hide(); }); Would it be possible to let me know not just how to get this to work, but also where
[jQuery] (no subject)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=484145808-19122006><FONT face=Verdana color=#0000ff size=2>Try this (untested):</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=484145808-19122006><FONT face=Verdana color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=484145808-19122006><FONT
[jQuery] Question about remove();
Hi folks, I have the need of removing list items from List A and then adding them to List B. I'm using the .remove() function to remove the elements from the DOM. The API says very urgently that the remove() method doesn't remove the items from the jQuery object, so that I can use them later. How exactly do I go about "using them later"? Could anyone explain this to me please? Thanks, Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Getting the TEXT of an option tag, not the value.
> The :selected selector checks the .selected property and if
[jQuery] How to not select something?
> What I'm trying to achieve is the element with id="save-search" only
[jQuery] DOM traversing then applying a non JQuery function
Alright. I have a non Jquery function called <span style="font-weight: bold;"><span style="font-family: courier new,monospace;">myFunction(</span><span style="font-style: italic; font-family: courier new,monospace;">domObject </span><span style="font-family: courier new,monospace;">)</span></span> prepared to receive a DOM object as a parameter. I want to use this function with several objects that share the same class, so i use a sentence like this in the main page: <span style="font-family: courier
[jQuery] Getting the TEXT of an option tag, not the value.
Have you tried doing $('#filter option:selected').text(); There was a similar problem with using option@selected before. No one explained why it wasn't working though Kush -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Mungbeans Sent: Tuesday, 19 December 2006 10:41 AM To: discuss@jquery.com Subject: Re: [jQuery] Getting the TEXT of an option tag, not the value. Andy Matthews
[jQuery] NEWS: Meet The People Behind jQuery
Rey, Karl, John and team... Still a newbie in jquery, but here's a suggestion... call it evangelism, training or whatever. In addition to tutorials and the plugin demos, I always find it extremely helpful to see quickstart integration examples with the various native server-side platform. By that, I mean just quick and simple examples of using jquery+php, jquery+ruby, or jquery+cf via cfjson, etc... I personally find simple quickstarts inviting, and welcoming, to any given toolkit. My .02 Thanks,
[jQuery] How to detect if an iFrame's location (URL) has changed...
Hi all. I've been having a tough time detecting if an iframe on a page has changed. My strategy has been to attach an onload event on the iframe to check if the location.href has changed from the previous. This works great on Firefox, but not on IE. Here's my current code: var iframeURL = frames['target-frame'].location.href; //this saves off the initial iFrame URL $(frames['target-frame']).load(function(){ var currIframeURL = frames['target-frame'].location.href;
[jQuery] [Interface] Bug... TTabs doesn't work 100% in Firefox 2
TTabs works great on IE... but on Firefox, if you insert a tab in a textarea with a scroll, it scrolls back to the top of the textarea. I'm not sure how to report bugs on interface... so, I apologize for the bug post in this forum. Rich _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Value of currently selected radio button
Cheers Brandon. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Brandon Aaron Sent: Monday, December 18, 2006 3:20 PM To: jQuery Discussion. Subject: Re: [jQuery] Value of currently selected radio button Ahhh Thanks for the test case. :) The following worked for me: $('input[@name=recount_choiceId]:checked').val()
[jQuery] Value of currently selected radio button
Scratch that... Used :checked in it's place and it works a treat! <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Andy Matthews Sent: Monday, December 18, 2006 3:12 PM To: jQuery Discussion. Subject: Re: [jQuery] Value of currently selected radio button Doesn't seem to
[jQuery] Value of currently selected radio button
Darnit...I should have caught that myself. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Brandon Aaron Sent: Monday, December 18, 2006 3:04 PM To: jQuery Discussion. Subject: Re: [jQuery] Value of currently selected radio button
[jQuery] Value of currently selected radio button
Doesn't seem to be working: http://www.xrag.com/jquery_test/ the radio buttons are valued sequentially starting with 2. Using that code always returns the value of the first radio button. Any ideas? <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Brandon Aaron Sent: Monday,
[jQuery] Value of currently selected radio button
By the way, is there documentation about any of these extra goodies anywhere? That's not in the API and I don't see it anywhere else. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Brandon Aaron Sent: Monday, December 18, 2006 2:39 PM To: jQuery Discussion. Subject: Re:
[jQuery] Value of currently selected radio button
Thanks Brandon... I tried .radioMe :selected and that didn't seem to work. I'll give the other one a try. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Brandon Aaron Sent: Monday, December 18, 2006 2:39 PM To: jQuery Discussion. Subject: Re: [jQuery] Value of currently
[jQuery] NEWS: Meet The People Behind jQuery
Some big changes have been going on in an effort to better organize the jQuery project as well improve the user experience and extend the project's visibility. John has done quite a bit of legwork and broken out the project team into dedicated groups that will help promote the effort on many different fronts. Be sure to check out all of the details at the jQuery blog: http://jquery.com/blog/2006/12/18/meet-the-people-behind-jquery/ Rey.... _______________________________________________ jQuery mailing
[jQuery] NEWS: Meet The People Behind jQuery
Nice Rey! Those pictures are really well done. Great shots in fact. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Rey Bango Sent: Monday, December 18, 2006 1:56 PM To: jQuery Discussion. Subject: Re: [jQuery] NEWS: Meet The People Behind jQuery LOL! I didn't realize
[jQuery] Value of currently selected radio button
How would I use jQuery to get the value of the currently selected radio button in a group (say the group had a common class of .radioMe? <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] need input for make an img map of sorts
Could not think of a subject title that was real clear so be patient with me. This is what I need to do and after looking at a few plugins (http://interface.eyecon.ro/demos/resize.html & http://riddle.pl/mappet/ & one more, but link is down) I have an idea on how to achieve it but can't seem to get it started. The best way to describe what i need to do is have you look at dreamweaver and the image map tool and use the polygon hotspot option. I need to create a hotspot for an image/video, so i would
[jQuery] need input for make an img map of sorts
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of bmsterling Subject: [jQuery] need input for make an img map of sorts Could not think of a subject title that was real clear so be patient with me. I guess what I need at first is, how do I find where the user clicks inside this image or video box and then keep track of each click while putting an image/icon at each point. Thanks, Ben -- Here is a very simple start. I attached a .click() event to the BODY and then fed
[jQuery] NEWS: Meet The People Behind jQuery
You could post pictures for some people, then put pictures of monkeys for the other people because hey...who doesn't like monkeys? <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of John Resig Sent: Monday, December 18, 2006 11:17 AM To: jQuery Discussion. Subject: Re: [jQuery]
Next Page