[jQuery] Deserialize array
I have some serialized data stories[]={'link':'http://digg.com/videos_gaming/Just_how_different_IS_Wii_Madden_%28answer%3A_very%29','title':'Just how different IS Wii Madden? (answer: very)','date':'19 Oct 2006','description':'I knew Wii Madden allowed for juking, passing, etc with the Wii remote, but this new video is the first one that really shows how sports games will be revolutionized. Includes interviews/demonstrations with the developers & producers.'}&stories[]={'link':'http://digg.com/general_sciences/Gravity_Measurements_Confirm_Greenland_s_Glaciers_Precipitous_Meltdown','title':'Gravity
[jQuery] Problems with JQuery
> This is all well and good but the document does not make
[jQuery] jQuery history plugin - from making the back button work to a more elaborate Hijax solution
Hi jQuerians, people demanded, so I started to extract the history functionality from the tabs plugin to make a standalone plugin out of it. Worked out so far: http://stilbuero.de/jquery/history/ http://stilbuero.de/jquery/tabs/ It's still alpha, support for Firefox, Safari and Opera is there, IE not yet but will be added. Also todo is to automatically show the appropriate part, if the hash in the url refers to some point in the history but I can borrow that from the tabs plugin as well. At the moment
[jQuery] Mouseover/out + CSS background image behavior change in IE between rev 249 and 413
Does JQuery try to refresh/reload any CSS on mouse events? In my version of IE (with JQuery rev 413) every mouseover/out is causing all my CSS background images to quickly reload (but not quickly enough, as it is quite noticeable). I did not have this problem with rev 249 (I just updated to 413 yesterday and noticed the strange behavior). One more thing: the dev PC at work does not show a problem with IE with either JQuery version. My home PC shows the problem with version 413 only. At home, 249
[jQuery] Problems with JQuery
> $(document).ready(function(){
[jQuery] Ajax call
$.get("http://www.yahoo.com",function(txt){ alert(txt); }); This code works in IE but does not work in firefox. anyone know why? Thanks Tom -- View this message in context: http://www.nabble.com/Ajax-call-tf2476168.html#a6905447 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Tablesorter
<html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 10 (filtered)"> <style> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face {font-family:"Monotype Corsiva"; panose-1:3 1 1 1 1 2 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue;
[jQuery] Problems with JQuery
Hey guys, I'm just starting with jquery and I've hit what seems to be inconsistant behaviour. I have the following markup: <form action=""> <span class="control date"> <input id="someID" type="text" value="HI" /> <input type="hidden" value="Huh?" class="meta" /> </span> <br /> </form> The values are only there becuase I had problems and I wanted to test stuff. I then wrote the following javascript: $(document).ready(function(){ $("form .control.date").each( function(i){
[jQuery] jQuery Kinda Plugin: every
Since the event handling has recently been fixed to avoid IE memory leaks, could we leverage that? After all, a timer is an event. $("#time").interval(1000); basically would map to this: setInterval(function(){ $("#time").trigger("tick") }, 1000); An interval of 0 would stop the timer. A one-time trigger could be done like this: $("#time").timeout(1000); The handler looks like this: $("#time").bind("tick", function(){ this.text(new Date()); }); BTW, Javascript timer receipts are just numbers
[jQuery] How to make input readonly with jQuery in IE
I've found some inconsistent behavior in IE vs. FF and was wondering if someone might know a workaround. I have some form fields, for which the HTML is generated by a template system out of my control. I want to set some of the fields to readonly so I wrap them in a <span> that has a readonly class. The HTML looks like this: <span class="readonly"><input type="text">Some text</input></span> I have tried each of the following queries and none of them have the desired effect. Its like they aren't
[jQuery] Page fix request
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 10"> <meta name=Originator content="Microsoft Word 10"> <link rel=File-List href="cid:filelist.xml@01C6F36E.FE9D4670"> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings>
[jQuery] Question about jQuery.merge
Looks like it only removed one set of duplicates. <!----------------//------ 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 Choan C. Galvez Sent: Thursday, October 19, 2006 12:31 PM To: jQuery Discussion. Subject: [jQuery] Question about jQuery.merge Hi all. I've been browsing the API and discovered
[jQuery] Animated Menu
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII"> <TITLE>Message</TITLE> <META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=128044413-19102006><FONT face=Arial color=#0000ff size=2>with out looking into your code and just looking at the effect I suggest.</FONT></SPAN></DIV> <DIV><SPAN class=128044413-19102006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
[jQuery] Problems using jQuery SlideShow Plugin
HI to every: I'm newbie with jQuery. Right now I'm involved in a project in wich I need build a slideshow. I do a research and found YUI SlideShow, Dojo Widget and jQuery (from Interface Elements) maybe exists anothers but I like a lot jQuery because I found it easy to learn. I download the needed files and put in my server. Then I made a simple page to test it and get some mistakes and I hope that any here can help me with that. The Javascript code is this: $(document).ready( function() { $.slideshow(
[jQuery] Question about jQuery.merge
> ... if I merge the arrays
[jQuery] Question about jQuery.merge
Hi all. I've been browsing the API and discovered the docs for `jQuery.merge`. Great! One question about it: the docs say: "Merge two arrays together, removing all duplicates. The final order or the new array is: All the results from the first array, followed by the unique results from the second array." But, if I merge the arrays var a = [ 2, 3, 4, 5 ]; var b = [ 1, 1, 2, 3, 5 ]; I get: [ 2,3,4,5,1,1 ] So a) the "removing all duplicates" is not an exact definition of what this method does or b)
[jQuery] nice plugin idea - Splitter
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 10"> <meta name=Originator content="Microsoft Word 10"> <link rel=File-List href="cid:filelist.xml@01C6F368.92FCFEC0">
[jQuery] nice plugin idea - Splitter
> I just found this link
[jQuery] Animated Menu
Hi folks I've been trying to build a menu where an image follows to match the hovered link Example: <a href="http://clearbar.co.uk/navtest.html">http://clearbar.co.uk/navtest.html</a> Problem is the animate effects queue up, thus moving mouse fast can stack up pretty high. Anyone know how I could get around this, or think of a better way to achieve this effect? Cheers, Steven _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Tablesorter
I have a need to have the tablesorter do the following: 1) Refresh when I need it to (I'm going to be doing DOM insertions, and will need to refresh the table after an insertion). The best thing I could think of thus far is $(".sortUp, .sortDown").click().click(). Obviously not the best idea. 2) Use custom sorters. I see that the table sorter SUPPORTS custom sorters and parsers, but I wasn't sure about the best way to do this. Christian? Anyone?<br clear="all"> -- Yehuda Katz Web Developer | Wycats
[jQuery] Bug in Firefox with e.target?
> From: Klaus Hartl
[jQuery] Bug in Firefox with e.target?
>> I wanted to add the normalization for e.target as discussed earlier. >> But I came across a strange bug in Firefox. Have a look at the following page: >> >> http://stilbuero.de/demo/jquery/etarget.html >> >> If you click on the link the target of the click event (attached to >> ) is alerted. In that case it is an <strong> element, but Firefox >> reports an HTMLSpanElement. Safari is ok. > Intertesting. If I change your alert to > alert(e.target.tagName); > then I see STRONG. I am guessing that
[jQuery] Bug in Firefox with e.target?
Hi all, I wanted to add the normalization for e.target as discussed earlier. But I came across a strange bug in Firefox. Have a look at the following page: http://stilbuero.de/demo/jquery/etarget.html If you click on the link the target of the click event (attached to ) is alerted. In that case it is an <strong> element, but Firefox reports an HTMLSpanElement. Safari is ok. Does anyone know what is going on? -- Klaus _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] Selectors [@attr|=val] and [@attr~=val]. Have they been removed?
Hi all. While playing with CSS selectors, I've found some strange things (I'm using the SVN version, rev 445): * Attribute selector [@class~=something] doesn't work (returns any element with a class name) * Attribute selector [@hreflang|=en] doesn't work (returns any element with a hreflang attribute) Has the support for these selectors been removed? This is what I'm using for testing: HTML: <p class="pare-0">pare-0, <a hreflang="es" href="#">hreflang=es</a> <p class="fill-0 pare-1">fill-0 pare-1
[jQuery] Checking select option has class?
Hi all, :disabled doesn't want to work as I expect - when I submit with a "disabled" option selected, the whole select drop down becomes disabled (or rather the class is added to ALL the options). I've added my real code in below, rather than working with hypotheticals - any more ideas? // if option is "disabled", don't submit it if( $('#idol_date_day1').is(":checked") && $('#idol_datetime_day1 option:disabled') ){ // add class to change colour $('#idol_datetime_day1 option:disabled').addClass("required").get(0).focus();
[jQuery] How to safely get the clickTarget of an event?
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} @font-face
[jQuery] Tablesorter
-- errors There are problems with your table sorter. Create a sortable table with colspans and it will through lots of errors if you fix those then it will work fine. -- feature request What I would really like is sorting tables grouped by tbody Ie each tbody would stay in the same place but the rows would sort inside each tbody except for tr's with class='tablesort-ignore' If the r used the class='tablesort-up-down' then you could move the tbodys up and down the table with (drag/drop) or (arrows
[jQuery] Possible Change to jQuery.map()
OK, so I was trying to do something clever with jQuery.map by using the Function.call technique to iterate in my root Object's this scope, but it kept giving me window. Then I read the source and noticed you're calling the function outright. [other stuff] for ( var i = 0; i < elems.length; i++ ) { var val = fn(elems[i],i); [yet more stuff] Since most people don't use 'this' inside .map() and window is always accessible via 'window' could we change that line to [other stuff] for ( var i = 0; i < elems.length;
[jQuery] fundamentals: .index(obj) or better solution
.index() is driving me nuts, and I'm trying to figure out if there's an obvious solution to what I'm trying to do, or if I'm missing something in the API. Let's say I have the following: <div name="list"> <div class='list_item'> <input type='hidden' name='id[]' value='1'> // interface </div> <div class='list_item'> <input type='hidden' name='id[]' value='2'> // interface </div> <div class='list_item'> <input type='hidden' name='id[]' value='3'> // interface </div> <div class='list_item'> <input type='hidden'
[jQuery] Fix for the Interface Elements library
I have a fix for the Sortables feature. Anyone know how to post a fix, as I can't find info for reporting bugs on the site: http://interface.eyecon.ro/ -Ed _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] parent()
>> But, to my mind, it makes sense to do
[jQuery] How to make input readonly with jQuery in IE
> $("span.readonly input").attr("disabled", "disabled"); Does this work? $("span.readonly input").attr("disabled", true); The XHTML attribute is disabled="disabled" but the Javascript property is boolean. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] parent()
I want to insert a row above an element. Imagine that I have: <table> <tr> <td><input type="text" id="myElement" /></td> </tr> </table> I want to creat a new structure that looks like this: <table> <tr class="errorCell" colspan="100"> <td><span class="error">Please correct the error</span><br /></td> </tr> <tr> <td><input type="text" id="myElement" /></td> </tr> </table> However, this produces no visual effect: $('#myElement').parent('tr') .before('<tr><td class="errorCell" colspan="100"><span
[jQuery] Submitting a form after input type="file" onchange
I would like to just say that I thought it would work as: $("#myform).submit(); inside the onchange event, but it would never submit the form. Using $("#myform)[0].submit(); worked immediately. Thanks again for your help! -Marshall -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Klaus Hartl Sent: Wednesday, October 18, 2006 12:35 PM To: jQuery Discussion. Subject: Re: [jQuery] Submitting a form after input type="file" onchange Paul McLanahan
[jQuery] Submitting a form after input type="file" onchange
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 10"> <meta name=Originator content="Microsoft Word 10"> <link rel=File-List href="cid:filelist.xml@01C6F28A.0D3A21C0"> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings>
[jQuery] Unable to bind click function in a dynamically created object?
hey gang-- i got a bit of a stumper for ya, trying to bind a function to the click event of each link in a dynamically generated list. i have a bunch of long content pages that we're breaking up into subpages, with a sidenav to navigate through them. the markup for each page is as follows: <div class="page"> <h3>Page One Title</h3> .... .... </div> <div class="page"> <h3>Another Page Title</h3> .... .... </div> here's the function that sets up the list of links and stuffs them into the sidenav. $('.page').each(function(i)
[jQuery] best show/hide div code?
I'm working on a mailing list manager and one of the options is to provide a zip code for emailing anyone in that area. I'd like to hide this field unless the user has selected the "Tour Date" option from a select field. The relevant code is below. The second TR (and it's contents) will be hidden by default using CSS, but I want to toggle it's display property when the user selects or deselects the "event" option in the "type" dropdown field. <table> <tr class="formBG"> <td class="formlabel"
[jQuery] Handling unsupported browsers
Does anyone have a preferred way for handling browsers that are not officially supported by jQuery, such as Netscape? What I am planning on doing is having server-side browser detection code which gives me the browser name, platform, and version number, then in my site, having each page coded in two different ways: one for Ajax and one without Ajax. Is this what other people do? Does anyone have a browser-compatibility chart, where I can see which parts of jQuery work in the various browsers? Thank
[jQuery] Intro + suggestion (plugin repository)
Hello, It's my first post, so let me introduce myself. I'm a jquery newbie, somewhat knowledgeable at javascript, php, and web applications in general. I'm the developer of thinkedit (www.thinkedit.org) "yet another php CMS". We choosed jquery to add easily some dynamic behaviour to the admin interface of this cms. Currently, very little has been done in this direction. The main thing to do is to build a tree ui for the management of "nodes" inside the cms. This being said, I have a first question
[jQuery] Interface - dragging nodes containing text areas (Firefox, Safari)
> I've got an issue with using the Interface idrag.js.
Next Page