Re: [jQuery] Stop an ajax call
I did some research a few months back about uploading files using Ajax. What I've found is that with IE you need an ActiveX object with special permissions and in FX you need something else entirely. I didn't look into other browsers but I'm under the impression there's nothing for those at all. Aside from being completely different in IE and FX, it was convoluted at best so I dropped it. I'm guessing that in a couple of years it should be possible, as the Ajax snowball gets big enough that the next generation of browsers support it well. On 1/11/07, Roberto Ortelli [EMAIL PROTECTED] wrote: Ámon, we made this solution using DWR and not jQuery... 2007/1/11, Ámon Tamás [EMAIL PROTECTED]: Roberto Ortelli wrote: Hello Felix, 2007/1/11, Felix Geisendörfer [EMAIL PROTECTED]: Unless I've missed a new kind of hack, there is no way to upload a file via Ajax. So assuming you are working with a iframe you can try something like this: Eheh right, we're using an iframe :P Thanks for your answer. Could You show me Your file upload solution? Because I working on a same thing. -- Ámon Tamás http://linkfelho.amon.hu ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Roberto Ortelli http://weblogger.ch ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Francisco Brito http://nullisnull.blogspot.com | http://www.flickr.com/photos/darkgoyle | http://brito.mindsay.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Dev tools showdown
If you have MS Office, the MS debugger is much better than venkman. The downside is obviously that you have to buy it. There's also an old school version of the debugger somewhere on msdn and it can also be useful. On 12/23/06, Yehuda Katz [EMAIL PROTECTED] wrote: What about Firebug lite? On 6/26/06, Frosty Goodness [EMAIL PROTECTED] wrote: I have the unpleasant distinction of working on a web app that only works in IE. I can't even log into the system to test bugs becuase it pukes at the login prompt. Firebug, I hardly knew ye. On 6/26/06, París Prieto, José Ignacio [EMAIL PROTECTED] wrote: Hi, I use JSEclipse for js editing (i usually do j2ee programming and prefer an all-in-one editor). It features code-completion and documentation. Firebug for js debugging, I was using Venkman's javascript debugger before, but this seems to be faster and simpler. Jose I. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Francisco Brito http://nullisnull.blogspot.com | http://www.flickr.com/photos/darkgoyle | http://brito.mindsay.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] getScript error
I don't have access to safari right now, but perhaps this might work: self.eval(); // or window.self.eval if you can see the performance change I remember having a similar problem with firefox a bit ago using window.eval() and that fixed it. I ended up with: (window.execScript || self.eval)(script); I have a fresh post about this: http://nullisnull.blogspot.com/2006/11/executing-scripts-with-xmlhttprequest.html I'm curious to see if it works with Safari. -- Brito On 11/22/06, Paul McLanahan [EMAIL PROTECTED] wrote: I just checked eval.call(window,data) on Safari 2.0.4 and it did NOT work. The function was available immediately, but only in the scope of the httpData function. And with window.setTimeout it was available globally, but not immediately inside of httpData grumbles:incoherrently/ Example... external file function gsTest(){alert(Success!!);} inside of $.httpData() window.execScript?window.execScript(data):eval.call( window, data ); gsTest(); In Safari 1.3 or 2.0 the above will alert Success!!, however, clicking on a href=# onclick=gsTest()test/a in the document does not work. inside of $.httpData() window.execScript?window.execScript(data):jQuery.browser.safari ?window.setTimeout(data,0):eval.call( window, data ); gsTest(); In Safari 1.3 or 2.0 the above will NOT alert Success!! immediately. It will throw an error. But, clicking on a link like a href=# onclick=gsTest()test/a in the document will work. Anyone got any ideas? I'm fresh out. If we can't solve this, then I suggest we keep the window.setTimeout in there for Safari since I believe that global availability will be the feature most often used and the 10ms problem will be encountered very rarely. I completely agree with Jörn that it should be documented in the code of the function. On 11/22/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: Paul McLanahan schrieb: jQuery.gEval = function(data){ if(window.execScript) // msie window.execScript(data); else if(jQuery.browser.safari) // safari window.setTimeout(data,0); else // all others eval.call( window, data ); } What do you guys think? Works in all my tests so far, but again, I don't have SVN access here so I'm SOL as far as the sweet new test suite goes. Looks good for me. We should note somewhere that the evaluation is asynchronous for Safari. If anyone actually happens to stumble about that problem, it's nice to have it documented. Could you please check Safari 2.x? It would be nice to use eval.call() if possible... -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Francisco Brito software:http://nullisnull.blogspot.com photography: http://www.flickr.com/photos/darkgoyle everything else: http://brito.mindsay.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Jquery.css function poor performance
Brandon, I disagree with you. I've seen several cases where these two properties can take a second or two on documents with hundreds of nodes.I agree that a test case or example file is needed so the community can verify it and do something about it. -FranciscoOn 10/18/06, Brandon Aaron [EMAIL PROTECTED] wrote: The offsetHeight and offsetWidth properties are very fast. Since Ican't see the code I assume your element is display: none;. That iswhere the performance hit would take place, but even then it should beminimal and not noticeable. I'm thinking there is probably something else going on.--Brandon AaronOn 10/18/06, Raziel Alvarez [EMAIL PROTECTED] wrote: After further tests I realize that most of the time is spent in getting the height and width of the passed element:oHeight = e.offsetHeight;oWidth = e.offsetWidth; Since this calculated by the browser I don't think there's much to do. What do you think? I'm using IE 6; I don't know if the same delay is present in other browsers (probably it is). Do you know of a more efficient way to get the width/height of an element; otherwise I can only think on doing some caching of these values. Thanks On 10/17/06, Brandon Aaron [EMAIL PROTECTED] wrote: Would it be possible for you to post a link so that we can see it or at least maybe just a test case? -- Brandon Aaron On 10/17/06, Raziel Alvarez [EMAIL PROTECTED] wrote: Hi, I'm performing css manipulation in my application, but the performance degrades considerably fast as more markup is added. I tracked the problem to the jQuery.css function, specifically for those cases where I'm setting the width and height. Even small additions to the markup inside of the container to which I want to set the width and height produce a big increase in the delay of such function. I took a quick look at the implementation and they seem to be special cases, and since I don't quite get the logic inside I don't feel comfortable changing it. My application is getting to the point of being useless because of the delay. Is there a plan to fix this in the next release? Is there any way this can be improved meanwhile? Regards, ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/___jQuery mailing list discuss@jquery.comhttp://jquery.com/discuss/-- Francisco Britosoftware: http://nullisnull.blogspot.comphotography: http://www.flickr.com/photos/darkgoyleeverything else: http://brito.mindsay.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How to integrate jquery with java
I use jQuery for DOM manipulation, but for data retrieval I use JSON-RPC/JavaThere's a couple of libraries you can use at http://www.json.org/Good luck,-- Francisco Britosoftware: http://nullisnull.blogspot.comphotography: http://www.flickr.com/photos/darkgoyleeverything else: http://brito.mindsay.com On 10/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi,what is the preferred way to integrate jquery with java? I am planning on using DWR- so I can make calls to my backend- handle moving data from java to _javascript_, vice versa Just curious what are other using? Thanks__jQuery mailing list discuss@jquery.comhttp://jquery.com/discuss/-- Francisco Brito software: http://nullisnull.blogspot.comphotography: http://www.flickr.com/photos/darkgoyle everything else: http://brito.mindsay.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] JCarousel + ajax + Safari = trouble!
I didn't like your puppy.ok, just kidding. On 10/3/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: no comments? did you even like my puppy? did any versions work in IE?No safari gurus out there? does Jan Sorgalla have any idea? On 10/2/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: My first jquery page was to celebrate my new puppy, I had a few pictures, and I read about JCarousel, so it was simple! http://cigar.dynalias.org/junior/ then I realized I needed more pictures, and being too lazy to update the html every time, I decided to parse the index page from my server, and let ajax do it's stuff... and since it was built into jCarousel, I gave it a try! http://cigar.dynalias.org/junior/index-2-dyn.html And that worked great in my firefox, but it didn't show the pictures It scrolled , and did everything, except the pictures. So I guessed maybe my simplified callback was to blame: function loadItemHandler(carousel, start, last, available){ if (!available) jQuery.get(Pix, function(data) { var hrefs = data.match(/(href\s*=\s*)[^]*\.(jpe?g|gif|png)()/gi); for (i in hrefs) { var url = "" + hrefs[i].match(/(.*)/)[1]; var item = carousel.add(i, 'a href="" + url + ' class=Pix target=Piximg src="" + url + ' //a'); } }); carousel.loaded(); }; hmm, so I tried doing the ajax outside ofjCarousel... http://cigar.dynalias.org/junior/index-3-dyn.html jQuery.get(Pix, function(data) { var hrefs = data.match(/(href\s*=\s*)[^]*\.(jpe?g|gif|png)()/gi); for (i in hrefs) { var url = "" + hrefs[i].match(/(.*)/)[1]; jQuery(#mycarousel).prepend('\r\t\t\tlia href="" + url + ' class=Pix target=Piximg src="" + url + ' //a/li'); } jQuery(#mycarousel).jcarousel({ itemVisible: 2, itemScroll: 1, wrap: true, autoScroll:1, scrollAnimation: slow }); }); They all work in firefox, but safari croaks on the 2 ajax versions! Any ideas? -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ ▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒ ░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░ ▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒ ░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░ ▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒--Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒ ___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ -- Francisco Britoon software:http://nullisnull.blogspot.comon everything else: http://brito.mindsay.com photography: http://www.flickr.com/photos/darkgoyle ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problems getting border width
hmm, I can think of using currentStyle (IE) and getComputedStyle (FX), but I don't know what to use for Safari et al.I wonder if jQuery should provide a x-browser way of doing this. Upon superficial inspection, it seemed to me that you're accessing the style attribute, not the current/computed styles. -britoOn 9/8/06, Jan Sorgalla [EMAIL PROTECTED] wrote: I just ran into a problem getting the border width from elements. This isn'ta specific jQuery problem but might end up in an improvment...).I need to get the exact width of an element (width+padding+margin+border). So, i discovered some strange results while retrieving the border width.I've setup a quick and dirty test at:http://sorgalla.com/test/borders.html IE6 and Opera (9.01):If no style is assigned, IE returns medium and Opera returns 3 (whichmight be the default value for medium).All other assigned borders are returned (more or less) correctly. Firefox (1.5.0.6) and Safari (2.0.4):If no style is assigned, return value is 0px.Border width is only returned correctly if its assigned in the styleattribute of the element, otherwise it returns 0px (incorrect). Any suggestion how solve that?Thanks, Jan--View this message in context: http://www.nabble.com/Problems-getting-border-width-tf2239933.html#a6211764 Sent from the JQuery forum at Nabble.com.___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] setting name attribute
Here's a blog post explaining the issue, I apologize for not being clearer:http://webdevel.blogspot.com/2006/08/dynamically-create-radio-buttons-with.html On 9/8/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: Francisco Brito wrote: um... anyone? thoughts? should i create a patch and submit for evaluation?I just created a test for this and the problem does not occur. Maybe I'mmissing something, but as set() does not exist anymore in latest jQuery, updating to pre 1.0 may help.I'll commit the updated test asap, then you can check it for yourself.-- Jörn___jQuery mailing list discuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] problems with :not() and attribute values
I get an error in jQuery when I do this:div span exclude=truespan foo=barnot me/span/span span foo=bazme/span/div$('span').filter('[EMAIL PROTECTED]:not([EMAIL PROTECTED]true]*)');however, I don't get the error with: $('span').filter('[EMAIL PROTECTED]:not([EMAIL PROTECTED]*)');which is basically the same, except that i removed the value for the exclude attribute. The error is: '1' is null or not an objectthrown from line 698: // :not() is a special case that can be optomized by// keeping it out of the _expression_ listif ( m[1] == : m[2] == not )where:m = re.exec(t)re = /^([:.#]*)([a-z*_-][a-z0-9_-]*)/i t = ([EMAIL PROTECTED]true\]*)Seems like it could be a bug where not can't handle attribute values or something. I didn't find this in the bugs but I have a hard time navigating them. Can anyone confirm or point me to the bug report? I appreciate it,-brito ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] :not, :and
Should $().add() be $().and() instead? It makes more sense if the counterpart is not.-brito ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] eval.call( window,jscode) does not work in IE
eval can't be called for execScript, but eval is a method of the window you want your scripts evaluated on. That's why I was using self.eval:(window.execScript || self.eval)(this.text || this.textContent || this.innerHTML || );BritoOn 9/2/06, John Resig [EMAIL PROTECTED] wrote: I created a ticket for this issue here:http://proj.jquery.com/dev/bugs/bug/171/I'll get to it ASAP.--JohnOn 9/1/06, ashutosh bijoor [EMAIL PROTECTED] wrote: That's IT, Francisco! That does the trick. In jquery svn, we need to change the following lines: Line number 4910: eval.call ( window, this.text || this.textContent || this.innerHTML || ); should be changed to {var src="" this.text || this.textContent || this.innerHTML || ; window.evalScript?window.evalScript(src):eval.apply(window,src);} Unfortunately this does not work: (window.evalScript?window.evalScript:eval).apply(window,this.text || this.textContent || this.innerHTML || ); Similarly, line 5134: if ( type == script ) eval.call( window, data ); should be changed to: if ( type == script ) {window.evalScript?window.evalScript(data):eval.call( window, data );} John, pls do the needful. Thanks Regards Ashutosh On 9/1/06, Francisco Brito [EMAIL PROTECTED] wrote: Use window.execScript for IE. (some switch would be needed, such as:) (window.execScript || self.eval)(script); cheers Brito On 9/1/06, ashutosh bijoor [EMAIL PROTECTED] wrote: The solution suggested earlier for executing _javascript_ code embedded in HTML returned by an ajax call by using eval.call(window,...) works great in FF, but not in IE6. eval.call(window,jscode) still executes in the context of the block in which eval is called. Hence, any functions that are defined in the loaded _javascript_ are not available outside. i tried all kinds of things to get around this such as : with (window) { eval(jscode); } I thought maybe the prototype guys have cracked this problem, but alas - they do not even do the eval.call (window,...) so I expect their code will not even work in FF. Any suggestions? How can we change the execution context of eval? Regards Ashutosh On 8/17/06, ashutosh bijoor [EMAIL PROTECTED] wrote: On a related issue to load, I was running into trouble with the embedded script execution that jquery does by default as follows: // Execute all the scripts inside of the newly-injected HTML$(script, self).each(function(){eval( this.text || this.textContent || this.innerHTML || );}); I noticed in my tests in FF 1.5, that if there are any functions defined in the script tags, these functions have scope only in the block containing the eval - in this case, the callback function for each, and hence these are unavailable in the global scope. To circumvent this problem, I did the following: // Execute all the scripts inside of the newly-injected HTML$(script, self).each(function(){ eval.call(window,this.text || this.textContent || this.innerHTML || );}); This solves the problem of making the scripts globally scoped. I also noticed during my tests that the scripts which loaded external js files were also giving me trouble. But before I suggest my solution for the same, I'd like some inputs on whether this problem is genuine. To illustrate the above problems, assume we make an ajax call as follows:$('#mydiv').load('test.html'); and test.html contained: script type=text/_javascript_function myfunc() {alert(Hi);} /scriptscript type=text/_javascript_ src="">input type=button value=click here input type=button value=click here too > And myfile.js contained : function myotherfunc() { alert(MyOtherFunc);} Now once test.html is loaded in mydiv, if we click on the two buttons, we should expect the respective alerts, right?Well no - it did not work that way for me. And then with a little bit of digging, I found the following: 1. The first script was indeed executed, but the myfunc() was defined only in the scope of the eval block. So the above fix worked for solving this problem. 2. For the other script tag script type=text/_javascript_ src="" myfile.js, somehow myfile.js did not get loaded at all! For now, I've fixed this in a round-about way by actually adding a script tag to the head etc. But would appreciate if someone could give me inputs regarding this problem. Does it behave the same in other browsers? Or is it just my browser? Or just me :-) Regards Ashutosh On 8/17/06, Taku Sano (Mikage Sawatari) [EMAIL PROTECTED] wrote:With Ajax facilities of jQuery, it is not easy to deal with errors. In addition, it is inconvenient to repeat reloading the same URL to observe changes. Please confirm my patch handles these issues. [patch for svn.208] http://pepper.sherry.jp/jquery/newajaxp
Re: [jQuery] eval.call( window,jscode) does not work in IE
er, apply can't be called for execScript.BritoOn 9/3/06, Francisco Brito [EMAIL PROTECTED] wrote:eval can't be called for execScript, but eval is a method of the window you want your scripts evaluated on. That's why I was using self.eval:(window.execScript || self.eval)(this.text || this.textContent || this.innerHTML || );BritoOn 9/2/06, John Resig [EMAIL PROTECTED] wrote: I created a ticket for this issue here:http://proj.jquery.com/dev/bugs/bug/171/I'll get to it ASAP. --JohnOn 9/1/06, ashutosh bijoor [EMAIL PROTECTED] wrote: That's IT, Francisco! That does the trick. In jquery svn, we need to change the following lines: Line number 4910: eval.call ( window, this.text || this.textContent || this.innerHTML || ); should be changed to {var src="" this.text || this.textContent || this.innerHTML || ; window.evalScript?window.evalScript(src):eval.apply(window,src);} Unfortunately this does not work: (window.evalScript?window.evalScript:eval).apply(window,this.text || this.textContent || this.innerHTML || ); Similarly, line 5134: if ( type == script ) eval.call( window, data ); should be changed to: if ( type == script ) {window.evalScript?window.evalScript(data):eval.call( window, data );} John, pls do the needful. Thanks Regards Ashutosh On 9/1/06, Francisco Brito [EMAIL PROTECTED] wrote: Use window.execScript for IE. (some switch would be needed, such as:) (window.execScript || self.eval)(script); cheers Brito On 9/1/06, ashutosh bijoor [EMAIL PROTECTED] wrote: The solution suggested earlier for executing _javascript_ code embedded in HTML returned by an ajax call by using eval.call(window,...) works great in FF, but not in IE6. eval.call(window,jscode) still executes in the context of the block in which eval is called. Hence, any functions that are defined in the loaded _javascript_ are not available outside. i tried all kinds of things to get around this such as : with (window) { eval(jscode); } I thought maybe the prototype guys have cracked this problem, but alas - they do not even do the eval.call (window,...) so I expect their code will not even work in FF. Any suggestions? How can we change the execution context of eval? Regards Ashutosh On 8/17/06, ashutosh bijoor [EMAIL PROTECTED] wrote: On a related issue to load, I was running into trouble with the embedded script execution that jquery does by default as follows: // Execute all the scripts inside of the newly-injected HTML$(script, self).each(function(){eval( this.text || this.textContent || this.innerHTML || );}); I noticed in my tests in FF 1.5, that if there are any functions defined in the script tags, these functions have scope only in the block containing the eval - in this case, the callback function for each, and hence these are unavailable in the global scope. To circumvent this problem, I did the following: // Execute all the scripts inside of the newly-injected HTML$(script, self).each(function(){ eval.call(window,this.text || this.textContent || this.innerHTML || );}); This solves the problem of making the scripts globally scoped. I also noticed during my tests that the scripts which loaded external js files were also giving me trouble. But before I suggest my solution for the same, I'd like some inputs on whether this problem is genuine. To illustrate the above problems, assume we make an ajax call as follows:$('#mydiv').load('test.html'); and test.html contained: script type=text/_javascript_function myfunc() {alert(Hi);} /scriptscript type=text/_javascript_ src="">input type=button value=click here input type=button value=click here too > And myfile.js contained : function myotherfunc() { alert(MyOtherFunc);} Now once test.html is loaded in mydiv, if we click on the two buttons, we should expect the respective alerts, right?Well no - it did not work that way for me. And then with a little bit of digging, I found the following: 1. The first script was indeed executed, but the myfunc() was defined only in the scope of the eval block. So the above fix worked for solving this problem. 2. For the other script tag script type=text/_javascript_ src="" myfile.js, somehow myfile.js did not get loaded at all! For now, I've fixed this in a round-about way by actually adding a script tag to the head etc. But would appreciate if someone could give me inputs regarding this problem. Does it behave the same in other browsers? Or is it just my browser? Or just me :-) Regards Ashutosh On 8/17/06, Taku Sano (Mikage Sawatari) [EMAIL PROTECTED] wrote:With Ajax facilities of jQuery, it is not easy to deal with errors. In addition, it is inconvenient to repeat reloading the same URL to observe changes. Please c
Re: [jQuery] Running jQuery when already have $() from prototype
There's a better explanation at the jQuery home page, but in a nutshell:jQuery detects your previously defined $ function and executes some additional logic. The only difference is that $('hello') will now try it by tag name and then by id. The only truly ambiguous case is if you currently have an id that also matches a tag in your document, for example $('address'). This should be rare so if it does come up it shouldn't be difficult to fix. Now, I've had other collisions with some of the plugins, namely interface. I have prototypes for Array and Number objects and there seems to be a bit of a misunderstanding there. In my opinion this is a bug in interface, but we'll see. cheersBritoOn 9/1/06, Rune Sandberg [EMAIL PROTECTED] wrote: Hi,The company I work for have our own custom _javascript_ library where we basically have 'borrowed' some functions such as the infamous $() from prototype as well as a fair bit of our own. The application is pretty big and we want to avoid changing the current $() functionality, but we really want to start incorporating jQuery. I have read docs/PrototypeAndJQuery/, but I'm still not sure how this would work. Will the jQuery $() (which is 100 times better) overwrite the prototype $() when jQuery is included last? I thought I'd try to reach out to someone with experience doing this instead of causing the application to break severely. Thanks, Rune ___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Menu with SelectBox showing through
A backing iframe is what I've used for a couple of years now. Keep in mind that this is only needed for IE7. Since this inevitably requires a browser sniff, I stick with !--[if IE lt 7] (conditional markup). Other options that I've seen include hiding the selects (ugly when only hiding the select partially) but maybe useful in a particular case.If you leave the iframe for Firefox (at least), you might lose the input caret on textareas and inputs. For example, a floating dialog with a textarea backed with an iframe = no caret in FX. I hope this helps youBritoOn 9/1/06, Lipka, Glen [EMAIL PROTECTED] wrote: I am using jQuery for a drop down menu.Currently, select boxes are showing through the menu. On the date picker plugin, he appends an iFrame behind the menu.Is this the best way or is there an easier way to achieve the desired effect?Thanks,Glen Lipka | Sr. UI Designer, WCG | Intuit Inc. | ext. 46435 | Cell: 510.701.8203___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Jquery Ajax $post to a new window
I'm sorry, I was writing pseudo-code. I just don't remember right now the syntax, but for example, if you had:$.post(url, formData);now you'd have:var newWindow = window.open(...);newWindow.$.post(url, formData); BritoOn 9/1/06, Gholias [EMAIL PROTECTED] wrote: win.post(myformData);This is from jquery or js native?what is myformData? an array?Francisco Brito escreveu: I'd say you need to open the window first, then post through it: var win = window.open(...); win.post(myformData); You will need jQuery on your new window to be able to use the ajax plugin, so it can't be an empty document. I hope this helps, Brito On 9/1/06, *Gholias* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I need create a print version of my page I need open this print version on a new window The page is rendered using variables from a post made the ajax plugin how can I use Jquery to force this post to open a new window? like a target _blank on form tag? ___ jQuery mailing list discuss@jquery.com mailto:discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] bad iterator in interface's sortables
The iterator being used is a for-in but the object is an Array, so it's sometimes breaking and sometimes doing insane things due to my additions to Array.prototype.Sortables:92for(i in jQuery.iSort.changed){ I suggest changing it to a vanilla for loop:for(var i = 0; i jQuery.iSort.changed.length; i++){Optimization and actually seeing if it works is an exercise to the reader ;)IMHO I don't think iterating with a for-in is a good idea if the object is an array. Cheers,Brito ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] using end() repeatedly
I have something like: return this.filter('[EMAIL PROTECTED]').not('input').not('textarea').not('select').each(function (){ /* stuff */ }).end('select').end('textarea').end('input').end('[EMAIL PROTECTED]');1. Is this query completely daft? AFAIK, I can't use commas like: not('input, textarea, select') 2. I'm passing arguments to the ends because it's easier to keep track of them. Kind of like closing parenthesis and tabbing.3. Is this the way it was intended or am I missing something? It's possible to just return directly from the stack, but it doesn't seem as maintainable or clear. Still, I'm not completely happy with the syntax. Thoughts?-brito ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] setting name attribute
I'm not sure if this already came up in the mailing list, I couldn't find it.As you know, setting the name attribute on an input field cannot be done in IE like:$('input').set('name', 'something'); Is it the intent of jQuery to deal with browser inconsistencies like this? Because a workaround would increase the codebase size (maybe slightly, maybe not) but it would also increase its reliability.Since it has to work dynamically, the workaround not only needs to create it differently, perhaps with something like: (bear with the pseudocode)newInput = document.createElement(input.outerHTML.replace(someRegex, myName)); $(newInput).transferEvents(input); // or something$(input).after(newInput).remove();thoughts?-Brito ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] needed: edit html plugin
Does anyone know of a jQuery plugin for editing HTML?It's a mega pain in the plugin to deal with browser whims regarding ranges, selections and editable HTML.(refresher: like dojo's or HTMLArea)By the way, does anyone know of a plugin for handling selections/ranges? -Britoblatant_advertisementI've just posted an entry about jQuery (yet another jQuery is great post). Read it if you're interested. http://nullisnull.blogspot.com/2006/08/seriously-what-is-jquery.html/blatant_advertisement ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/