[jQuery] IE: appending <script> on ajax return?
Hi All, I've got a php/jquery app, which, when a button is pushed, fires off an ajax request to a php script that returns a combination of html and javascript, that is then appended to the document via .before(). The script returned includes another ajax call, so that when a selection box changes, another ajax script fires to grab more data from the server and replace a div's contents with a selection box. Basically, the first call inserts a "line item" which includes a selection box and some empty
[jQuery] show/hide methods and inline styles
Currently the show and hide methods leave a trail of inline styles behind. Should they? I recently fixed bug #276 to remove the unecessary inline styles once a show or hide animation is completed. This will no doubt break some people's code who are hiding things via a stylesheet and expecting the show method to keep it display block. I would consider this a bad practice and having inline styles can completely break print styles and cause unwanted/unexpected results like bug #276. Opinions? The only
[jQuery] alternative to $('.myclass')
<!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><FONT face=Arial size=2><SPAN class=046420421-16112006>Hi all,</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=046420421-16112006></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=046420421-16112006>I am using the $('.myclass') approach quite a lot, but am finding
[jQuery] Small optimizations
> If you found any other "small" issues, feel free to use this thread to discuss them. I have a few changes to these methods that I have tested on IE/FF/Opera, but haven't committed them because I have no way to test on Safari: .index: short-circuit loop rather than use each() .text: use textContent/innerText when available .merge: short-circuit the dup loop .domManip: overall cleanup _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] $.ajax() with json output
If you specify json output in the $.ajax call and the resulting output isn't well-formed json for any reason, it causes a javascript error on the eval in $.ajaxData. Has anyone else encountered this? My quick fix was to wrap the eval in a try/catch and return null if there was an error, does that sound like the right course? I think it's desirable for the ajax code to be able to handle bad json, especially when I'm the one writing the server-side code. :) The script case in ajaxData probably needs
[jQuery] Inject arbitrary data into ajaxForm using the before Callback
Hi all, var options = { before: function(formArray, jqForm) { formArray = $.merge(formArray,$("#interfaceVariables").formToArray()) ; if (console) console.log(formArray); return true; }, target: '#mainWindow'}; $('#quickSearchForm').ajaxForm(options); i would like to inject some extra information into the formArray used by ajaxForm. Basically i have two forms - one where i put a searchvalue in and another, which is static and contains information about
[jQuery] jQuery 1.1 by the end of Nov
I'll agree with that as well. These days, a few extra K is nothing. I'd much rather have it be blazing fast, even at the cost of it's ultra-lightweight file size. <!----------------//------ 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 Matthew Delmarter Sent: Thursday, November 16, 2006 1:28 PM
[jQuery] jQuery 1.1 by the end of Nov
On Thursday, November 16, 2006 11:28 AM Matthew Delmarter <> said:
[jQuery] $.ajax() with json output
> I may be showing my ignorance here, but why (or maybe
[jQuery] jQuery 1.1 by the end of Nov
> The only thing I disagree with is the importance of winning the size war. Up to this point all the emphasis has been on code size. At some point we may want to look at speed, even if it makes the code bigger. One example: When you say $(".myclass") the following things happen: * jQuery.find recursively collects every node in the document tree and copies that list into a second array; * jQuery.filter builds/compiles a regexp to get the class name, then builds/compiles a function to check the class
jQuery 1.1 by the end of Nov
Hi Everyone - I want to start a discussion about the features that should go into (or be removed from) the upcoming 1.1 release. I'd like to shoot for a release by the end of this month. I know that Joern already has some event code, ready to be committed - and I have the "non-destructive jQuery" code ready to go. Brandon mentioned that he wants to rewrite the jQuery.attr() in time for release too. No significant features are going to be added to this release, think of it as jQuery 1.0++. Right now,
[jQuery] jQuery 1.1 by the end of Nov
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of "Jörn Zaefferer" Subject: Re: [jQuery] jQuery 1.1 by the end of Nov With the above at hand, do we really need all those shortcuts or macrso anymore? By using on(), un(), trigger(), css() and attr() the API is pretty clean and easy to learn, and the different in necessary code to type is minimal. And it's still extremely easy to write your own macros if needed. -- Jörn Zaefferer ------ I'd second this. I tend to use
[jQuery] jQuery 1.1 by the end of Nov
On Nov 15, 2006, at 4:26 AM, Corey Jewett
[jQuery] jQuery 1.1 by the end of Nov
> So what?
[jQuery] jQuery 1.1 by the end of Nov
> > But, I would be sad to see .click, .hover, and .toggle go away, if
[jQuery] Next generation WYSIWYG editor... maybe? am Imissing something?
> I'm no expert for lincenses. But I remember that jQuery had
[jQuery] Next generation WYSIWYG editor... maybe? am I missingsomething?
Please don't take my comments for bashing of dislike. I've tried using tinyMCE before and it wasn't for me. So I'm not bashing...just commenting that it doesn't have what other CMS tools have built in. <!----------------//------ 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 Paul McLanahan Sent:
[jQuery] jQuery 1.1 by the end of Nov
> But, I would be sad to see .click, .hover, and .toggle go away,
[jQuery] Using AJAX to download files
I have a WebHander that returns a binary file (PDF to be precise). How can I use AJAX to display that file in the browser? Returned content type is "application/pdf" and it is sent with the header "Content-disposition:attachment; filename=report.pdf" so it forces a download. var checkedItems = []; $("input[@name=CheckedItem]:checked", mytable).each( function() { checkedItems.push(this.value); } ); $.ajax( { type: "POST", url: "report.ashx", data: "records="
[jQuery] Next generation WYSIWYG editor... maybe? am I missing something?
TinyMCE doesn't have built-in image upload. <!----------------//------ 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 Stephen Howard Sent: Wednesday, November 15, 2006 9:12 PM To: jQuery Discussion. Subject: Re: [jQuery] Next generation WYSIWYG editor... maybe? am I missing something? I'm all for
[jQuery] Next generation WYSIWYG editor... maybe? am I missingsomething?
<!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.2963" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=625002214-16112006><FONT face=Arial color=#0000ff size=2>Pretty nice. The interface needs some work but I LOVE the way you indicate what sort of block level element you're working with using the little P and H tags in the top left corner.</FONT></SPAN></DIV> <DIV> </DIV>
[jQuery] Prevent form submission when enter is hit with jQuery
That's good to know Roberto. Thanks for following up. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Roberto Ortelli Sent: Thursday, November 16, 2006 8:41 AM To: jQuery Discussion. Subject: Re: [jQuery] Prevent form submission when enter is hit with jQuery Ah, problem solved. FYI: $("#to").keypress(function(e){ return !(e.keyCode == 13); }); where #to is the ID of a form input[@type=text] field, easy! 2006/11/16, Roberto Ortelli <rortelli@gmail.com>:
RE: [jQuery] [jQuery-es] Cambiar cosas cuando la página cargue
<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=iso-8859-1"> <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] Prevent form submission when enter is hit with jQuery
Hi all, all is in the title. I've found this resource but it seems not working in FF2.0: http://www.cs.tut.fi/~jkorpela/forms/enter.html Thanks -- Roberto Ortelli http://weblogger.ch _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Next generation WYSIWYG editor... maybe? am I missing something?
Hi everyone, I've been getting increasingly frustrated by the flexibility and output from all of the WYSIWYG editors available for the web so I want to try and build an editor experience for our 2nd generation of CMS that will achieve the following: <ul><li>Integrate in to our sites without requiring CSS tweaks to get it looking correct - this means no iframes.</li><li>Produce strict XHTML every time without fail.</li><li>Be simple to use.</li><li>Be quick to load and run. </li><li>Limit scope for
[jQuery] $.val() limited in functionality?
I often times just need to know the value of one form element and sometimes that could be a group of radio buttons, a select, a multiple select or just a regular input. The current $.val() method is limited only to inputs. I was curious if anyone else needed this funtionality and if it should be in a plugin or in the core? -- Brandon Aaron _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
RE: [jQuery] [jQuery-es] Cambiar cosas cuando la página cargue
Hola nuevamente David y Choan: Por más que leo y miro el código no logro entenderlo pues soy un poco novato con jQuery y de Javascript no se mucho, lo he usado un poco en validaciones pero con el boom de la Web2.0 veo que se pueden hacer cosas increíbles. ¿Me pueden dar un "norte" para guiarme y ver que hace el código? Nota: Lo puse en la página y no vi ningún cambio Salu2 y desde ya gracias -- ReynierPM 5to Ing. Informática Maestro de poco, aprendiz de mucho -----Mensaje original----- De: discuss-bounces@jquery.com
[jQuery] new plugin: window (+DEMO)
Hi guys, After i've done a lot (+8 weeks!) of work on the window class it's now ready to be released to the public for beta testing. I'm hoping to release this plugin at the same time jQuery 1.1 becomes available, but all bugs have to be squised off course. The plugin makes use of my cssHover plugin ( http://gilles.jquery.com/cssHover/ ) and some of the plugins uit of the interface pack ( http://interface.eyecon.ro/ ). This way, i didn't have to rewrite code again. So thanks Stefan for your work
[jQuery] jQuery Methods, a new plugin?
> I recently had the wish for extended functions on arrays, hashs and
[jQuery] Next generation WYSIWYG editor... maybe? am I missing something?
> Ok, it's very simple indeed, and doesn't actually let you edit anything!!
[jQuery] $.val() limited in functionality?
> I'd propose something like $().fieldValue() and $().fieldSerialize
[jQuery] jQuery 1.1 by the end of Nov
On Wednesday, November 15, 2006 9:47 AM "Jörn Zaefferer" <> said:
[jQuery] parsing JSON with $.each
Hello everyone, I'm parsing some json successfully below, but I'd like to be able access the contents of the json object like "this.["id"]" or "this.["name"]". function processData(json) { $.each(json, function(i) { $("#names").append("ID: " + this[0] + " Name: " + this[1] + " Passwd: " + this[2] + " Url: " + this[3] + " " ); } ); } Just wondering if anyone knows how to do it that way. Thanks, Kevin Kevin Old kevinold@gmail.com _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] parsing JSON with $.each
> From: Kevin Old
[jQuery] [jQuery-es] Cambiar cosas cuando la página cargue
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1"> <TITLE>Re: [jQuery-es] Cambiar cosas cuando la página cargue</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P ALIGN=LEFT><SPAN LANG="es"><FONT SIZE=2 FACE="Courier New">Hola Choan:</FONT></SPAN></P> <P ALIGN=LEFT><SPAN LANG="es"><FONT SIZE=2 FACE="Courier New">></FONT></SPAN><SPAN
[jQuery] cssHover update
Hi Guys, I forgot to add one fix to SVN, its comitted now. -- Gilles _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery 1.1 by the end of Nov
> What exactly do you mean when you say the handler doesn't know which
[jQuery] $.val() limited in functionality?
> I know that it does what it says it does. That's not the point.
[jQuery] jQuery 1.1 by the end of Nov
What about using an object instead of an array? bind("click", handler, 1, {x: 1}); bind("click", handler, {x: 1}); ... Nandi -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of "Jörn Zaefferer" Sent: Wednesday, November 15, 2006 1:22 PM To: jQuery Discussion. Subject: Re: [jQuery] jQuery 1.1 by the end of Nov
[jQuery] val() to erase the value
When I did this: $("#someInput").val(""); it made it null in FF but in IE it left it alone. How do I use val() to erase the current value? Glen _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Next Page