[jQuery] Multiple Key events
Hey all, Just wondering if someone could tell me what the best way to capture a an event where 2 keys are pressed simultaneously - I've got a textarea that I want to capture the Ctrl+Enter combo... Thanks in advance Allan ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Ajax get does not fetch image in IE
$html = ' div http://www.joomlaprodigy.com/test/jquery/nophoto.gif This is the first ajax thing I have been able to make work on my sitebr/ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat./div '; Is that really what $html is, or did the browser grable it? That seems it's missing an image tag (img src=.../). If not then I am not sure what it could be... ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Multiple Key events
You can use Event.ctrlKey which will return true if the ctrl key was pressed during the event. So you could do something like: $(#myTextarea).bind(keypress, function(e) { if (e.keyCode == 13 e.ctrlKey) { // do stuff } }); 13 is the code for Enter. Cheers, Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Multiple Key events
p.s. Yay, a fellow New Zealander :). Hi from Christchurch! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.1.2
John, is it possible for the packed version to have a trailing semi-colon at the end? I get errors for the script I include after jquery if this isn't in place. Cheers and thanks for another great release, Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Q: best way to create dynamic content?
I suggest to use jQuick. In your case you can create the code using: $('#myAnchor').append( $.DIV( id: myIdVar, 'class': myClassvar} ) jQuick is at http://jquick.sullof.com/ In the next days I will release a new powered version. nrwsteff ha scritto: short question: what is the recommanded/better/fastest (memory footprint/execution time) jQuery way to create dynamic content? the length of code is not so important for me. or should i use one of the DOM creation plugins? a) var myIdVar = 'id1'; var myClassVar = 'class1'; $('div/div').attr({'id':myIdVar,'class':myClassVar}).appendTo('#myAnchor '); or b) var myIdVar = 'id1'; var myClassVar = 'class1'; var myHtml = 'div '; myHtml += 'id='+myIdVar+' class='+myClassVar+'/div'; $('#myAnchor').append(myHtml); regards steff ___ 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
* Changed: Events are now internally stored in elem.$events rather than elem.events (due to a nasty bug relating to DOM 0 expandos). I'm translating this blog into French, but I can't figure how to translate this sentence. DOM 0 expandos ? Anyway this is available at http://www.jquery.info/spip.php?article42 -- Fil ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery accordion plugin settings help
hi guys, i am using the below with the accordion plugin and want initially all panels to be closed, hence i have added active: false but with no effect at all. what am i doing wrong? tia, s $(function(){ $('#main').Accordion(); $.extend($.fn.Accordion.defaults, { active: false, showSpeed: 500, hideSpeed: 100 }); }); -- View this message in context: http://www.nabble.com/jquery-accordion-plugin-settings-help-tf3307897.html#a9201238 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Form validator 0.2 causes problems in IE6
hey, when i run form validator from http://bassistance.de/jquery-plugins/jquery-plugin-validation/ , after putting the uncompressed version, its working fine in ie 7 but in ie 6 its returns me error: (here is the code: http://pastebin.ca/374655 ) object dosent support this property or method line 34 if i just download the files from the site without changes (except of using the uncompressed version) it its returns me error for example at page: custom-methods-demo.html error: line 18, char 2 : $.validator is null or not an object wierd, and im consider if i should use this plugin cause its working fine with ff and ie7 , but 90% of my users have ie6 will be a fix for it soon? -- View this message in context: http://www.nabble.com/Form-validator-0.2-causes-problems-in-IE6-tf3307939.html#a9201333 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery/Validation plugin on FireBug - Couldn't catch events
I'm just trying to walk through the script http://jquery.bassistance.de/validate/demo-test/validate-demo.html with FireBug. FireBug breaks when loading the page; but not on any events, say when submitting the form or when the error text is been added. Is there anyway/workaround for it? TIA -- ?php echo 'Just another PHP saint'; ? Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Replace text in array
I have many of the following type of links on a page: a href=htp://foo.com/index.cfm?a=wikitag=abcspanhtp://foo.com/index.cfm?a=wikitag=abc/span I'm trying to remove the text in between the span tags so that only the text after http://foo.com/index.cfm?a=wikitag= is showing. I have tried the following, but it doesn't seem to work. $('a span').contains('index.cfm?a=wikitag=').each(function(i){ this.text().replace(/index.cfm?a=wikitag=/gi, ); }); Can anyone point me in the right direction? Cheers. -- View this message in context: http://www.nabble.com/Replace-text-in-array-tf3308186.html#a9201977 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
Hi, Klaus Hartl a écrit : agent2026 schrieb: Very nice Klaus. One thing I would really like to see added (which I've done with help my modded version) is circular browsing - 'next' on last image loads first image, and vice versa - and 'click=next' when clicking on an image in a Thickbox. Is clicking on the image will take you to the next image expected behavior? I don't think so, but it's not my Thickbox, it's ours. So what do the others think? Same for that circular thing? Feedback please! Besides, I also planned to implement a slideshow option. Another idea: Instead of next/previous links one could (optionally) show mini thumbnails... hm, just thinking out loud. After all, the script won't get smaller. I'd like to feed back by showing my own thickbox hacks (most of them are already in Klaus version) : http://spip-zone.info/spip.php?article31 (see the portefolio at the bottom of the page) My hacks : - Thickbox is setup when finding type=jpeg (or gif or png) in a, or on class=thickbox - When an image is shown, the next one is pre-loading - Click show next image - next and previous as logos (rather than text string) - Slideshow option - Zoom option for big images - css a la lightbox - keyboard focus on slideshow and zoom - keyboard broasing (tab, enter etc) I had some feed back with that version : I was asked that it went in circles (the last image is followed by the first) BoOz ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] problem with iFrame in FF (again)
Well, I don't have a way to publish it on a server right now, but I could try showing here the whole script. It's actually just a demo since I have to polish this aspect before I can go on with all the other work in the plugin. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head meta http-equiv=content-type content=text/html; charset=windows-1250 title/title script src=jQuery1.1.1.js type=text/javascript/script script type=text/javascript function getIFrameDocument(aID){ if (document.getElementById(aID).contentDocument) return document.getElementById(aID).contentDocument; // W3C way. else return document.frames[aID].document; // IE way. } $(document).ready(function(){ // Works in IE6, but not in FF2. getIFrameDocument(foo).designMode = On; // Works in FF2 but not in IE6. $(#foo).bind(load, function(){getIFrameDocument(foo).designMode = on}); }); /script /head body iframe id=foo/iframe /body /html This code works both on IE6 and FF2, but as you can see, I always have to execute the two sentences without first checking what kind of browser is being used. I guess I'll have to leave it that way by now, but I don't like it, so suggestions are still welcome. On 2/27/07, Benjamin Sterling [EMAIL PROTECTED] wrote: Abel, If we can get a look at the url, that may helps us help you better. -- 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] My basic navigation plugin
On 28/02/2007, at 8:17 AM, Joel Birch wrote: On 28/02/2007, at 12:29 AM, Klaus Hartl wrote: Joel Birch schrieb: Hi jQuerivites, I'd like to offer up my humble plugin (humble is the key word here) to get a sense of if something this basic is of any worth to the community. I think its useful! Here's some work for you ;-) * Instead of doing two appends you could do: $('div class='+o.divClass+'/div').append([o.head, $list]).insertBefore(this.eq(0)); * Instead of using this.innerHtml you should use $(this).text() to avoid nested links for example. Imagine article headlines that are links as well but should also serve as content navigation hook. Another useful option would be to specify where to append the created navigation. I could imagine appending it to the body and apply a fixed positioning, so that it is always in the viewport... Hi Klaus, I've done my homework :D Firstly, I reduced those two appends to one. I found that .append (o.head,$list) works - you must have made a typo with the square brackets but that was easy to figure out anyway. Secondly, inspired by your prompt to reduce function calls, I rewrote how the list was compiled by creating a string of the whole list before appending that to the list. This made the whole plugin run more than twice as fast as before (~30ms for 19 list items instead of ~80ms). Finally, I made it so you can target where the list is inserted as you suggested. There is a new option called insertMethod that takes one of insertBefore, insertAfter, append or prepend, and another new option called insertTarget which takes a jQuery object. So now if you want to append the list to the body you can do: $(h2).contentMenu({insertMethod:append,insertTarget:$(body)}); The default is to .insertBefore(this.eq(0)); Obviously the code has grown larger, mainly due to the switch used to parse the insertMethod option. Can you think of a better way of doing that whilst avoiding eval()? I have learnt a lot doing this so thanks for humouring me Klaus - I know you are very busy at the moment. Oh, here's the new code: (function($) { $.fn.contentMenu = function(o){ o = $.extend({ head : h3Some handy links to help you navigate this page:/h3, divClass : contentMenu, aClass: inPage, insertMethod : insertBefore, insertTarget : this.eq(0) }, o || {}); $.cmCount = $.cmCount+1 || 0; var $list = $(ul); var lastInd = this.length-1; var lis = ''; var menu = $('div class='+o.divClass+'/div').append(o.head, $list); switch (o.insertMethod){ case insertBefore: menu.insertBefore(o.insertTarget); break; case insertAfter: menu.insertAfter(o.insertTarget); break; case append: o.insertTarget.append(menu); break; case prepend: o.insertTarget.prepend(menu); break; default : menu.insertBefore(o.insertTarget); } return this.each(function(i){ this.id = this.id || menu+$.cmCount+-el+i; lis += 'lia href=#'+this.id+' class='+o.aClass+'Skip to em'+$(this).text()+'/em/a/li'; if (i==lastInd){ $list.append(lis); } }); }; )(jQuery); Cheers Joel. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] JS Source code Formatter - Anyone know of any good ones
On Feb 20, 10:34 pm, harningt [EMAIL PROTECTED] wrote: Just wondering... does anyone know of any good source-code formatters for JavaScript. snip Possibly http://code.gosu.pl/dl/JsDecoder/demo/JsDecoder.html ? -- ?php echo 'Just another PHP saint'; ? Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Replace text in array
You almost have it. The each function actually returns the raw DOM element so to use jQuery you'll need to enclose this. Just replace the core with: var $this = $(this); $this.html( $this.html().replace(/index.cfm?a=wikitag=/gi, ) ); Karl Rudd On 2/28/07, Yansky [EMAIL PROTECTED] wrote: I have many of the following type of links on a page: a href=htp://foo.com/index.cfm?a=wikitag=abcspanhtp://foo.com/index.cfm?a=wikitag=abc/span I'm trying to remove the text in between the span tags so that only the text after http://foo.com/index.cfm?a=wikitag= is showing. I have tried the following, but it doesn't seem to work. $('a span').contains('index.cfm?a=wikitag=').each(function(i){ this.text().replace(/index.cfm?a=wikitag=/gi, ); }); Can anyone point me in the right direction? Cheers. -- View this message in context: http://www.nabble.com/Replace-text-in-array-tf3308186.html#a9201977 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] ANNOUNCE: Thickbox Reloaded alpha
Some other things: I've been using Imagebox and are missing a way of Stopping/Unloading it. Also, a hook when Imagebox closes down would have been very handy. Perhaps Thickbox3 can remedy this? Btw: what is the plan here, Thickbox looks very much alike as Imagebox. It could/is a bit confusing with two so powerful and similar libs. Why not enhance Imagebox instead of making Thickbox3 ? Cheers, Tobbe ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
I like the idea of the zoom feature a lot for larger images. You have some window resize issues with the overlay though (common issue), as well as if an image has been zoomed. The slideshow link is and excellent feature - user configurable. I agree with the feedback. I started in the middle, and when I got to the end clicking the image closed the thickbox when it used to mean next, which was disturbing. Adam BoOz wrote: My hacks : - Thickbox is setup when finding type=jpeg (or gif or png) in , or on class=thickbox - When an image is shown, the next one is pre-loading - Click show next image - next and previous as logos (rather than text string) - Slideshow option - Zoom option for big images - css a la lightbox - keyboard focus on slideshow and zoom - keyboard broasing (tab, enter etc) I had some feed back with that version : I was asked that it went in circles (the last image is followed by the first) BoOz ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/ANNOUNCE%3A-Thickbox-Reloaded-alpha-tf3293077.html#a9202377 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.1.2
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/
Re: [jQuery] Is there a jQuery way to do an innerWrap?
Try the function below and see if you can get it to work as shown - you probably won't be able to!!! The example, as given, replaces the content of the p with the 'el' part, but does not add a closing tag or put back the original content. Karl Swedberg-2 wrote: Christian Bach just posted his .wrapInner() plugin to the discussion list about a week ago: Here is the new version. jQuery.fn.wrapInner = function(o) { return this.each(function(){ var jQ = jQuery(this); var c = jQ.html(); jQ.empty().append(o.el).filter(o.id).html(c); }); } $(p).wrapInner({el: ' http://jquery.com ', id: 'a'}); Before: pI will become a link to jQuery.com/p After: p http://jquery.com I will become a link to jQuery.com/ a/p --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com -- View this message in context: http://www.nabble.com/Is-there-a-jQuery-way-to-do-an-innerWrap--tf3304247.html#a9202645 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] My basic navigation plugin
Joel Birch schrieb: On 28/02/2007, at 8:17 AM, Joel Birch wrote: On 28/02/2007, at 12:29 AM, Klaus Hartl wrote: Joel Birch schrieb: Hi jQuerivites, I'd like to offer up my humble plugin (humble is the key word here) to get a sense of if something this basic is of any worth to the community. I think its useful! Here's some work for you ;-) * Instead of doing two appends you could do: $('div class='+o.divClass+'/div').append([o.head, $list]).insertBefore(this.eq(0)); * Instead of using this.innerHtml you should use $(this).text() to avoid nested links for example. Imagine article headlines that are links as well but should also serve as content navigation hook. Another useful option would be to specify where to append the created navigation. I could imagine appending it to the body and apply a fixed positioning, so that it is always in the viewport... Hi Klaus, I've done my homework :D Firstly, I reduced those two appends to one. I found that .append (o.head,$list) works - you must have made a typo with the square brackets but that was easy to figure out anyway. Secondly, inspired by your prompt to reduce function calls, I rewrote how the list was compiled by creating a string of the whole list before appending that to the list. This made the whole plugin run more than twice as fast as before (~30ms for 19 list items instead of ~80ms). Finally, I made it so you can target where the list is inserted as you suggested. There is a new option called insertMethod that takes one of insertBefore, insertAfter, append or prepend, and another new option called insertTarget which takes a jQuery object. So now if you want to append the list to the body you can do: $(h2).contentMenu({insertMethod:append,insertTarget:$(body)}); The default is to .insertBefore(this.eq(0)); Obviously the code has grown larger, mainly due to the switch used to parse the insertMethod option. Can you think of a better way of doing that whilst avoiding eval()? I have learnt a lot doing this so thanks for humouring me Klaus - I know you are very busy at the moment. Oh, here's the new code: (function($) { $.fn.contentMenu = function(o){ o = $.extend({ head : h3Some handy links to help you navigate this page:/h3, divClass : contentMenu, aClass: inPage, insertMethod : insertBefore, insertTarget : this.eq(0) }, o || {}); $.cmCount = $.cmCount+1 || 0; var $list = $(ul); var lastInd = this.length-1; var lis = ''; var menu = $('div class='+o.divClass+'/div').append(o.head, $list); switch (o.insertMethod){ case insertBefore: menu.insertBefore(o.insertTarget); break; case insertAfter: menu.insertAfter(o.insertTarget); break; case append: o.insertTarget.append(menu); break; case prepend: o.insertTarget.prepend(menu); break; default : menu.insertBefore(o.insertTarget); } return this.each(function(i){ this.id = this.id || menu+$.cmCount+-el+i; lis += 'lia href=#'+this.id+' class='+o.aClass+'Skip to em'+$(this).text()+'/em/a/li'; if (i==lastInd){ $list.append(lis); } }); }; )(jQuery); Cheers Joel. I spotted a little optimization: in the default branch menu.insertBefore(o.insertTarget); is used. Thus you can remove the case for insertBefore, that one will just use the default... I like the switch statement a lot and think it is very readable, but some people say switch smells (Hey Jörn ;-)) and that it is a sign that something could be refactored. Just so you know! I'm not sure about that, the switch statement is considered very fast (google duffs device) and for predictable cases its fine for me. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Replace text in array
Hi, thanks for the reply. I tried your code inside the function but it didn't work unfortunately. This is the actual site with the links I'm trying to convert: http://forums.whirlpool.net.au/forum-replies.cfm?t=661554 I'm hoping to make a greasemonkey script since the site already uses the jQuery library. BTW, with my previous attempt, you said that the each function returns the raw DOM, but doesn't the text function access the text inside the node (in this case the span tag)? Thanks for your help so far, I've been trying to figure this out by myself all night. :) Karl Rudd wrote: You almost have it. The each function actually returns the raw DOM element so to use jQuery you'll need to enclose this. Just replace the core with: var $this = $(this); $this.html( $this.html().replace(/index.cfm?a=wikitag=/gi, ) ); Karl Rudd On 2/28/07, Yansky [EMAIL PROTECTED] wrote: I have many of the following type of links on a page: a href=htp://foo.com/index.cfm?a=wikitag=abcspanhtp://foo.com/index.cfm?a=wikitag=abc/span I'm trying to remove the text in between the span tags so that only the text after http://foo.com/index.cfm?a=wikitag= is showing. I have tried the following, but it doesn't seem to work. $('a span').contains('index.cfm?a=wikitag=').each(function(i){ this.text().replace(/index.cfm?a=wikitag=/gi, ); }); Can anyone point me in the right direction? Cheers. -- View this message in context: http://www.nabble.com/Replace-text-in-array-tf3308186.html#a9201977 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/ -- View this message in context: http://www.nabble.com/Replace-text-in-array-tf3308186.html#a9202631 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New plugins
Timothy Bowler schrieb: Hi, I spend a long time yesterday writing a plugin, what is the proceedure for advertising it? Tim Hi Tim, I think the first step is to create an online demo, and then post the plugin here. You can also add your plugin to the plugin wiki page. By the way, the chances, that your post gets read, increases if you do not reply to another thread and just change the subject. Most Email clients still sort that mail into the old thread, so your mail will eventually not be noticed by all the people who are not interested in the thread but are maybe interested in new plugins :-) -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] nth-child selector
Hello, I'm trying to select every odd item in a list, but not the first two items. I've tried using the nth-child selector, which is fine at picking out the nth-child, but I can't get the 2n+2 child to be selected: stripes(#search-results div:odd); // is ok stripes(#search-results div:nth-child(2)); // works but stripes(#search-results div:nth-child(2n+2)); // doesn't. Am I missing something about the CSS3 selector syntax? Thanks, Dan. -- 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/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
Well for one, it's 17k packed standalone whereas my heavily modified Thickbox is just 6k packed. Small file size was one of the top reasons Cody made Thickbox in the first place, and it's definately a very important factor for me. Adam Torbjorn Tornkvist wrote: Some other things: I've been using Imagebox and are missing a way of Stopping/Unloading it. Also, a hook when Imagebox closes down would have been very handy. Perhaps Thickbox3 can remedy this? Btw: what is the plan here, Thickbox looks very much alike as Imagebox. It could/is a bit confusing with two so powerful and similar libs. Why not enhance Imagebox instead of making Thickbox3 ? Cheers, Tobbe ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/ANNOUNCE%3A-Thickbox-Reloaded-alpha-tf3293077.html#a9203114 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] how to make the function in forms + ajax?
hey. im using the ajax form plugin of jroes, http://www.amir.cx/ajax/test3/stable.php till now i success to do the rules inside the tag, but where i can put inside that code a properties like rules: { firstname: { required: true }, age: { number: true }, password: { min: 5, max: 32 } }, messages { password: Please enter a password between 5 and 32 characters long. } }); and thing such : $(#myform).validate({ errorClass: invalid, errorContainer: $(#messageBox), errorWrapper: li }); cause i already defined there $(#amir).validate... anyone can explain me how to do it? http://www.amir.cx/ajax/test3/stable.php -- View this message in context: http://www.nabble.com/how-to-make-the-function-in-forms-%2B-ajax--tf3308618.html#a9203236 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery upload... what are you using?
hey. i wonder what is the most used or what u are using for uploading files with ajax and jquery... i found serval but i really dont know what to pick... suggestions? -- View this message in context: http://www.nabble.com/jquery-upload...-what-are-you-using--tf3308624.html#a9203250 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
On 28/02/07, agent2026 [EMAIL PROTECTED] wrote: Well for one, it's 17k packed standalone whereas my heavily modified Thickbox is just 6k packed. Small file size was one of the top reasons Cody made Thickbox in the first place, and it's definately a very important factor for me. Adam It is only in alpha stage at the moment, so perhaps it may shrink in size by beta or final release. The file size has probably increased because it has been made more flexible as a plugin (I would call ThickBox a pseudo-plugin as you couldn't do $(a.foo).thickbox()). The original Thickbox, while good, was not very flexible - the page had to modified to get it to work (via querystring to add with and height etc, which I think was invalid as well), elements added after the page was load required extra work (e.g. $(a.thickbox).unbind(); TB_init()), not smooth when you scrolled (would be better if scrolling was disabled instead), CSS issues etc. Also, you had to heavily modify thickbox to get it to work for you (infact I use a version you posted a while back) - you should never need to do that for a plugin. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery upload... what are you using?
I created jqUploader to take care of that in an non obtrusive way: http://www.pixeline.be/test/jquery/jqUploader/ There is one functionality i did not get done yet, is limiting filesize (on the clientside, as to play it safe you would have to take care of that on the serverside like for all restrictions). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of amircx Sent: mercredi 28 février 2007 13:51 To: discuss@jquery.com Subject: [jQuery] jquery upload... what are you using? hey. i wonder what is the most used or what u are using for uploading files with ajax and jquery... i found serval but i really dont know what to pick... suggestions? -- View this message in context: http://www.nabble.com/jquery-upload...-what-are-you-using--tf3308624.html#a9 203250 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.447 / Base de données virus: 268.18.4/705 - Date: 27/02/2007 15:24 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
If filesize is to be TB biggest advantage, personally in fact i rarely need to be able to launch a TB with iframe, ajax and images on the same page, or even Application. I guess i'm not the only one to choose before hand at design time how my app will use TB (ajax/iframe) to display interfaces. I would therefore love to have 3 different thickbox plugins, so 3 different files. If i need to mix, just adding the script source link to the related TB version would enable me to. script src=plugin.thickbox.images.js type=text/javascript/script script src=plugin.thickbox.ajax.js type=text/javascript/script script src=plugin.thickbox.iframe.js type=text/javascript/script this would also enable to build more functionalities for specific uses (gallery, zoom, prev/next only apply to images). as for feature, proportional dimensions is a must IMO. There is no sense fixing width and height of thickbox in today's multitude of screen sizes... thank you! alex [-Stash-] wrote: I agree with this. Keep it tight and let it do the core things extremely well. Is there any reason you can't have an extension for a plugin? Perhaps all you need is a section in the core file where you can add as many lines as yuo like that say enable this extension - path? -- View this message in context: http://www.nabble.com/ANNOUNCE%3A-Thickbox-Reloaded-alpha-tf3293077.html#a9203349 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
Sam Collett schrieb: On 28/02/07, agent2026 [EMAIL PROTECTED] wrote: Well for one, it's 17k packed standalone whereas my heavily modified Thickbox is just 6k packed. Small file size was one of the top reasons Cody made Thickbox in the first place, and it's definately a very important factor for me. Adam It is only in alpha stage at the moment, so perhaps it may shrink in size by beta or final release. Sam, that's right. I'll try hard to get the file size smaller again. I'll have to trade off readability for that though, currently variable names and so on are very explicit. The file size has probably increased because it has been made more flexible as a plugin (I would call ThickBox a pseudo-plugin as you couldn't do $(a.foo).thickbox()). Yes, there are a few additions and improvements that caused the file size to increase, for example the form to Thickbox functionality, I18n, setting default values and some other things. I also thought about making all other types than Image optional modules. That would mean extra files on the one hand, but that would also mean an Interface to easily extend thickbox with your own builder functions. This modularity was mentioned on this list once. The basis for this is already there and I think it is doable. So if you want it your way, just plugin your own builder function and Skin and you're done... What do you think of that? One thing is sure: I'll not be able to implement all the different requirements here, and so why not allowing extendibility made easy (I like making things as easy to use as possible). The original Thickbox, while good, was not very flexible - the page had to modified to get it to work (via querystring to add with and height etc, which I think was invalid as well), elements added after the page was load required extra work (e.g. $(a.thickbox).unbind(); TB_init()), not smooth when you scrolled (would be better if scrolling was disabled instead), CSS issues etc. Yes, I think, the URLs you had to use were malformed. I wanted that to be fixed in ayn case. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
One thing is sure: I'll not be able to implement all the different requirements here, and so why not allowing extendibility made easy (I like making things as easy to use as possible). Right on. The TB website forum can be used to build a knowledge base of various common extended uses (like refresh page on TB_close, using callbacks, etc...) I'm salivating and looking forward to the next TB release !! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Hartl Sent: mercredi 28 février 2007 14:34 To: jQuery Discussion. Subject: Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha Sam Collett schrieb: On 28/02/07, agent2026 [EMAIL PROTECTED] wrote: Well for one, it's 17k packed standalone whereas my heavily modified Thickbox is just 6k packed. Small file size was one of the top reasons Cody made Thickbox in the first place, and it's definately a very important factor for me. Adam It is only in alpha stage at the moment, so perhaps it may shrink in size by beta or final release. Sam, that's right. I'll try hard to get the file size smaller again. I'll have to trade off readability for that though, currently variable names and so on are very explicit. The file size has probably increased because it has been made more flexible as a plugin (I would call ThickBox a pseudo-plugin as you couldn't do $(a.foo).thickbox()). Yes, there are a few additions and improvements that caused the file size to increase, for example the form to Thickbox functionality, I18n, setting default values and some other things. I also thought about making all other types than Image optional modules. That would mean extra files on the one hand, but that would also mean an Interface to easily extend thickbox with your own builder functions. This modularity was mentioned on this list once. The basis for this is already there and I think it is doable. So if you want it your way, just plugin your own builder function and Skin and you're done... What do you think of that? One thing is sure: I'll not be able to implement all the different requirements here, and so why not allowing extendibility made easy (I like making things as easy to use as possible). The original Thickbox, while good, was not very flexible - the page had to modified to get it to work (via querystring to add with and height etc, which I think was invalid as well), elements added after the page was load required extra work (e.g. $(a.thickbox).unbind(); TB_init()), not smooth when you scrolled (would be better if scrolling was disabled instead), CSS issues etc. Yes, I think, the URLs you had to use were malformed. I wanted that to be fixed in ayn case. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.447 / Base de données virus: 268.18.4/705 - Date: 27/02/2007 15:24 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
Alexandre Plennevaux schrieb: If filesize is to be TB biggest advantage, personally in fact i rarely need to be able to launch a TB with iframe, ajax and images on the same page, or even Application. I guess i'm not the only one to choose before hand at design time how my app will use TB (ajax/iframe) to display interfaces. I would therefore love to have 3 different thickbox plugins, so 3 different files. If i need to mix, just adding the script source link to the related TB version would enable me to. script src=plugin.thickbox.images.js type=text/javascript/script script src=plugin.thickbox.ajax.js type=text/javascript/script script src=plugin.thickbox.iframe.js type=text/javascript/script this would also enable to build more functionalities for specific uses (gallery, zoom, prev/next only apply to images). I just wrote in reply to Sam, that I'm thinking about making TR modular exactly like that. The basis is already there. On the other hand, for the Ajax example it just saves us 5 lines of code... as for feature, proportional dimensions is a must IMO. There is no sense fixing width and height of thickbox in today's multitude of screen sizes... What exactly do you mean by that. Currently if an image is too large for the viewport it gets resized. Is it that? I took that from the current Thickbox without any changes. thank you! Thank you for feedback. And all the others! I hope we can build a Thickbox everybody (ok, hopefully most of us) is satisfied with! And while I'm at it, thanks to cody for letting us do this! -- klaus -- klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
On 2/28/07, Klaus Hartl [EMAIL PROTECTED] wrote: Alexandre Plennevaux schrieb: as for feature, proportional dimensions is a must IMO. There is no sense fixing width and height of thickbox in today's multitude of screen sizes... What exactly do you mean by that. Currently if an image is too large for the viewport it gets resized. Is it that? I took that from the current Thickbox without any changes. He means you can't dpeend on any default viewport size minimum, and TB requires integer sizes in pixels for its size. So what happens when your user is on a 400x400 viewport, and you set thickbox to 600x400? A size specification method that uses percentages instead of pixels would solve this, probably depending on horizontal (yuck) and vertical scrolling inside TB. Dylan ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
as for feature, proportional dimensions is a must IMO. There is no sense fixing width and height of thickbox in today's multitude of screen sizes... What exactly do you mean by that. Currently if an image is too large for the viewport it gets resized. Is it that? I took that from the current Thickbox without any changes. I mean with TB, you specify its width and height by giving pixel values (width=600height=400 for example). This is wrong: if the users has a 2 pixel wide monitor (or a very small screen), TB should use whatever screen assets the user has. That is why width=90% is better. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Hartl Sent: mercredi 28 février 2007 14:49 To: jQuery Discussion. Subject: Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha Alexandre Plennevaux schrieb: If filesize is to be TB biggest advantage, personally in fact i rarely need to be able to launch a TB with iframe, ajax and images on the same page, or even Application. I guess i'm not the only one to choose before hand at design time how my app will use TB (ajax/iframe) to display interfaces. I would therefore love to have 3 different thickbox plugins, so 3 different files. If i need to mix, just adding the script source link to the related TB version would enable me to. script src=plugin.thickbox.images.js type=text/javascript/script script src=plugin.thickbox.ajax.js type=text/javascript/script script src=plugin.thickbox.iframe.js type=text/javascript/script this would also enable to build more functionalities for specific uses (gallery, zoom, prev/next only apply to images). I just wrote in reply to Sam, that I'm thinking about making TR modular exactly like that. The basis is already there. On the other hand, for the Ajax example it just saves us 5 lines of code... as for feature, proportional dimensions is a must IMO. There is no sense fixing width and height of thickbox in today's multitude of screen sizes... What exactly do you mean by that. Currently if an image is too large for the viewport it gets resized. Is it that? I took that from the current Thickbox without any changes. thank you! Thank you for feedback. And all the others! I hope we can build a Thickbox everybody (ok, hopefully most of us) is satisfied with! And while I'm at it, thanks to cody for letting us do this! -- klaus -- klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.447 / Base de données virus: 268.18.4/705 - Date: 27/02/2007 15:24 ___ 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] jquery rocks
Thanks Rick, Hey I'm cool now... I found the emails are posted more or less as a forum at: http://www.nabble.com/JQuery-f15494.html I've googled my way there quite a few times looking for solutions and/or new jQuery goodies. It's much easier to search for me, and there is a huge amount of Q n' A already. -- View this message in context: http://www.nabble.com/jquery-rocks-tf3283778.html#a9204542 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] JS Source code Formatter - Anyone know of any good ones
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] Capturing an event when an input value is changed programmatically
I'm using the Xin calendar in one of my forms. It's a great little DHTML calendar, but I need to capture an event when the value is changed programmatically so I can do something with the value. I've tried firing the event manually using element.onchange(); but that doesn't seem to work - at least not in FF2. Any ideas on how to deal with this? -- View this message in context: http://www.nabble.com/Capturing-an-event-when-an-input-value-is-changed-programmatically-tf3309695.html#a9206381 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface Sortables - class instability
Thanks for the responses Mark, and that's exactly what I've done, and I still have the same problem. Could someone explain to me exactly how Sortables/Draggables/Droppables works, and how classes get assigned during the drag process? I understand that once a drag is activated, a copy of the active container is created - but even if I assign it a root class, it's still not applied. This behavior occurs in both Firefox and IE, so I'm assuming it's something I'm doing, but I can't figure it out. Note that the original classes/styles do snap back after drop - it's just during the drag. A simplified example: div class='reorderlist' div class='reorderrow' id='row1' div class='handle'X/div div class='title'Title 1/div div class='description'Description 1/div /div div class='reorderrow' id='row2' div class='handle'X/div div class='title'Title 2/div div class='description'Description 2/div /div /div Styles are generally set as: .reorderrow {style} .reorderrow div.handle {style} .reorderrow div.title {style} .reorderrow div.description {style} Now I initialize the list as Sortable: $('div.reorderlist').Sortable( { accept: 'reorderrow', activeclass: 'reorderrow', hoverclass: 'reorderrow', helperclass: 'reorderrow', handle: 'div.handle', axis: 'vertically', tolerance: 'pointer' } ); The result is that the list is Sortable, and styles behave normally. But on drag, both the draggable and the hovered row revert to Times New Roman, large fonts, and I can't trace it back. All styles go back to what's expected after drop. Does anyone know the mechanics behind how the containers are copied, so I can troubleshoot this? As much as I love what the Interfaces plugin can do, the documentation is terrible. Yes, all parameters are listed there, with some broken English, but there is no explanation of how it works, what containers it works on, or pitfalls. No offense meant - it's just frustrating. -- mike Mark wrote: 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] mailto:[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] mailto:[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 mailto:discuss@jquery.com mailto:discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com mailto:discuss@jquery.com http://jquery.com/discuss/ http://jquery.com/discuss/ -- | Michael Crowl | Web Developer | [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[jQuery] Announce: Unobtrusive JavaScript with jQuery and symfony
Hi list, I just pop in to mention a new plugin for the symfony framework (http://www.symfony-project.com) that uses jQuery to implement unobtrusive scripting. It's still in its infancy, but it takes the best of the jQuery syntax concision and provides useful tools for interface developers who worry about accessibility. The plugin description is available at: http://www.symfony-project.com/trac/wiki/sfUJSPlugin A bried introduction of the advantages of using this plugin versus writing plain JavaScript (or even plain jQuery) can be found at my blog: http://redotheweb.com/?p=5 François ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] .next() bug?
The mark-up: ul li/li li class=expandable/li ul li/li li/li /ul /li li/li /ul The js: $('li.expandable') .bind('click', function(){ $(this).next().slideToggle('fast'); }) .next().hide() ; Now, my mark-up is wrong. I should have wrapped the nested ul in it's own li, but I missed it. Testing looked good in FF 2, .next() was returning the nested ul, and I didn't even notice the problem. In IE6/7 however, .next() returned the next li, and not the ul which was in fact next the next element. Wrapping the ul in it's own li/li as it should be solved the discrepancy, but the fact that there is a discrepancy in how the two browsers interpret .next() makes me think perhaps there's a bug in there. My understanding of sibling was the next element in line on the same level, but in the case of the mark-up above IE seems to interpret the next sibling as the next element in line on the same level and of the same type. Am I wrong in my understanding of sibling? Adam -- View this message in context: http://www.nabble.com/.next%28%29-bug--tf3309804.html#a9206703 Sent from the JQuery mailing list archive at Nabble.com. ___ 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
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/
Re: [jQuery] Interface Sortables - class instability
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/
Re: [jQuery] .next() bug?
It's hard enough to get everything working properly for documents that are well-formed. I don't think that it's worth the effort to force consistency in how jQuery handles broken documents. If you do anything on top of an invalid DOM, you can't make the results predictable. Even if you could, the code would be so huge that your page would never load. - Brian Now, my mark-up is wrong. I should have wrapped the nested ul in it's own li, but I missed it. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Accordion - onHide / onShow actions available ?!?!
Hi Jörn First of all - i love this widget :-)) Second - i had seen the .change in your doc but was not sure if i should go with that or there was another possibility - i will have a look at .change - i am a bit of newbie in Jquery but know where to find the docs ;-) Grtz:cees Sneeuw Tijger wrote: How is this done in Jquery ? I think is has to be something like an OnHide action ?!?! And yes, I know i can set it to let it always display one item open but that is not what my client wants :P Currently the plugin doesn't support a not selected class. But you can add it by using the change event. There is one example in the docs: $('#accordion').Accordion().change(function(event, newHeader, oldHeader, newContent, oldContent) { $('#status').html(newHeader.text()); }); Let me know if that works for you. -- Jörn Zaefferer -- View this message in context: http://www.nabble.com/Accordion---onHide---onShow-actions-available--%21-%21-tf3300677.html#a9207258 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] .next() bug?
That's not what I'm looking for at all. The point was whether or not .next() is always returning the correct element in a given situation. It was merely a concern, not a request to make jQuery work on broken docs. Adam Citrus wrote: It's hard enough to get everything working properly for documents that are well-formed. I don't think that it's worth the effort to force consistency in how jQuery handles broken documents. If you do anything on top of an invalid DOM, you can't make the results predictable. Even if you could, the code would be so huge that your page would never load. - Brian Now, my mark-up is wrong. I should have wrapped the nested ul in it's own li, but I missed it. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/.next%28%29-bug--tf3309804.html#a9207359 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Amazing jQuery!
I really appreciate the developers and of coz , users of jQuery. You made the history! I have learned javascript for more than 10 years and never thought that it is so powerful with jQuery - only 20KB of library! I thought it should be part of the javascript standard! Also, the emails are so active, users are helpful to each others, really amazing! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Amazing jQuery!
You mean... history.next() ? °-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of howard chen Sent: mercredi 28 février 2007 17:44 To: discuss@jquery.com Subject: [jQuery] Amazing jQuery! I really appreciate the developers and of coz , users of jQuery. You made the history! I have learned javascript for more than 10 years and never thought that it is so powerful with jQuery - only 20KB of library! I thought it should be part of the javascript standard! Also, the emails are so active, users are helpful to each others, really amazing! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.447 / Base de données virus: 268.18.4/705 - Date: 27/02/2007 15:24 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] .next() bug?
Now, my mark-up is wrong. I should have wrapped the nested ul in it's own li, but I missed it. Testing looked good in FF 2, .next() was returning the nested ul, and I didn't even notice the problem. In IE6/7 however, .next() returned the next li, and not the ul which was in fact next the next element. Wrapping the ul in it's own li/li as it should be solved the discrepancy, but the fact that there is a discrepancy in how the two browsers interpret .next() makes me think perhaps there's a bug in there. My understanding of sibling was the next element in line on the same level, but in the case of the mark-up above IE seems to interpret the next sibling as the next element in line on the same level and of the same type. Am I wrong in my understanding of sibling? When you have invalid markup, browsers take their best guess as to what you meant, and different browsers may guess differently. If you're interested in knowing exactly what happened here, use a DOM inspector in each browser and compare the DOM trees. For Firefox, that would be Firebug, and for IE, Microsoft's Developer Toolbar: http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511- bb3e-2d5e1db91038 My guess is that there are differences in the DOM that explain the different results. -Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] JS Source code Formatter - Anyone know of any good ones
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/
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/
[jQuery] Plugin wanted
Hi all, Sorry for this request but I've looked for a plugin I saw which auto-sizes an input or a textarea according to its content. I looked at the plugins' page, in the mailing list archive. No way to find it! If somebody could help me... Cheers, Franck. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.1.2
Not sure if this is bug-related or not, but if I try to open the test page in the full release of 1.1.2 (test/index.htm) it crashes Safari (2.0.4) every time. FWIW. John Resig wrote: As always, if you have any questions or concerns with new release, please feel free to discuss it on the jQuery Mailing List. If you think you've spotted a bug, please add it to the bug tracker: http://dev.jquery.com/newticket Download Compressed JavaScript (Recommended Download!) http://jquery.com/src/jquery-1.1.2.pack.js Uncompressed JavaScript http://jquery.com/src/jquery-1.1.2.js Full Release (jQuery, Test Suite, Documentation) http://jquery.com/src/jquery-1.1.2.release.zip Build Files (Compile your own version of jQuery 1.1.2) http://jquery.com/src/jquery-1.1.2.build.zip -- View this message in context: http://www.nabble.com/jQuery-1.1.2-tf3306736.html#a9208560 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
A simple Cancel link would be superb - I think this is an essential addition! Torbjorn Tornkvist wrote: I've been using Imagebox and are missing a way of Stopping/Unloading it. Also, a hook when Imagebox closes down would have been very handy. Perhaps Thickbox3 can remedy this? -- View this message in context: http://www.nabble.com/ANNOUNCE%3A-Thickbox-Reloaded-alpha-tf3293077.html#a9208518 Sent from the JQuery mailing list archive at Nabble.com. ___ 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] Plugin wanted
I got it: autoexpander in interface. Franck. 2007/2/28, Franck Marcia [EMAIL PROTECTED]: Hi all, Sorry for this request but I've looked for a plugin I saw which auto-sizes an input or a textarea according to its content. I looked at the plugins' page, in the mailing list archive. No way to find it! If somebody could help me... Cheers, Franck. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
Shouldn't this just be tied to the close link? [-Stash-] wrote: A simple Cancel link would be superb - I think this is an essential addition! Torbjorn Tornkvist wrote: I've been using Imagebox and are missing a way of Stopping/Unloading it. Also, a hook when Imagebox closes down would have been very handy. Perhaps Thickbox3 can remedy this? -- View this message in context: http://www.nabble.com/ANNOUNCE%3A-Thickbox-Reloaded-alpha-tf3293077.html#a9208696 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Plugin wanted
Hi, take a look here http://interface.eyecon.ro/demos an try Autoexpander demo Best regards, Stefan Kilp Hi all, Sorry for this request but I've looked for a plugin I saw which auto-sizes an input or a textarea according to its content. I looked at the plugins' page, in the mailing list archive. No way to find it! If somebody could help me... Cheers, Franck. ___ 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/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
One thing I would really like to see added (which I've done with help my modded version) is circular browsing - 'next' on last image loads first image, and vice versa +1 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
Currently the Close link doesn't appear until the content is loaded - if the content takes a long time to load, you can't get rid of the TB. I'd like a nice juicy Cancel button just beneath (or wherever) the loading animation s I can change my mind and not wait for the content to be loaded. Shouldn't this just be tied to the close link? [-Stash-] wrote: A simple Cancel link would be superb - I think this is an essential addition! Torbjorn Tornkvist wrote: I've been using Imagebox and are missing a way of Stopping/Unloading it. Also, a hook when Imagebox closes down would have been very handy. Perhaps Thickbox3 can remedy this? -- View this message in context: http://www.nabble.com/ANNOUNCE%3A-Thickbox-Reloaded-alpha-tf3293077.html#a9208798 Sent from the JQuery mailing list archive at Nabble.com. ___ 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] .next() bug?
I see what you're saying. You're worried that because there's a difference here, there might be a differnce in a non-broken document that we haven't found yet. Personally, I wouldn't worry about it until/unless there's an actual use case that's having this same problem on a non-broken DOM. - Brian That's not what I'm looking for at all. The point was whether or not .next() is always returning the correct element in a given situation. It was merely a concern, not a request to make jQuery work on broken docs. Adam Citrus wrote: It's hard enough to get everything working properly for documents that are well-formed. I don't think that it's worth the effort to force consistency in how jQuery handles broken documents. If you do anything on top of an invalid DOM, you can't make the results predictable. Even if you could, the code would be so huge that your page would never load. - Brian Now, my mark-up is wrong. I should have wrapped the nested ul in it's own li, but I missed it. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/.next%28%29-bug--tf3309804.html#a9207359 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] ANNOUNCE: Thickbox Reloaded alpha
[-Stash-] schrieb: A simple Cancel link would be superb - I think this is an essential addition! clicking on the overlay while loading will abort loading... that its not working is a bug on my side. is that sufficient? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] nth-child selector
I see a few problems: div:nth-child(2) will only select the 2nd child NOT every odd child. Try the following: $(#search-results div:nth-child(odd):gt(1)).addClass(stripes); that should select all your odd child divs except the first two and give them the class stripes Dan Eastwell wrote: Hello, I'm trying to select every odd item in a list, but not the first two items. I've tried using the nth-child selector, which is fine at picking out the nth-child, but I can't get the 2n+2 child to be selected: stripes(#search-results div:odd); // is ok stripes(#search-results div:nth-child(2)); // works but stripes(#search-results div:nth-child(2n+2)); // doesn't. Am I missing something about the CSS3 selector syntax? Thanks, Dan. -- 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/ -- View this message in context: http://www.nabble.com/nth-child-selector-tf3308588.html#a9212414 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] What's wrong with this code?
Ok. so I had working jQuery/AJAX code, but I started tinkering with it and now it's not working. see anything wrong with what's below? Thanks! Rick script type=text/javascript $(document).ready(function(){ $(#User_ID).change( function() { var User_ID = $(this).val(); $(#mycfpagecontent).load(mycfpage.cfm?User_ID= + User_ID); }); }); /script ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] What's wrong with this code?
Looks like your quotes are wrong: mycfpage.cfm?User_ID= + User_ID ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] What's wrong with this code?
Rick, Use: $(#mycfpagecontent).load(mycfpage.cfm?User_ID= + User_ID); Look at where the quotes close. You are concatenating the var at the end. Michael _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: Wednesday, February 28, 2007 10:29 AM To: 'jQuery Discussion.' Subject: [jQuery] What's wrong with this code? Ok. so I had working jQuery/AJAX code, but I started tinkering with it and now it's not working. see anything wrong with what's below? Thanks! Rick script type=text/javascript $(document).ready(function(){ $(#User_ID).change( function() { var User_ID = $(this).val(); $(#mycfpagecontent).load(mycfpage.cfm?User_ID= + User_ID); }); }); /script ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] ImageBox Problem - close and loading images not displaying
Hi I can't get the close and loading images to display and would like to know if that is a bug or a directory path problem on my part? If the latter I would like to know which directory Imagebox is expecting to find the files in? Thank you, Janet Weber ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery/Validation plugin on FireBug - Couldn't catch events
R. Rajesh Jeba Anbiah schrieb: I'm just trying to walk through the script http://jquery.bassistance.de/validate/demo-test/validate-demo.html with FireBug. FireBug breaks when loading the page; but not on any events, say when submitting the form or when the error text is been added. Is there anyway/workaround for it? TIA What Firebug version are you using? What do you mean by breaks? Considering that it seems like that you can still use Firebug later, does only the debugging break? -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Q: best way to create dynamic content?
nrwsteff schrieb: so jörn, if you can release your plugin it would be perfect and i will give it a try. Here we go: http://bassistance.de/jquery-plugins/jquery-plugin-format/ You are basically the first user, so any feedback is highly appreciated! -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery accordion plugin settings help
schnuck schrieb: but it causes exactly the same problem as the one you suggested: the smooth hiding animation gets lost. a click on another panel simply closes the open panel immediately and slide opens the new panel. the whole closing animation sequence is supressed. anyone knows why? The hidespeed is measured in milliseconds, using the same units as jQuerys built-in animations. So the smaller the value, the faster the animation. Try to simply increase the value, that should give you a smooth animation. -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] taconite question
I'm experimenting with the Taconite Plugin (http://www.malsup.com/jquery/taconite) and I could use a nudge in the right direction. When I click a navigation link there is a series of cosmetic changes made to the screen. In addition to these interface changes, which occur quite nicely using Taconite, I would usually use a .load() function to load another template into the main div, and this is what confuses me. Should I call the load function from within the Taconite XML file? Call .load explicitly in the page javascript after calling the .get for Taconite? Am I making sense? I guess I'm wondering, since Taconite intercepts AJAX calls, can I call an AJAX function from within the Taconite XML file? -Paul ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] What's wrong with this code?
Rick, are you escaping the pound signs in your CF code? Chris Rick Faircloth wrote: Ok... so I had working jQuery/AJAX code, but I started tinkering with it and now it's not working... see anything wrong with what's below? Thanks! Rick script type=text/javascript $(document).ready(function(){ $(#User_ID).change( function() { var User_ID = $(this).val(); $(#mycfpagecontent).load(mycfpage.cfm?User_ID= + User_ID); }); }); /script ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- http://www.cjordan.us ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] .attr(href, javascript:void(0);) not working
I'm trying to rewrite a plugin that I wrote a while back since the code has been lost. Basically this plugin makes it easy to have a link open in a popup window I'm having a problem preventing a new window from opening when using javascript:void(0). Below is the code. jQuery.fn.PopUpWindow = function(){ return this.each(function(index){ var setting, href, parameters, newwindow, a, b, c, $this; $this = jQuery(this); a = $this.attr(rel).split(,); href = $this.attr(href); settings = { height:400, // height of window width:400, // width of window toolbar:false, // should we show the toolbar {true,false} scrollbars:0 // should we show the scollbars {0,1} }; // overrides the settings with parameter passed in using the rel tag. for(var i=0; i a.length; i++) { b = a[i].split(:); if(typeof settings[b[0]] != undefined b.length == 2) { settings[b[0]] = b[1]; } } parameters = height= + settings.height + ,width= + settings.width + ,toolbar= + settings.toolbar + ,scrollbars= + settings.scrollbars; /* there seems to be a problem with this code. For some reason browsers don't like * the fact that I'm setting the href to javascript:void(0) here. */ $this.attr(href, javascript:void(0);); $this.bind(click, function(){ var name = PopUpWindow + index; return !window.open(href, name, parameters).focus(); }); }); }; An example of a link: [a href=/popups/jurisdictions.cfm class=popup rel=height:600,width:310]click here[/a] NOTE: I'm using brackets to get Nabble to display the code. So the basic problem is that when you click on the link it will open 2 windows instead of just the pop up. Any ideas on how to fix this? -- View this message in context: http://www.nabble.com/.attr%28%22href%22%2C-%22javascript%3Avoid%280%29-%22%29-not-working-tf3310158.html#a9207761 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] taconite question
When I click a navigation link there is a series of cosmetic changes made to the screen. In addition to these interface changes, which occur quite nicely using Taconite, I would usually use a .load() function to load another template into the main div, and this is what confuses me. Should I call the load function from within the Taconite XML file? Call .load explicitly in the page javascript after calling the .get for Taconite? Am I making sense? I guess I'm wondering, since Taconite intercepts AJAX calls, can I call an AJAX function from within the Taconite XML file? Paul, you can structure it whatever way makes more sense to you, or whatever fits best with how your page is written. While Taconite intercepts ajax responses, it only processes Taconite responses so don't worry about an infinite loop. So you could use the $.get callback, as you suggested: $.get('myTaconiteDoc', function() { // make another remote call $('#whatever').load('stuff.php'); }); or you could put the other remote call within the taconite document: eval$('#whatever').load('stuff.php');/eval or, if possible, just return what you know you need in the original document! :-) Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] .attr(href, javascript:void(0);) not working
If your just trying to make the browsers default action from happening just use return false (No quotes). Works well for me. Sorry if thats not what your asking. Matt rip747 wrote: I'm trying to rewrite a plugin that I wrote a while back since the code has been lost. Basically this plugin makes it easy to have a link open in a popup window I'm having a problem preventing a new window from opening when using javascript:void(0). Below is the code. jQuery.fn.PopUpWindow = function(){ return this.each(function(index){ var setting, href, parameters, newwindow, a, b, c, $this; $this = jQuery(this); a = $this.attr(rel).split(,); href = $this.attr(href); settings = { height:400, // height of window width:400, // width of window toolbar:false, // should we show the toolbar {true,false} scrollbars:0 // should we show the scollbars {0,1} }; // overrides the settings with parameter passed in using the rel tag. for(var i=0; i a.length; i++) { b = a[i].split(:); if(typeof settings[b[0]] != undefined b.length == 2) { settings[b[0]] = b[1]; } } parameters = height= + settings.height + ,width= + settings.width + ,toolbar= + settings.toolbar + ,scrollbars= + settings.scrollbars; /* there seems to be a problem with this code. For some reason browsers don't like * the fact that I'm setting the href to javascript:void(0) here. */ $this.attr(href, javascript:void(0);); $this.bind(click, function(){ var name = PopUpWindow + index; return !window.open(href, name, parameters).focus(); }); }); }; An example of a link: [a href=/popups/jurisdictions.cfm class=popup rel=height:600,width:310]click here[/a] NOTE: I'm using brackets to get Nabble to display the code. So the basic problem is that when you click on the link it will open 2 windows instead of just the pop up. Any ideas on how to fix this? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] taconite question
I use Taconite quite a bit for combining multiple ajax calls into a single one. Is there a reason why you couldn't combine the Load function that takes place after the initial and instead use Taconite to have that take place during the initial call. Load() just replaces the contents of an element with the content it receives, so it seems to me that could all be taken care of in the initial call. This is where Taconite really helped me out. You could also do the eval![CDATA[ jsfunction(); ]]/eval Within your Taconite response. Either way should work. I always try to combine as many separate operations into a single taconite operation. I'm a noob, so keep that in mind. Paul wrote: I'm experimenting with the Taconite Plugin (http://www.malsup.com/jquery/taconite) and I could use a nudge in the right direction. When I click a navigation link there is a series of cosmetic changes made to the screen. In addition to these interface changes, which occur quite nicely using Taconite, I would usually use a .load() function to load another template into the main div, and this is what confuses me. Should I call the load function from within the Taconite XML file? Call .load explicitly in the page javascript after calling the .get for Taconite? Am I making sense? I guess I'm wondering, since Taconite intercepts AJAX calls, can I call an AJAX function from within the Taconite XML file? -Paul ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] .attr(href, javascript:void(0);) not working
I tried to do that and it still didn't work. I've been at this for quite sometime now. Could someone on the outside, try the code in their browser and tell me if they get the same error? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Oakes Sent: Wednesday, February 28, 2007 2:41 PM To: jQuery Discussion. Subject: Re: [jQuery] .attr(href, javascript:void(0);) not working If your just trying to make the browsers default action from happening just use return false (No quotes). Works well for me. Sorry if thats not what your asking. Matt rip747 wrote: I'm trying to rewrite a plugin that I wrote a while back since the code has been lost. Basically this plugin makes it easy to have a link open in a popup window I'm having a problem preventing a new window from opening when using javascript:void(0). Below is the code. jQuery.fn.PopUpWindow = function(){ return this.each(function(index){ var setting, href, parameters, newwindow, a, b, c, $this; $this = jQuery(this); a = $this.attr(rel).split(,); href = $this.attr(href); settings = { height:400, // height of window width:400, // width of window toolbar:false, // should we show the toolbar {true,false} scrollbars:0 // should we show the scollbars {0,1} }; // overrides the settings with parameter passed in using the rel tag. for(var i=0; i a.length; i++) { b = a[i].split(:); if(typeof settings[b[0]] != undefined b.length == 2) { settings[b[0]] = b[1]; } } parameters = height= + settings.height + ,width= + settings.width + ,toolbar= + settings.toolbar + ,scrollbars= + settings.scrollbars; /* there seems to be a problem with this code. For some reason browsers don't like * the fact that I'm setting the href to javascript:void(0) here. */ $this.attr(href, javascript:void(0);); $this.bind(click, function(){ var name = PopUpWindow + index; return !window.open(href, name, parameters).focus(); }); }); }; An example of a link: [a href=/popups/jurisdictions.cfm class=popup rel=height:600,width:310]click here[/a] NOTE: I'm using brackets to get Nabble to display the code. So the basic problem is that when you click on the link it will open 2 windows instead of just the pop up. Any ideas on how to fix this? ___ 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: 2/27/2007 3:24 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
On 28/02/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote: as for feature, proportional dimensions is a must IMO. There is no sense fixing width and height of thickbox in today's multitude of screen sizes... What exactly do you mean by that. Currently if an image is too large for the viewport it gets resized. Is it that? I took that from the current Thickbox without any changes. I mean with TB, you specify its width and height by giving pixel values (width=600height=400 for example). This is wrong: if the users has a 2 pixel wide monitor (or a very small screen), TB should use whatever screen assets the user has. That is why width=90% is better. Perhaps there should be min-width/height (and max while you are at it) if you are going to use percentages. Also how would you indicate it (perhaps width=90height=90unit=percent)? Is it to be % of screen or window (I assume window)? I can't imagine someone having a monitor that big. If they did, they probably would not have the browser maximised (as most sites would look bad at very high resolution). Those with small screens probably have a portable device, which thickbox won't work in anyway. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Hartl Sent: mercredi 28 février 2007 14:49 To: jQuery Discussion. Subject: Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha Alexandre Plennevaux schrieb: If filesize is to be TB biggest advantage, personally in fact i rarely need to be able to launch a TB with iframe, ajax and images on the same page, or even Application. I guess i'm not the only one to choose before hand at design time how my app will use TB (ajax/iframe) to display interfaces. I would therefore love to have 3 different thickbox plugins, so 3 different files. If i need to mix, just adding the script source link to the related TB version would enable me to. script src=plugin.thickbox.images.js type=text/javascript/script script src=plugin.thickbox.ajax.js type=text/javascript/script script src=plugin.thickbox.iframe.js type=text/javascript/script this would also enable to build more functionalities for specific uses (gallery, zoom, prev/next only apply to images). I just wrote in reply to Sam, that I'm thinking about making TR modular exactly like that. The basis is already there. On the other hand, for the Ajax example it just saves us 5 lines of code... as for feature, proportional dimensions is a must IMO. There is no sense fixing width and height of thickbox in today's multitude of screen sizes... What exactly do you mean by that. Currently if an image is too large for the viewport it gets resized. Is it that? I took that from the current Thickbox without any changes. thank you! Thank you for feedback. And all the others! I hope we can build a Thickbox everybody (ok, hopefully most of us) is satisfied with! And while I'm at it, thanks to cody for letting us do this! -- klaus -- klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.447 / Base de données virus: 268.18.4/705 - 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] .attr(href, javascript:void(0);) not working
Don't use the javascript:void(0) stuff at all, trying this instead: So remove this line: $this.attr(href, javascript:void(0);); And change this: $this.bind(click, function(){ var name = PopUpWindow + index; window.open(href, name, parameters).focus(); return false; }); That should do the trick. --John On 2/28/07, Petruzzi, Tony [EMAIL PROTECTED] wrote: I tried to do that and it still didn't work. I've been at this for quite sometime now. Could someone on the outside, try the code in their browser and tell me if they get the same error? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Oakes Sent: Wednesday, February 28, 2007 2:41 PM To: jQuery Discussion. Subject: Re: [jQuery] .attr(href, javascript:void(0);) not working If your just trying to make the browsers default action from happening just use return false (No quotes). Works well for me. Sorry if thats not what your asking. Matt rip747 wrote: I'm trying to rewrite a plugin that I wrote a while back since the code has been lost. Basically this plugin makes it easy to have a link open in a popup window I'm having a problem preventing a new window from opening when using javascript:void(0). Below is the code. jQuery.fn.PopUpWindow = function(){ return this.each(function(index){ var setting, href, parameters, newwindow, a, b, c, $this; $this = jQuery(this); a = $this.attr(rel).split(,); href = $this.attr(href); settings = { height:400, // height of window width:400, // width of window toolbar:false, // should we show the toolbar {true,false} scrollbars:0 // should we show the scollbars {0,1} }; // overrides the settings with parameter passed in using the rel tag. for(var i=0; i a.length; i++) { b = a[i].split(:); if(typeof settings[b[0]] != undefined b.length == 2) { settings[b[0]] = b[1]; } } parameters = height= + settings.height + ,width= + settings.width + ,toolbar= + settings.toolbar + ,scrollbars= + settings.scrollbars; /* there seems to be a problem with this code. For some reason browsers don't like * the fact that I'm setting the href to javascript:void(0) here. */ $this.attr(href, javascript:void(0);); $this.bind(click, function(){ var name = PopUpWindow + index; return !window.open(href, name, parameters).focus(); }); }); }; An example of a link: [a href=/popups/jurisdictions.cfm class=popup rel=height:600,width:310]click here[/a] NOTE: I'm using brackets to get Nabble to display the code. So the basic problem is that when you click on the link it will open 2 windows instead of just the pop up. Any ideas on how to fix this? ___ 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: 2/27/2007 3:24 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] .attr(href, javascript:void(0);) not working
Ok try this inplace of what you have at the minute: $(this).click(function(){ return false; }); Thats what I meant before but i guess i didn't make myself clear. Matt Petruzzi, Tony wrote: I tried to do that and it still didn't work. I've been at this for quite sometime now. Could someone on the outside, try the code in their browser and tell me if they get the same error? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Oakes Sent: Wednesday, February 28, 2007 2:41 PM To: jQuery Discussion. Subject: Re: [jQuery] .attr(href, javascript:void(0);) not working If your just trying to make the browsers default action from happening just use return false (No quotes). Works well for me. Sorry if thats not what your asking. Matt rip747 wrote: I'm trying to rewrite a plugin that I wrote a while back since the code has been lost. Basically this plugin makes it easy to have a link open in a popup window I'm having a problem preventing a new window from opening when using javascript:void(0). Below is the code. jQuery.fn.PopUpWindow = function(){ return this.each(function(index){ var setting, href, parameters, newwindow, a, b, c, $this; $this = jQuery(this); a = $this.attr(rel).split(,); href = $this.attr(href); settings = { height:400, // height of window width:400, // width of window toolbar:false, // should we show the toolbar {true,false} scrollbars:0 // should we show the scollbars {0,1} }; // overrides the settings with parameter passed in using the rel tag. for(var i=0; i a.length; i++) { b = a[i].split(:); if(typeof settings[b[0]] != undefined b.length == 2) { settings[b[0]] = b[1]; } } parameters = height= + settings.height + ,width= + settings.width + ,toolbar= + settings.toolbar + ,scrollbars= + settings.scrollbars; /* there seems to be a problem with this code. For some reason browsers don't like * the fact that I'm setting the href to javascript:void(0) here. */ $this.attr(href, javascript:void(0);); $this.bind(click, function(){ var name = PopUpWindow + index; return !window.open(href, name, parameters).focus(); }); }); }; An example of a link: [a href=/popups/jurisdictions.cfm class=popup rel=height:600,width:310]click here[/a] NOTE: I'm using brackets to get Nabble to display the code. So the basic problem is that when you click on the link it will open 2 windows instead of just the pop up. Any ideas on how to fix this? ___ 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: 2/27/2007 3:24 PM ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] taconite question
I always try to combine as many separate operations into a single taconite operation. I'm a noob, so keep that in mind. That's the best way to do it, Nathaniel. Don't make two requests if you can get what you need with one! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] .attr(href, javascript:void(0);) not working
I figured it out. There was nothing wrong with my code. Seems that I might have discovered a bug. Seems that using the ~= selector doesn't work right. If I'm getting it right, it should look though a spaced separated list and see if that list contains the exact value. So if I have: $([EMAIL PROTECTED]'external']).click(function(){ return !window.open(this.href); }) It's looking for any anchor tags with external in the rel attribute. Well my plugin uses that attribute also for it's setting override as shown below: [a href=/popups/jurisdictions.cfm class=popup rel=height:600,width:310]click here[/a] Now the anchor tag above doesn't contain the word external in the rel attribute, but it's still firing. Just so someone could recreate this and test my findings. Here is my jquery plugin function: jQuery.fn.PopUpWindow = function(){ return this.each(function(index){ var setting, href, parameters, newwindow, a, b, c; a = this.href.split(,); href = this.href; settings = { height:400, // height of window width:400, // width of window toolbar:false, // should we show the toolbar {true,false} scrollbars:0 // should we show the scollbars {0,1} }; // overrides the settings with parameter passed in using the rel tag. for(var i=0; i a.length; i++) { b = a[i].split(:); if(typeof settings[b[0]] != undefined b.length == 2) { settings[b[0]] = b[1]; } } parameters = height= + settings.height + ,width= + settings.width + ,toolbar= + settings.toolbar + ,scrollbars= + settings.scrollbars; jQuery(this).bind(click, function(){ var name = PopUpWindow + index; window.open(href, name, parameters).focus(); return false; }); }); }; I'm using the lastest version of jQuery (1.1.2, just downloaded it today) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Wednesday, February 28, 2007 2:53 PM To: jQuery Discussion. Subject: Re: [jQuery] .attr(href, javascript:void(0);) not working Don't use the javascript:void(0) stuff at all, trying this instead: So remove this line: $this.attr(href, javascript:void(0);); And change this: $this.bind(click, function(){ var name = PopUpWindow + index; window.open(href, name, parameters).focus(); return false; }); That should do the trick. --John On 2/28/07, Petruzzi, Tony [EMAIL PROTECTED] wrote: I tried to do that and it still didn't work. I've been at this for quite sometime now. Could someone on the outside, try the code in their browser and tell me if they get the same error? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Oakes Sent: Wednesday, February 28, 2007 2:41 PM To: jQuery Discussion. Subject: Re: [jQuery] .attr(href, javascript:void(0);) not working If your just trying to make the browsers default action from happening just use return false (No quotes). Works well for me. Sorry if thats not what your asking. Matt rip747 wrote: I'm trying to rewrite a plugin that I wrote a while back since the code has been lost. Basically this plugin makes it easy to have a link open in a popup window I'm having a problem preventing a new window from opening when using javascript:void(0). Below is the code. jQuery.fn.PopUpWindow = function(){ return this.each(function(index){ var setting, href, parameters, newwindow, a, b, c, $this; $this = jQuery(this); a = $this.attr(rel).split(,); href = $this.attr(href); settings = { height:400, // height of window width:400, // width of window toolbar:false, // should we show the toolbar {true,false} scrollbars:0 // should we show the scollbars {0,1} }; // overrides the settings with parameter passed in using the rel tag. for(var i=0; i a.length; i++) { b = a[i].split(:); if(typeof settings[b[0]] != undefined b.length == 2) { settings[b[0]] = b[1]; } } parameters = height= + settings.height +
Re: [jQuery] .attr(href, javascript:void(0);) not working
John Resig schrieb: Don't use the javascript:void(0) stuff at all, trying this instead: So remove this line: $this.attr(href, javascript:void(0);); And change this: $this.bind(click, function(){ var name = PopUpWindow + index; window.open(href, name, parameters).focus(); return false; }); That should do the trick. I remember slightly, that return !window.open(href, name, parameters).focus(); was used, so that in case a popup blocker blocks the popup, the link is just followed the normal way. It may not work with focus() though. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] .attr(href, javascript:void(0);) not working
That's correct. jQuery does not support the ~= selector. You can find it located here: http://docs.jquery.com/Selectors#Not_supported It wasn't listed in the list of supported selectors - but I just added it to the list of Not Supported selectors, to make it clear. --John On 2/28/07, Petruzzi, Tony [EMAIL PROTECTED] wrote: I figured it out. There was nothing wrong with my code. Seems that I might have discovered a bug. Seems that using the ~= selector doesn't work right. If I'm getting it right, it should look though a spaced separated list and see if that list contains the exact value. So if I have: $([EMAIL PROTECTED]'external']).click(function(){ return !window.open(this.href); }) It's looking for any anchor tags with external in the rel attribute. Well my plugin uses that attribute also for it's setting override as shown below: [a href=/popups/jurisdictions.cfm class=popup rel=height:600,width:310]click here[/a] Now the anchor tag above doesn't contain the word external in the rel attribute, but it's still firing. Just so someone could recreate this and test my findings. Here is my jquery plugin function: jQuery.fn.PopUpWindow = function(){ return this.each(function(index){ var setting, href, parameters, newwindow, a, b, c; a = this.href.split(,); href = this.href; settings = { height:400, // height of window width:400, // width of window toolbar:false, // should we show the toolbar {true,false} scrollbars:0 // should we show the scollbars {0,1} }; // overrides the settings with parameter passed in using the rel tag. for(var i=0; i a.length; i++) { b = a[i].split(:); if(typeof settings[b[0]] != undefined b.length == 2) { settings[b[0]] = b[1]; } } parameters = height= + settings.height + ,width= + settings.width + ,toolbar= + settings.toolbar + ,scrollbars= + settings.scrollbars; jQuery(this).bind(click, function(){ var name = PopUpWindow + index; window.open(href, name, parameters).focus(); return false; }); }); }; I'm using the lastest version of jQuery (1.1.2, just downloaded it today) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Wednesday, February 28, 2007 2:53 PM To: jQuery Discussion. Subject: Re: [jQuery] .attr(href, javascript:void(0);) not working Don't use the javascript:void(0) stuff at all, trying this instead: So remove this line: $this.attr(href, javascript:void(0);); And change this: $this.bind(click, function(){ var name = PopUpWindow + index; window.open(href, name, parameters).focus(); return false; }); That should do the trick. --John On 2/28/07, Petruzzi, Tony [EMAIL PROTECTED] wrote: I tried to do that and it still didn't work. I've been at this for quite sometime now. Could someone on the outside, try the code in their browser and tell me if they get the same error? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Oakes Sent: Wednesday, February 28, 2007 2:41 PM To: jQuery Discussion. Subject: Re: [jQuery] .attr(href, javascript:void(0);) not working If your just trying to make the browsers default action from happening just use return false (No quotes). Works well for me. Sorry if thats not what your asking. Matt rip747 wrote: I'm trying to rewrite a plugin that I wrote a while back since the code has been lost. Basically this plugin makes it easy to have a link open in a popup window I'm having a problem preventing a new window from opening when using javascript:void(0). Below is the code. jQuery.fn.PopUpWindow = function(){ return this.each(function(index){ var setting, href, parameters, newwindow, a, b, c, $this; $this = jQuery(this); a = $this.attr(rel).split(,); href = $this.attr(href); settings = { height:400, // height of window width:400, // width of window toolbar:false, // should we show the toolbar {true,false} scrollbars:0 // should we show the scollbars {0,1} }; // overrides the settings with parameter passed in using the rel
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
Klaus Hartl wrote: [-Stash-] schrieb: A simple Cancel link would be superb - I think this is an essential addition! clicking on the overlay while loading will abort loading... that its not working is a bug on my side. is that sufficient? -- Klaus Parhaps, Thickbox handles this better, but with Imagebox, since I can't stop it properly I need to reload the page to reach the initial state. As an example, see: http://noneg.tornkvist.org:8080/search.yaws?adonly=falseaction=keywordkey=barcelona Its in Swedish but just click on the link: Bildspel at the top. Since I'm initiating Imagebox when clicking on the link I want to 'stop' it when it closes down. Now I have to reload the page to do it. And if I quit using the Escape button, havoc results when trying to repeat the procedure. (clicking on the thumbnails should not ignite Imagebox in this case) Cheers, Tobbe ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Odd include ordering bug w/ Tablesorter and WrapInner
2007/2/26, Jonathan Freeman [EMAIL PROTECTED]: Haven't had the time to debug this but if you include the jquery-plugin-wrapinner.js before the jquery.tablesorter.js (see below) then the wrapinner will not work. However, reverse the two and both work successfully. This is a bit unclear, but the tablesorter plugin provides it's own implementation of wrapInner. This will be removed in the next update. Best regards Christian Bach ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] What's wrong with this code?
Hi, Chris. The pound signs don't seem to be affecting the CF. Rick From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Jordan Sent: Wednesday, February 28, 2007 2:27 PM To: jQuery Discussion. Subject: Re: [jQuery] What's wrong with this code? Rick, are you escaping the pound signs in your CF code? Chris Rick Faircloth wrote: Ok. so I had working jQuery/AJAX code, but I started tinkering with it and now it's not working. see anything wrong with what's below? Thanks! Rick script type=text/javascript $(document).ready(function(){ $(#User_ID).change( function() { var User_ID = $(this).val(); $(#mycfpagecontent).load(mycfpage.cfm?User_ID= + User_ID); }); }); /script _ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- http://www.cjordan.us ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] .attr(href, javascript:void(0);) not working
I figured it out. There was nothing wrong with my code. Seems that I might have discovered a bug. Seems that using the ~= selector doesn't work right. If I'm getting it right, it should look though a spaced separated list and see if that list contains the exact value. So if I have: $([EMAIL PROTECTED]'external']).click(function(){ return !window.open(this.href); }) It's looking for any anchor tags with external in the rel attribute. Well my plugin uses that attribute also for it's setting override as shown below: [a href=/popups/jurisdictions.cfm class=popup rel=height:600,width:310]click here[/a] Now the anchor tag above doesn't contain the word external in the rel attribute, but it's still firing. Just so someone could recreate this and test my findings. Here is my jquery plugin function: jQuery.fn.PopUpWindow = function(){ return this.each(function(index){ var setting, href, parameters, newwindow, a, b, c; a = this.href.split(,); href = this.href; settings = { height:400, // height of window width:400, // width of window toolbar:false, // should we show the toolbar {true,false} scrollbars:0 // should we show the scollbars {0,1} }; // overrides the settings with parameter passed in using the rel tag. for(var i=0; i a.length; i++) { b = a[i].split(:); if(typeof settings[b[0]] != undefined b.length == 2) { settings[b[0]] = b[1]; } } parameters = height= + settings.height + ,width= + settings.width + ,toolbar= + settings.toolbar + ,scrollbars= + settings.scrollbars; jQuery(this).bind(click, function(){ var name = PopUpWindow + index; window.open(href, name, parameters).focus(); return false; }); }); }; I'm using the lastest version of jQuery (1.1.2, just downloaded it today) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Wednesday, February 28, 2007 2:53 PM To: jQuery Discussion. Subject: Re: [jQuery] .attr(href, javascript:void(0);) not working Don't use the javascript:void(0) stuff at all, trying this instead: So remove this line: $this.attr(href, javascript:void(0);); And change this: $this.bind(click, function(){ var name = PopUpWindow + index; window.open(href, name, parameters).focus(); return false; }); That should do the trick. --John On 2/28/07, Petruzzi, Tony [EMAIL PROTECTED] wrote: I tried to do that and it still didn't work. I've been at this for quite sometime now. Could someone on the outside, try the code in their browser and tell me if they get the same error? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Oakes Sent: Wednesday, February 28, 2007 2:41 PM To: jQuery Discussion. Subject: Re: [jQuery] .attr(href, javascript:void(0);) not working If your just trying to make the browsers default action from happening just use return false (No quotes). Works well for me. Sorry if thats not what your asking. Matt rip747 wrote: I'm trying to rewrite a plugin that I wrote a while back since the code has been lost. Basically this plugin makes it easy to have a link open in a popup window I'm having a problem preventing a new window from opening when using javascript:void(0). Below is the code. jQuery.fn.PopUpWindow = function(){ return this.each(function(index){ var setting, href, parameters, newwindow, a, b, c, $this; $this = jQuery(this); a = $this.attr(rel).split(,); href = $this.attr(href); settings = { height:400, // height of window width:400, // width of window toolbar:false, // should we show the toolbar {true,false} scrollbars:0 // should we show the scollbars {0,1} }; // overrides the settings with parameter passed in using the rel tag. for(var i=0; i a.length; i++) { b = a[i].split(:); if(typeof settings[b[0]] != undefined b.length == 2) { settings[b[0]] = b[1]; } } parameters = height= + settings.height +
Re: [jQuery] Jqmodal problem with IE6
This this thing kills me. Arg. 2007/2/28, Dragan Krstic [EMAIL PROTECTED]: No, it doesn't help. Only change is that I got an js error in IE that are not fired in FF. Screenshoot of error are attached. -- Dragan Krstić krdr http://krdr.ebloggy.com/ -- Dragan Krstić krdr http://krdr.ebloggy.com/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] What's wrong with this code?
Thank, everyone. got it working! Rick From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael E. Carluen Sent: Wednesday, February 28, 2007 1:39 PM To: 'jQuery Discussion.' Subject: Re: [jQuery] What's wrong with this code? Rick, Use: $(#mycfpagecontent).load(mycfpage.cfm?User_ID= + User_ID); Look at where the quotes close. You are concatenating the var at the end. Michael _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: Wednesday, February 28, 2007 10:29 AM To: 'jQuery Discussion.' Subject: [jQuery] What's wrong with this code? Ok. so I had working jQuery/AJAX code, but I started tinkering with it and now it's not working. see anything wrong with what's below? Thanks! Rick script type=text/javascript $(document).ready(function(){ $(#User_ID).change( function() { var User_ID = $(this).val(); $(#mycfpagecontent).load(mycfpage.cfm?User_ID= + User_ID); }); }); /script ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Odd include ordering bug w/ Tablesorter and WrapInner
Hmmm, makes sense now with the wrapinner implementation within tablesorter. Sorry for the confusion, maybe this is better ... Wrap Inner works: script src=jquery.tablesorter.js type=text/javascript/script script src=jquery-plugin-wrapinner.js type=text/javascript/script Wrap Inner does not work: script src=jquery-plugin-wrapinner.js type=text/javascript/script script src=jquery.tablesorter.js type=text/javascript/script --- Christian Bach [EMAIL PROTECTED] wrote: 2007/2/26, Jonathan Freeman [EMAIL PROTECTED]: Haven't had the time to debug this but if you include the jquery-plugin-wrapinner.js before the jquery.tablesorter.js (see below) then the wrapinner will not work. However, reverse the two and both work successfully. This is a bit unclear, but the tablesorter plugin provides it's own implementation of wrapInner. This will be removed in the next update. Best regards Christian Bach ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] .attr(href, javascript:void(0);) not working
Oh. When I download the jQuery cheat sheets it said that it was supported. Could be a mistake on their part. Is there anyway for this support to go into 1.1.3 :) It's actually is really useful. For those of us that program in CF, I can't count the amount of times I've used the ListFind function and this selector is exactly like it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Wednesday, February 28, 2007 3:33 PM To: jQuery Discussion. Subject: Re: [jQuery] .attr(href, javascript:void(0);) not working That's correct. jQuery does not support the ~= selector. You can find it located here: http://docs.jquery.com/Selectors#Not_supported It wasn't listed in the list of supported selectors - but I just added it to the list of Not Supported selectors, to make it clear. --John On 2/28/07, Petruzzi, Tony [EMAIL PROTECTED] wrote: I figured it out. There was nothing wrong with my code. Seems that I might have discovered a bug. Seems that using the ~= selector doesn't work right. If I'm getting it right, it should look though a spaced separated list and see if that list contains the exact value. So if I have: $([EMAIL PROTECTED]'external']).click(function(){ return !window.open(this.href); }) It's looking for any anchor tags with external in the rel attribute. Well my plugin uses that attribute also for it's setting override as shown below: [a href=/popups/jurisdictions.cfm class=popup rel=height:600,width:310]click here[/a] Now the anchor tag above doesn't contain the word external in the rel attribute, but it's still firing. Just so someone could recreate this and test my findings. Here is my jquery plugin function: jQuery.fn.PopUpWindow = function(){ return this.each(function(index){ var setting, href, parameters, newwindow, a, b, c; a = this.href.split(,); href = this.href; settings = { height:400, // height of window width:400, // width of window toolbar:false, // should we show the toolbar {true,false} scrollbars:0 // should we show the scollbars {0,1} }; // overrides the settings with parameter passed in using the rel tag. for(var i=0; i a.length; i++) { b = a[i].split(:); if(typeof settings[b[0]] != undefined b.length == 2) { settings[b[0]] = b[1]; } } parameters = height= + settings.height + ,width= + settings.width + ,toolbar= + settings.toolbar + ,scrollbars= + settings.scrollbars; jQuery(this).bind(click, function(){ var name = PopUpWindow + index; window.open(href, name, parameters).focus(); return false; }); }); }; I'm using the lastest version of jQuery (1.1.2, just downloaded it today) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Wednesday, February 28, 2007 2:53 PM To: jQuery Discussion. Subject: Re: [jQuery] .attr(href, javascript:void(0);) not working Don't use the javascript:void(0) stuff at all, trying this instead: So remove this line: $this.attr(href, javascript:void(0);); And change this: $this.bind(click, function(){ var name = PopUpWindow + index; window.open(href, name, parameters).focus(); return false; }); That should do the trick. --John On 2/28/07, Petruzzi, Tony [EMAIL PROTECTED] wrote: I tried to do that and it still didn't work. I've been at this for quite sometime now. Could someone on the outside, try the code in their browser and tell me if they get the same error? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Oakes Sent: Wednesday, February 28, 2007 2:41 PM To: jQuery Discussion. Subject: Re: [jQuery] .attr(href, javascript:void(0);) not working If your just trying to make the browsers default action from happening just use return false (No quotes). Works well for me. Sorry if thats not what your asking. Matt rip747 wrote: I'm trying to rewrite a plugin that I wrote a while back since the code has been lost. Basically this plugin makes it easy to have a link open in a popup window I'm having a problem preventing a new window from opening when using javascript:void(0). Below is the code. jQuery.fn.PopUpWindow = function(){ return this.each(function(index){ var
[jQuery] Testing
Hi folks, It looks like my posts aren't getting through. So this is a test. -- http://www.cjordan.us ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] IE how I love thee - effects happening twice
OK - I finally got around to looking at things in IE (everything works great in FF) I'm using the fade (highlight) effect from the interface library and what happens is when the fade comes in - it fires twice. My script is about as simple as you can get: script type=text/javascript $(document).ready(function(){ $('#warning').Highlight(2000, '#74'); // fades in background color }); /script It seems to botch up in both IE6 and 7. No problems or errors in FF. Any ideas? Is there a jQuery FAQ anywhere? Thanks! Jim ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Testing
That one got through ;-) Christopher Jordan wrote: Hi folks, It looks like my posts aren't getting through. So this is a test. -- http://www.cjordan.us ___ 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.5/706 - Release Date: 28/02/2007 16:09 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Another Smegin' test
Sorry folks, just testing... -- http://www.cjordan.us ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Replace text in array
In this case either html() or text() should work as there are no other HTML elements inside the span. As I said, in the each function this refer to the raw DOM node, that does not have a text() function. The text() function is part of jQuery, which acts as kind of a wrapper for the elements. The text() function returns the text of the elements selected: http://docs.jquery.com/DOM/Attributes#text.28.29 To actually _set_ that text you need to use the text( 'string value' ) function: http://docs.jquery.com/DOM/Attributes#text.28_val_.29 See the definitions of html() and html( value ) on the same page. You could use the innerHTML property of the span if you like, i.e.: this.innerHTML( this.innerHTML.replace(/index.cfm?a=wikitag=/gi, ) ); As for the site using jQuery already, do you mean the Whirlpool forum or the wiki? The forum doesn't appear to include jQuery. I wasn't able to check the wiki as the site went down for maintainence while I was reading. Karl Rudd On 2/28/07, Yansky [EMAIL PROTECTED] wrote: Hi, thanks for the reply. I tried your code inside the function but it didn't work unfortunately. This is the actual site with the links I'm trying to convert: http://forums.whirlpool.net.au/forum-replies.cfm?t=661554 I'm hoping to make a greasemonkey script since the site already uses the jQuery library. BTW, with my previous attempt, you said that the each function returns the raw DOM, but doesn't the text function access the text inside the node (in this case the span tag)? Thanks for your help so far, I've been trying to figure this out by myself all night. :) Karl Rudd wrote: You almost have it. The each function actually returns the raw DOM element so to use jQuery you'll need to enclose this. Just replace the core with: var $this = $(this); $this.html( $this.html().replace(/index.cfm?a=wikitag=/gi, ) ); Karl Rudd On 2/28/07, Yansky [EMAIL PROTECTED] wrote: I have many of the following type of links on a page: a href=htp://foo.com/index.cfm?a=wikitag=abcspanhtp://foo.com/index.cfm?a=wikitag=abc/span I'm trying to remove the text in between the span tags so that only the text after http://foo.com/index.cfm?a=wikitag= is showing. I have tried the following, but it doesn't seem to work. $('a span').contains('index.cfm?a=wikitag=').each(function(i){ this.text().replace(/index.cfm?a=wikitag=/gi, ); }); Can anyone point me in the right direction? Cheers. -- View this message in context: http://www.nabble.com/Replace-text-in-array-tf3308186.html#a9201977 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/ -- View this message in context: http://www.nabble.com/Replace-text-in-array-tf3308186.html#a9202631 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/