Re: [jQuery] Masked Input Plugin Beta 1
wow wonderfull :) i`m gonna use this plugin in my scripts ^_^ 2007/3/29, Stefan Kilp [sk-software] [EMAIL PROTECTED]: Hi, thanks for the plugin. How do i handle dynamic input length. In germany there are phone number of different length and formating, like: 030-123 456 78 012345-987 654 32 and what about +49 089 33 44 55 6 would it be possible to have multiple masks or a regexp as a mask or is there any other solution? thanks stefan The feedback from the Alpha release of my plugin was very good, but several of you pushed me a little to make it better. With the help of some paste events from Kristinn Sigmundsson and a lot of scouring the internet for information about cross-platform key handling, I think I have a much improved version. This release includes the following: * Fixed issues with allowing punctuation on number masks. * Added validation cleanup of text. Example: pasting in 123-456-7890´´ into a (999) 999-´´ mask should format correctly. * Added validation on paste events for Mozilla and IE. Please head on over to http://digitalbush.com/projects/masked-input-plugin http://digitalbush.com/projects/masked-input-plugin and check it out. I have tested this in FF2 and IE7, so I would appreciate some feedback from those of you with other browsers. Thank You Josh -- View this message in context: http://www.nabble.com/Masked-Input-Plugin-Beta-1-tf3484477.html#a9727222 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Stefan Kilp SK-Software, Entwicklung Beratung email: [EMAIL PROTECTED] fon : +49 6151 93344-0 fax : +49 6151 93344-20 Herta-Mansbacher-Str. 98 64289 Darmstadt, Germany. - ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jEditable: how to remove behaviour
i think you have to edit the jEditable source for that... 2007/3/28, Abel Tamayo [EMAIL PROTECTED]: Hi all, I'm using jEditable for a webpage, but I would like to make it so that, once you've edited the text, the behaviour is removed and you can edit it no longer. Does anyone know how to do that? Thanks. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Upload image, make thumbnail all on the fly.. possible?
yea that`s the idea.. nut how to make it in ajax? 2007/3/22, Benjamin Sterling [EMAIL PROTECTED]: I would assume you would put a set timeout function on it somewhere and then have the the form submit and process thru ajax, and when the response from the server is complete, you will append the new thumbnail image to the page. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Upload image, make thumbnail all on the fly.. possible?
I would think that you could do this using php and gd... http://us3.php.net/manual/en/ref.image.php here's one way to do it... http://icant.co.uk/articles/phpthumbnails/ a quick search for php create thumbnails should help you find other/better resources for creating images on the fly with php. Thanx alot :D but that`s not what i need. that would require intimate knowledge of png format internals... I've never seen that kind of code in Javascript! php or perl would be a much saner direction! you missed something i think. take another close look at this image: http://img393.imageshack.us/my.php?image=magedbimageuploadcopylc6.png in the image i describe that the image is first selected. than when THAT field doesn`t change (and is filled in ofcause) for a few seconds the upload will automatically start!! than those ajax get or posts things.. depends on how the form works: GET: http://docs.jquery.com/API/1.1/AJAX#.24.get.28_url.2C_params.2C_callback_.29 POST: http://docs.jquery.com/API/1.1/AJAX#.24.post.28_url.2C_params.2C_callback_.29 so when running that GET or POST the thumbnail is generated through PHP (not javascript!! javascript is just gonna send the command to create it) that GET or POST than returns the url to the thumbnail and that should than appear like in the screenshot. the thumbnailing part itself is probably the least of my worries. the main thing i can`t get working right now is the automatic uploading. if you still don`t get how this works open up gmail and attatch a file to a post. you will see that it`s auto uploading after a few seconds. that`s what i want. anything more that needs to be cleared up? thanx for the replys so far. Mark. 2007/3/23, Ⓙⓐⓚⓔ [EMAIL PROTECTED]: that would require intimate knowledge of png format internals... I've never seen that kind of code in Javascript! php or perl would be a much saner direction! On 3/23/07, Mark [EMAIL PROTECTED] wrote: yea that`s the idea.. nut how to make it in ajax? 2007/3/22, Benjamin Sterling [EMAIL PROTECTED]: I would assume you would put a set timeout function on it somewhere and then have the the form submit and process thru ajax, and when the response from the server is complete, you will append the new thumbnail image to the page. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ 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] Upload image, make thumbnail all on the fly.. possible?
ehm.. my javascript knowledge is kinda limited ^_^ would you (or anyone that has some javascript knowledge) like to make a sample code? i can expand it to mu wishes when i have a sample code but it`s really hard for me to start from scratch. i can do all the php coding myself Thanx Mark. 2007/3/23, Mateusz Misiorny [EMAIL PROTECTED]: On 3/23/07, Mark [EMAIL PROTECTED] wrote: [...] the thumbnailing part itself is probably the least of my worries. the main thing i can`t get working right now is the automatic uploading. if you still don`t get how this works open up gmail and attatch a file to a post. you will see that it`s auto uploading after a few seconds. that`s what i want. That should be easy. I do something similar to input field for searching which don't have an explicit search button next to themselves, they just sit and wait until you stop typing and then start the search on its own. Goes like this: for each keystroke I set a timeout which fires ajax call when finished. If a new keystroke comes, the old timeout is obviously reset to its start value again. This way you can type as much as you want and nothing happens because the timeout is being reset all the time, but when you finish and wait 2 seconds (or whatever), the action will fire. You could try something like that with onchange() on the form file field Should do the trick. good luck, Matt ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Upload image, make thumbnail all on the fly.. possible?
do you have a special timeout extension installed? cause that`s not working for me. 2007/3/23, Mateusz Misiorny [EMAIL PROTECTED]: On 3/23/07, Mark [EMAIL PROTECTED] wrote: ehm.. my javascript knowledge is kinda limited ^_^ would you (or anyone that has some javascript knowledge) like to make a sample code? i can expand it to mu wishes when i have a sample code but it`s really hard for me to start from scratch. i can do all the php coding myself Ok, from my experience you learn more if you figure out stuff yourself so I wanted to just push you in the right direction, but here is the code I use: var timer; jQuery(function($) { $('#text').bind(keyup, function() { clearTimeout(timer); timer = setTimeout(make_request, 1000); }); }); function make_request() { ajax stuff } input type=text name=text id=text size=25/ br/ Hope it gets you going! Matt ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Upload image, make thumbnail all on the fly.. possible?
oke.. timeout is a default javascript function :P i`m getting somewhere now. i will post my results when i`m getting close to the final result. or i will put it online somewhere.. i think this can be verry usefull for others aswell. 2007/3/23, Mark [EMAIL PROTECTED]: do you have a special timeout extension installed? cause that`s not working for me. 2007/3/23, Mateusz Misiorny [EMAIL PROTECTED] : On 3/23/07, Mark [EMAIL PROTECTED] wrote: ehm.. my javascript knowledge is kinda limited ^_^ would you (or anyone that has some javascript knowledge) like to make a sample code? i can expand it to mu wishes when i have a sample code but it`s really hard for me to start from scratch. i can do all the php coding myself Ok, from my experience you learn more if you figure out stuff yourself so I wanted to just push you in the right direction, but here is the code I use: var timer; jQuery(function($) { $('#text').bind(keyup, function() { clearTimeout(timer); timer = setTimeout(make_request, 1000); }); }); function make_request() { ajax stuff } input type=text name=text id=text size=25/ br/ Hope it gets you going! Matt ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Upload image, make thumbnail all on the fly.. possible?
Hey, take a look at this image: http://img393.imageshack.us/my.php?image=magedbimageuploadcopylc6.png is it possible to make that with jquery? if it is.. could someone help me making it? the automitically uploading is possible and the rest is just php so i think it`s possible but i don`t know how it has to be made.. specially the auto uploading. i can do the thumbnailing myself. thanx in favor. Mark. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] NOTICE: Moving to Google Groups
Hi John, Zoiks! That sounds like your server is getting quite a kicking! I think moving to Google Groups is a sensible option. Google probably have more servers than any other entity and Groups provides for a pretty great 'forum' for discussions on loads of topics, plus you don't have to worry about maintaining it or fiddling with your server! I'm already signed up for a few groups so obviously I'm familiar with the interface, but for those that do not like the web-based interface, you can set a preference to receive new messages as email. Click on My Account once signed in with your Google Account, then click on Manage Subscriptions next to the Groups link. Cheers; Mark On 21 Mar 2007, at 1:41pm, John Resig wrote: Hi Everyone - As you've probably noticed, the mailing list has been very very flaky the past couple days. Primarily, this is due to the fact that the amount of traffic coming to the server is entirely overwhelming. Currently, we're receiving about 260,000 web hits/day in addition to sending out about 150,000 emails/day. Up until this point I've been content to host the mailing list on this server, with the hope that the list would eventually be moved to a forum, of some sort. However, the strain of adding in an additional web application, combined with the continued sending of hundreds of thousands of emails, is simply more than what our server (and sysadmin [me] can take). I've talked it over with a number of people and they feel that Google Groups is an adequate substitute for both a mailing list and a general-purpose forum, and I tend to agree. The usability of Google Groups is a huge factor; it will help users to more-easily sign-up and participate at their leisure. I had considered moving over to Google Groups before, but I was never able to find a way to import all of our old messages. Thankfully, I now figured out a way; making the move completely possible. Tonight at 10pm EST (0300 GMT) I will be making a final posting to this mailing list, and will close it down. The final messages will be moved over to the new mailing list, located here (it's currently locked): http://groups.google.com/group/jquery-en Currently, I have everything but March's messages, and all of your subscriptions, moved over. I will be doing both of those tonight. (You should receive an email notification alerting you once you've been subscribed to the group.) I will do my best to maintain your current email notification settings. I hope everyone is ok with this move. I think it's for the best. Please let me know if you have any serious concerns. Thanks! --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
hows the development going? 2007/3/2, [-Stash-] [EMAIL PROTECTED]: Just tried this in IE7 (WinXPSP2) and the overlay is solid black. Some of the CSS positioning is also a little out of kilter, but everything works! Looking forward to this one Klaus :) Luke Klaus Hartl wrote: Sean O schrieb: Klaus, Nice job, everything looks great in Firefox 2 IE 7 PC. Sean, as I said, I haven't done any testing in IE at all so far. I'm truly amazed, that it looks great in IE 7 already. :-) -- Klaus -- View this message in context: http://www.nabble.com/ANNOUNCE%3A-Thickbox-Reloaded-alpha-tf3293077.html#a9277570 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery toXML
Jason Karns wrote: I saw your toXML plugin and the thread where you were discussing its creation. I've run into a situation where I need to serialize the page to XML. However, the majority of the page is form elements and I need the actual values of these elements serialized, and not the original HTML source. Do you have any suggestions on where I might find a solution for this? Have you tried the Forms plugin: http://www.malsup.com/jquery/form/ Although it doesn't serialize to XML. If you want your form values as XML, you'd have to decided on a meaningful schema for the XML, and probably have to build up a document fragment manually from form values and then use toXML to serialize it. If returning the data as XML is really that important then it's probably worth looking in to XForms instead. FormFaces is a pure javascript XForms implementation: http://www.formfaces.com/ - Mark. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] problem with edit in place on HTML coding.
thanx for the suggestion. gonna try that 2007/3/1, Mika Tuupola [EMAIL PROTECTED]: On 1 Mar 2007, at 02:15, Mark wrote: yea.. i was just thinking about the same.. i think i`m gonna give that a try.. 2007/2/28, Karl Rudd [EMAIL PROTECTED]: Unfortunately you can't just assign a function that runs on the server to JavaScript (running on the client). The best you could do would be to POST the content back via AJAX. Check the parameters: * @param String options[postload] POST URL to fetch content before editing * @param String options[getload] GET URL to fetch content before editing which fetch contents of the input via GET or POST. So this script which returns the content can do html_entity_decode() for you. -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.1.2
nice to see a bug fix release :) though atleast one bug is still in.. that`s the fadein and fadeout of a div in internet explorer.. it moves a little when those actions are done in IE (6) 2007/2/28, Seb Duggan [EMAIL PROTECTED]: I've noticed a problem in Safari too, this time with the datePicker plugin (also written by Kelvin - sorry!). When clicking the date picker icon, Safari immediately crashes every time when using the 1.1.2 release. However, I've tested with every single nightly build, from Feb 18 to Feb 28, and they all work perfectly. So, I don't know what's different in the released version?? I thought it might be a packing problem, but the problem also exists with the uncompressed file. All very strange... Seb On 28 Feb 2007, at 07:22, Jonathan Bloomer wrote: Just to let you know the latest release seems to have caused an issue with the jScrollpane plugin whereby it crashes Safari on mac, for now I would stick with the previous release of jQuery until the plugin has been updated. I have notified Kelvin of the problem, hope he can fix it it's a great plugin! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] problem with edit in place on HTML coding.
oke.. i fixed the issue now. incase you want to know the solution i added this function: function html_entity_decode(str) { var ta=document.createElement(textarea); ta.innerHTML=str.replace(//g,lt;).replace(//g,gt;); return ta.value; } than i edited this line: i.value = self.revert; to: i.value = html_entity_decode(self.revert); that did the trick for me... i still think it`s best to somehow assign php`s html_entity_decode function to javascript.. i just don`t know how to do that at this moment. perhaps later. 2007/2/27, Mark [EMAIL PROTECTED]: i don`t think that helps.. the text must be editable so it doesn`t _NEED_ to be a div. also a div could cause other problems.. and it will in the place where i need it :( i will try to put up a example somewhere. 2007/2/27, Danny Wachsstock [EMAIL PROTECTED]: I'm not sure if this will solve your problem, but a cheap way to emulate html_entity_decode is: function html_entity_decode(string) {return $('div').html(string).text()} It creates a div, uses your string as the innerHTML, and outputs the HTML created. If the string is not valid HTML, things may not work. The reverse would beL function html_entity_encode(string) {return $('div').text(string).html()} Hope this helps Danny Wachsstock Mark-235 wrote: no that`s not the best way.. can`t i assign a php function to javascript and use it the same way i would have done with php? 2007/2/27, Sam Collett [EMAIL PROTECTED]: On 27/02/07, Mark [EMAIL PROTECTED] wrote: yea oke.. but do you guys have any idea how to solve this issue? in php it would be: html_entity_decode() but that doesn`t work in javascript.. besides the fact that i would need to edit the plugin and i have no idea where i need to edit it.. :( Perhaps not the best way to do it, but you could try replacing self.revert = jQuery(self).html(); with self.revert = jQuery(self).html().replace(/gt;/g,).replace(/lt;/g, ); Not tested though. 2007/2/27, Sam Collett [EMAIL PROTECTED]: On 27/02/07, Mark [EMAIL PROTECTED] wrote: i`m trying to edit the whole tag. and i can`t post any samples online.. i don`t have any sites online.. i do have some free subdomains somewhere but i hardly know where i left them :P perhaps in the future.. You could upload them to Google Pages (http://pages.google.com/ ). That's what I did in the past before it was blocked from work. Not sure how many others on this list have Google Pages blocked. 2007/2/27, Mika Tuupola [EMAIL PROTECTED]: On 27 Feb 2007, at 01:47, Mark wrote: i have a edit in place thing now and i have this text: div class=\admin_link\#INCLUDE#/div when you click on the the text field pops in BUT the content is suddently different.. the content now is: lt;div class=admin_linkgt;#INCLUDE#lt;/divgt; sorry, i forgot to mention that.. i`m using the jEditable plugin. Ok. To be clear. Is the text you are trying to edit #INCLUDE# or are you trying to edit the whole html tag div class=\admin_link \#INCLUDE#/div ? Maybe you can post some example code online? -- Mika Tuupola http://www.appelsiini.net/~tuupola/http://www.appelsiini.net/%7Etuupola/ ___ 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 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/problem-with-%22edit-in-place%22-on-HTML-coding.-tf3295602.html#a9188810 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.1.2
wonderfull!! good luck with bug hunting/fixing 2007/2/28, John Resig [EMAIL PROTECTED]: Mark - Yep, we have fixes for those animation bugs, but we're in the process of testing them more (after which we'll release them). --John On 2/28/07, Mark [EMAIL PROTECTED] wrote: nice to see a bug fix release :) though atleast one bug is still in.. that`s the fadein and fadeout of a div in internet explorer.. it moves a little when those actions are done in IE (6) 2007/2/28, Seb Duggan [EMAIL PROTECTED]: I've noticed a problem in Safari too, this time with the datePicker plugin (also written by Kelvin - sorry!). When clicking the date picker icon, Safari immediately crashes every time when using the 1.1.2 release. However, I've tested with every single nightly build, from Feb 18 to Feb 28, and they all work perfectly. So, I don't know what's different in the released version?? I thought it might be a packing problem, but the problem also exists with the uncompressed file. All very strange... Seb On 28 Feb 2007, at 07:22, Jonathan Bloomer wrote: Just to let you know the latest release seems to have caused an issue with the jScrollpane plugin whereby it crashes Safari on mac, for now I would stick with the previous release of jQuery until the plugin has been updated. I have notified Kelvin of the problem, hope he can fix it it's a great plugin! ___ 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] Interface Sortables - class instability
i didn`t set any styles and tested what you`ve wrote and it works fine here.. i`m using Firefox 2.0.0.2 2007/2/28, Michael Crowl [EMAIL PROTECTED]: And, of course, as soon as I wrote that all out and sent it, I figured it out. The designer was using 1.2em, etc for font sizes, which meant relatively, once the copy of the container was made, the fonts got amped up. But relative to what? The original? It brings up the question of where in the DOM the copy actually resides and how classes get inherited once a copy is made. Perhaps a question for the jQuery experts. -- mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] JS Source code Formatter - Anyone know of any good ones
Try this. http://www.jcay.com/javascript-code-improver.html Mark On 2/28/07, Tsz Ming WONG [EMAIL PROTECTED] wrote: maybe http://astyle.sourceforge.net/ ? you might need to tweak the settings for javascript. On 2/28/07, Christof Donat [EMAIL PROTECTED] wrote: Hi, Chili, based on jquery http://www.mondotondo.com/aercolino/noteslog/?page_id=79 I think, He is looking for something like indent for javaScript. Christof ___ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] problem with edit in place on HTML coding.
yea.. i was just thinking about the same.. i think i`m gonna give that a try.. 2007/2/28, Karl Rudd [EMAIL PROTECTED]: Unfortunately you can't just assign a function that runs on the server to JavaScript (running on the client). The best you could do would be to POST the content back via AJAX. Karl Rudd On 3/1/07, Mark [EMAIL PROTECTED] wrote: oke.. i fixed the issue now. incase you want to know the solution i added this function: function html_entity_decode(str) { var ta=document.createElement(textarea); ta.innerHTML=str.replace(//g,lt;).replace(//g,gt;); return ta.value; } than i edited this line: i.value = self.revert; to: i.value = html_entity_decode(self.revert); that did the trick for me... i still think it`s best to somehow assign php`s html_entity_decode function to javascript.. i just don`t know how to do that at this moment. perhaps later. 2007/2/27, Mark [EMAIL PROTECTED]: i don`t think that helps.. the text must be editable so it doesn`t _NEED_ to be a div. also a div could cause other problems.. and it will in the place where i need it :( i will try to put up a example somewhere. 2007/2/27, Danny Wachsstock [EMAIL PROTECTED]: I'm not sure if this will solve your problem, but a cheap way to emulate html_entity_decode is: function html_entity_decode(string) {return $('div').html(string).text()} It creates a div, uses your string as the innerHTML, and outputs the HTML created. If the string is not valid HTML, things may not work. The reverse would beL function html_entity_encode(string) {return $('div').text(string).html()} Hope this helps Danny Wachsstock Mark-235 wrote: no that`s not the best way.. can`t i assign a php function to javascript and use it the same way i would have done with php? 2007/2/27, Sam Collett [EMAIL PROTECTED]: On 27/02/07, Mark [EMAIL PROTECTED] wrote: yea oke.. but do you guys have any idea how to solve this issue? in php it would be: html_entity_decode() but that doesn`t work in javascript.. besides the fact that i would need to edit the plugin and i have no idea where i need to edit it.. :( Perhaps not the best way to do it, but you could try replacing self.revert = jQuery(self).html(); with self.revert = jQuery(self).html().replace(/gt;/g,).replace(/lt;/g, ); Not tested though. 2007/2/27, Sam Collett [EMAIL PROTECTED]: On 27/02/07, Mark [EMAIL PROTECTED] wrote: i`m trying to edit the whole tag. and i can`t post any samples online.. i don`t have any sites online.. i do have some free subdomains somewhere but i hardly know where i left them :P perhaps in the future.. You could upload them to Google Pages ( http://pages.google.com/ ). That's what I did in the past before it was blocked from work. Not sure how many others on this list have Google Pages blocked. 2007/2/27, Mika Tuupola [EMAIL PROTECTED]: On 27 Feb 2007, at 01:47, Mark wrote: i have a edit in place thing now and i have this text: div class=\admin_link\#INCLUDE#/div when you click on the the text field pops in BUT the content is suddently different.. the content now is: lt;div class=admin_linkgt;#INCLUDE#lt;/divgt; sorry, i forgot to mention that.. i`m using the jEditable plugin. Ok. To be clear. Is the text you are trying to edit #INCLUDE# or are you trying to edit the whole html tag div class=\admin_link \#INCLUDE#/div ? Maybe you can post some example code online? -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ 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 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/problem-with-%22edit-in-place%22-on-HTML-coding.-tf3295602.html#a9188810
[jQuery] Fade effect of jQuery buggy in Internet Explorer
Hey, i`m using the jQuery`s fade effect (fadeIn and dadeOut) a couple times now in my script in divs but somehow the fading effect doesn`t end smooth in IE. (ie 6) and the interface plugin with BlindDown and BlindUp doesn`t seem to have this issue and it`s also using a fading effect in the Bling* transitions. the problem that is visable on IE is when the effect is ending or just beginning the div is moving a little.. doesn`t happen with FF or Opera... is there a fix for this bug? or is it fixed in the SVN version? Thanx. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Fade effect of jQuery buggy in Internet Explorer
i just checked the jquery-nightly and that still has the same problem. 2007/2/27, Mark [EMAIL PROTECTED]: Hey, i`m using the jQuery`s fade effect (fadeIn and dadeOut) a couple times now in my script in divs but somehow the fading effect doesn`t end smooth in IE. (ie 6) and the interface plugin with BlindDown and BlindUp doesn`t seem to have this issue and it`s also using a fading effect in the Bling* transitions. the problem that is visable on IE is when the effect is ending or just beginning the div is moving a little.. doesn`t happen with FF or Opera... is there a fix for this bug? or is it fixed in the SVN version? Thanx. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jqueryplugins.com
nice idea i just hope that it`s gonna be actively maintained and not that a new plugin gets added about a month or so after it`s released ;) go on with the good job, i look forward to see that site in action 2007/2/27, Alexandre Plennevaux [EMAIL PROTECTED]: 1/ rating system: along the line of what Matt said: 5. There should definitely be a ratings system or some way for the best plugins to quickly rise to the top. From a user perspective, there's nothing worse than a long list of optional modules like exists now. If a user is looking for a plugin, they might lack the experience or knowledge to create the functionality on their own. So how are they supposed to pick the best and most appropriate plugin to accomplish a task? Those in the know need to help them do it by making the best ones most visible. I would really like to have, on the other side of the rating rope, the sandbox, gathering plugins in the process and experimental plugins, that are at alpha stage. 2/ support forums: I would also like that the repository provides a support forum dedicated for each plugin. In this manner, we keep jquerians together instead of diasporating ourselves :) , no really, just because you can create a huge central knowledge base to anything related to jquery. 3/ metadata: I'm sure you've thought of this, but just in case: indication of browser support for each plugin, and supported jquery version. 4/ Maintenance process: Finally, a last thought: when i think about the wordpress plugin repository, from a nice slick ajaxified central place, it quickly became a plugin cemetary, with most info being outdated, plugins not being usable anymore. So i wonder: should each publisher maintain its own plugins information on the repository, or better have an administrator team behind taking in charge the website content maintenance? I guess i would favor a way in between, with plugins authors having control on their plugins, but with administrators people behind that can curate what is being published (maybe a link report outdated content to the administrators on each plugin page, so that administrators have users as error / dead content detectors :) ). Since we all have a life to earn, do you plan to recruit among good willing jquerians potential moderators to become this administration team ? Thank you for your time, Alexandre Plennevaux -- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Yehuda Katz *Sent:* mardi 27 février 2007 5:02 *To:* jQuery Discussion. *Subject:* Re: [jQuery] jqueryplugins.com Hey Matt(s). I'm heading up the effort within the jQuery team to standardize the way we handle plugins. We've already begun adding meta-data to plugins to make it easier to automate searches and indexing of plugins in the subversion repository. We're also in the process of putting together an official plugin repository that would be hosted on the jQuery website with many of the same features that you're suggesting. I'm really excited to see activity on this front outside of the jQuery core team, and am looking forward to both the official repository and jqueryplugins.com each having a unique place in the evolving world of jQuery. More comments interspersed below. On 2/26/07, Matt Kruse [EMAIL PROTECTED] wrote: I don't want to diminish your excitement but we're already in the process of building a plugin repository to better manage the jQuery plugins. Speaking of which, is there any list of things you are building into the first release? A list of future enhancements? As I've been reading, experimenting, and developing, I had a few thoughts. If 20k is the jQuery limit, that means new development on the core library will probably be really limited, and the future of jQuery really lies in the plugins. Is this the vision? There will definitely be more development on the jQuery (1.2 will probably have animation improvements, for instance), but many of the things people really want to see (like better widgets) fall into the plugin space, not the core space. If so, then the plugins area certainly warrants a lot of attention. It is probably where many new jQuery users will be hooked because they can easily do X or Y, not because they can do the lower-level JS stuff easier with the core lib. Absolutely. With these thoughts in mind, I had few suggestions - some (or all!) of which I'm sure you're already considering: 1. The official list of plugins should get its own page and be clearly separated from other non-official plugins. They should meet some tough standards, be updated and supported, and avoid overlapping functionality as much as possible. It should be clear what is required for a plugin to be considered official. I believe this is in the plans. As we move forward, official plugins will become more like the modules of other libraries, adding functionality to the core that are not provided
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
@Klaus Hartl don`t you like my mockup suggestion? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] problem with edit in place on HTML coding.
i`m trying to edit the whole tag. and i can`t post any samples online.. i don`t have any sites online.. i do have some free subdomains somewhere but i hardly know where i left them :P perhaps in the future.. 2007/2/27, Mika Tuupola [EMAIL PROTECTED]: On 27 Feb 2007, at 01:47, Mark wrote: i have a edit in place thing now and i have this text: div class=\admin_link\#INCLUDE#/div when you click on the the text field pops in BUT the content is suddently different.. the content now is: lt;div class=admin_linkgt;#INCLUDE#lt;/divgt; sorry, i forgot to mention that.. i`m using the jEditable plugin. Ok. To be clear. Is the text you are trying to edit #INCLUDE# or are you trying to edit the whole html tag div class=\admin_link \#INCLUDE#/div ? Maybe you can post some example code online? -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
hmm.. i guess the attatchment didn`t get through and therefore the entire message didn`t get on the list (i can see it here in my gmail) here is the suggestion again with the image posted on imageshack. full message was: --- i like this alot :) don`t get me wrong but i`ve made a mockup how i would like to see it.. this doesn1`t mean that htere is something wrong with the version you posted.. just these changes in my mockup make it complete for me :) the mockup is in the attatchment. explenation: let the Close this window (not vissable in the mockup) appear when the mouse gets close to it. for the NEXT and PREV part with hte transparent background.. also let that appear or fade depending on the location on the mouse.. lets say if the mouse gets with in a 20pixel radius of the next or prev the part will appear. otherwise it will fade away or stay away (same with the close this window) i hope you can do something with this. Mark. --- Image: (kinda big images.. 700+ KB in PNG.. perhaps that`s why it didn`t got through) http://img100.imageshack.us/img100/3640/mockupthickboxcopyps4.png extra information: the thick white border arround the image is transparent (0.8 or 0.9) the px width border that`s directly arround the image isn`t transparent and the 1px border that is arround the thick white border also isn`t transparent (or just a little) let me know what you think of it. Mark. 2007/2/27, Klaus Hartl [EMAIL PROTECTED]: Mark schrieb: @Klaus Hartl don`t you like my mockup suggestion? ??? Mark, I'm all ear, but I haven't got a mail of yours. Did you write me an email or to the list? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Using document.write() in $.get callback function
that`s a nice way... thanx for telling that 2007/2/27, Yansky [EMAIL PROTECTED]: Try the html() function instead of document.write - http://docs.jquery.com/DOM/Attributes#html.28_val_.29 sccr410 wrote: Documentation says to use this: $.get(test.cgi, { name: John, time: 2pm }, function(data){ alert(Data Loaded: + data); } ); Instead of an alert box, I want to write the data var to the page like so: $.get(test.cgi, { name: John, time: 2pm }, function(data){ document.write(Data Loaded: + data); } ); Nothing gets displayed when I do this. -- View this message in context: http://www.nabble.com/Using-document.write%28%29-in-%24.get-callback-function-tf3298563.html#a9184010 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] problem with edit in place on HTML coding.
yea oke.. but do you guys have any idea how to solve this issue? in php it would be: html_entity_decode() but that doesn`t work in javascript.. besides the fact that i would need to edit the plugin and i have no idea where i need to edit it.. :( 2007/2/27, Sam Collett [EMAIL PROTECTED]: On 27/02/07, Mark [EMAIL PROTECTED] wrote: i`m trying to edit the whole tag. and i can`t post any samples online.. i don`t have any sites online.. i do have some free subdomains somewhere but i hardly know where i left them :P perhaps in the future.. You could upload them to Google Pages (http://pages.google.com/). That's what I did in the past before it was blocked from work. Not sure how many others on this list have Google Pages blocked. 2007/2/27, Mika Tuupola [EMAIL PROTECTED]: On 27 Feb 2007, at 01:47, Mark wrote: i have a edit in place thing now and i have this text: div class=\admin_link\#INCLUDE#/div when you click on the the text field pops in BUT the content is suddently different.. the content now is: lt;div class=admin_linkgt;#INCLUDE#lt;/divgt; sorry, i forgot to mention that.. i`m using the jEditable plugin. Ok. To be clear. Is the text you are trying to edit #INCLUDE# or are you trying to edit the whole html tag div class=\admin_link \#INCLUDE#/div ? Maybe you can post some example code online? -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ 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] ANNOUNCE: Thickbox Reloaded alpha
perhaps you could do it with positioned divs? without any images.. than you could use the round corners trick in javascript (which also works on IE) or you could just leave them with the default edges.. and perhaps you could use it in combination of this: http://interface.eyecon.ro/demos/fisheye.html not for the zooming but that stuff had the radius stuff.. or something that works like it. the only thing left to do than is adjusting the opacity when the mouse moves closer or further away.. o btw.. do you have Office 2007? if you have it open up a document and select a text.. then you also get the same effect that i would like to see in thickbox :) Mark. 2007/2/27, Klaus Hartl [EMAIL PROTECTED]: Ah, I see! Cool! What do the others think? I'm no designer, so I didn't (want to) change much compared to the initial Thickbox anyway. I'd like having a little bit more text (Image 2 of 5) in the control, but I like the idea of having a control thats only there if needed. The control could slide up or fade in if you hover of the hotspot. In addition that would make calculating the box height much easier as well! The different opacities in one box though will not be doable, because one box inherits the opacity of its parent. Or maybe with using a transparent png but that won't work in IE 6 easily and adds another asset I'd rather avoid. But as I wrote, in the end thats just a matter of the included skin and I made it so that one can just plugin his or her own skin style sheet. There will be a default skin, but I encourage everyone to make new skins once Thickbox Reloaded is out. You just had to replace jquery.thickbox.skin.css with another one. -- Klaus Mark schrieb: hmm.. i guess the attatchment didn`t get through and therefore the entire message didn`t get on the list (i can see it here in my gmail) here is the suggestion again with the image posted on imageshack. full message was: --- i like this alot :) don`t get me wrong but i`ve made a mockup how i would like to see it.. this doesn1`t mean that htere is something wrong with the version you posted.. just these changes in my mockup make it complete for me :) the mockup is in the attatchment. explenation: let the Close this window (not vissable in the mockup) appear when the mouse gets close to it. for the NEXT and PREV part with hte transparent background.. also let that appear or fade depending on the location on the mouse.. lets say if the mouse gets with in a 20pixel radius of the next or prev the part will appear. otherwise it will fade away or stay away (same with the close this window) i hope you can do something with this. Mark. --- Image: (kinda big images.. 700+ KB in PNG.. perhaps that`s why it didn`t got through) http://img100.imageshack.us/img100/3640/mockupthickboxcopyps4.png extra information: the thick white border arround the image is transparent (0.8 or 0.9) the px width border that`s directly arround the image isn`t transparent and the 1px border that is arround the thick white border also isn`t transparent (or just a little) let me know what you think of it. Mark. 2007/2/27, Klaus Hartl [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Mark schrieb: @Klaus Hartl don`t you like my mockup suggestion? ??? Mark, I'm all ear, but I haven't got a mail of yours. Did you write me an email or to the list? -- Klaus ___ jQuery mailing list discuss@jquery.com mailto:discuss@jquery.com http://jquery.com/discuss/ 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] PLUGIN: jdMenu 1.3 FINAL BETA
looks nice. and a questiuon.. if it`s not in see it as a suggestion. is it possible to add a image infront of the menu item? is it possible to have custom styles for each menu item? (example: first item with a white background, second with a black background ... etc...) good job so far. 2007/2/27, Brandon Aaron [EMAIL PROTECTED]: This is some great work! There is a new version of the bgiframe and the dimensions plugin in SVN that fix a couple of bugs (no API changes, I promise). Also, the slide down effect suffers from the mac firefox flicker that is solved in the latest SVN/nightlies. -- Brandon Aaron On 2/27/07, Jonathan Sharp [EMAIL PROTECTED] wrote: Greetings! jdMenu 1.3 is in final beta and there are quite a number of changes! jdMenu 1.3 is a total rewrite from the ground up [New Features] * Dual delay settings for showing and hiding of menus * Accessibility support - support for keyboard navigation of menus (items have to have an A tag to get focus) * Smart menu positioning - menus will position themselves to be in the browser viewport at all times * Vertical menu capable * Easy Dynamic feature - Callback for incredibly easy dynamic menus allowing you to manipulate the DOM when a menu is triggered to be shown or hidden * Custom animation support - Callback to allow for easily integrating custom animations and effects * Enhanced behavior support - Allows for your callback to return a boolean to control whether a menu should be shown/hidden. This allows for customization such as locking menus [Updates] * CSS Theme support - Simplifed styles and broke these out into two stylesheets allowing for easier theme development * jQuery 1.1.1 compliant * Converted IE iframe fix to use the bgiframe plugin * Updated jdMenu's use of the dimensions plugin to fix a dimensions API change http://jdsharp.us/code/jQuery/plugins/jdMenu/1.3.beta/ I'm hoping to get the documentation updated, a few more examples online and the release packaged in the next night or so but we're moving into a house at the end of the week. So orderly chaos best describes our apartment and my schedule! Feedback/code review greatly appreciated! Cheers, -Jonathan ___ 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] problem with edit in place on HTML coding.
i don`t think that helps.. the text must be editable so it doesn`t _NEED_ to be a div. also a div could cause other problems.. and it will in the place where i need it :( i will try to put up a example somewhere. 2007/2/27, Danny Wachsstock [EMAIL PROTECTED]: I'm not sure if this will solve your problem, but a cheap way to emulate html_entity_decode is: function html_entity_decode(string) {return $('div').html(string).text()} It creates a div, uses your string as the innerHTML, and outputs the HTML created. If the string is not valid HTML, things may not work. The reverse would beL function html_entity_encode(string) {return $('div').text(string).html()} Hope this helps Danny Wachsstock Mark-235 wrote: no that`s not the best way.. can`t i assign a php function to javascript and use it the same way i would have done with php? 2007/2/27, Sam Collett [EMAIL PROTECTED]: On 27/02/07, Mark [EMAIL PROTECTED] wrote: yea oke.. but do you guys have any idea how to solve this issue? in php it would be: html_entity_decode() but that doesn`t work in javascript.. besides the fact that i would need to edit the plugin and i have no idea where i need to edit it.. :( Perhaps not the best way to do it, but you could try replacing self.revert = jQuery(self).html(); with self.revert = jQuery(self).html().replace(/gt;/g,).replace(/lt;/g, ); Not tested though. 2007/2/27, Sam Collett [EMAIL PROTECTED]: On 27/02/07, Mark [EMAIL PROTECTED] wrote: i`m trying to edit the whole tag. and i can`t post any samples online.. i don`t have any sites online.. i do have some free subdomains somewhere but i hardly know where i left them :P perhaps in the future.. You could upload them to Google Pages (http://pages.google.com/). That's what I did in the past before it was blocked from work. Not sure how many others on this list have Google Pages blocked. 2007/2/27, Mika Tuupola [EMAIL PROTECTED]: On 27 Feb 2007, at 01:47, Mark wrote: i have a edit in place thing now and i have this text: div class=\admin_link\#INCLUDE#/div when you click on the the text field pops in BUT the content is suddently different.. the content now is: lt;div class=admin_linkgt;#INCLUDE#lt;/divgt; sorry, i forgot to mention that.. i`m using the jEditable plugin. Ok. To be clear. Is the text you are trying to edit #INCLUDE# or are you trying to edit the whole html tag div class=\admin_link \#INCLUDE#/div ? Maybe you can post some example code online? -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ 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 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/problem-with-%22edit-in-place%22-on-HTML-coding.-tf3295602.html#a9188810 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jqueryplugins.com
can`t you put up a test page ^_^ 2007/2/27, Matt Oakes [EMAIL PROTECTED]: Ok I'm going to reply to everyone at once :D First what is and isnt current supported by jqueryplugins.com: - what is it, what it does Yes in the descriptions. - demo Currently just a link to the ones that the authors provide but I realize that these link have a tenancy to disappear so I might add them into the site. - how-to I've added a section where people can add a how to with formatted code examples. - download Most are linked to the place were the developer host the plugin but eventually I'll add them to the site. - documentation Currently I have got a full documentation page, just a how to section which often includes more advanced ways of using the plugin - support Currently not supported. - changelog Version support is planned but i haven't added it yet. I want to do this before I release it as it will be hard to do once I roll the site out. - dedicated support forum Not supported yet. I was going to add a comments system but this idea does seem a lot more sensible and manageable. 1. The official list of plugins should get its own page and be clearly separated from other non-official plugins. They should meet some tough standards, be updated and supported, and avoid overlapping functionality as much as possible. It should be clear what is required for a plugin to be considered official. Currently not there but could be done easily. 2. Official plugins should have a common naming convention, always have the same license as jQuery itself, and follow some similar coding guidelines. 3. Documentation should be consistent. There should be a single format which all plugins should follow - perhaps an enhanced version of jsdoc? This way the API for every plugin could be published using the same structure and format, and multiple libraries could be combined and documented together. Thats more of something the core team could encourage people to do, however eventually I'd like to only host plugins that comply to some agreed standards. Any jQuery amin input on this bit? 5. There should definitely be a ratings system or some way for the best plugins to quickly rise to the top. From a user perspective, there's nothing worse than a long list of optional modules like exists now. If a user is looking for a plugin, they might lack the experience or knowledge to create the functionality on their own. So how are they supposed to pick the best and most appropriate plugin to accomplish a task? Those in the know need to help them do it by making the best ones most visible. The planning is there fore the system and will most likely be added before the site comes out. Hey Matt(s). I'm heading up the effort within the jQuery team to standardize the way we handle plugins. We've already begun adding meta-data to plugins to make it easier to automate searches and indexing of plugins in the subversion repository. I'd be interested in added support for this once its all standardized. Currently the search feature can search by the name, words in the description or the authors name. Meta data would be a great way to make the support even better. We're also in the process of putting together an official plugin repository that would be hosted on the jQuery website with many of the same features that you're suggesting. I'm really excited to see activity on this front outside of the jQuery core team, and am looking forward to both the official repository and jqueryplugins.com each having a unique place in the evolving world of jQuery. Ah I wasn't aware of this. How far into the process are the jQuery team? 4/ Maintenance process: Finally, a last thought: when i think about the wordpress plugin repository, from a nice slick ajaxified central place, it quickly became a plugin cemetary, with most info being outdated, plugins not being usable anymore. So i wonder: should each publisher maintain its own plugins information on the repository, or better have an administrator team behind taking in charge the website content maintenance? I guess i would favor a way in between, with plugins authors having control on their plugins, but with administrators people behind that can curate what is being published (maybe a link report outdated content to the administrators on each plugin page, so that administrators have users as error / dead content detectors :) ). Since we all have a life to earn, do you plan to recruit among good willing jquerians potential moderators to become this administration team? I do plan on have an authors interface, all-though currently there isn't one. The plugins will be added by the admins (read: me) until i can sort something out. Moderation is planned with report dead links and the like but not currently in place. I'll be posting back with some more comments on this soon, I'm off now to add version support :P Should have added it earlier in hindsight :S Matt
Re: [jQuery] Interface Sortables - tables?
i believe there was a whole discussion about this somewhere in just june or july archives of this list in 2006.. the result of that is that you can`t do it with tr`s because you will need to create a complete table just for that one TR and that should be done be javascript.. or that`s how i understood it. best thing to do is using divs or li`s like in the example. 2007/2/27, Michael Crowl [EMAIL PROTECTED]: Is it possible to use Sortables to sort table rows? I haven't had much luck with it - the rows become malformed and break on drag, and they don't stay fixed within the width of the table. I've moved on to working with DIVs instead, but using table rows would have been cleaner. -- mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Is there a plugin that manipulates: textfields, radio`s and chackbox forms?
Hey, i alway like to modify things :) and that`s the same with html`s radio`s, checkboxes and forms. now i`ve seen a plugin that adds a outer blue line arround a textfield (don`t know where i found that plugin) when you click it, but i didn`t found any jquery plugin that is adjusting the checkboxes and radio buttons so that you can use your own style on them.. so if it exists could someone point me to it because google cant help me in this case. if it isn`t existing.. could someone make it :D what i would like this plugin to do is just getting all the input fields on the page (also the javascript generated ones) to adjust there styles and without the need to add id`s or custom classes. that won`t go nicely with javascript generated forms. Thanx in favor. Mark. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface Sortables - table classes inside DIVs
i think it`s best to just rewrite it to use divs and no tables. other than that i have no idea how to resolve it. 2007/2/27, Michael Crowl [EMAIL PROTECTED]: Thanks for the response, Mark, that's what I suspected - I had done a search, but my local email archives didn't go back that far. So here's a separate problem: Now I'm using one DIV as the sortable container, than each sortable item is a DIV wrapped around a single-row TABLE, so I could keep the current design. Unfortunately, on drag the entire table and all of its TDs (even elements inside the TDs) lose their classes entirely. Makes for a very ugly drag. Setting activeclass doesn't help, because all that does is assert a class on the DIV wrapping the table - nothing helps the table cells and contents maintain their original classes. In other words, I want to move each DIV (wrapped around table) WITHOUT Sortables destroying the existing CSS. Note that once the drag is done, the original styles reassert themselves - it's only on drag. Anyone have any tips? -- mike Mark wrote: i believe there was a whole discussion about this somewhere in just june or july archives of this list in 2006.. the result of that is that you can`t do it with tr`s because you will need to create a complete table just for that one TR and that should be done be javascript.. or that`s how i understood it. best thing to do is using divs or li`s like in the example. 2007/2/27, Michael Crowl [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Is it possible to use Sortables to sort table rows? I haven't had much luck with it - the rows become malformed and break on drag, and they don't stay fixed within the width of the table. I've moved on to working with DIVs instead, but using table rows would have been cleaner. -- mike ___ jQuery mailing list discuss@jquery.com mailto:discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- | Michael Crowl | Web Developer | [EMAIL PROTECTED] ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Is there a plugin that manipulates: textfields, radio`s and chackbox forms?
thanx for that.. looks ugly.. :P guess i need to do some editing 2007/2/27, Matt Oakes [EMAIL PROTECTED]: Try the checkbox plugin: http://kawika.org/jquery/checkbox/ There's also a link on that page to a more advanced version. Enjoy Matt Mark wrote: Hey, i alway like to modify things :) and that`s the same with html`s radio`s, checkboxes and forms. now i`ve seen a plugin that adds a outer blue line arround a textfield (don`t know where i found that plugin) when you click it, but i didn`t found any jquery plugin that is adjusting the checkboxes and radio buttons so that you can use your own style on them.. so if it exists could someone point me to it because google cant help me in this case. if it isn`t existing.. could someone make it :D what i would like this plugin to do is just getting all the input fields on the page (also the javascript generated ones) to adjust there styles and without the need to add id`s or custom classes. that won`t go nicely with javascript generated forms. Thanx in favor. Mark. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 27/02/2007 15:24 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] PLUGIN: jdMenu 1.3 FINAL BETA
lol i wasn`t expecting it to be that simple ^_^ i mean.. i know css but i was expectiong more complicated lines. good job mate :D 2007/2/27, Bob den Otter [EMAIL PROTECTED]: Jonathan Sharp schreef: Greetings! jdMenu 1.3 is in final beta and there are quite a number of changes! jdMenu 1.3 is a total rewrite from the ground up Hi Jonathan, Thanks again, it works like a charm.. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] how do i use display: table-row; instrad of display: block; with the show() effect on table rows?
Thanx, i wasn`t aware of that. 2007/2/26, Klaus Hartl [EMAIL PROTECTED]: Mark schrieb: Thanx that did the trick. also importand to add is that a table MUST HAVE tbody and /tbody :) if you don`t have that it will get messy again :P That's because browsers add that element implicitly, even if you left it out. (Same with the body element for example). -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] problem with edit in place on HTML coding.
Hey, i have a edit in place thing now and i have this text: div class=\admin_link\#INCLUDE#/div when you click on the the text field pops in BUT the content is suddently different.. the content now is: lt;div class=admin_linkgt;#INCLUDE#lt;/divgt; but i want it to be : div class=\admin_link\#INCLUDE#/div any idea how i can get this done? thanx alot in favor. Mark. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] problem with edit in place on HTML coding.
sorry, i forgot to mention that.. i`m using the jEditable plugin. 2007/2/26, Mika Tuupola [EMAIL PROTECTED]: On 26 Feb 2007, at 21:55, Mark wrote: i have a edit in place thing now and i have this text: div class=\admin_link\#INCLUDE#/div when you click on the the text field pops in BUT the content is suddently different.. the content now is: lt;div class=admin_linkgt;#INCLUDE#lt;/divgt; Which edit in place plugin are you using? jEditable ( http:// www.appelsiini.net/~tuupola/javascript/jEditable/ ) or something else? -- Mika Tuupola http://www.appelsiini.net/~tuupola/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Progress Bar Plugin
looks nice :) good job 2007/2/27, mrcarxpert [EMAIL PROTECTED]: I notice it too when it's on my blog, but my standalone tester doesn't appear to do it. Anyone else notice any quirks? Josh agent2026 wrote: Same here in FF 2.0. Looks great though, nice work. Adam DavidIcreate wrote: When i tested the demo in FF1.5 on xp i noticed the content of the page jumped a bit down. it only happens when the page is loaded for the first time. -- David Duymelinck [EMAIL PROTECTED] ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Progress-Bar-Plugin-tf3290844.html#a9172740 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] how do i use display: table-row; instrad of display: block; with the show() effect on table rows?
Hey,well the title really says it all..i`m trying to add/delete table rows with jquery and that`s working.. the bad thing is that jquery makes the rows that i do with the show() effect (this line: $(newObject).show(slow);) with display: block; and that distroys the way the table should look. if i could just set it to table-row just for the ones where that`s needed..and that`s the question. how do i make it so that when the show() effect is done on divs it`s using display: block; and when it`d don`t on table elements it should be using display: table-row; perhaps a syntax change for the effects? adding this option..?Any help would be gread.Thanx in favor. _ Leef je uit: ontwerp je startpagina precies zoals jij het wil hebben op Live.nl. http://www.live.com/getstarted___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] how do i use display: table-row; instrad of display: block; with the show() effect on table rows?
Thanx that did the trick.also importand to add is that a table MUST HAVE tbody and /tbody :) if you don`t have that it will get messy again :Pbut thanx alot for fixing this issue. Date: Sun, 25 Feb 2007 23:39:37 +0100 From: [EMAIL PROTECTED] To: discuss@jquery.com Subject: Re: [jQuery] how do i use display: table-row; instrad of display: block; with the show() effect on table rows? maybe something like this: $(newObject).show(slow, function() { $(this).css(display, table-row) }); //Kristinn On 2/25/07, Mark [EMAIL PROTECTED] wrote: Hey, well the title really says it all.. i`m trying to add/delete table rows with jquery and that`s working.. the bad thing is that jquery makes the rows that i do with the show() effect (this line: $(newObject).show(slow);) with display: block; and that distroys the way the table should look. if i could just set it to table-row just for the ones where that`s needed.. and that`s the question. how do i make it so that when the show() effect is done on divs it`s using display: block; and when it`d don`t on table elements it should be using display: table-row; perhaps a syntax change for the effects? adding this option..? Any help would be gread. Thanx in favor. Probeer Live.com: je eigen persoonlijke opstartpagina met alleen de dingen die jij belangrijk vindt op één plek. binnen één omgeving. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ _ Probeer Live.com: jouw leven online met nieuws, sport, weer en nog veel meer. http://www.live.com/getstarted___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] how to find out the browser your using with jquery and do a action?
Hey,i`m using a effect on tables which only seem to work in firefox.. so now i would like to make the effect browser dependent.. so if it`s firefox: use fade, if it`s any other browser (not gecko based) use another effect or don`t use any effect at all.o btw.. why do my reply`s not appera in the thread that i started but as a new thread?example how it should be:|- my thread|- - my threadhow it`s going now:|- my thread|- my threadi`m using hotmail and i use the reply button.Thanx.Mark. _ Probeer Live.com: jouw leven online met nieuws, sport, weer en nog veel meer. http://www.live.com/getstarted___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] how to find out the browser your using with jquery and do a action?
thanx. i couldn`t find it.. it`s working perfectly.Date: Mon, 26 Feb 2007 12:07:30 +1300From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [jQuery] how to find out the browser your using with jquery and do a action?Hi Mark,You can use $.browser. See here for more info: http://docs.jquery.com/JavaScript#.24.browserChris _ Leef je uit: ontwerp je startpagina precies zoals jij het wil hebben op Live.nl. http://www.live.com/getstarted___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] how do i use display: table-row; instrad of display: block; with the show() effect on table rows?
Sorry, i don`t have a working somaple online.. it`s all running on my localhost. but i can tell you that IE is the biggest hell in cloning table rows.. (i`m cloning them.. not showing/hiding) but here is the javascript and the html for you: // javascript: function cloneObject(gdiv, insdiv, type) { var obj = document.getElementById(gdiv); //Div die gekloond wordt var dest = document.getElementById(insdiv); //Div waar het nieuwe object ingeplaatst wordt var display = (type == 'table') ? 'table-row' : 'block'; var newObject = obj.cloneNode(true); //het object clonen if ($.browser.mozilla || type != 'table') { newObject.style.display = 'none'; dest.appendChild(newObject); $(newObject).show(slow, function() {$(this).css(display, display)}); } else if ($.browser.msie) { newObject.style.display = 'block'; //het object visible maken return dest.appendChild(newObject); // het object toevoegen aan de destination } else { dest.appendChild(newObject); } return newObject.style.display = display; //het object visible maken } function removeThisTR(obj) { return ($.browser.mozilla) ? $(obj.parentNode).hide(slow, function(){ obj.parentNode.parentNode.removeChild(obj.parentNode);}) : obj.parentNode.parentNode.removeChild(obj.parentNode); } // html form method=post action=admin.php ?act=settingsamp;type=e_menuamp;go=go table width=100% border=0 cellspacing=0 cellpadding=0 tbody id=insertHere2 { foreach value=item from=$menu_items } tr td Name: input type=text name=name[] value={ $item.name } / /td td URL: input type=text name=url[] value={ $item.url } / /td td Style: input type=text name=style[] value={ $item.custom_style } / /td td Div ID: input type=text name=div_id[] value={ $item.div_id } / /td td Order: input type=text name=order[] value={ $item.order } /img src=./templates/images/btn-close.gif alt= title=Delete this row style=border-style: none; onclick=removeThisTR(parentNode); / /td /tr { /foreach } /tbody /table div style=text-align: center; input type=button onclick=cloneObject('getDiv2', 'insertHere2', 'table') value=Add menu entry name=clone / input type=submit value=Apply Changes style=margin-top: 2ex; / /div /form table tr style=display:none; id=getDiv2 td Name: input type=text name=name[] / /td td URL: input type=text name=url[] / /td td Style: input type=text name=style[] / /td td Div ID: input type=text name=div_id[] / /td td Order: input type=text name=order[] value=0 /img src=./templates/images/btn-close.gif alt= title=Delete this row style=border-style: none; onclick=removeThisTR(parentNode); / /td /tr /table - you will only need to add in the html tags, the jquery library and most likely the interface library. good luck :) and let me know what you think of it. 2007/2/26, Rick Faircloth [EMAIL PROTECTED]: Hi, Mark… I've been working with showing/hiding tables rows a little and would like to see how your solution is working…got a sample online that I can view? Rick *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Mark *Sent:* Sunday, February 25, 2007 5:59 PM *To:* jQuery Discussion. *Subject:* Re: [jQuery] how do i use display: table-row; instrad of display: block; with the show() effect on table rows? Thanx that did the trick. also importand to add is that a table MUST HAVE tbody and /tbody :) if you don`t have that it will get messy again :P but thanx alot for fixing this issue. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery and Jack Slocum's Ext
Sam, If you are going to use rich components like those found in Ext, does this matter? I am looking at porting large parts of rich client application functionality to the Web and if a user has scripting disabled, the application will not work anyway. Mark D. Lincoln Mark D. Lincoln, Director of Research Development Eye On Solutions, LLC (866) 253-9366x101 www.eyeonsolutions.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sam Collett Sent: Wednesday, February 21, 2007 5:53 AM To: jQuery Discussion. Subject: Re: [jQuery] jQuery and Jack Slocum's Ext On 20/02/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: John Resig schrieb: Hi Everyone - Today, we're proud to announce that the jQuery Project and Jack Slocum's Ext Project, have partnered to integrate the amazingly lightweight and powerful jQuery framework with Ext's awesome UI library. This collaboration will greatly enhance the capabilities of both projects and expand the functionality available to developers using the jQuery JavaScript Library and the Ext UI component suite. For anyone wondering if any jQuery plugins will be replaced by Ext components: While that is possible, there are still good reasons to use jQuery plugins. Most are very lightweight, easy to customize and extend, and most important: unobtrusive. So if you are looking for something to use on a normal website, jQuery's plugins are a good choice. If you are looking for components for a rich web application, Ext components offer a much richer experience. I'm looking forward to the first Ext-release with jQuery. -- Jörn Zaefferer http://bassistance.de Can they even be used in a way to degrade nicely? All the examples I have looked have don't have a fall-back if you disable JavaScript. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Simple confirm on change
Right i know this is a dirt simple one but i just cant put my finger on it. I have a simple form with just a select box in it and i wish to submit the form on change. Currently im using $('#status').change( function(){ confirm(Test confirm); this.submit(); } ) This almost works, apart from when you select cancel on the confirm box it still submits. Anyone able to point me in the right direction plz Cheers Mark ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Highlight Vertical Table Cells
Im trying to figure out how i could go about highlighting table cells that are grouped vertically when you hover over the THEAD element or the TFOOT element. Im not sure how i should grab them via jQuery though. Say we have a table like table thead tr thPeople/th --// Hove over this //- thAges/th thEmail/th /tr /thead tbody tr tdJohn/td --// Highlight this //- td68/td tdnone/td /tr tr tdJoe/td --// Highlight this //- td99/td tdnone/td /tr tr tdMary/td --// Highlight this //- td72/td tdnone/td /tr /tbody /table Any ideas? it would need to select all the TD directly below it, or above it if we was highlighting a TFOOT element ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Highlight Vertical Table Cells
Hi Dan, Thank you for that link, i shall give it a good look over now Thanks again Mark Dan Eastwell wrote: Well, if you're not averse to adding more markup to your html, you could add an id to the th's and then headers=thID attributes to the tds. It's technically correct from an HTML/accessibility point of view and gives you a way of selecting using jQuery 'attribute selectors': highlightCol([EMAIL PROTECTED]'thID']); Have a look at this http://www.456bereastreet.com/archive/200410/bring_on_the_tables/ http://www.456bereastreet.com/archive/200410/bring_on_the_tables/ if you're interested. Cheers, Dan. On 2/9/07, *Mark Harwood* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Im trying to figure out how i could go about highlighting table cells that are grouped vertically when you hover over the THEAD element or the TFOOT element. Im not sure how i should grab them via jQuery though. Say we have a table like table thead tr thPeople/th --// Hove over this //- thAges/th thEmail/th /tr /thead tbody tr tdJohn/td --// Highlight this //- td68/td tdnone/td /tr tr tdJoe/td --// Highlight this //- td99/td tdnone/td /tr tr tdMary/td --// Highlight this //- td72/td tdnone/td /tr /tbody /table Any ideas? it would need to select all the TD directly below it, or above it if we was highlighting a TFOOT element ___ jQuery mailing list discuss@jquery.com mailto:discuss@jquery.com http://jquery.com/discuss/ -- Daniel Eastwell Portfolio and articles: http://www.thoughtballoon.co.uk Blog: http://www.thoughtballoon.co.uk/blog ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Highlight Vertical Table Cells
Thank you Karl, thats great! Im almost there now, i just need to figure out how to check for multiple headers when calling [EMAIL PROTECTED] http://pastecode.com/13902 Check the pastebin to understand what i mean a bit more. Apart from the split header it works great! Karl Swedberg wrote: This works for the thead. You can apply the same principle to the tfoot: $('th').each(function(index) { $(this).hover(function() { $('td:nth-child(' + (index+1) +')').css('background', '#ffc'); }, function() { $('td:nth-child(' + (index+1) +')').css('background', '#fff'); }); }); I only used .css() to run a quick test. You'll probably want to change those two to .addClass('some-class') and .removeClass('some-class') --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 9, 2007, at 8:27 AM, Mark Harwood wrote: Im trying to figure out how i could go about highlighting table cells that are grouped vertically when you hover over the THEAD element or the TFOOT element. Im not sure how i should grab them via jQuery though. Say we have a table like table thead tr thPeople/th --// Hove over this //- thAges/th thEmail/th /tr /thead tbody tr tdJohn/td --// Highlight this //- td68/td tdnone/td /tr tr tdJoe/td --// Highlight this //- td99/td tdnone/td /tr tr tdMary/td --// Highlight this //- td72/td tdnone/td /tr /tbody /table Any ideas? it would need to select all the TD directly below it, or above it if we was highlighting a TFOOT element ___ 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 list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Highlight Vertical Table Cells
http://dev.acornpartner.com/test.php As you can see it almost works, im still struggling on matching [EMAIL PROTECTED] which have multiple header values. Also is there anyway of reducing the amount of flickering in IE? or is this just something that we will have to put up with? Cheers Mark ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Highlight Vertical Table Cells
Aha! [EMAIL PROTECTED] solved it :D i thought you had used a double ^ as my email client does not seem to want to display a * correctly :S But i've got it now, thanks! Karl Swedberg wrote: If there are multiple values for the attribute, then [EMAIL PROTECTED] will be too specific, since it's looking for /exact/ matches. Try this instead: [EMAIL PROTECTED] That's get the elements in which the headers attribute /contains/ foo. Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 9, 2007, at 11:08 AM, Mark Harwood wrote: http://dev.acornpartner.com/test.php As you can see it almost works, im still struggling on matching [EMAIL PROTECTED] which have multiple header values. Also is there anyway of reducing the amount of flickering in IE? or is this just something that we will have to put up with? Cheers Mark ___ 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 list discuss@jquery.com http://jquery.com/discuss/
[jQuery] carousel blocks adjacent links
I have a list of links in a column to the right of my carousel. Those links are not clickable until all the images in the carousel have scrolled to the left. The overflow for .jcarousel-list is set to 'hidden.' It's like the hidden images are on top of the links in the adjacent column. I tried setting a z-index in the style for both #mycarousel and for the adjacent div, but that did not work. -- View this message in context: http://www.nabble.com/carousel-blocks-adjacent-links-tf3188077.html#a8848907 Sent from the jCarousel mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] carousel blocks adjacent links
Jan Sorgalla wrote: could you post a link to an example page? http://staging.stpaul-qc.org/ Now that I take a look at this in firefox, I note that the original problem may be unique to Safari. Firefox seems to render the links in the right column as clickable. -- View this message in context: http://www.nabble.com/carousel-blocks-adjacent-links-tf3188077.html#a8849609 Sent from the jCarousel mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] carousel blocks adjacent links
Jan Sorgalla wrote: Yea, works fine in all my browsers (FF, IE, Opera). I don't have Safari at the moment to test it. Did you tried so set overflow: hidden to .jcarousel-scope as well? I did try setting overflow: hidden on .jcarousel-scope, and that didn't work. I also notice that the problem in safari is actually worse than I orginally noticed. Not only are the links in the right column blocked, now that I have links on the images in the carousel, when I hover over the link in the adjacent column the cursor changes to a finger pointer indicating there's a link, but the link that is active when clicked is the link on the image in the carousel which has not yet scrolled into the viewable area, not the link to the visible item over which the mouse is hovering. -- View this message in context: http://www.nabble.com/carousel-blocks-adjacent-links-tf3188077.html#a8850179 Sent from the jCarousel mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Release: Accordion menu plugin 1.1
Jörn, I tried your demo and was wondering if it would be possible to add a feature. You can say no if you want as it's not really necessary, but I think it might make a cool option. Could you make it so that if you click on a top level item a second time, it closes the item? So if I click on a closed item, it opens to display its children and if I click on it again, it closes and hides it children returning to its prior state. Not having used it before, I tried clicking on an item to open it and then clicking on an item to close it and did not get the result I expected. I guess I assumed it would work like a treeview. Again, if you don't want to add this, that's okay. I just thought a configuration option to make it do this would be a cool feature to add. Just my two cents... Mark On 2/4/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: Karl Swedberg schrieb: I wonder if that can be achieved simply by defining a height for the containing div in CSS? Actually setting a height for each content element works quite well, together with same speed for hide and show. I'll update the demo accordingly. Thanks for the idea! -- 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/
[jQuery] Creating Custom Show/Hide system
Im trying to get my head around jQuery again, this time im wanting to create a simple show hide system. I have a simple UL base menu and a couple of SPANs within a DIV which i wish to show/hide depending on which link is clicked. Im unsure as to the best way of creating a custom function for doing so, i wish to pass thru the ID of the div i want to show and then hide any others that are shown, similar to the accordion plugin. Anyone able to help? Many thanks Mark 'Phunky' Harwood ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Creating Custom Show/Hide system
Arrr i see that slideToggle() has a call back function, i assume i could then go and create a function that would look inside my DIV for any none hidden elements and hide them before it shows the requested DIV? Im i correct in thinking this? Alexandre Plennevaux wrote: Did you check slideToggle() in the doc: http://docs.jquery.com/Effects#slideToggle.28_speed.2C_callback_.29 ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Harwood Sent: vendredi 2 février 2007 13:18 To: discuss@jquery.com Subject: [jQuery] Creating Custom Show/Hide system Im trying to get my head around jQuery again, this time im wanting to create a simple show hide system. I have a simple UL base menu and a couple of SPANs within a DIV which i wish to show/hide depending on which link is clicked. Im unsure as to the best way of creating a custom function for doing so, i wish to pass thru the ID of the div i want to show and then hide any others that are shown, similar to the accordion plugin. Anyone able to help? Many thanks Mark 'Phunky' Harwood ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Creating Custom Show/Hide system
Hmmm there must be a better way then doing it like this; $(document).ready(function() { $(.multi-content-container span).hide(); $(.multi-content-nav li a.test1).click(function() { $(.multi-content-container span).hide(); $(.multi-content-container span#test1).show(); }); $(.multi-content-nav li a.test2).click(function() { $(.multi-content-container span).hide(); $(.multi-content-container span#test2).show(); }); }); Can i just create one function and pass the ID/CLASS thru as a VAR? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Ajax loading page multiple times
I have a strange problem here, and I can't figure it out. I've got a web page with 2 divs - #menu and #content. When the page loads, it automatically pulls data from another page and loads it into #menu. Here's my script: $(document).ready(function() { function addClickHandlers = function() { $(a).click(function() { $(#content).load(this.href, addClickHandlers); return false; }); }; $(#menu).load(/ekklesia/users/listUsers, addClickHandlers()); }); /ekklesia/users/listUsers lists users in the menu with a link to another page. When I click a link the first time, it loads the new page into #content and then runs addClickHandlers so that links inside my new page will also load info into #content. When I click another #menu link, it loads the new page into #content twice. The next time, it loads it 4 times. After that 8, 16, etc. Anybody have any idea what's wrong? Thanks in advance! Mark ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Ajax loading page multiple times[Scanned]
I tried that, and it's still doing the same thing. The code came straight from here: http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Rate_me:_Using_Ajax. I don't know if there's something wrong with the code itself, or if I typed something wrong. Mark -Original Message- From: [EMAIL PROTECTED] on behalf of sunsean Sent: Fri 2/2/2007 4:19 PM To: jQuery Discussion. Subject: Re: [jQuery] Ajax loading page multiple times[Scanned] You could try this instead: $(#content).load(this.href, null, addClickHandlers); Since the load function wants to take in parameters. My guess is that the page is loading inside of itself. ~Sean winmail.dat___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] end()
All, Can someone please explain the change that was made to JQuery that made the end() method function differently between version 1.0.4 and version 1.1.1? I have some code that I uses the end() method to revert the JQuery object to the previous object and it no longer seems to do that. Previously, I could do something like: jQ.end().filter( new filter ); and the jQ object would have reverted to the previous JQuery object with the new filter. Now, to get the same effect, I have to do the following: jQ = jQ.end().filter( new filter ); This seems to work, but is there a better way to handle this? Mark D. Lincoln Mark D. Lincoln, Director of Research Development Eye On Solutions, LLC (866) 253-9366x101 www.eyeonsolutions.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] unobtrus
All, Okay, I am confused by the responses and maybe it's my own fault for asking the question the way that I did. We are on board with the idea of keeping the presentation and behavior separate for both flexibility and maintainability of the application. In fact all of our client applications for both Windows and the Web are design this way to facilitate their maintenance and enhancement. We have an extensive component plug-in library that makes our development of very powerful business applications a snap. This is one of the reasons that we were drawn to JQuery when we discovered it. What my question should have been relates to the issue of graceful degradation of the Web application. Is it important for us to be concerned with our Web portal applications degrading gracefully if the user has scripting disabled in their browser? Mark D. Lincoln Mark D. Lincoln, Director of Research Development Eye On Solutions, LLC (866) 253-9366x101 www.eyeonsolutions.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sent: Thursday, January 25, 2007 1:26 AM To: jQuery Discussion. Subject: Re: [jQuery] unobtrus It's easy to lump 'crap html' with 'requiring javascript'... both are undesirable! Whereas the former has no merit, the latter is sometimes required for the presentation of beautiful sites! John's description of 'crap html' shows just how bad the nightmare can be! So let's all end the nightmare,with jQuery css to the rescue! On 1/24/07, John Beppu [EMAIL PROTECTED] wrote: I'd like to also add that Unobtrusive Javascript is just cleaner and easier to understand than the alternative. When I try to analyze a page that has tons of Javascript mixed with HTML, it can be very difficult see what's going on. Contrast that with the unobtrusive approach where you can use CSS selectors or XPath queries to grab the elements you care about and apply behaviours to them.If you're good at naming your CSS classes and ids, the code you end up with has the potential to be so much cleaner and so much more beautiful. I don't even think it's more work to take this approach. It's not a hassle compared to the maintenance nightmare you might face otherwise with entagled Javascript and HTML. The Separation of Concerns is a good thing. Many significant advances in the art of programming have been through people figuring out ways to separating concerns from each other. MVC separates Models, Views, and Controllers from each other -- the benefit is understandability. Using HTML for content and CSS for presentation is another form of separation where two aspects of display have been separated, and again, this makes things easier to understand and way more flexible, because now the 2 parts can vary independently. Javascript being separated from HTML is yet another step in this direction. If you're not sold on the general principles behind separating concerns, try to imagine the opposite. Imagine... a PHP page that makes SQL queries right before it populates a big HTML table that makes heavy use of nested tables for layout but also has some inlined CSS via the style attribute, and to top it all off the HTML is littered with onclick handlers and script tags at various places in the page. Now imagine a whole web site built this way. (PAIN) That's what we're trying to get away from. That's why we (as programmers) are always coming up with new ways to separate concerns. It's a trend that you ignore at your own peril. (I'm not sure what possessed me to write so much, but I gotta post that to my blog ;-) On 1/24/07, Klaus Hartl [EMAIL PROTECTED] wrote: Ⓙⓐⓚⓔ wrote: there are a million reasons to separate js from the html! but UOJS is the ability for a page to still work without javascript. A very admirable feature! I'd say accessibility is one - obviously the most important - aspect of UOJS. You could probably code accessible without separating js and html but since the whole UOJS movement started adherers also consider separation good practice. I pretty much believe that this separation is part of UOJS, but hey, nowhere is there an official definition so in the end it's just another personal opinion. And yes of course, it is admirable :-) Everybody should be doing it! -- Klaus ___ 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] unobtrus
Tim, I guess the issue for us is that we want to give our clients as rich a UI as possible both in Windows and the Web and if we focus on degradation, we may have to compromise on the richness of the UI. If you try to use the Google word processor or the Google spreadsheet without scripting enabled, they do little if anything at all. But if you have scripting enabled, they give you a very rich UI similar to a conventional desktop application. This is the type of user interface experience we are looking for in our Web applications, however, it means that graceful degradation is probably out. Mark D. Lincoln Mark D. Lincoln, Director of Research Development Eye On Solutions, LLC (866) 253-9366x101 www.eyeonsolutions.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Gossett Sent: Thursday, January 25, 2007 2:16 PM To: jQuery Discussion. Subject: Re: [jQuery] unobtrus Reduce risk by not putting all your eggs in one basket. Eliminate risk by building a damn good basket, and putting all your eggs in it. What do you and your team consider to be a damn good basket? Reliance on a certain environment creates the risk of a single point of failure: if one of things is not there, the whole app goes to pot. Using OUJS-and, for that matter, using every other technology unobtrusively-means that if one component fails, the whole system does not necessarily fail; it degrades. How valuable is that to you? -- Tim is MrGossett ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] unobtrus
All, We are developing various business Web portals using JQuery and wondered why we should care about unobtrusive JavaScript. These Web portals are not for the general public and can only be accessed by business clients who subscribe to our service. When our clients subscribe to our service, we give them the system requirements for using our service and one of them has always been that you must have JavaScript enabled in your browser. We primarily support the latest versions of IE and Firefox but attempt to be as browser agnostic as possible. The reason I am asking this question is that we would like to include some very advanced JavaScript controls (i.e. a full featured data aware grid) in our Web portals, however, the inclusion of these controls will basically negate the use of unobtrusive JavaScript which seems to be an important aspect of JQuery development. Mark D. Lincoln Mark D. Lincoln, Director of Research Development Eye On Solutions, LLC (866) 253-9366x101 www.eyeonsolutions.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery heat maps
I was looking at: http://blog.corunet.com/english/the-definitive-heatmap it describes one method for creating a heat map (a visualization of where users click on a website). The solution them employ requires sending one HttpRequest to your server for each click. This sounds potentially very expensive. Would it be possible to aggregate this data client side, and then every X seconds or clicks? Can we store state across page refreshes? Would something like AMASS be helpful here? http://codinginparadise.org/weblog/2005/10/amass-ajax-massive-storage-system.html More over, is this just as simple to track as: $(document).each().click(function () { // magic function to record x,y click data }); setTimer(XXX, jQuery.magicSendFunction()) Cheers, -Mark ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Reading json strings
Bruce MacKay wrote: Hi folks, I don't understand what I'm doing wrong in the following code ( http://temporarius.massey.ac.nz/json_test.htm) where I cannot seem to harvest the returned json string. The test json string being returned after the form is submitted is: {fields: [{id: name, isValid: false, message: Username must be at least 3 characters long}]} I don't understand why the length of fields is being given as 1, and when I try to view the components of fields, I get an [object Object] error. json.fields is an Array containing just one Object. fields: [ -- An array { -- An object id: 'name', -- A property isValid: false, ... } ] If you want fields to contain an object, and you wish to iterate through the properties of that object then you need to get rid of the array: fields: { id: 'name', isValid: false, ... } for (var propertyName in json.fields) { alert(propertyName + ' = ' + json.fields[propertyName]); } Regards - Mark ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] $.val() limited in functionality?
Jörn Zaefferer wrote: Currently val() is only a shortcut, but doesn't encapsulate anything useful. It would be nice to have it handling some more stuff. I wouldn't like to have it in an external plugin, that makes it difficult to access or find it when you actually need that functionality. Some thoughts about the implementation: - single select: Nothing to worry about, right? - multiple select: Get it's option:selected children and put their values into an array, empty array when nothing is selected - radio: Find the input:radio siblings with the same name and get the value from the one that is checked, ??? when nothing is selected - checkbox: combination of radio and select: Find input:checkbox siblings that are checked and put their values into an array, empty array when nothing is checked - everything else: stick to the simple value As a start, heres what I use: (It doesn't cover radio buttons as described above - as I never needed it) It returns an array of values if the jquery has several elements, it maybe more useful to return an object (id/name = value) instead. $.fn.getValue = function() { var o = []; this.each(function() { switch (this.type) { case 'checkbox': case 'radio': v = this.checked; break; case 'select-one': v = this.selectedIndex = 0 ? (this.options[this.selectedIndex].value || this.options[this.selectedIndex].text) : null; break; case 'select-multiple': v = []; for (var i = 0; i this.options.length; i++) { if (this.options[i].selected) v.push(this.options[i].value || this.options[i].text); } break; case 'button': case 'reset': case 'submit': break; default: v = this.value; } o.push(v); }); return o.length 1 ? o : o[0]; }; ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Extend a Plug-In
Can someone please give me a short primer on the recommended way to extend a jQuery plug-in? I have created a couple of basic plug-ins and have plans for several others, however, I would like to be able to take advantage of the basic plug-in functionality to create more complex plug-ins but I am not sure what the best way to extend an existing plug-in. Any help would be greatly appreciated. Mark D. Lincoln Mark D. Lincoln, Director of Research Development Eye On Solutions, LLC (866) 253-9366x101 www.eyeonsolutions.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] does jQuery has support for parameter handling ?
Truppe Steven wrote: Mark Gibson schrieb: In PHP have a look at: utf8_encode(), iconv, or mbstring I think i haven't clearly told my problem: I just have some article manager where for each article i have some description text (german english). At the moment i have one php file loading the text from the database and pass it to my article manager. Here i just want to send strings like Diesen Artikel würde viel kosten for example (auml;). If i do this without any encoding the strings get damaged and looks strange because of the way urls are interpreted. So i thought i must urlencode/urldecode it, as long as i urldecode/urlencode all in php it's working. I'm still a bit confused, but I guess you are trying to pass data from PHP to Javascript, and this data may contain character outside the ASCII character set. Javascript works with the Unicode, and your data is probably in ISO-8859-1. In this case I would suggest converting the data using PHP utf8_encode() and pass it in a JSON serialized string. URI's are absolutely useless for this kind of thing. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Spam problem in bugs
Yehuda Katz wrote: Consider ticket 342 closed. I just committed your patch in the latest svn. -- Yehuda Thanks, but it doesn't seem to be there! The trunk is at rev 549 at present, is this what you're seeing? - Mark. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] console for IE
Mark Gibson wrote: I've adapted the console.js script originally found here: http://wish.hu/firebug-on-explorer Added pretty dumps of objects, arrays, elements, etc. My new script can be fetched from here: http://jollytoad.googlepages.com/browsercompatibility Andy Matthews wrote: Interesting. How is it used? console.log(some_variable); It's a better alternative to lots of nasty alert()'s when debugging javascript. It's roughly based on Joe Hewitt's fantastic Firebug extension for Firefox: http://www.joehewitt.com/software/firebug/ He introduced an object called console, which allows logging various useful stuff. If you haven't tried it, go get it now you wont know how you lived without it: https://addons.mozilla.org/firefox/1843/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New Plugin: Resizeable
Stephen Woodbridge wrote: Mark Gibson wrote: I've not had chance to test it, but I'm sure all elements have a resize event. If not then the resizeable plugin can trigger() it itself. Hi Mark, I tried to do this like this: $(document).ready(function(){ $('#resize_map').Resizeable( { minHeight: 100, maxHeight: 700, minWidth: 100, maxWidth: 800, handlers: { se: '#resize' } } ); $(#resize_map).bind('resize', function(e) { alert(resized event); }); }); But no event fires :(, I have also tried: $(#resize_map).resize(function(e) { alert(resized event); }); $(#resize_map).trigger('resize'); does force the event to fire. I can add the trigger('resize') to the resizable plugin, but it seems like it should just fire. Any other thoughts? Steve, After a quick flick through JavaScript, The Definitive Guide and a few online docs, it seems that the resize event only applies to window size changes. So you'd have to manually trigger the event. Also, I've noticed that trigger appears to be broken for IE in the latest jquery download r501! - but is fixed in SVN. BTW, you can just chain the bind: $('#resize_map') .Resizeable({ ... }) .bind('resize', function(e) { alert(resized event); }); - Mark. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery incompatible with adsense?
I upgraded first to revision 522 and after to 524 and both doesn´t work. I get the following error on thinkbox.js:$(document).ready is not a function on line 11Here is the test page: http://markdbd.com/proyectos/jquery_test/Regards,On 11/6/06, Luke Lutman [EMAIL PROTECTED] wrote: I had a similar problem, Mark.Upgrading to the latest revision of jQuery (522 at the time) solved the problem :-)LukeMark D.B.D wrote: Hi all, When I finished my little project with jquery I decided to add my adsense code. After this I saw there is something that makes jquery incompatible with the adsense script. I don't know what it is so I created a little test page so you all can check it: http://www.markdbd.com/proyectos/jquery_test/ Just click on the image to get the error, I think it only happens on firefox. I am using the thinkbox plugin but If I am right the bug is in jquery.js. Regards, -- -- Mark D.B.D http://www.markdbd.com [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ -- --Mark D.B.Dhttp://www.markdbd.com [EMAIL PROTECTED]-- ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Hiding and showing table rows
Brian Morykon wrote: I was hoping to hide and show table rows with a slide effect. But it seems that Firefox needs a display: table-row instead of a display: block to make a row appear properly. While IE throws an error at table-row and does fine with block. While I didn't get the slide effect working, I did get the row to appear properly by adding these functions: [snip] Hope this helps someone -- or perhaps someone can help me find a better way. Thanks! You could find the default display value for a row by creating a dummy row and checking the css display value, this should be more reliable and future proof than browser sniffing (in case MS ever support table-row!): var rowdisplay = $('tr/tr').css('display'); Tested in FF2.0, IE7/6/5.5, Opera 9.02 Regards - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Spam problem in bugs
Hi, I noticed there is a spam problem in the bug tracking system. Two enhancement requests I've submitted have been spammed: http://jquery.com/dev/bugs/bug/342/ http://jquery.com/dev/bugs/bug/344/ At least one of these (#342) is a feature I really need, and I'm starting to worry that it (and other tickets) are going to get ignored - could the site be changed to force a login before submitting/changing stuff (maybe using the mailing-list email and password)? Cheers - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery incompatible with adsense?
The error occurs if you click on the image. On ie6 it works but firefox 2 returns a error with Window.nodeType.On 11/7/06, Olivier Percebois-Garve [EMAIL PROTECTED] wrote:no errors on FF 1.5 winXP pro sp 2.olivvvOn 11/6/06, Mark D.B.D [EMAIL PROTECTED] wrote: Hi all,When I finished my little project with jquery I decided to add my adsense code. After this I saw there is something that makes jquery incompatible with the adsense script. I don't know what it is so I created a little test page so you all can check it: http://www.markdbd.com/proyectos/jquery_test/Just click on the image to get the error, I think it only happens on firefox. I am using the thinkbox plugin but If I am right the bug is in jquery.js.Regards,-- --Mark D.B.D http://www.markdbd.com [EMAIL PROTECTED]-- ___jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/-- --Mark D.B.Dhttp://www.markdbd.com [EMAIL PROTECTED]-- ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery incompatible with adsense?
Well Google Sitemap doesn´t report any error on robots.txt. I think the problem is on jquery with adsense on firefox 2.On 11/7/06, Dave Methvin [EMAIL PROTECTED] wrote: I upgraded first to revision 522 and after to 524 and both doesn´t work. I get the following error on thinkbox.js: $(document).ready is not a function on line 11 http://markdbd.com/proyectos/jquery_test/ It seems to be working for me in IE6; in FF1.5 I get the error Permissiondenied to get property Window.nodeType when I click the image.I have an (unfinished) AdSense ad checker and ran the page through that. The AdSense code looks fine but it noticed that http://markdbd.com/robots.txt isnot correctly formatted. Google probably ignores the problem but don't betyour ads on it. http://www.robotstxt.org/wc/norobots.htmlThe file consists of one or more records separated by one or more blanklines...The record starts with one or more User-agent lines, followed by one or more Disallow lines...___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ -- --Mark D.B.Dhttp://www.markdbd.com [EMAIL PROTECTED]-- ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] console for IE
Hi, this isn't directly jQuery related, but I thought you'd be interested. I've adapted the console.js script originally found here: http://wish.hu/firebug-on-explorer Added pretty dumps of objects, arrays, elements, etc. My new script can be fetched from here: http://jollytoad.googlepages.com/browsercompatibility Hope you find it useful, I do! PS. Improvements are very welcome. Regards - Mark Gibson. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New Plugin: Resizeable
Stephen Woodbridge wrote: Hi Stefan, I have been trying your resize plugin, it is really slick and works great! I have a request, does it already have or can you add the ability to added a call back at the end of the resize, so other code can be notified of the change in size? Like notify below: $(document).ready(function(){ $('#resize_map').Resizeable( { minHeight: 100, maxHeight: 700, minWidth: 100, maxWidth: 800, handlers: { se: '#resize' }, notify: function(){ alert(I have been resized); $('#map_tag').Resized(this.sizes); } } ); }); Maybe there is another way to do this? Would this not be better suited to an event? $('#resize_map').bind('resize', function() { alert(I have been resized); }); I've not had chance to test it, but I'm sure all elements have a resize event. If not then the resizeable plugin can trigger() it itself. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery incompatible with adsense?
Hi all,When I finished my little project with jquery I decided to add my adsense code. After this I saw there is something that makes jquery incompatible with the adsense script. I don't know what it is so I created a little test page so you all can check it: http://www.markdbd.com/proyectos/jquery_test/Just click on the image to get the error, I think it only happens on firefox. I am using the thinkbox plugin but If I am right the bug is in jquery.js.Regards,-- --Mark D.B.Dhttp://www.markdbd.com [EMAIL PROTECTED]-- ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] combo in ie
Hi All,I just found a little problem in ie with jquery. If we declare a combo box in a form without the value attribute we can´t get the value in internet Explorer. Example:select id=combo name=combo option1/optionoption2/optionoption selected3/option/select$('#combo').val();This doesn´t work on ie.We must declare the select with the attribute value: select id=combo name=combo option value=11/option option value=22/option option value=3 selected3/option /select $('#combo').val();This works now on ie.Could be it´s a bug. I only wanted to notice the jquery team. Thanks for reading.Regards,-- -- Mark D.B.Dhttp://www.markdbd.com[EMAIL PROTECTED]-- ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Function to enumerate the querystring?
Chris W. Parker wrote: On Tuesday, October 31, 2006 10:46 AM Luke Lutman said: Have a look at this recent thread :-) http://www.nabble.com/method-plugin-for-getting-query-string-vars--tf248 1232.html#a6919130 I read through this and tried to implement your first suggestion but I notice that everything takes location.search and parses that. I want to use it in the following way: theHref = $(this).attr(href).query(); Your function is: jQuery.query = function() { var r = {}; var q = location.search; q = q.replace(/^\?/,''); // remove the leading ? q = q.replace(/\$/,''); // remove the trailing jQuery.each(q.split(''), function(){ var key = this.split('=')[0]; var val = this.split('=')[1]; // convert floats if(/^[0-9.]+$/.test(val)) val = parseFloat(val); // ingnore empty values if(val) r[key] = val; }); return r; }; I'm not sure how to modify that function to do what I want (considering my current lack of JS/jQuery syntax). Would you mind showing me what to do? Thank you, Chris. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ RFC3986 (URI Generic Syntax) presents a regular expression for parsing generic URI's: http://tools.ietf.org/html/rfc3986#page-50 Something like this (not tested): jQuery.parseURI = function(uri) { var m = /^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(uri); return { scheme: m[2], authority: m[4], path: m[5], query: m[7], fragment: m[9] }; } So: $.parseURI($(this).attr(href)).query would return the query string, which can then be parsed by the function above, or combine the two functions. - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Plugin method question
Ⓙⓐⓚⓔ wrote: let's just use the informal type text/x-jquery-json that contains 1 js object or text/x-jquery-text for an unquoted string of chars and others... There is an official 'application/json' media type registered at IANA. http://www.iana.org/assignments/media-types/application/ and an RFC: http://www.ietf.org/rfc/rfc4627.txt ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Extending $.extend to extend from multiple objects!
Hi, I'd like to suggest an enhancement to $.extend, to allow extending an object from multiple objects. This will allow a simple way for plugins to have a global set of default options: $.fn.plugin(options) { var options = $.extend({}, arguments.callee.defaults, options || {}); ... } $.fn.plugin.defaults = { ... } This extends an empty object with the global defaults and then again with the local options. With the existing implementing this would have to be done as such: $.extend($.extend({}, arguments.callee.defaults), options || {}); Heres the new $.extend function: jQuery.extend = jQuery.fn.extend = function(obj) { // If no property objects were provided, then we're extending jQuery if ( arguments.length == 1 ) { var obj = this; var a = 0; } else { var a = 1; } while (a arguments.length) { var prop = arguments[a]; if (prop !== null prop != undefined) { // Extend the base object for ( var i in prop ) obj[i] = prop[i]; } a++; } // Return the modified object return obj; }; - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Function to enumerate the querystring?
Chris W. Parker wrote: On Tuesday, October 31, 2006 10:46 AM Luke Lutman said: Have a look at this recent thread :-) http://www.nabble.com/method-plugin-for-getting-query-string-vars--tf248 1232.html#a6919130 I read through this and tried to implement your first suggestion but I notice that everything takes location.search and parses that. I want to use it in the following way: theHref = $(this).attr(href).query(); Your function is: jQuery.query = function() { var r = {}; var q = location.search; q = q.replace(/^\?/,''); // remove the leading ? q = q.replace(/\$/,''); // remove the trailing jQuery.each(q.split(''), function(){ var key = this.split('=')[0]; var val = this.split('=')[1]; // convert floats if(/^[0-9.]+$/.test(val)) val = parseFloat(val); // ingnore empty values if(val) r[key] = val; }); return r; }; I'm not sure how to modify that function to do what I want (considering my current lack of JS/jQuery syntax). Would you mind showing me what to do? Hello, following my previous reply to this, I've had to implement this myself. So here it is, attached. This returns an object containing the properties: - as specified in RFC3986 (URI Generic syntax) - compatible with the window.location object - the query string split into key=value pairs You can cut out what you don't need. (I can't believe a JS mailing list bounces js attachments, I try again with it pasted inline!) jQuery.parseURI = function(uri) { var m = /^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(uri); var q = m[7].split(''); var p = {}; while (q.length 0) { var x = q.shift().split('='); p[x[0]] = x[1]; } return { // Generic components (as specified in RFC3986) scheme: m[2], authority: m[4], path: m[5], query: m[7], fragment: m[9], // window.location compatible properties hash: m[8], host: m[4], hostname: m[4].split(':')[0], href: uri, pathname: m[5], port: m[4].split(':')[1] || '', protocol: m[1], search: m[6], // The parsed query string: params: p }; }; I've also uploaded it here: http://jollytoad.googlepages.com/uri.js ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Plugin method question
Paul McLanahan wrote: @jake I'm really liking the code tag idea. If I'm understanding you correctly, it would work something like associating a label to an input using the for attribute. I'd just be associating a code tag's contents with a specific DL either by location in the markup or maybe by some specific classes. That might prove to be the easiest and most semantically correct solution. I find that a good way of passing data/options/etc to javascript is using hidden inputs: input type=hidden id=stuff value={put:'your',options:'here'}/ I often use JSON notation in the value, then you can just eval() it. var options = eval($('#stuff').val()); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] how to stop each iteration under each's function?
asterocean wrote: for exzample: $([EMAIL PROTECTED]'text']).each(function(){if (this.value==){alert(error);this.focus();break;}}); but 'break;' won't stop the iteration of each, what should i do? There was some discussion on this list of returning false to break the loop - but I'm not sure if that has been implemented yet - does anyone know? $([EMAIL PROTECTED]'text']).each(function() { if (this.value==) { alert(error); this.focus(); return false; } }); Otherwise, you can throw an exception: try { $([EMAIL PROTECTED]'text']).each(function() { if (this.value==) { alert(error); this.focus(); throw true; // The actual value here is arbitary } }); } catch(e) {} ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Patch: Set Content-Type of an AJAX request
Hi, I'd like to suggest an additional option for $.ajax() to allow an alternative Content-Type, eg: application/json I'd like to send raw JSON data to a PHP script, but PHP requires that a Content-Type other than the usual 'application/x-www-form-urlencoded' is set before it allows you to access the raw request data (via $HTTP_RAW_POST_DATA). This will also allow the correct submission of XML, and other formats. I've attached a patch against ajax.js Cheers - Mark Gibson Index: ajax.js === --- ajax.js (revision 512) +++ ajax.js (working copy) @@ -686,6 +686,7 @@ var success = type.success; var error = type.error; var dataType = type.dataType; + var contentType = type.contentType || application/x-www-form-urlencoded; var global = typeof type.global == boolean ? type.global : true; var timeout = typeof type.timeout == number ? type.timeout : jQuery.timeout; ifModified = type.ifModified || false; @@ -708,7 +709,7 @@ // Set the correct header, if data is being sent if ( data ) - xml.setRequestHeader(Content-Type, application/x-www-form-urlencoded); + xml.setRequestHeader(Content-Type, contentType); // Set the If-Modified-Since header, if ifModified mode. if ( ifModified ) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] json.js
Jörn Zaefferer wrote: When I introcuded json.js [http://json.org/json.js] from http://json.org/ . Problem now is my browser keeps freezing and eating up CPU. I checked and it is clearly conflicting with JQuery. It extends Object, which seemes to cause lots of trouble with jQuery. You could check if it works when removing Object.prototype.toJSONString. Yeah, I had this problem, so I hacked the original json.js into a jQuery plugin. It adds the two functions: var json_str = $.toJSON(value) var value= $.parseJSON(json_str, [safe]) If the optional safe argument is supplied as true, then the string will be checked for valid JSON syntax. Safety checks can be set globally by setting: $.parseJSON.safe = true; You can find the code here: http://jollytoad.googlepages.com/json.js Regards - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] New Plugin: StickHeadings (experimental)
Hi, I've start work on an experimental plugin that freezes section headings at the top of a scrollable container while the section content is in view. See here for a demo: http://jollytoad.googlepages.com/stickyheadings I'm having a couple of issues, mentioned on the page above. The main ones are the jerky motion in Firefox and the out-of-whack offsets in IE. Can anyone help? Cheers - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] nice plugin idea - Splitter
Armand Datema wrote: I just found this link http://www.jackslocum.com/yui/2006/08/19/a-splitbar-component-for-yahoo-ui/ Does a jquery version excist yet? I don't about that, but have you tried the 'Click here and I will point it out' link!!! Wow! That's it, documentation is going in the bin, it's live demonstrations from now on. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Tablesorter
I have discovered a little problem that others may have seen. We have pages in our Web portal that have empty grids (tables) that are not populated until the user selects one or more values from pick lists which enables us to request the target data from the database server and populate the grid. Unfortunately, the table sorter raises an exception if the table has no data rows. The exception is raised on line 66 of table sorter version 1.03, however, the real problem is that the variable on line 58 for the first data row in null. Mark D. Lincoln Mark D. Lincoln, Director of Research Development Eye On Solutions, LLC (866) 253-9366x101 www.eyeonsolutions.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yehuda Katz Sent: Thursday, October 19, 2006 9:44 AM To: jQuery Discussion. Subject: Re: [jQuery] Tablesorter On 10/19/06, Christian Bach [EMAIL PROTECTED] wrote: Hi! 1. I could provied a kind of trigger for you, how about something like this. Ex. $(myTableWithTableSorter).trigger(resort); Are you saying you *could* provide this or that you already have? 2. Well it depends how your table is structured and how big it is. Please post a example. It's pretty complicated (and proprietary). I have no problem with Regex; I was just curious how the custom sorters worked. Do you need a custom parser for each sorter? /christian Yehuda Katz wrote: I have a need to have the tablesorter do the following: 1) Refresh when I need it to (I'm going to be doing DOM insertions, and will need to refresh the table after an insertion). The best thing I could think of thus far is $(.sortUp, .sortDown).click().click(). Obviously not the best idea. 2) Use custom sorters. I see that the table sorter SUPPORTS custom sorters and parsers, but I wasn't sure about the best way to do this. Christian? Anyone? ___ 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/
Re: [jQuery] jQuery API discussion
John Resig wrote: e.g.: $( '.b0rp' ).filter( '#blap' ).on.click( function() { $( '#foo' ).ajax.load( ... ) } ); Why no just do .onclick() and .ajaxLoad() - like what was proposed? Not only is it fundamentally easier to write and understand, but it's easier to implement too. The feasibility of 'namespacing' hasn't been brought up yet - but leave it to be said that it would be really really difficult and add a ton of overhead to the jQuery base as a whole (in order to continue chainability support). AJAX functionality is the one exception where I think a prefix is going to help. Instead of doing .get(), .post(), or .load() - having .ajaxGet(), .ajaxPost(), and .ajaxLoad() simply makes more sense. Why not just .request(method, options) or .http() After all AJAX is just a bottle of toilet cleaner ;), and a bit of a misnomer as a lot of calls don't even involve the X(ML). - Mark. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Compiling selectors into native Javascript
John Resig wrote: The thread about benchmarks got me thinking about compilation and caching of selectors too. It could be a big win for benchmarks where they use the same selector in a loop 1000 times! :-) The problem with caching is that it's unable to handle situations where the DOM changes in-between, unless there's an explicit .refreshCache() or some such. And doing this by default is hardly desirable, as it would cause a lot of common code to break. It is something that is definitely explorable some day - I'm just afraid that the payoff may not be worth it. The cache isn't for the DOM at all, it caches compiled selectors as native javascript functions, so that the selector string doesn't need to be parsed everytime. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Compiling selectors into native Javascript
Dave Methvin wrote: So my take was that the performance payback for simple selectors called frequently could be good, but those cases are already pretty fast--we're reducing a number that's already small. Complex selectors would still require helper functions or compiled-in loops on every function invocation, so they won't be improved nearly as much. Still, it would be a fun project to try! My main inspiration was the similarity of concepts between jQuery and XPath2, both essentially result in a sequence of elements (also values in XPath2). It occurred to me that several XPath2 features could map easily to javascript helper functions: axes, functions, and operators. I'm wondering how complex an XPath2 implementation would be? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Variable from PHP to Jquery
Steven Wittens wrote: [snip] Also to avoid having to use templated JS, we have a transparent mechanism for passing data from PHP to JS. All you do is call an API drupal_add_js(), which aggregates all variables that it is passed, and automatically inserts them as a single inline script tag in the HTML head, as Drupal.settings = { ... }. This works really well: you don't need to dynamically generate .js files, and you avoid large chunks of inline code. [snip] Alternatively you could use one of the JSON serializers for PHP: http://json.org ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery API discussion
Jörn Zaefferer wrote: If we go back to the roots and stick to bind(), unbind(), trigger(), attr() and css(), we could remove all those events and html and css attribute shortcut methods, greatly reducing the number of methods. By adding those methods, or rather only parts of it, like click(), back via plugins, the jQuery meat could be reduced to some extend, maybe even reducing the barrier for newcomers by simplifying the API docs. bind(), unbind(), trigger() and attr() could be improved to a hash as css() alread does, allowing you to set several attributes at once or adding/removing several events with one method call. Passing a hash without values to attr could be quite sexy, too, when it simply fills the hash with all available values. Your ideas and opinions, please! Aye, aye. How much harder is it really to use: $(...).bind('click', function() {...}); than: $(...).click(function() {...}); and $(...).bind({ click: function() {...}, change: function() {...}, }); sounds quite nice too. And for those lazy sods out there how about: $.quickMethods({ bind: ['click'], attr: ['val','href','title'], css: ['display','height','width'] }); and .click(), .val(), etc. are instantly restored. You get the idea ;P While we're on the API: I really don't like the method name .css(), as its actual operation is to change a style property, and doesn't really have much directly to do with Cascading Style Sheets. Could it not be .style() instead? - Mark. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] $(document).load() and friends
Mika Tuupola wrote: Am I missing something obvious or why does .load() not seem to trigger anything. I am sure $('img').load(function() { something }); used to work before. This is not the case with 1.0.2. Check the page below. I get only ready at firebug console. So none of the load()'s get executed. http://www.appelsiini.net/~tuupola/jquery/panview/load.html -cut- $(document).ready(function() { console.log('ready'); }); $('img').load(function() { console.log('img load'); }); $('p').load(function() { console.log('p load'); }); $(document).load(function() { console.log('document load'); }); -cut- $('img') and $('p') won't find anything until the document is ready, try: $(document).ready(function() { console.log('ready'); $('img').load(function() { console.log('img load'); }); $('p').load(function() { console.log('p load'); }); }); I'm not sure about $(document).load though, never used it! - Mark Gibson ___ 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/
Re: [jQuery] jQuery 1.0.2 RC2
Jörn Zaefferer wrote: it's time for another release candiate, this time including even more bug fixes and nothing else. IE 6.0.2900.2180 (XP SP2) - 1 tests of 211 failed: 38. $.find() (1, 42, 43) Firefox 1.5.0.7 - ok (test #55 failed once - but I think this may have been down to a network error) Opera 9.02 - ok ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/