[jQuery] again on question on selectors
Can someone tell me why this does not work ? I'm trying to remove the submit button from a form (.selectsubmit = <select class='selectsubmit'>) $(document).ready(function(){ $(".selectsubmit").each(function(){ $("input[@type=submit]", $(this)).remove(); }); }); i thought i can search with for example $("div", context) inside a specific context !? Also if i try to submit the form with $(this).parent().submit() it does not work =( Can someone tell me what i do wrong ? best regards, Truppe Steven _______________________________________________
[jQuery] I need help with the jQuery .click event
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Benjamin, Thanks for the tip! I used the "this" variable when assigning the mouseover and mouseout events, but not here. I guess that's because I was referencing a unique ID and not just a certain class that would be on multiple elements. Maybe I don't understand the "this" variable like I thought I did.
[jQuery] .appendTemplated plugin (my first!)
In my perfect world, all data I get from a server will be JSON, and I can format it how I please. Doing that with jQuery is somewhat verbose at the moment, leaving me with awesome code like this: var headlines = $(Journals.HeadlinesContainer); for(i in json){ var li = $.LI({ Class: json[i].ContainerFileName }); var a = $.A().href(json[i].Url); headlines.append(li.append(a.append($.TEXT(json[i].Title)))); } The Yahoo UI extensions (Jack Slocum rocks) have a neat Template class that makes this a little
[jQuery] Opera 9.02 and events
<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=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt;
[jQuery] Another update for form.js
I just checked in some more changes to the form plugin. The methods were reworked to use the standard plugin style for specifying options. The signatures for ajaxSubmit and ajaxForm now take just a single argument which is an object literal. Here are the details from the docs: ----------------- The following options are supported: target: Identifies the element(s) in the page to be updated with the server response. This value may be specified as a jQuery selection string, a jQuery object, or a DOM
[jQuery] again on question on selectors
After lurking for a while I figured I'd try to help a newbie out after all the help I've gotten off this list. I've found there's no need to search within a context if you've paid attention to how you code your HTML. I threw together the code below to do what you were originally looking for. <form name="form"> <select name="select" class="selectsubmit"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option>
[jQuery] controling when function get executed
<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=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* 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; text-decoration:underline;}
[jQuery] I'm searching for a way to work with forms and jquery
Hello everyone, i try to write a really short script that does submit a form if a select with a certain class is changed. I want it to work also without javascript so i use a normal form and just put the class to the needed select tag. Then in $(document).ready i search for that class and change the form (remove input type="submit" and set onchange event for the select). Now my question would be if there are easier shortcuts for forms when using jquery ? I think i saw a page where the @ and/or the
[jQuery] Opera 9.02 and events
Klaus, I tried various doctypes, but nothing seemed to work. In the end I relented and simply used after() to insert my form. Opera instantly began behaving as FF and IE do. Aaron Ullom Netphoria, Inc. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Klaus Hartl Sent: Wednesday, October 25, 2006 3:21 PM To: jQuery Discussion. Subject: Re: [jQuery] Opera 9.02 and events Olaf Bosch schrieb:
[jQuery] I need help with the jQuery .click 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="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 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style>
[jQuery] toggle doing strange things in IE 6 with jquery 1.02
Hey found it, It's not jquery but the interaction between the latest versions of jquery and one of the jquery plugins that causes the issue. The FX plugin from interface eyecon $Revision: 1.7 doesn't play nice with the lastest versions of jquery. Remove it and everything is ok. I'm going to go back to my code and see if I really need this, if not goodbye plugin. Thanks for help, have a good one. Daniel -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]
[jQuery] toggle doing strange things in IE 6 with jquery 1.02
I just tried the version from the link you provided http://jquery.com/src/jquery-svn.js ($Rev: 453) and the bug is still happening. So if it was fixed, it's broken again. Daniel -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Brandon Aaron Sent: Wednesday, October 25, 2006 3:24 PM To: jQuery Discussion. Subject: Re: [jQuery] toggle doing strange things in IE 6 with jquery 1.02
[jQuery] toggle doing strange things in IE 6 with jquery 1.02
Sorry can't provide link, not on a public site, but the header for the version causing me issues was this. /* * jQuery 1.0.2 - New Wave Javascript * * Copyright (c) 2006 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2006-10-09 20:23:18 -0400 (Mon, 09 Oct 2006) $ * $Rev: 413 $ */ If there's a version after this one that's fixed the IE issue, great. I got this from the link on the main page of the web site. As far as from SVN
[jQuery] Critical fix: clean lets Safari crash undercertaincircumstances
> It was dying on the if... I removed the check !arg.nodeType for
[jQuery] toggle doing strange things in IE 6 with jquery 1.02
<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=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* 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; text-decoration:underline;}
[jQuery] Critical fix: clean lets Safari crash under certaincircumstances
Brandon committed that change, but I wrote it. Unfortunately, I don't have Mac here so I can't test with Safari. jQuery.trim only trims leading/trailing space, so the newlines between the <li> elements would be untouched. If there are no newlines it works? Is it crashing right on line 1568, or is it lower down where it pulls the elements out of arg? Perhaps it is dying on the "if" right below that? No reason for it to do that but who knows. Instead of letting it fall into the loop replace line 1568
[jQuery] jQuery Image Cropper
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-15" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Hi guys, I've just been wondering if there is an Image Cropper Plugin for jQuery out there somewhere? I'm finishing up the administration area of my current project and wanted to add this functionality, but the only decent one I could find is for for prototype (<a href="http://www.defusion.org.uk/code/javascript-image-cropper-ui-using-prototype-scriptaculous/">see
[jQuery] Critical fix: clean lets Safari crash under certain circumstances
Hi all, with the latest Revision the clean function lets Safari crash under certain circumstances (I had to fix that for Plazes): There is an <ul> to which some <li> elements should be appended. These <li>s are loaded via XHR as text/html and are appended in the success function like this: success: function(html) { $('#photos').append(html); } The server returns an HTML snippet like the following: <li>...</li> <li>...</li> Important: there is a line break after the closing li tag. In the clean function,
[jQuery] having one funciton wait till the first is executed
<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=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* 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; text-decoration:underline;}
[jQuery] Blurry Text using JQuery... But only in IE
My company has an internal Portal system and I was planning on making some major changes to the functionality it offers by enhancing it with JQuery powered features. However, I've run into a problem with one of these features (dubbed "Portal Gadgets"). When my page loads up, I use "load" to pull content from another page via AJAX. Some of these content elements utilize my JTicker plugin. My problem is that the text in the JTicker plugin is coming in blurry. It's almost like it is being rendered twice
[jQuery] Drop Down Menu
Hello there: Is there a reliable Drop-Down menu plug-in for JQuery? I've created a quick example here: *http://tinyurl.com/y4qsx5* So far, I cannot figure out how to postpone the SlideUp effect when the mouse goes over the drop down menu itself. Please help, thank you. Roso * * _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] interface: how to get canvas elements to stay visible while dragging?
I would like to drag a canvas element around, and have the screen updated while dragging it like it does with a div. The code below lets me drag the canvas, but the screen does not update while the drag is happening, it only displays the rectangle after the drop. The canvas disapears while the drag is happening. Does anyone have any ideas about how to do this, maybe using onDrag? Thanks! canvas = document.createElement("canvas"); canvas.setAttribute('id', 'canvas'); ctx = canvas.getContext("2d");
[jQuery] Weird IE problem with random image loader
Hi jQueryians, I wrote a small script that loads random images and fades from on another. It works quite nice in FF, see here: http://www.erdeanthomas.de/ It does not work in IE6, and I have so far no clue why. Instead of fading to other images, it display the same images every time. The php script looks like this: $vn = "/srv/www/vhosts/erdeanthomas.de/httpdocs/wp-content/daten/randomimages"; $verzeichnis = opendir($vn); while($file = readdir($verzeichnis)) { $s = @getimagesize($vn."/".$file); if(in_array($s[2],
[jQuery] jQuery and OOP
Hi, I am new to jQuery, and I have a question concerning object oriented programming. I have created a sample scenario. In the HTML code I add a button: <input type="button" value="Count" id="btnCounter" /> In js, I create a class called Counter. In the constructor I add an event handler to the click event of the button. The function I specify as the handler is a method of the Counter class. I also store the button and the nr (the current value of the counter) as an object property. function Counter()
[jQuery] jQuery and OOP
Yes, that is what I was thinking about. It would be great. Nandor (In Hungarian the first name and last name are in reverse order ;) -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of John Resig Sent: Wednesday, October 25, 2006 9:44 AM To: jQuery Discussion. Subject: Re: [jQuery] jQuery and OOP Blair - The extra, arbitrary, arguments is for event triggering, not binding, unfortunately. For example: $("#btnCounter").trigger("click",this.count,[this]);
[jQuery] jQuery and OOP
Yes it would be nice, but it does not work :(. The second argument of the click() is not passed to the count method. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Blair Mitchelmore Sent: Tuesday, October 24, 2006 11:58 PM To: jQuery Discussion. Subject: Re: [jQuery] jQuery and OOP A technique you might find slightly less ugly is passing 'this' as an argument when you bind the event. If I recall correctly, jQuery has the ability to pass
[jQuery] Please help! Dynamically Wrapping DIV's around structural markup.
Hi everyone. I am attempting to develop some dynamic "in page" navigation. I am a big fan of structural markup. Each H2 represents a new section of the current document. I wish to: 1. Find each H2 2. Wrap this in a unique div, up to (but not including) the next H2. This will then be used to further manipulate the page <div id="content> ........ <h2>First section</h2> ...[arbitary HTML].... <h2>second section</h2> ...[arbitary HTML].... <h2>third section</h2> ......... </div> Becomes: <div id="content>
[jQuery] Function from jquery_auto
Hello, i find this fine Plugin: http://sputnik.pl/code/javascript/jquery_auto can i use the Auto-submitting SELECTs Function solo? not in the Plugin, i write this, works no: $(document).ready(function() { $('SELECT.Submit').bind('change', this.on_change); function change() { if (this.value) this.form.submit(); } }); -- Viele Grüße, Olaf ------------------------------- olaf.bosch@t-online.de http://olaf-bosch.de www.akitafreund.de ------------------------------- _______________________________________________
[jQuery] jEditable question
> 1) Add an configuration option what kind of response jEditable expects. > This requires less coding from end user. Bad thing is it adds bloat to > jEditable since all different response types need their own handlers > inside plugin code. Yep, this doesn't sound right to me... Sometimes you just have to make choices for the user, this sounds like a compromise which is in noones advantadge > 2) Add user defined callback (and/or callbefore) handlers. Requires more > coding from the end user but everyone
[jQuery] Short question on how to pass parameters from html to javascript functions
Hello, i have some javascript that i execute inside a $(document).ready to init stuff need to be done if javascript is available. now i want to pass parameters somehow. My first thought was just to use an standart attribute like <a href=".." class="isearchforthis" lang="myparams">. But this seems to be no good solution because i want my documents do be valid xhtml strict ... So my new approach is to use a pseudo class to like <a href=".." class="doStuff mode1"> for example. So the "mode1" class is
[jQuery] jQuery Talk at Ajaxian
John's talk at the jQuery conference was excellent, and a good package of arguments for the serious jQuery evangelist. I'm not sure whether the slides are available online, but I'd take a look at them when they become available. <br clear="all"> -- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] triggering an event
> Can I force the click event to fire manually? To trigger an event you can use...wait for it...trigger(). :-) $("foo").trigger("click"); Or you can call click with no arguments: $("foo").click(); As with a real click, the "this" will be pointing to the element. I'm not sure about the details of the first (event) argument in these cases. However, you can tell a real click from a fake click by passing trigger some arguments: $("foo").trigger("click", ["other", "stuff", "here"]); $(".foo").click(function
[jQuery] triggering an event
> I was wondering having done:
[jQuery] triggering an event
I was wondering having done: $(".foo").click(function (e) {alert ("foo");}); Can I force the click event to fire manually, or do I resort to var x = function (e) {alert ("foo");} $("#foo").click(x); ele = $("#foo").get(0) x.call( ele, {target:ele}); Adam _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Tabs plugin: custom structure
Hi all, from the beginning the plugin was relying on a certain HTML structure <div id="container"> <ul> ... <ul> <div id="tab-1"> ... </div> ... </div> For some more flexibility and being able to apply somewhat advanced styling I have added another option: tabSelector Default is as-is state: '>div' ("start point" is the container that holds the tabs links and content). But if you want a structure that is more deeply nested you can initialize your tabs like that: $('#container').tabs({ tabSelector:
[jQuery] S.L.O.W.
Does anybody know why it takes at least 2 seconds for a page with jQuery to load in IE? That is not the same in Firefox where it seems to work much faster. To make it clear, IE is slow when you click from one page to another within the same Web site when the page and all javascripts, css, images are already cached, not at the first page load or a page refresh where you can expect a little bit of delay. Is there any way to timestamp jQuery? Thanks. _______________________________________________ jQuery
[jQuery] accordian with text fade out
<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=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* 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; text-decoration:underline;}
[jQuery] Why doesnt this work ?
Hello jQuery guru's :) could someone tell me why this code doesnt work ? -----------------<CODE>-------------------- var arrow = $("#draghandle").find("img"); if($(arrow).src().contains("right") != ""){ $(arrow).src("Modules/User_Manager/images/arrow_down.gif"); } else { $(arrow).src("Modules/User_Manager/images/arrow_right.gif"); } -----------------<CODE>-------------------- Error-Message: $(arrow).src().contains is not a function Thx and sorry for my stupidy :) Ralf _______________________________________________
[jQuery] Drop-Down Menu (did anybody make one with JQuery?)
The problem is that the user mouses out of the primary nav item (Help, Options) before acquiring the list items under it. You might consider treating the top level as an unordered list as well, with nested unordered lists serving as the drop downs. This way, the user's pointer is in essence still over the top-level item while perusing the drop down lists. For example: http://beta.ksscholl.com/jquery/suckerfish.html You would obviously need to style the items as necessary for your application. Kevin
[jQuery] Drop-Down Menu (did anybody make one with JQuery?)
Pause plug-in doesn't seem to do the job here. http://tinyurl.com/y4qsx5 Anybody has an idea of how to build a reliable (memory-leak free, cross-browser) plug-in? Thanks. Roso _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Next Page