Re: [jQuery] Appending option to select
What I would do is just create Option object, it would do the append automatically. [code untested] var routeSelect = $(#routeSelect).get(0); routeSelect.options.length = 0; //reset to zero length for(var i = 0; i routes.length; ++i) { routeSelect.options[i] = new Option(routes[i],routes[i]); } On 10/11/06, Klaus Hartl [EMAIL PROTECTED] wrote: Sean O schrieb: Galen, This may be of little help, but might get you pointed in the right direction... The following code works in FF 1.5.0.7 (PC): // dummy data var routes=new Array(); routes[0]=Zero; routes[1]=One; routes[2]=Two; var options=; for(i = 0; i routes.length; ++i) { options += ' option value=' + routes[i] + '' + routes[i] + '/option\r\n'; } options += /select; $(#routeselect).html(options); However, it bombs (empty select) in both IE6 and O9... In IE the innerHTML property for a select element is readonly, so forget about html() or append(String). You'll have to use the option constructor or document.createElement... -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Best Regards, Jacky 網絡暴民 http://jacky.seezone.net ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Appending option to select
i´m using 1.0.1 here´s part of my code: for (i=0;idata_schools.length;i++) { var option = $.OPTION({ value:data_schools[i][0] }, data_schools[i] [0] ); $('#selectLocation').append(option); } select name=location class=vSelectField id=selectLocation option value= selectedbitte auswauml;hlen/option /select data_schools is a json_list, btw. Am 10.10.2006 um 23:39 schrieb Rey Bango: Patrick, I tried using this plugin but it didn't seem to work with v1.0.1. Which version of JQuery are you using? Rey patrickk wrote: I´m using the plugin for DOM creation to accomplish that. see http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and-prototype patrick Am 10.10.2006 um 22:49 schrieb Galen Palmer: Hi All, I'm new to jquery but like what I see so far. I have an array of strings that I'd like to add to a select element as option elements. HTML: select id=routeSelect /select JavaScript: for(var i = 0; i routes.length; ++i) { $(#routeSelect).append(option value=\ + routes[i] +\+ routes[i] +/option); } The above code appears to just append the text to the select element without creating the child option elements. Viewing the generated source (in Web Developer in Firefox) shows htm like: select id=routeSelectabcdef/select However, the following code (more old school) seems to work fine. var routeSelect = $(#routeSelect).get(0); for(var i = 0; i routes.length; ++i) { routeSelect.options[i + 1] = new Option( routes[i], routes[i]); } I'm using firefox under Mac OSX though it looks like the same behavior under safari and opera. ___ 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.com http://jquery.com/discuss/
Re: [jQuery] Appending option to select
On 11/10/06, Blair McKenzie [EMAIL PROTECTED] wrote: I dug this plugin up from the mail list. Don't know whether it's up to date though. BlairThat is an old version. I have a newer version available at:http://www.texotela.co.uk/code/jquery/select/To add multiple options: var myOptions = { Value 1 : Text 1, Value 2 : Text 2, Value 3 : Text 3}$(#myselect2).addOption(myOptions, false); // use true if you want to select the added options ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Appending option to select
On 11/10/06, Sam Collett [EMAIL PROTECTED] wrote: On 11/10/06, Blair McKenzie [EMAIL PROTECTED] wrote: I dug this plugin up from the mail list. Don't know whether it's up to date though. BlairThat is an old version. I have a newer version available at: http://www.texotela.co.uk/code/jquery/select/To add multiple options: var myOptions = { Value 1 : Text 1, Value 2 : Text 2, Value 3 : Text 3}$(#myselect2).addOption(myOptions, false); // use true if you want to select the added options If you already have an array that can't be changed (generated from someone elses script), you could always loop through it to populate 'myOptions':var ar = [];ar[Value 1] = Text 1; ar[Value 2] = Text 2;ar[Value 3] = Text 3;var myOptions = {};for (var i in ar){ myOptions[i] = ar[i];} ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Error in latest svn jquery.js (427)
noticed the same, going to look at it.2006/10/11, Mike Alsup [EMAIL PROTECTED]: In the attr method the following barfs:var fix = {...cssFloat: fix[float],...};___jQuery mailing list discuss@jquery.comhttp://jquery.com/discuss/-- Paul BakausWeb DeveloperHildastr. 35 79102 Freiburg ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] form plugin updates
The plugin is now 1.70KB when packed. At some point it would be nice to roll the changes from the past few weeks back into SVN and determine if it might be a core candidate at that point. The big problem with merging into core: The currente serialize method and the one from the form plugin are not compatible. The first serializes the current elements to a query string, the second starts with a form and serializes all descendent form elements to an array. I don't think this is a big problem, we can just rename the form's serialize method to formSerialize or something like that. It's unfortunate that two methods of the same name exist and it's better to fix it now than to perpetuate it. I think the real question is whether or not to add another 2K to core. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] new plugin: nifty for jQuery
Hi all,I noticed there was an update on the famous nifty2, which does rounded corners on elements without the use of graphics. When I saw the parsing capabilites, I thought Why not use jQuery for that. So I went ahead and used 3 hours of my time to modify and optimize the plugin as a jQuery plugin. You can check it out here: http://paul.jquery.com/plugins/nifty/ The code can probably still be optimized alot, but I don't have the time. If someone wants to help, go on and grap the js :)See ya,Paul-- Paul BakausWeb Developer Hildastr. 3579102 Freiburg ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] New plug-in: pager
Hi guys, Just to let you know I've released a new plug-in called pager. It's used for paginating long blocks of content in areas such as inflexible designs. Any comments and criticism would be greatly received! Examples and downloads are on http://rikrikrik.com/jquery/pager/ Thanks Rik -- Rik Lomas http://rikrikrik.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New plug-in: pager
This is very cool! Good work! I also like the unobstrusive way for non-_javascript_ enabled browsers.2006/10/11, Rik Lomas [EMAIL PROTECTED] :Hi guys,Just to let you know I've released a new plug-in called pager. It's used for paginating long blocks of content in areas such as inflexibledesigns. Any comments and criticism would be greatly received!Examples and downloads are on http://rikrikrik.com/jquery/pager/ ThanksRik--Rik Lomashttp://rikrikrik.com___jQuery mailing list discuss@jquery.comhttp://jquery.com/discuss/-- Paul BakausWeb DeveloperHildastr. 35 79102 Freiburg ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Error in latest svn jquery.js (427)
My fault guys :/ That was really stupid of me. -- Brandon Aaron On 10/11/06, Paul Bakaus [EMAIL PROTECTED] wrote: noticed the same, going to look at it. 2006/10/11, Mike Alsup [EMAIL PROTECTED]: In the attr method the following barfs: var fix = { ... cssFloat: fix[float], ... }; ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Paul Bakaus Web Developer Hildastr. 35 79102 Freiburg ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Error in latest svn jquery.js (427)
yeah, saw your change when I tried to commit :P2006/10/11, Webunity | Gilles van den Hoven [EMAIL PROTECTED]: Paul Bakaus wrote: noticed the same,going to look at it.p.s. it is allready patched ;)___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/-- Paul BakausWeb DeveloperHildastr. 3579102 Freiburg ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Error in latest svn jquery.js (427)
Paul Bakaus wrote: noticed the same, going to look at it. p.s. it is allready patched ;) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] effects problem with jquery 1.0.2
This is fixed in revision 420. -- Brandon Aaron On 10/11/06, Kelvin Luck [EMAIL PROTECTED] wrote: I experienced similar problems last night but didn't have time to put together a simple example test page... Not sure what but something definitely appeared to be wrong. On Wed, October 11, 2006 9:56 am, David Duymelinck wrote: I've downloaded the uncompressed 1.0.2 version rev 413 and i experienced a few problems with the hide, show, animate functions $(img).siblings(img:visible).animate({opacity:'hide'}, anitime).end().animate({opacity:'show'}, anitime); This code works fine in firefox and IE using the packed 1.0.1 rev 249 jquery code but in the latest version the image shows once but after that it doesn't anymore. I've tried $(img).siblings(img:visible).hide().end().show(); and that worked but $(img).siblings(img:visible).hide('slow').end().show('slow'); doesn't. And it has the same behaviour as animate. Is there a change in the code or am i doing it wrong (again)? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] How to implement file upload using AJAX?
This is a good idea!We can start a plugin development!Let's make a dev team to this!Stay beautiful!Eriksen ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Append body
There is nothing wrong with your code. You may have another issue. -- View this message in context: http://www.nabble.com/Append-body-tf2419689.html#a6755973 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How to implement file upload using AJAX?
File upload is not possible using JavaScript for security reasons. There have allready been a lot of people asking this on this list. -- Gilles /If you'd Googled, you'd know/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] effects problem with jquery 1.0.2
Brandon, Is the complete v420 found here: http://jquery.com/dev/svn/jquery/src/jquery/jquery.js or do I still need to combine all of the other files such as ajax.js, fx.js. etc.? Rey... Brandon Aaron wrote: This is fixed in revision 420. -- Brandon Aaron On 10/11/06, Kelvin Luck [EMAIL PROTECTED] wrote: I experienced similar problems last night but didn't have time to put together a simple example test page... Not sure what but something definitely appeared to be wrong. On Wed, October 11, 2006 9:56 am, David Duymelinck wrote: I've downloaded the uncompressed 1.0.2 version rev 413 and i experienced a few problems with the hide, show, animate functions $(img).siblings(img:visible).animate({opacity:'hide'}, anitime).end().animate({opacity:'show'}, anitime); This code works fine in firefox and IE using the packed 1.0.1 rev 249 jquery code but in the latest version the image shows once but after that it doesn't anymore. I've tried $(img).siblings(img:visible).hide().end().show(); and that worked but $(img).siblings(img:visible).hide('slow').end().show('slow'); doesn't. And it has the same behaviour as animate. Is there a change in the code or am i doing it wrong (again)? ___ 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/
Re: [jQuery] Append body
sdkester schrieb: I tried appending the body with a div using the following in a js file: $(body).append('div id=ajaxBusy class=ajaxBusyp ../../loading2.gif nbsp;nbsp;/p/div'); It is not working. Maybe I'm going about it wrong. I simply want to insert the above html anywhere in the body. Is my code wrong and/or am I approching it from the wrong angle. I once had strange problems with 'body' in IE. The following then worked for me: $(document.body).append( ... ); -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] form plugin updates
I don't think this is a big problem, we can just rename the form's serialize method to formSerialize or something like that. It's unfortunate that two methods of the same name exist and it's better to fix it now than to perpetuate it. I think the real question is whether or not to add another 2K to core. Also, the serialize method in core is really not useful for forms, yet it returns a string in the format: name1=value1name2=value2... When would you do this other than when processing a form? And if you're processing a form, why wouldn't you want to handle it correctly (like supporting option elements, etc)? I'm starting to think it makes more sense to have a serialize and a serializeToArray method which both use the logic currently found in the form plugin. The form's ajaxSubmit and ajaxForm methods would use serializeToArray. I don't even think this would break code that currently uses serialize from core. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] effects problem with jquery 1.0.2
Yes you do. If you use subversion and then use either ant or make the combination of the files is as simple as a single command. Ok. Haven't used any of those. Can you point me in the right direction? Thanks, Rey ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] new plugin: nifty for jQuery
On 11/10/06, Paul Bakaus [EMAIL PROTECTED] wrote: Hi all, I noticed there was an update on the famous nifty2, which does rounded corners on elements without the use of graphics. When I saw the parsing capabilites, I thought Why not use jQuery for that. So I went ahead and used 3 hours of my time to modify and optimize the plugin as a jQuery plugin. You can check it out here: http://paul.jquery.com/plugins/nifty/ The code can probably still be optimized alot, but I don't have the time. If someone wants to help, go on and grap the js :) See ya, Paul -- Paul Bakaus Web Developer Hildastr. 35 79102 Freiburg That's a nifty plugin you have done ;) ___ 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] How to integrate jquery with java
Hi Francisco, Check out the following plugin for handling JSON: http://mg.to/2006/01/25/json-for-jquery Rey... Francisco Brito wrote: I use jQuery for DOM manipulation, but for data retrieval I use JSON-RPC/Java There's a couple of libraries you can use at http://www.json.org/ Good luck, -- Francisco Brito software: http://nullisnull.blogspot.com photography:http://www.flickr.com/photos/darkgoyle everything else: http://brito.mindsay.com On 10/9/06, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* [EMAIL PROTECTED] mailto:[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.com mailto: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 http://brito.mindsay.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] effects problem with jquery 1.0.2
Here are two good links to get you pointed in the right direction: http://dojo.jot.com/WikiHome/Getting%20Started%20With%20Subversion http://dojo.jot.com/Getting%20Started%20With%20Ant -- Brandon Aaron On 10/11/06, Rey Bango [EMAIL PROTECTED] wrote: Yes you do. If you use subversion and then use either ant or make the combination of the files is as simple as a single command. Ok. Haven't used any of those. Can you point me in the right direction? Thanks, Rey ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Append body
Thank you for the suggestion. I tried that and get an operation aborted error from IE and it won't let me load the page. Any other ideas? Klaus Hartl wrote: sdkester schrieb: I tried appending the body with a div using the following in a js file: $(body).append('div id=ajaxBusy class=ajaxBusyp ../../loading2.gif nbsp;nbsp;/p/div'); It is not working. Maybe I'm going about it wrong. I simply want to insert the above html anywhere in the body. Is my code wrong and/or am I approching it from the wrong angle. I once had strange problems with 'body' in IE. The following then worked for me: $(document.body).append( ... ); -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Append-body-tf2419689.html#a6758146 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Append body
Are you running your code before the dom is ready? Try this: $(document).ready(function(){ $(body).append('div id=ajaxBusy class=ajaxBusy.../div'); }); Luke -- zinc Roe Design www.zincroe.com (647) 477-6016 sdkester wrote: Thank you for the suggestion. I tried that and get an operation aborted error from IE and it won't let me load the page. Any other ideas? Klaus Hartl wrote: sdkester schrieb: I tried appending the body with a div using the following in a js file: $(body).append('div id=ajaxBusy class=ajaxBusyp ../../loading2.gif nbsp;nbsp;/p/div'); It is not working. Maybe I'm going about it wrong. I simply want to insert the above html anywhere in the body. Is my code wrong and/or am I approching it from the wrong angle. I once had strange problems with 'body' in IE. The following then worked for me: $(document.body).append( ... ); -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Append body
You were right on the money! It works now. Thank you very much! Luke Lutman wrote: Are you running your code before the dom is ready? Try this: $(document).ready(function(){ $(body).append('div id=ajaxBusy class=ajaxBusy.../div'); }); Luke -- zinc Roe Design www.zincroe.com (647) 477-6016 sdkester wrote: Thank you for the suggestion. I tried that and get an operation aborted error from IE and it won't let me load the page. Any other ideas? Klaus Hartl wrote: sdkester schrieb: I tried appending the body with a div using the following in a js file: $(body).append('div id=ajaxBusy class=ajaxBusyp ../../loading2.gif nbsp;nbsp;/p/div'); It is not working. Maybe I'm going about it wrong. I simply want to insert the above html anywhere in the body. Is my code wrong and/or am I approching it from the wrong angle. I once had strange problems with 'body' in IE. The following then worked for me: $(document.body).append( ... ); -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Append-body-tf2419689.html#a6758540 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New plug-in: pager
Rik Lomas schrieb: Hi guys, Just to let you know I've released a new plug-in called pager. It's used for paginating long blocks of content in areas such as inflexible designs. Any comments and criticism would be greatly received! Examples and downloads are on http://rikrikrik.com/jquery/pager/ Thanks Rik Very beautiful! Unobtrusive at its best. I suggest to put in the pager links as an unordered list. That gives an author a little more flexibility for styling. You may run into problems with the autoheight if you resize text or if the container the pages reside have a fluid width. I have the same problem with the tabs plugin. I use min-height for setting the height there to avoid overflowing content, but it's not a 100% solution, because the equal height still can get lost. One could incorporate the jqEm plugin to observe text size changes but that still doesn't take a fluid width (== fluid height) into account. Maybe you'd have to constantly observe the height of the largest page... let me know if you have a solution and vice versa. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] form plugin updates
Mike Alsup schrieb: The plugin is now 1.70KB when packed. At some point it would be nice to roll the changes from the past few weeks back into SVN and determine if it might be a core candidate at that point. The big problem with merging into core: The currente serialize method and the one from the form plugin are not compatible. The first serializes the current elements to a query string, the second starts with a form and serializes all descendent form elements to an array. I don't think this is a big problem, we can just rename the form's serialize method to formSerialize or something like that. It's unfortunate that two methods of the same name exist and it's better to fix it now than to perpetuate it. I think the real question is whether or not to add another 2K to core. I think, if the Ajax module is in the core, the form module should be as well. The only way to use the form plugin is with Ajax and also because we need to do something about the current serialize method anyway... -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Best way for storing user preferences?
Hi, I've seen searching lately for a good way of storing preferences which a jQuery script needs later on. The specific information the script needs is the starting state of a div element (either open or closed). The preferences are stored in a DB and sent from there somehow to the browser. The sent and storing part is now the part I am searching for. After searching around for a while I found several ideas/solutions. But none seems to be perfect for me. So I wanted to ask you what is the best way to do it: 1) Store the information in an invincible div at the end of the page. And then parse this div. E.g: div id=prefs var1: value1; var2: value2; /div 2) The js-script gets generated each time the page is called. And the corresponding vars are set in there. 3) Every time the page is loaded the js-script asks the server for a XML (or JSON) file with the preferences in there. 4) Write a XHTML DTD module in order to extend the div element with a state-attribute. E.g: div state=closed 5) More (and better) ideas? To say is that those pages are often reloaded. From my point of view 3) generates to much traffic on the net. 1) is just a hack and therefor not really a good solution. I have my jQuery scripts already in an external file. This way they can be cached by the browser and don't have to be sent every time. So I don't really like 2) either. Right now I would go with 4) unless someone has a better idea. Does anybody have a better solution? Raffael ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Best way for storing user preferences?
Raffael Luthiger wrote: 3) Every time the page is loaded the js-script asks the server for a XML (or JSON) file with the preferences in there. Option 3, but save the data you got from the server in a cookie, which you destroy after 1 day or something like that. Each time the user changes the div, a new cookie is set and data is send back to the server. This saves you half in traffic and is the best solution if you ask me. Gilles p.s. there is a jQuery cookie plugin :p ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Best way for storing user preferences?
Raffael Luthiger wrote: 2) The js-script gets generated each time the page is called. And the corresponding vars are set in there. 3) Every time the page is loaded the js-script asks the server for a XML (or JSON) file with the preferences in there. 5) More (and better) ideas? I'd use a combination of these. This same problem plagued me for a while too, I didn't like the idea of generating JS on the fly, and an ajax request seemed overkill, then it suddenly struck me today: From the backend, serialize your data as JSON, and place it in the value attribute of a hidden input element. eg: in HTML: input type=hidden id=state value={hide:['section1','section2']}/ then in JS: eval('var state = ' + $('#state').val()); I'm currently writing a plugin to pull JSON data from a document like this (roughly based on XForms model/instance concepts), although as I say I've only just started this today :) - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Documentation of return objects?
Are the return types for various methods documented anywhere? I can guess on most of them, but I'd like a handy cheat sheet showing that .html('blah') returns the original element. Things like .after() aren't at all obvious, however, and I could see a reasonable case for it to either return the original element, or the inserted element. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How to implement file upload using AJAX?
reading a file is not possible using JavaScript for security reasons. automatically choosing a file is not possible using JavaScript for security reasons. scripting a submit , in an html form, is very doable, Google mail does it every time... so does Google docs spreadsheets! I can't see not doing this way any more! But we need a jQ plugin for unobtrusive compatibility -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ On 10/11/06, Webunity | Gilles van den Hoven [EMAIL PROTECTED] wrote: File upload is not possible using JavaScript for security reasons. There have allready been a lot of people asking this on this list. -- Gilles /If you'd Googled, you'd know/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Documentation of return objects?
Yep: http://jquery.com/api/ On 10/11/06, Kurt Mackey [EMAIL PROTECTED] wrote: Are the return types for various methods documented anywhere? I can guess on most of them, but I'd like a handy cheat sheet showing that .html('blah') returns the original element. Things like .after() aren't at all obvious, however, and I could see a reasonable case for it to either return the original element, or the inserted element. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] form plugin updates
I don't think this is a big problem, we can just rename the form's serialize method to formSerialize or something like that. It's unfortunate that two methods of the same name exist and it's better to fix it now than to perpetuate it. I think the real question is whether or not to add another 2K to core. I think form.js's .serialize() should supercede the serialize() in ajax.js. It's all around a better plugin. If we're serious about merging jQuery and the form plugin, then the better one should go first. As far as adding weight to core, I don't think we should. Instead, I think the download mechanism should be improved to include the most popular plugins (like Interface, Forms, and Dimensions). If anything, I think the meat of jQuery should be getting smaller. --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Fix for IE XML nested each issues (Bug #164)
Peter Woods schrieb: The fix is quite simple, as far as I can tell... simply replace the line in question with this: // Handle HTML strings var m; if (typeof a == string) m = /^[^]*(.+)[^]*$/.exec(a); This works and is now in SVN, tested. } else if ( jQuery.browser.msie elem.getAttribute(name) != undefined ) { if ( value != undefined ) elem.setAttribute( name, value ); return elem.getAttribute( name ); This caused quite a lot of other problems contains: ((a.firstChild a.firstChild.nodeValue)||a.innerText||a.innerHTML).indexOf(m[3])=0, Is added to SVN, but yet untested... -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] generic xml loading - xml doesnt get returned in FF
Goal of the script: Click on link, load an XML and use the content. While al this is happening I want to display a loading image. My first code worked fine in IE and FF but was not generic: //Code - Example here: http://www.jmslbam.nl/temp/jquery/xml/ajaxStatic.html $(document).ready(function(){ $("#loadingImg").hide(); $("#text").hide(); $("#clickMe").click(function(){ $("#text").hide(); $("#loadingImg").show(); var strImg, strText; $("#loadingimg").show(); var objXml = $.get("loadme.xml", function(xml){ strText = $("text",xml).text(); $("#text").html(strText); //alert(strText); strImg = $("img",xml).text(); $("#text").append("img src="" "+strImg+"\" /"); $("#text").fadeIn(); $("#loadingImg").hide(); }); //end load xml }); //end click });//end onload Soit has been adjusted that you send the xml path as a parameter and the custom loadXml() handle the loading of the XML and show the loading.gif. Well IE handles the next code well, but FF fails: //Code - Example here: http://www.jmslbam.nl/temp/jquery/xml/ajaxGeneric.html$(document).ready(function(){$("#loadingimg").hide(); $("#text").hide(); function loadXml(strPathToXml) { var _objXml; $("#loadingimg").show(); var objXml = $.get(strPathToXml, function(xml){ _objXml = xml; //alert("xmlLoad: " + $("text",xml).text()); }); $("#loadingimg").hide(); return _objXml; } //end loadXML $("#clickMe").click(function(){ //hide if the link is going to be clicked more than once. $("#text").hide(); //load xml var objXml2, strText, strImg; objXml2 = loadXml("loadme.xml"); //get text from xml and put it in the html strText = $("text",objXml2).text(); $("#text").html(strText); //get the image and put it behind the text strImg = $("img",objXml2).text(); //alert("click: "+ strText); $("#text").append("img src="" "+strImg+"\" /"); //at last show the div#text $("#text").show(); }); //end click });//onready The alert in the onclick wont display any text, so it looks like the XML object isntreturned to the click function. Me and my collega's looked at it but can't find out what the problem is. Yours sincerly,Jaime Martinez P.S. The image that will be shown has to load, so probably this first time you click it will not display the image. Just click again ;)P.S. 2 The is a zip if you want to test it local, but remember to start the webserver ;) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Problem with interface FX - Scroll
Hi, I'm trying to implement interface elements FX - Scroll on a page. I've got jQuery compressed 1.0.2 rev 4.1.3 and used the automated download packager for the interface element, which gave me a file called interface.js. This file doesn't appear to work. Firebug gives me missing ; before statement / interface.js (line 8). Have a look at this test page: http://www.sxbrc.dev/biodiversity/countyrecorders/index2.php I've just chucked the scrollto behaviour in an onclick in the higher plants link for now. I tried is using the uncompressed interface files and got it to work, but really I wanted the lightweight compressed version. Any ideas? Charles -- Charles Roper www.charlesroper.co.uk ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Documentation of return objects?
Heh, and to think I've been using Visual jQuery all this time. Anyway, that link's a start, but it doesn't help clarify what .after returns, for instance. Maybe I should go through and write all these up. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Wednesday, October 11, 2006 12:11 PM To: jQuery Discussion. Subject: Re: [jQuery] Documentation of return objects? Yep: http://jquery.com/api/ On 10/11/06, Kurt Mackey [EMAIL PROTECTED] wrote: Are the return types for various methods documented anywhere? I can guess on most of them, but I'd like a handy cheat sheet showing that .html('blah') returns the original element. Things like .after() aren't at all obvious, however, and I could see a reasonable case for it to either return the original element, or the inserted element. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Best way for storing user preferences?
I'd go for something like option 4, but instead of the custom attribute/DTD stuff, just give it a classname. i.e.: div class=closed/div Luke Raffael Luthiger wrote: Hi, I've seen searching lately for a good way of storing preferences which a jQuery script needs later on. The specific information the script needs is the starting state of a div element (either open or closed). The preferences are stored in a DB and sent from there somehow to the browser. The sent and storing part is now the part I am searching for. After searching around for a while I found several ideas/solutions. But none seems to be perfect for me. So I wanted to ask you what is the best way to do it: 1) Store the information in an invincible div at the end of the page. And then parse this div. E.g: div id=prefs var1: value1; var2: value2; /div 2) The js-script gets generated each time the page is called. And the corresponding vars are set in there. 3) Every time the page is loaded the js-script asks the server for a XML (or JSON) file with the preferences in there. 4) Write a XHTML DTD module in order to extend the div element with a state-attribute. E.g: div state=closed 5) More (and better) ideas? To say is that those pages are often reloaded. From my point of view 3) generates to much traffic on the net. 1) is just a hack and therefor not really a good solution. I have my jQuery scripts already in an external file. This way they can be cached by the browser and don't have to be sent every time. So I don't really like 2) either. Right now I would go with 4) unless someone has a better idea. Does anybody have a better solution? Raffael ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- zinc Roe Design www.zincroe.com (647) 477-6016 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] new plugin: nifty for jQuery
Paul, nice implementation of nifty inside of jquery. Out of curiosity, does nifty do rounded corners any differently then Dave's plugin? http://methvin.com/jquery/jq-corner-demo.html Quoting Sam Collett [EMAIL PROTECTED]: On 11/10/06, Paul Bakaus [EMAIL PROTECTED] wrote: Hi all, I noticed there was an update on the famous nifty2, which does rounded corners on elements without the use of graphics. When I saw the parsing capabilites, I thought Why not use jQuery for that. So I went ahead and used 3 hours of my time to modify and optimize the plugin as a jQuery plugin. You can check it out here: http://paul.jquery.com/plugins/nifty/ The code can probably still be optimized alot, but I don't have the time. If someone wants to help, go on and grap the js :) See ya, Paul -- Paul Bakaus Web Developer Hildastr. 35 79102 Freiburg That's a nifty plugin you have done ;) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Documentation of return objects?
Anyway, that link's a start, but it doesn't help clarify what .after returns, for instance. According to that link, .after() always returns a jQuery object. While .html() can return either a jQuery object or a String, depending on the arguments passed in. If something returns a jQuery object, that means that its chainable and that you can continue to add actions on to it (e.g. $().after().html(foo).after()...) --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] form plugin for dummies
Hello, I have been trying to figure out how I could use the form plugin (http://jquery.com/dev/svn/plugins/form/form.js). I'm aware of the examples embedded in the code but I guess this is to advanced for me. Is there documention for dummies somewhere on this plugin ? or a demo ? Thank you all Pierre -- View this message in context: http://www.nabble.com/form-plugin-updates-tf2419991.html#a6760936 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] creating / removing DIV height problem
On Oct 11, 2006, at 15:19, Tom Elsner wrote: div and I use slideDown() the div has a fixed height of 1px (looking at the generated code) which breaks the html in firefox and the animation in explorer (it slidesDown twice). It seems that the height of the element is retained although I use remove() to delete it. Does anyone have any ideas? I had similar problem with nested divs and slideUp/Down(). I ended up removing the height attribute after calling those functions with something like: -cut- $(this).slideUp('fast', function() { $(this).height(''); }); -cut- -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Documentation of return objects?
I think what he's talking about is whether or not it returns what was just added to the document or the original element. Another example would be whether or not .clone() return the cloned elements in the jQuery set or the original elements. Those sorts of things aren't listed in the documentation. -blair John Resig wrote: Anyway, that link's a start, but it doesn't help clarify what .after returns, for instance. According to that link, .after() always returns a jQuery object. While .html() can return either a jQuery object or a String, depending on the arguments passed in. If something returns a jQuery object, that means that its chainable and that you can continue to add actions on to it (e.g. $().after().html(foo).after()...) --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problem with interface FX - Scroll
Charles Roper wrote: http://www.sxbrc.dev/biodiversity/countyrecorders/index2.php http://www.sxbrc.dev/biodiversity/countyrecorders/index3.php Apologies, these links are broken. Here are the correct ones: http://www.sxbrc.org.uk/biodiversity/countyrecorders/index2.php http://www.sxbrc.org.uk/biodiversity/countyrecorders/index3.php Charles -- Charles Roper www.charlesroper.co.uk ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Documentation of return objects?
Yep, that's correct, even if I can't write very clearly. ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Blair Mitchelmore Sent: Wednesday, October 11, 2006 1:07 PM To: jQuery Discussion. Subject: Re: [jQuery] Documentation of return objects? I think what he's talking about is whether or not it returns what was just added to the document or the original element. Another example would be whether or not .clone() return the cloned elements in the jQuery set or the original elements. Those sorts of things aren't listed in the documentation. -blair John Resig wrote: Anyway, that link's a start, but it doesn't help clarify what .after returns, for instance. According to that link, .after() always returns a jQuery object. While .html() can return either a jQuery object or a String, depending on the arguments passed in. If something returns a jQuery object, that means that its chainable and that you can continue to add actions on to it (e.g. $().after().html(foo).after()...) --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Documentation of return objects?
And if I recall correctly, .after() and its ilk return the original element if only for the logistical difficulty of determining what part of the (not necessarily single element wrapped. for example $('p').after('p class=first/pp class=last/p'); is the p.first in the jQuery set or is p.last in the jQuery set?) new elements to assign to the jQuery set. And .clone() returns the cloned elements but you can return to the original set through the wonders of .end() -blair Kurt Mackey wrote: Yep, that's correct, even if I can't write very clearly. ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Blair Mitchelmore Sent: Wednesday, October 11, 2006 1:07 PM To: jQuery Discussion. Subject: Re: [jQuery] Documentation of return objects? I think what he's talking about is whether or not it returns what was just added to the document or the original element. Another example would be whether or not .clone() return the cloned elements in the jQuery set or the original elements. Those sorts of things aren't listed in the documentation. -blair John Resig wrote: Anyway, that link's a start, but it doesn't help clarify what .after returns, for instance. According to that link, .after() always returns a jQuery object. While .html() can return either a jQuery object or a String, depending on the arguments passed in. If something returns a jQuery object, that means that its chainable and that you can continue to add actions on to it (e.g. $().after().html(foo).after()...) --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Safari Checkbox issue, note to the wise, Cap or Case names
**Safari only checkbox issue** This is to let everyone know who is having issues with [EMAIL PROTECTED] in jquery to grab checkbox tags from DOM ex: $('#el[type=checkbox]').size() In HTML make sure the tag case match upper or lower case, for example type=CHECKBOX vs type=checkbox if the html tag is input type=CHECKBOX / doing a [EMAIL PROTECTED] will not work, i found this out the hard way hehe, so just making sure anyone else that may have this issue in upper or lower case works fine with FF and IE, just safari is the picky one. -- Nilesh B. Patel www.n-bp.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Documentation of return objects?
Visual jQuery is actually fairly identical to the API. It's an oversight that I don't have the return classes. I will add that tonight :-D-- YehudaOn 10/11/06, Kurt Mackey [EMAIL PROTECTED] wrote:Heh, and to think I've been using Visual jQuery all this time. Anyway, that link's a start, but it doesn't help clarify what .afterreturns, for instance.Maybe I should go through and write all these up.-Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] OnBehalf Of John ResigSent: Wednesday, October 11, 2006 12:11 PMTo: jQuery Discussion.Subject: Re: [jQuery] Documentation of return objects? Yep:http://jquery.com/api/On 10/11/06, Kurt Mackey [EMAIL PROTECTED] wrote: Are the return types for various methods documented anywhere?I can guess on most of them, but I'd like a handy cheat sheet showing that .html('blah') returns the original element. Things like .after() aren't at all obvious, however, and I could see a reasonable case for it to either return the original element, or the inserted element.___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ -- Yehuda KatzWeb Developer | Wycats Designs(ph)718.877.1325 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Documentation of return objects?
I think what he's talking about is whether or not it returns what was just added to the document or the original element. Another example would be whether or not .clone() return the cloned elements in the jQuery set or the original elements. Those sorts of things aren't listed. Good point, and sometimes I have to pause when using a method I haven't used before. However, I think most jQuery methods fall into just three categories. (I use $ to mean the elements currently selected by this jQuery object.) 1) Standard methods -- most not listed below Do not change $ and return $ for chaining. If the method creates nodes, they are not part of $. If the method removes nodes that are part of $, the references in $ remain. (That is, they have been removed from the document but are still in $ so you could put them back using a method like appendTo further down the chain.) 2) Filtering methods -- filter, add, not, parents, etc. Push $ on an internal stack and return the (new) filtered $ for chaining. The original $ is available by using .end() in the chain to pop the stack. 3) Set/Get methods -- height, width, css, etc. Called with N arguments (usually none), return the value of the property for the *first* node (element 0) in the jQuery object. Called with N+1 arguments, set the value of the property for each node in $ using the final argument. Return the unchanged $ for chaining. Can anyone think of exceptions? Perhaps the doc could define (Standard, Filtering, SetGet) and we can just document the types of return-value behavior using those terms. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Problem still exists with Forms and FX module
I have tried the revision 404 patch and the new version of jquery that was just released and both versions do not apply the fx transitions to html forms. Text and Images have the transitions applied to them, but not html forms. Please note that this is only the case in IE and not in FireFox. Can anyone shed some light? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ajax bug or I am really confused?
Hi Jake. I read over your bug ticket and believe that we are really talking about two seperate things that just happen to find themselves at the same spot in the code; one, can we remove or update the Connection: close hack and two, can we add a i-really-really-really-want-xml update. If we want to leave it together as a single ticket, we should add a little something about why it is ok to remove the existing hack to the ticket. I am more inclined to just add another ticket since it it probably easier to work two items. I'll update your ticket with background information about why it is ok to remove the hack if people prefer a single ticket for this type of request. Ian On 10/10/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: oops not bugzilla, but very easy to use! my patch is in as http://jquery.com/dev/bugs/bug/266/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problem still exists with Forms and FX module
I just did up a quick and dirty test page and it is working for me. Here is the test page: http://brandonaaron.net/jquery/form/test.html Do you have an example where it doesn't work for you? -- Brandon Aaron On 10/11/06, Kolak Roy M. [EMAIL PROTECTED] wrote: I have tried the revision 404 patch and the new version of jquery that was just released and both versions do not apply the fx transitions to html forms. Text and Images have the transitions applied to them, but not html forms. Please note that this is only the case in IE and not in FireFox. Can anyone shed some light? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problem with interface FX - Scroll
Just need to add this to your onclick: onclick=$('#container').ScrollTo(800);return false; The reason you see a flash is that it is actually jumping to the top and then back down because the click event is not stopped. Also, I would suggest using $(document).ready() to attach event handlers instead of embedded onclick attributes. -- Brandon Aaron On 10/11/06, Charles Roper [EMAIL PROTECTED] wrote: Charles Roper wrote: http://www.sxbrc.dev/biodiversity/countyrecorders/index2.php http://www.sxbrc.dev/biodiversity/countyrecorders/index3.php Apologies, these links are broken. Here are the correct ones: http://www.sxbrc.org.uk/biodiversity/countyrecorders/index2.php http://www.sxbrc.org.uk/biodiversity/countyrecorders/index3.php Charles -- Charles Roper www.charlesroper.co.uk ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Append body
// wire the 'Loading...' ajax indicator $('div id=busyLoading.../div') .ajaxStart(function() {$(this).show();}) .ajaxStop(function() {$(this).hide();}) .appendTo('#main'); That is from the form example that emulate a google like load hope that helps ;) url: http://www.malsup.com/jquery/form/ Jason Yeckel 3spn LLC - Programmer sdkester wrote: I tried appending the body with a div using the following in a js file: $(body).append('div id=ajaxBusy class=ajaxBusyp ../../loading2.gif nbsp;nbsp;/p/div'); It is not working. Maybe I'm going about it wrong. I simply want to insert the above html anywhere in the body. Is my code wrong and/or am I approching it from the wrong angle. TIA, Shaun Kester ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ajax bug or I am really confused?
Ian, et al, Since one has absolutely nothing to do with the other 'cept and overridemimetype in both. Split the unhappy couple. My bug, about which I am really really concerned, is the ability to go domming thru my xhtml (actually an apache index page from my server that is configged to send xhtml instead of plain html)... So many cool plugins, that can be mixed with a simple directory right off the apache server. Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ On 10/11/06, Ian Struble [EMAIL PROTECTED] wrote: Hi Jake. I read over your bug ticket and believe that we are really talking about two seperate things that just happen to find themselves at the same spot in the code; one, can we remove or update the Connection: close hack and two, can we add a i-really-really-really-want-xml update. If we want to leave it together as a single ticket, we should add a little something about why it is ok to remove the existing hack to the ticket. I am more inclined to just add another ticket since it it probably easier to work two items. I'll update your ticket with background information about why it is ok to remove the hack if people prefer a single ticket for this type of request. Ian On 10/10/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: oops not bugzilla, but very easy to use! my patch is in as http://jquery.com/dev/bugs/bug/266/ ___ 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/
Re: [jQuery] Best way for storing user preferences?
Thanks Gilles, Mark and Luke! I was thinking about the cookie as well. But the problem I see here that a cookie can have in the maximum the size of 4k. It's not that I would reach the limit now, but I don't want to run into strange problems as soon as the application get larger over time. From this point of view Mark's solutions is more flexible. And I can generate those hidden input fields when I generate the page as well. The idea with the classes can get a little bit messy since I already have IDs and classes on those divs. At least I see that nobody would go for my favorite option. So I can probably drop it. Raffael Webunity | Gilles van den Hoven wrote: Option 3, but save the data you got from the server in a cookie, which you destroy after 1 day or something like that. Each time the user changes the div, a new cookie is set and data is send back to the server. This saves you half in traffic and is the best solution if you ask me. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How could I solve non-antialiased text when an effect is triggered
Is opacity involved? -- Brandon Aaron On 10/11/06, Stefan Nagtegaal [EMAIL PROTECTED] wrote: Hi list, when you make use of the .slideUp()/.slideDown() or whatever (not sure yet, but i think it is) kind of effect, the text on your page seems to be non-aliased or at least not as sharpe as it was before the effect has happened. Does anyone has an idea on how this can be solved? Stefan ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How could I solve non-antialiased text when an effect is triggered
while dom dumpin in FF, I noticed that opacity never gets all the way to 1.. I couldn't see the difference p class=surprise ohmy style=overflow: hidden; width: 500px; display: block; height: 77px; opacity: 0.; from jquery.com home page. On 10/11/06, Brandon Aaron [EMAIL PROTECTED] wrote: Is opacity involved? -- Brandon Aaron On 10/11/06, Stefan Nagtegaal [EMAIL PROTECTED] wrote: Hi list, when you make use of the .slideUp()/.slideDown() or whatever (not sure yet, but i think it is) kind of effect, the text on your page seems to be non-aliased or at least not as sharpe as it was before the effect has happened. Does anyone has an idea on how this can be solved? Stefan ___ 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/
Re: [jQuery] How could I solve non-antialiased text when an effect is triggered
This is due to a bug in Firefox when changing the opacity to and from 1 it flashes. Firefox is the only browser the opacity never reaches 1. -- Brandon Aaron On 10/11/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: while dom dumpin in FF, I noticed that opacity never gets all the way to 1.. I couldn't see the difference p class=surprise ohmy style=overflow: hidden; width: 500px; display: block; height: 77px; opacity: 0.; from jquery.com home page. On 10/11/06, Brandon Aaron [EMAIL PROTECTED] wrote: Is opacity involved? -- Brandon Aaron On 10/11/06, Stefan Nagtegaal [EMAIL PROTECTED] wrote: Hi list, when you make use of the .slideUp()/.slideDown() or whatever (not sure yet, but i think it is) kind of effect, the text on your page seems to be non-aliased or at least not as sharpe as it was before the effect has happened. Does anyone has an idea on how this can be solved? Stefan ___ 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.com http://jquery.com/discuss/
[jQuery] ajaxForm() submits to form action=foo.php
Hey guys, I'm having some issues with a commenting module built using jQuery ajaxForm(). The commenting module simply takes the data from a textarea in a form and submits it to a Php processing script for behind the scenes processing. Most of the time, (95%) the system performs as intended but every once in awhile a user reports issues with being sent to a blank page upon pressing the submit button to the form. It appears that people on slower connections are sometimes being sent to the Php processing script defined in the form action=foo.php attribute which in turn reveals the blank foo.php page with no action performed. Essentially, the form is acting normally and being physically sent to foo.php instead of performing the intended behind the scenes AJAX behavior. Any ideas on why this is happening and how to correct it, I'm pretty stumped, Thanks! -Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Beginner questions
Why do some functions begin with '$.' such as $.each() but most don't? If the call to $(document).ready() is from another included js file, what's the best way make sure jQuery is loaded before calling it? Is there a way to use each() and have it stop part way through? (I'm using each() to search for something and I'd like jQuery to stop when it's been found.) Is there a better function to use? How about each() accepting a Boolean from the called function that let's it know whether to continue through the collection? Could someone please fix the Table of Contents at the top of the API page to work with Safari? Is there any common reason why some plugins don't work in Safari? Such as panView, Tablesorter, Clipregion, some of the Interface demos, TweenBox, 3d Universe (mostly works with some visual problems)? Thanks, Erin ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Not sure how to do this...
but how do I take the value of an text field, and check it against the text in a select list? For example, if I type foo in a text field, and I have a select list that looks like the one below it'll automatically make the second option selected. select option value=1bar/option option value=2foo/option option value=3bar/option /select Basically as I type I want to check the value on every key up to see if it exists in the select list(not as the value, but the text) then take a certain action. Any ideas? -- View this message in context: http://www.nabble.com/Not-sure-how-to-do-this...-tf2426822.html#a6766779 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Appending option to select
From: patrickk I´m using the plugin for DOM creation to accomplish that. see http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and-prototype From: Rey Bango I tried using this plugin but it didn't seem to work with v1.0.1. Which version of JQuery are you using? Rey, which of the DOM creation plugins are you having trouble with - my original one or Oslow's variation: http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and-prototype#comment-1 76 Mine should work with any version of jQuery, since it doesn't actually use any jQuery features itself. (But I must confess I haven't tested it with the latest versions!) Oslow's does use some jQuery features and likely needs some updating. -Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ajaxForm() submits to form action=foo.php
A good approach to use with this kind of situation (where the user connection/browser/etc can't be assumed) is to implement all functionality so that it can work without JS, and then hijack the form on page load and convert it to AJAX. Another thread on this list brought up a very elegant way to handle this kind of situation. jQuery sets a special variable in the request header of its AJAX requests. The server script checks for that variable and returns different output based on that. BlairOn 10/12/06, Michael Retrum [EMAIL PROTECTED] wrote: Hey guys,I'm having some issues with a commenting module built using jQueryajaxForm().The commenting module simply takes the data from a textareain a form and submits it to a Php processing script for behind the scenes processing.Most of the time, (95%) the system performs asintended but every once in awhile a user reports issues with being sentto a blank page upon pressing the submit button to the form.It appears that people on slower connections are sometimes being sent to the Phpprocessing script defined in the form action="" attribute whichin turn reveals the blank foo.php page with no action performed. Essentially, the form is acting normally and being physically sent tofoo.php instead of performing the intended behind the scenes AJAX behavior.Any ideas on why this is happening and how to correct it, I'm pretty stumped, Thanks!-Mike___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] unsuscribe
Yikes - this is a very active discussion group. Too much information. Please take my email address off the list. [EMAIL PROTECTED] ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Beginner questions
$() vs $.():$() is the 'public' scope, and those functions work with the element arrays that get selected. $.() is 'private' scope, and is used by code that works 'inside' jquery. Generally plugins can use $.(), but other code shouldn't. As long as the file that has the $(document).ready() is included after jquery is included, you shouldn't have a problem.If the element you're trying to find can be identified using a selector, then you can simply use filter and grab the first element in the jQuery array. Otherwise, it would be just as easy to simply search through the jQuery element array: var jO=$();var index=-1;for (var i=0; ijO.size() and index0; i++) if (check if jO[i] is what you want) index=i;If anyone else is reading this, what do you think about the idea of changing filter so that it can take a function as well? (f(element) { return true or false }) BlairOn 10/12/06, Erin Doak [EMAIL PROTECTED] wrote: Why do some functions begin with '$.' such as $.each() but most don't?If the call to $(document).ready() is from another included js file,what's the best way make sure jQuery is loaded before calling it? Is there a way to use each() and have it stop part way through? (I'musing each() to search for something and I'd like jQuery to stop whenit's been found.) Is there a better function to use? How about each()accepting a Boolean from the called function that let's it know whether to continue through the collection?Could someone please fix the Table of Contents at the top of the APIpage to work with Safari?Is there any common reason why some plugins don't work in Safari? Such as panView, Tablesorter, Clipregion, someof the Interfacedemos, TweenBox, 3d Universe (mostly works with some visual problems)?Thanks,Erin___ jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] interface Slider problem with floats
all, I've come across a problem when using the Slider control within a floated DIV that has been positioned next to another floated DIV with a specified width. The following example explains it best: http://empireenterprises.com/_slider.html The problem occurs in the latest FF Safari for OSX. I've started looking @ the islider/idrag/idrop code, but I suspect it will take me a while to understand what's going on. -g ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Sortable Interface - Problem with nested sortable containers
Hi all, I'm using the sortable interface to create a component that can receive other components, and sort them around. However, if I add another sortable component/container inside,I cannot sort things inside of the new one. When I move a sibling component over the nested sortable container I only see places to drop it in the outer sortable component. It's like the nested sortable component wasn't sortable at all. My wild guess is that the onmouseover event is bubbling to the top-most nested component, and that's why the others are ignored? Is it actually supported to have nested sortable containers? Can somebody point me in the right direction? thanks a lot. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Best way for storing user preferences?
Raffael Luthiger wrote: Thanks Gilles, Mark and Luke! I was thinking about the cookie as well. But the problem I see here that a cookie can have in the maximum the size of 4k. It's not that I would reach the limit now, but I don't want to run into strange problems as soon as the application get larger over time. From this point of view Mark's solutions is more flexible. And I can generate those hidden input fields when I generate the page as well. Use the cookie to set a unique id, the get the uid and do an ajax call to the server to get the larger state info from a database, based on the uid. -Steve The idea with the classes can get a little bit messy since I already have IDs and classes on those divs. At least I see that nobody would go for my favorite option. So I can probably drop it. Raffael Webunity | Gilles van den Hoven wrote: Option 3, but save the data you got from the server in a cookie, which you destroy after 1 day or something like that. Each time the user changes the div, a new cookie is set and data is send back to the server. This saves you half in traffic and is the best solution if you ask me. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] interface Slider problem with floats
On Oct 11, 2006, at 8:37 PM, Glen wrote: I've come across a problem when using the Slider control within a floated DIV that has been positioned next to another floated DIV with a specified width. The following example explains it best: http://empireenterprises.com/_slider.html The problem occurs in the latest FF Safari for OSX. I've started looking @ the islider/idrag/idrop code, but I suspect it will take me a while to understand what's going on. Hi Glen, It looks to me like a CSS issue. You'll probably need to make a containing DIV position:relative, because now it looks like the slider control is being absolutely positioned relative to the document body. Karl ___ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Not sure how to do this...
I was able to do it with a slight tweak of the code posted here: http://www.nabble.com/How-to-change-value-of-select-dropdown--tf2308098.html#a6420831 script type=text/javascript jQuery.fn.option = function(value){ return this.each(function(){ var select = $(this)[0]; for(var i = 0; i select.length; i++) if(select[i].innerHTML == value) select.selectedIndex = i; }); }; $(function(){ $('#kwd').keyup(function(){ $('#list').option(this.value); }); }); /script form input type=text id=kwd name=kwd / select id=list name=list option value=0/option option value=1bar/option option value=2foo/option option value=3far/option /select /form Brian Litzinger wrote: how do I take the value of an text field, and check it against the text in a select list? For example, if I type foo in a text field, and I have a select list that looks like the one below it'll automatically make the second option selected. select option value=1bar/option option value=2foo/option option value=3bar/option /select Basically as I type I want to check the value on every key up to see if it exists in the select list(not as the value, but the text) then take a certain action. -- View this message in context: http://www.nabble.com/Not-sure-how-to-do-this...-tf2426822.html#a6768963 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] interface Slider problem with floats
Glen wrote: all, I've come across a problem when using the Slider control within a floated DIV that has been positioned next to another floated DIV with a specified width. The following example explains it best: http://empireenterprises.com/_slider.html The problem occurs in the latest FF Safari for OSX. I've started looking @ the islider/idrag/idrop code, but I suspect it will take me a while to understand what's going on. -g ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ set for div with id decrementIntervalTrack position to relative ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/