[jQuery] Re: rows highlite issue..need help
Make use of .not() to filter out elements, in your case $(table tr).not('th') should give the wanted result. On Mon, Jan 5, 2009 at 6:19 AM, vivekamar...@gmail.com wrote: Hello, I have following poblem to highlight row, i use followin jquery $(document).ready(function() { $(table tr).css({ background: #ee }).hover( function() { $(this).css({ background: #DE2211 }); }, function() { $(this).css({ background: #ee }); } ); }); problem is it highlight every row even header on hovering..is there way to not highlight th only,,can i add condition that if table tr is th then background is #ee..i want to do without class pls perdon my english. -- Isaak Malik Web Developer
[jQuery] Re: How to enable intellisence for Jquery in zend studio for eclipse
Zend Studio supports Dojo very well since it's the official javascript framework, I'm not sure whether it's possible to enable jQuery calltips (Komodo synonym of Intellisence) in Zend Studio let stand how to enable it. However, Komodo IDE has this kind of feature for jQuery and other frameworks. There's also an opensource alternative called Komodo Edit. On Sun, Jan 4, 2009 at 1:56 PM, Amin amin...@gmail.com wrote: Im new to javascript and also with JQuery and i need to see functions and objects in Intellisence (auto completion) feature of zend studio. is there any way to make Zend studio to show functions and object of JQuery? i tried to add library (in user library option) in project properties and it just show them in PHP explorer but nothing appear when i try Ctrl+Space in my code. i saw ZS support Dojo nicely and i though maybe it can support JQuery in same way. thanks for support. regards. -- Isaak Malik Web Developer
[jQuery] Re: [TUTORIAL] Create an amazing music player using mouse gestures hotkeys in jQuery
If you read the entire tutorial you'll noticed that he mentions it's just an interface and he has plans to integrate it with plusmusicahttp://www.plusmusica.com/(request for an invitation) On Fri, Dec 5, 2008 at 5:11 PM, Jean [EMAIL PROTECTED] wrote: 4 me too On Fri, Dec 5, 2008 at 7:29 AM, Mika Tuupola [EMAIL PROTECTED] wrote: On Dec 4, 2008, at 7:28 PM, AdrianMG wrote: You can see the tutorial over here: http://yensdesign.com/2008/12/create-an-amazing-music-player-using-mouse-gestures-hotkeys-in-jquery/ Should there be music too? It is silent for me FF3 Safari in OSX? -- Mika Tuupola http://www.appelsiini.net/ -- []´s Jean www.suissa.info Ethereal Agency www.etherealagency.com -- Isaak Malik Web Developer
[jQuery] Re: [TUTORIAL] Create an amazing music player using mouse gestures hotkeys in jQuery
you'll notice* On Fri, Dec 5, 2008 at 5:24 PM, Isaak Malik [EMAIL PROTECTED] wrote: If you read the entire tutorial you'll noticed that he mentions it's just an interface and he has plans to integrate it with plusmusicahttp://www.plusmusica.com/(request for an invitation) On Fri, Dec 5, 2008 at 5:11 PM, Jean [EMAIL PROTECTED] wrote: 4 me too On Fri, Dec 5, 2008 at 7:29 AM, Mika Tuupola [EMAIL PROTECTED] wrote: On Dec 4, 2008, at 7:28 PM, AdrianMG wrote: You can see the tutorial over here: http://yensdesign.com/2008/12/create-an-amazing-music-player-using-mouse-gestures-hotkeys-in-jquery/ Should there be music too? It is silent for me FF3 Safari in OSX? -- Mika Tuupola http://www.appelsiini.net/ -- []´s Jean www.suissa.info Ethereal Agency www.etherealagency.com -- Isaak Malik Web Developer -- Isaak Malik Web Developer
[jQuery] Selector bug?
Am I right that both of these should be identical? $('#linkList tr:gt(0):odd td:first').text(); $('#linkList tr:gt(0):odd').find('td:first').text(); The first one only returns 1 result instead of all, it behaves just like: $('#linkList tr:gt(0):odd:first td:first').text(); If I'm right then the first one contains a bug. -- Isaak Malik Web Developer
[jQuery] Re: window close
Try: $(this).parents('.popup_window_wrapper').hide(); On Mon, Nov 24, 2008 at 6:08 AM, Debby [EMAIL PROTECTED] wrote: Hi all, On click of hyperlink, i am cerating one popup which is under one div having class but no id. On click of close window hyperlink in the popup i want to hide this popup. But not able to hide this. I tried this, but not working $(this).parent('.popup_window_wrapper').css({'display':'none'}); popup_window_wrapper: Is the class of popup div. Please help me. -- Isaak Malik Web Developer
[jQuery] Re: Previous TD
On Tue, Nov 18, 2008 at 4:12 AM, Randy Johnson [EMAIL PROTECTED] wrote: Hello, Here is sample code: td class=rsp2 align=center rowspan=2 p 34 Daysbr / a id=r2 href=javascript: void(0); title=211/03/2008/a /p /td When I click on the date above I want to be able to change the rowSpan on the td that surrounds it. I cannot seem to get it right. Here is the latest thing I tried: $(#r+id).prev(td).attr(rowSpan,1); I also tried: $(#r+id).prev(.rsp2 td).attr(rowSpan,1); Thanks! Randy $('#r2').prevAll('rsp2').attr(rowspan,1); -- Isaak Malik Web Developer
[jQuery] Re: Previous TD
Forgot the dot: $('#r2').prevAll('.rsp2').attr(rowspan,1); On Tue, Nov 18, 2008 at 10:26 AM, andrea varnier [EMAIL PROTECTED]wrote: On 18 Nov, 04:12, Randy Johnson [EMAIL PROTECTED] wrote: When I click on the date above I want to be able to change the rowSpan on the td that surrounds it. I cannot seem to get it right. try this: $('#r2').parent().parent().attr('rowspan', '1'); -- Isaak Malik Web Developer
[jQuery] Re: non-programmer
Starting off with a framework is never a good way to get to learn a technology, even if you start with jQuery you'll still have to learn the JavaScript syntax, built-in functions, and all the rest.. Moreover, there is a basic you have to know before using jQuery because jQuery is not a language itself but just a framework. A framework is only good to extend your knowledge and improve development and not to teach you the basics of a technology. And about PHP, don't let it discourage you, it is incredibly easy to learn and to use as soon as you get the hang of it. It's so easy that even the not-so-brightest think it's simple. Leave MySQL for last, learn the PHP basics first then take the next step. I also suggest you use an IDE (Eclipse, NetBeans, Komodo, etc.) that supports calltips for the built-in functions, this can save you a lot of time at the beginning. -- Isaak Malik Web Developer
[jQuery] Re: pirobox plugin released
Very interesting piece of work :), have you performed cross-browser tests? On Wed, Nov 12, 2008 at 12:55 AM, diego [EMAIL PROTECTED] wrote: Hi all, i've finished my first plugin, hope you like it, any question or opinion it's welcome. http://www.pirolab.it/pirobox/ I developed this plugin, by studying the docs.jquery, it's amazing what you can do with this library. Tnx to all the jquery developers. Diego Valobra -- Isaak Malik Web Developer
[jQuery] Re: $.post with an array of variables
Create a string instead and see if that works for you? Example: var str = '?'; str += 'freshbox=' + encodeURIComponent(freshBoxType); //etc... On Tue, Nov 11, 2008 at 8:37 PM, tukutela [EMAIL PROTECTED]wrote: Hi all, I have an array of variables that is built from the following: data['freshbox'] = encodeURIComponent(freshBoxType); data['numitems'] = encodeURIComponent(items.length); data['customerid'] = customerid; for (var i=0;iitems.length;i++) { data['item['+i+'][addonid]'] = encodeURIComponent($ (#itemaddonid+items[i][0]).val()); data['item['+i+'][itemid]'] = encodeURIComponent(items[i][2]); data['item['+i+'][qty]'] = encodeURIComponent($(#qtyfield+items[i] [0]).val()); data['item['+i+'][freq]'] = encodeURIComponent($(#itemfreq+items[i] [0]).val()); } And what I would like to do is build a set of input variables looking like below: data['freshbox'] = 1; data['numitems'] = 1; data['customerid'] = 1; data['item[0][addonid]'] = 456; data['item[0][itemid]'] = 12; data['item[0][qty]'] = 1; data['item[0][freq]'] = 1; and throw these directly into $.post, such as: $.post( url, data ); But for some reason the posted variables never make it. Can anyone help? -- Isaak Malik Web Developer
[jQuery] Re: pirobox plugin released
It doesn't sound strange at all, we can expect anything from IE ;) It is very interesting indeed but what about the license + source code? Is this an opensource library, if so can you also provide a non-packed version? On Wed, Nov 12, 2008 at 1:13 AM, diego [EMAIL PROTECTED] wrote: Hi Isaak, i've tested it in ie6/7, ff2/3 , safari mac/pc , opera 9.5/9.6 , G. chrome, and the only problem i found it's with ie7,the animation is not as smooth as in firefox, it may sound strange but it works better with IE6, and not with ie7. It's ok in opera safari e chrome. The best performance is obviously in firefox, then chrome, safari, opera, IE6, and last ie7. Diego On 12 Nov, 00:59, Isaak Malik [EMAIL PROTECTED] wrote: Very interesting piece of work :), have you performed cross-browser tests? On Wed, Nov 12, 2008 at 12:55 AM, diego [EMAIL PROTECTED] wrote: Hi all, i've finished my first plugin, hope you like it, any question or opinion it's welcome. http://www.pirolab.it/pirobox/ I developed this plugin, by studying the docs.jquery, it's amazing what you can do with this library. Tnx to all the jquery developers. Diego Valobra -- Isaak Malik Web Developer -- Isaak Malik Web Developer
[jQuery] Re: pirobox plugin released
Oh, I didn't see the unpacked version and it was right under it... Thanks :) I may use this in a current project after some testing :) On Wed, Nov 12, 2008 at 1:34 AM, diego [EMAIL PROTECTED] wrote: Hi Isaak,i really hate explorer i work with firefox, for debug my script,and when i open explorer i'm really scared of what can happen.. sure that is open source, you can download both version, packed and unpacked,just click the anchor 'download' on the nav. Diego On 12 Nov, 01:27, Isaak Malik [EMAIL PROTECTED] wrote: It doesn't sound strange at all, we can expect anything from IE ;) It is very interesting indeed but what about the license + source code? Is this an opensource library, if so can you also provide a non-packed version? On Wed, Nov 12, 2008 at 1:13 AM, diego [EMAIL PROTECTED] wrote: Hi Isaak, i've tested it in ie6/7, ff2/3 , safari mac/pc , opera 9.5/9.6 , G. chrome, and the only problem i found it's with ie7,the animation is not as smooth as in firefox, it may sound strange but it works better with IE6, and not with ie7. It's ok in opera safari e chrome. The best performance is obviously in firefox, then chrome, safari, opera, IE6, and last ie7. Diego On 12 Nov, 00:59, Isaak Malik [EMAIL PROTECTED] wrote: Very interesting piece of work :), have you performed cross-browser tests? On Wed, Nov 12, 2008 at 12:55 AM, diego [EMAIL PROTECTED] wrote: Hi all, i've finished my first plugin, hope you like it, any question or opinion it's welcome. http://www.pirolab.it/pirobox/ I developed this plugin, by studying the docs.jquery, it's amazing what you can do with this library. Tnx to all the jquery developers. Diego Valobra -- Isaak Malik Web Developer -- Isaak Malik Web Developer -- Isaak Malik Web Developer
[jQuery] Re: pirobox plugin released
I just peeked at the source code and I'm wondering if this is the original version? It's quite unreadable. And of course, copyright notice will be kept untouched On Wed, Nov 12, 2008 at 1:43 AM, diego [EMAIL PROTECTED] wrote: This is great, the only thing i ask, is to leave my name up there in the js, and if you want, a link back to my page :) Diego On 12 Nov, 01:38, Isaak Malik [EMAIL PROTECTED] wrote: Oh, I didn't see the unpacked version and it was right under it... Thanks :) I may use this in a current project after some testing :) On Wed, Nov 12, 2008 at 1:34 AM, diego [EMAIL PROTECTED] wrote: Hi Isaak,i really hate explorer i work with firefox, for debug my script,and when i open explorer i'm really scared of what can happen.. sure that is open source, you can download both version, packed and unpacked,just click the anchor 'download' on the nav. Diego On 12 Nov, 01:27, Isaak Malik [EMAIL PROTECTED] wrote: It doesn't sound strange at all, we can expect anything from IE ;) It is very interesting indeed but what about the license + source code? Is this an opensource library, if so can you also provide a non-packed version? On Wed, Nov 12, 2008 at 1:13 AM, diego [EMAIL PROTECTED] wrote: Hi Isaak, i've tested it in ie6/7, ff2/3 , safari mac/pc , opera 9.5/9.6 , G. chrome, and the only problem i found it's with ie7,the animation is not as smooth as in firefox, it may sound strange but it works better with IE6, and not with ie7. It's ok in opera safari e chrome. The best performance is obviously in firefox, then chrome, safari, opera, IE6, and last ie7. Diego On 12 Nov, 00:59, Isaak Malik [EMAIL PROTECTED] wrote: Very interesting piece of work :), have you performed cross-browser tests? On Wed, Nov 12, 2008 at 12:55 AM, diego [EMAIL PROTECTED] wrote: Hi all, i've finished my first plugin, hope you like it, any question or opinion it's welcome. http://www.pirolab.it/pirobox/ I developed this plugin, by studying the docs.jquery, it's amazing what you can do with this library. Tnx to all the jquery developers. Diego Valobra -- Isaak Malik Web Developer -- Isaak Malik Web Developer -- Isaak Malik Web Developer -- Isaak Malik Web Developer
[jQuery] Re: pirobox plugin released
The one in the non-packed zip file is the same, can you provide us with the original file in the non-packed zip file? Also, I noticed there are parts that can be tweaked by using chaining. On Wed, Nov 12, 2008 at 1:56 AM, diego [EMAIL PROTECTED] wrote: You mean this http://www.pirolab.it/pirobox/js/pirobox.js ?? unreadable? I changed all the original variables and removed all the spaces to get the script more lightweight. Just this :) On 12 Nov, 01:47, Isaak Malik [EMAIL PROTECTED] wrote: I just peeked at the source code and I'm wondering if this is the original version? It's quite unreadable. And of course, copyright notice will be kept untouched On Wed, Nov 12, 2008 at 1:43 AM, diego [EMAIL PROTECTED] wrote: This is great, the only thing i ask, is to leave my name up there in the js, and if you want, a link back to my page :) Diego On 12 Nov, 01:38, Isaak Malik [EMAIL PROTECTED] wrote: Oh, I didn't see the unpacked version and it was right under it... Thanks :) I may use this in a current project after some testing :) On Wed, Nov 12, 2008 at 1:34 AM, diego [EMAIL PROTECTED] wrote: Hi Isaak,i really hate explorer i work with firefox, for debug my script,and when i open explorer i'm really scared of what can happen.. sure that is open source, you can download both version, packed and unpacked,just click the anchor 'download' on the nav. Diego On 12 Nov, 01:27, Isaak Malik [EMAIL PROTECTED] wrote: It doesn't sound strange at all, we can expect anything from IE ;) It is very interesting indeed but what about the license + source code? Is this an opensource library, if so can you also provide a non-packed version? On Wed, Nov 12, 2008 at 1:13 AM, diego [EMAIL PROTECTED] wrote: Hi Isaak, i've tested it in ie6/7, ff2/3 , safari mac/pc , opera 9.5/9.6 , G. chrome, and the only problem i found it's with ie7,the animation is not as smooth as in firefox, it may sound strange but it works better with IE6, and not with ie7. It's ok in opera safari e chrome. The best performance is obviously in firefox, then chrome, safari, opera, IE6, and last ie7. Diego On 12 Nov, 00:59, Isaak Malik [EMAIL PROTECTED] wrote: Very interesting piece of work :), have you performed cross-browser tests? On Wed, Nov 12, 2008 at 12:55 AM, diego [EMAIL PROTECTED] wrote: Hi all, i've finished my first plugin, hope you like it, any question or opinion it's welcome. http://www.pirolab.it/pirobox/ I developed this plugin, by studying the docs.jquery, it's amazing what you can do with this library. Tnx to all the jquery developers. Diego Valobra -- Isaak Malik Web Developer -- Isaak Malik Web Developer -- Isaak Malik Web Developer -- Isaak Malik Web Developer -- Isaak Malik Web Developer
[jQuery] Re: AJAX Callbacks - How to show Ajax request status using a loading image?
Hey there, You're using it partially in the wrong way. 1st: function showUser(str) { $('#content1').load(select.php?q=+str); } No syntax mistake in the code above! But the bad part is this: $().ajaxSend(function(r,s){ $(#content1).load(Loading data, please wait...); }); Which will work if you change it into this: $('#content1').ajaxSend(function(e,r,s) { $(this).html('Loading data, please wait...'); } This will insert the Loading data, please wait... inside the tag withid='content1' before an AJAX request is sent. -- Isaak Malik Web Developer
[jQuery] Re: AJAX Callbacks - How to show Ajax request status using a loading image?
Place this part of code outside your function and inside the jQuery on-DOM-ready function: $(function() { $('#content1').ajaxSend(function(e,r,s) { $(this).html('Loading data, please wait...'); } }); Note that your functions must not be inside the on-DOM-ready function. So your final result should be like this: function showUser(str) { $('#content1').load(select.php?q=+str); } $(function() { $('#content1').ajaxSend(function(e,r,s) { $(this).html('Loading data, please wait...'); } }); Also, check if #content1 is a visible element. In other words: see that you didn't use display: none on it. -- Isaak Malik Web Developer
[jQuery] Re: hide() not working when disabling CSS
noscript is just an element that is displayed when JavaScript has been disabled (99%) in the user's browser or when JavaScript is not supported by it (1% mostly search engines). On Tue, Oct 28, 2008 at 12:48 AM, 5h4rk [EMAIL PROTECTED] wrote: Thanks! Now I get it. Can you explain the reasoning behind the noscript approach please? Thanks again. On Oct 28, 9:50 am, Isaak Malik [EMAIL PROTECTED] wrote: It's much wiser to use noscriptp class=jsoffPlease turn Javascript on to view the content./p/noscript instead of a JavaScript function that hides it. On Mon, Oct 27, 2008 at 11:01 PM, Karl Swedberg [EMAIL PROTECTED] wrote: On Oct 26, 2008, at 9:33 PM, 5h4rk wrote: Hi, I have p class=jsoffPlease turn Javascript on to view the content./p and $('p.jsoff').hide(); When I turn CSS off using the Web Developer Extension for Firefox and Javascript on, the message is somehow not hidden. I'm not sure if this is the problem, but Instead of style=display:none;, webdeveloper- inline-style=display:none; is applied to the p. It works fine when CSS is on though. Appreciate your help. Thanks. That's right. the .hide() method uses display: none; which is a css declaration. You could try $('p.jsoff').remove() instead. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com -- Isaak Malik Web Developer -- Isaak Malik Web Developer
[jQuery] Re: hide() not working when disabling CSS
It's much wiser to use noscriptp class=jsoffPlease turn Javascript on to view the content./p/noscript instead of a JavaScript function that hides it. On Mon, Oct 27, 2008 at 11:01 PM, Karl Swedberg [EMAIL PROTECTED]wrote: On Oct 26, 2008, at 9:33 PM, 5h4rk wrote: Hi, I have p class=jsoffPlease turn Javascript on to view the content./p and $('p.jsoff').hide(); When I turn CSS off using the Web Developer Extension for Firefox and Javascript on, the message is somehow not hidden. I'm not sure if this is the problem, but Instead of style=display:none;, webdeveloper- inline-style=display:none; is applied to the p. It works fine when CSS is on though. Appreciate your help. Thanks. That's right. the .hide() method uses display: none; which is a css declaration. You could try $('p.jsoff').remove() instead. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com -- Isaak Malik Web Developer
[jQuery] Re: [autocomplete] do search on input focus
Oups, I think it should be: $(function() { $(#category).focus(function(){this.autocomplete(do_search.php,{max:100,minChars:0,delay:10}) }); }); On Thu, Oct 23, 2008 at 12:16 AM, blasto333 [EMAIL PROTECTED] wrote: That didn't work either. If I double click in the field, the expected behavior occurs. On Oct 22, 10:41 am, Isaak Malik [EMAIL PROTECTED] wrote: I have no idea which autocomplete plugin you're using but does the following work for you? $(function() { $(#category).focus(function(){$(this).autocomplete(do_search.php,{max:1 00,minChars:0,delay:10}) }); }); On Wed, Oct 22, 2008 at 4:19 PM, blasto333 [EMAIL PROTECTED] wrote: Is there a way to force a field to do a search on focus of the input? (I basically want the user to be suggested a default set of items before typing anything. I tried this $(#category).autocomplete(do_search.php,{max:100,minChars:0,delay: 10}); -- Isaak Malik Web Developer -- Isaak Malik Web Developer
[jQuery] Re: issue with .css(display, none)
That's probably because the elements didn't previously have the 'block' value. But why don't you just simply use: script type=text/javascript $(function() { $(#btnEmail).click(function(){$(select).hide()}); $(#btnSearch).click(function(){$(select).show()}); }); /script On Wed, Oct 22, 2008 at 3:59 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, When I click on a button it should hide all my 'select' input and when I click on another button, it should make them visible again. Here's how I do it : div asp:DropDownList ID=ddSearchCriteria runat=server / input type=button id=btnSearch value=Go / input id=btnNewCutting type=button value=New / input id=btnEmail type=button value=Email / asp:DropDownList ID=ddSortBy runat=server AutoPostBack=true/asp:DropDownList /div script type=text/javascript $(document).ready(function() { $(#btnEmail).bind(click, function(e) { $(select).css(display, none); }); $(#btnSearch).bind(click, function(e) { $(select).css(display, block); }); }); /script This works, except that when I make them visible again, the layout changes ! The elements in the div are no longer next to each other. Now there is the first select, then the 3 buttons underneath, then the second select underneath the 3 buttons. Why .css(display, none) changes the layout ? -- Isaak Malik Web Developer
[jQuery] Re: [autocomplete] do search on input focus
I have no idea which autocomplete plugin you're using but does the following work for you? $(function() { $(#category).focus(function(){$(this).autocomplete(do_search.php,{max:100,minChars:0,delay:10}) }); }); On Wed, Oct 22, 2008 at 4:19 PM, blasto333 [EMAIL PROTECTED] wrote: Is there a way to force a field to do a search on focus of the input? (I basically want the user to be suggested a default set of items before typing anything. I tried this $(#category).autocomplete(do_search.php,{max:100,minChars:0,delay: 10}); -- Isaak Malik Web Developer
[jQuery] Re: jQuery Documentation in PDF
Hey Jonatan, This is EXTREMELY useful and I'm sure more think the same way, this solves the problems most are having with the documentation page. Thanks a bunch :-)! On Tue, Oct 21, 2008 at 1:45 PM, Jonatan [EMAIL PROTECTED] wrote: Hi: I made a program for create a PDF of the jQuery and jQueryUI from the xml. There's also the source code of the program (made in VS2005/C#). I hope someone find the docs in PDF usefull as me :) You can download from: Docs in pdf: http://www.puntoequis.com.ar/aktive/soft/jQueryDocumentation.7z Program to create: http://www.puntoequis.com.ar/aktive/soft/jQueryDocs-Creator.7z I will post updates in my page (in spanish) http://www.puntoequis.com.ar/npx/default.aspx?VIEWENTRY050057 Jonatan -- Isaak Malik Web Developer
[jQuery] Re: set dom id
$('.class-name').attr('id', 'newid'); On Mon, Oct 20, 2008 at 8:55 AM, sqad [EMAIL PROTECTED] wrote: I need to dynamically set the DOM 'id' attritube for elements using jQuery notation. Is that possible, if so, can I get an example please? $('element-id')[id] = newid doesn't quite work. :-) Thanks! -- Isaak Malik Web Developer
[jQuery] Re: pngFix and display:none
You just need to apply the pngfix to those elements as soon as they are shown. Nothing more, nothing less.. On Mon, Oct 20, 2008 at 5:59 PM, yabdab [EMAIL PROTECTED] wrote: I am seeing an issue in that POS browser IE6 that goes like this... pngFix() works only on images that are displayed. I have some hidden divs (display:none) that contain png files that are reveled when needed. But they are missing when I show() them. Any ideas what is happening to them? -- Isaak Malik Web Developer
[jQuery] Re: pngFix and display:none
I've had a look at the Fancy Box and it seems the pngfix seems to do its job. It would be helpful if you provided us with a demo where it's not working. Also, you might want to give this pngfix hack a try: http://jquery.khurshid.com/ifixpng.php On Mon, Oct 20, 2008 at 10:37 PM, yabdab [EMAIL PROTECTED] wrote: The problem is, they are never shown. Fancy Box takes the html from the original hidden div, then presents that to the user. I cannot figure out a way to apply the fix to this png on-the-fly??? :-( On Oct 20, 1:22 pm, Isaak Malik [EMAIL PROTECTED] wrote: You just need to apply the pngfix to those elements as soon as they are shown. Nothing more, nothing less.. On Mon, Oct 20, 2008 at 5:59 PM, yabdab [EMAIL PROTECTED] wrote: I am seeing an issue in that POS browser IE6 that goes like this... pngFix() works only on images that are displayed. I have some hidden divs (display:none) that contain png files that are reveled when needed. But they are missing when I show() them. Any ideas what is happening to them? -- Isaak Malik Web Developer -- Isaak Malik Web Developer
[jQuery] Re: $(document).ready() vs $(function () {});
Both are exactly the same, the first one is just a shorter way to write and one step further in fast development with jQuery On Tue, Oct 21, 2008 at 6:56 AM, Shawn [EMAIL PROTECTED] wrote: I am seeing more and more references to using the $(function() {}); format for the ready method. Is there a compelling reason for this? Or will $(document).ready() perform as well? Or perhaps I'm mis-understanding what the newer format is being used for? Thanks for any tips. Shawn -- Isaak Malik Web Developer
[jQuery] Re: Rounded Corners and IE 6
Personally, I find it a big waste to use JavaScript for this purpose. Why not simply create rounded corner 10x10 (or whatever) images and use them? On Fri, Oct 17, 2008 at 2:59 PM, k3liutZu [EMAIL PROTECTED] wrote: Just convince everyone that it is ok to send IE6 a squared corner look ;) On Oct 17, 12:46 am, caruso_g [EMAIL PROTECTED] wrote: Thanks Tim, tried. Unluckily, no anti-alias, no background images and a messy rendering on IE6. On 16 Ott, 23:32, TimW66 [EMAIL PROTECTED] wrote: I've played around with this one:http://malsup.com/jquery/corner/ On Oct 16, 4:19 pm, caruso_g [EMAIL PROTECTED] wrote: I searched for a plugin to round corners using jQuery. I tried any plugin I was able to find but sadly none of them was able to work on IE 6. Some of them didn't even work on std compliant browsers. I then, chosen to use Nifty Cube by Alessandro Fulciniti, but I found that shows some bugs too. ( http://skitch.com/caruso_g/2hb3/ie-rounded- bugs-01http://skitch.com/caruso_g/2hn8/ie-rounded-bugs-02) Now, it is probably due to the complexity of the page html code that uses a lot of padding and margins but I was not able to get them work. Can someone help me to understand where I am doing wrong? Herehttp://www.bonsai-studio.net/live_preview/pro-001/youcanfind a sample of the page I am trying to round corners. I essentially need some rounded corners that work. But background images (both in content then in container) and anti-alias would be a great plus. Thanks you all in advance. I really don't know what else to do or where to ask for help. -- Isaak Malik Web Developer
[jQuery] Re: jQuery Package Downloader
Very interesting, such a feature should be implemented on the main jQuery website. On Sat, Oct 11, 2008 at 8:35 PM, stuartloxton [EMAIL PROTECTED]wrote: Just to let you all know even though this is my first post it may seem a tad spammy but it's not. It just happens I didn't have an account on general discussion yet. I've just kind of alpha released a super small jquery downloader. Allowing you to choose exactly what parts of jQuery you need creating a REALLY small download. http://demos.stuartloxton.com/downloader/ I'm still making changes to it, theres a larger description, and some notes on stuff I'm going to change on my site over at: http://stuartloxton.com/creating-a-really-small-jquery/ All feedback is welcome! Thanks, Stuart -- Isaak Malik Web Developer
[jQuery] Re: jQuery Package Downloader
Alexandra, it doesn't necessarily mean that every developer uses all the jQuery features. Some might only need the core feature while some the AJAX features, this will give them the opportunity to customize their framework. On Sun, Oct 12, 2008 at 2:55 PM, Alexandre Plennevaux [EMAIL PROTECTED]wrote: maybe and then, maybe not, depending on the case : the kilobyte footprint of jquery minified is light, compared to the footprint of additional server requests for each additional file to load.at the very least, a production website should have all its javascript compiled into one single minified file. This is left to the responsibility of the web developer to decide that according to its own project, not to this gentleman's fine download application, of course. On Sun, Oct 12, 2008 at 12:25 PM, Isaak Malik [EMAIL PROTECTED] wrote: Very interesting, such a feature should be implemented on the main jQuery website. On Sat, Oct 11, 2008 at 8:35 PM, stuartloxton [EMAIL PROTECTED] wrote: Just to let you all know even though this is my first post it may seem a tad spammy but it's not. It just happens I didn't have an account on general discussion yet. I've just kind of alpha released a super small jquery downloader. Allowing you to choose exactly what parts of jQuery you need creating a REALLY small download. http://demos.stuartloxton.com/downloader/ I'm still making changes to it, theres a larger description, and some notes on stuff I'm going to change on my site over at: http://stuartloxton.com/creating-a-really-small-jquery/ All feedback is welcome! Thanks, Stuart -- Isaak Malik Web Developer -- Isaak Malik Web Developer
[jQuery] Re: How can I change all radio buttons to yes and no?
Do you understand the purpose of radio buttons? You probably need checkboxes instead and you can check them all by using the below code: $(function(){ $('input[type=checkbox]').checked = true; }); On Tue, Oct 7, 2008 at 7:36 PM, Costaud [EMAIL PROTECTED] wrote: Hello, Can you please tell me how can I have all radio buttons set to yes or no? Thanks. -- Isaak Malik Web Developer
[jQuery] Re: Tools for packing js
The jQuery developers use the YUI compressor for their releases. However, I can recommend you this one which is a bit more advanced than the YUI alternative: /packer/ http://dean.edwards.name/packer/ On Mon, Sep 22, 2008 at 4:36 PM, Manuel Meyer [EMAIL PROTECTED]wrote: Hey, few days ago I started to develop with jQuery - and I love it! I'd like to know what tool was used to pack jquery. Another thing: In the last days docs.jquery.com was down several times. Is there any mirror? Manuel -- Isaak Malik Web Developer
[jQuery] Re: New Google Browser announced
The Google browser will undoubtedly become very popular amongst the Google users and as web designers it's our job to make websites compatible with every recent browser. However, as Google mentions themselves, if your website is compatible with Safari 3 it should autmatically also be compatible with the current Chrome version. On Thu, Sep 4, 2008 at 12:21 AM, Aaron [EMAIL PROTECTED] wrote: I wouldn't use this browser myself since their is no need since we already goti IE7 and firefox as a popular web browser. Would this give us more headaches as a web designer??? I mean we know that IE was trouble it different ways. If we have google coming into the game and they get popular we will now have to worry about our websites showing properly with each popular web browser. I would like to know if they have any assistance that would help the display resolution program we have when making websites. I hope future web browsers would do this for us that we just need to make one website layout and the browser would resize our website to fit the clients resolution. -- Isaak Malik Web Developer
[jQuery] Re: New Plugin - Agile Carousel - Looking For FeedBack
Very nice plugin, everything seems to work fine for me though. I tested with Opera 9.51, Firefox 3.0.1 and IE 7 on Windows On Wed, Sep 3, 2008 at 6:47 PM, MorningZ [EMAIL PROTECTED] wrote: Looks like it still needs some work, as looking at the first demo page http://www.5bosses.com/examples/agile_carousel//jqueryui_example/slideshow.html going anywhere other than the first image reverts to the first image (Windows 2003 with FF3 is what i am browsing it with) Using IE7 for the same demo throws the error next_slide_id is undefined on line 15 I like the idea though, kinda like a VCR controlled slideshow -- Isaak Malik Web Developer
[jQuery] Re: Context menus in Opera?
The problem is in the Opera browser itself, the Opera developers discourage the use of context menus and thing that the default one should always be available for best user experience. Even when enabling the Accept right-click.. feature in the Opera browser will still not make it work. However, you can make a context menu appear in the Opera browser if that JavaScript option is enabled but the default Opera menu will always override it. On Wed, Sep 3, 2008 at 12:14 PM, [EMAIL PROTECTED] wrote: Hi, Does anyone know of a context menu or right-click override (jquery or otherwise) that works in Opera? I've found that the contextmenu plugin (http://www.trendskitchens.co.nz/jquery/contextmenu/) works great in IE and Firefox (though has problems being assigned to hyperlinks), but none appear to work in Opera. Cheers, Sean -- Isaak Malik Web Developer
[jQuery] Re: Calling PHP Functions from jQuery?
Also, file management can be improved drastically by sorting everything in folders and using namespacing. I put the AJAX API's in a separate file and if it's getting to big I create a separate API file for each functionality, for example: API/API.feedback.php API/API.updater.php etc. On Tue, Jul 15, 2008 at 8:55 PM, Andrew [EMAIL PROTECTED] wrote: The really proper way to do this is with XML-RPC or JSON-RPC, which is probably what you really want as you're already using JSON. RPC means remote procedure call. The basics are pretty well illustrated on the wikipedia page here: http://en.wikipedia.org/wiki/JSON-RPC There are a variety of good libraries for doing this in PHP, as well. On Jul 14, 7:11 am, Yavuz Bogazci [EMAIL PROTECTED] wrote: Hi, is it possible to call php functions from jquery? I knew how to call a .php page from jquery with $.post and to echo output or return a JSON Object. But my application growth and there is an increase in single php pages. This is very confusing and the filemanagement is getting complicated. How are you solving this problem? Is a good tutorial or info out there? I have searched google and couldnt find a useful answer. thank a lot yavuz -- Isaak Malik Web Developer
[jQuery] Re: ClientSide Cookie or ServerSide Cookie
If the settings are manipulated via client-side code there is no need for cookies created by the server-side and this would actually be a bad thing to do unless really needed (e.g. you need the server to know the change immediately). Here is the cookie plugin: http://www.stilbuero.de/2006/09/17/cookie-plugin-for-jquery/ There are many cases where creating cookies from the client-side is a better solution to the server-side alternative but this really depends on your code and how you want to use it. On Tue, Jul 15, 2008 at 10:59 PM, [EMAIL PROTECTED] wrote: Dear Folks , I have to save some of the settings of my Users with the cookies , I've done this before with PHP Cookie Header .. right now I was Wondering If I could that with jQuery instead of PHP ... which one is Practical ... is there any Example for the jQUery cookie ... thanks Pedram -- Isaak Malik Web Developer
[jQuery] Re: iFixPng Improved
I should really try this out, I had issues with IE not applying the PNG fix on images that were hidden so I had to apply the fix to those elements every time I created an effect or any kind of animation. Many thanks On Tue, Jun 24, 2008 at 7:19 PM, Yereth [EMAIL PROTECTED] wrote: After using my own flavour of iFixPng for a long time now, I decided it was time to publish it, so the community can make use of it as well. Although the performance will be a bit slower, it has 2 important improvements to make the use of transparent PNGs more painless in IE6: * The image or element with a background image doesn't have to be visible for the fix to work. * background-position in all possible formats is now supported, including an IE absolute position fix. (bottom: -1px || bottom: 0px) If you see any improvements in functionality or performance, please let me know. The plugin can be found here: http://plugins.jquery.com/project/iFixPng2 Cheers! Yereth -- Isaak Malik Web Developer
[jQuery] Re: Resizing.
The best way of adjusting your page width is by pure CSS, you can use the min-width and max-width properties for this and width for IE = 6. As for images, just create thumbnails that link to the original size. On Sat, Jun 21, 2008 at 6:41 AM, Aaron [EMAIL PROTECTED] wrote: Hi how can I resize every element in my website base on the client's display settings?? should I use if and then statments to check the clients browser settings and use a energy algorithm to check the energy levels in the image where it would be copied to extend the image and deleted to reduce the size of the image?? What do you guys do on displaying your website that would fit every display settings?? -- Isaak Malik Web Developer
[jQuery] Re: JQuery variables
The use of jQuery's $(#createNewAccount). is cross-browser so you shouldn't worry about IE. On Fri, Jun 20, 2008 at 11:42 AM, Neilz [EMAIL PROTECTED] wrote: Thanks for this response. Unfortunately, I am left with the problem that Internet Explorer doesn't seem to like the syntax $(#createNewAccount). It works fine in firefox - any suggestions please? On Jun 19, 10:33 pm, Hamish Campbell [EMAIL PROTECTED] wrote: Hi there. Best (or fastest) way to find out if something is in the DOM is to check: if ( $(#createNewAccount).length ) If .length is greater than 0 it will exist. So your script can read: $(document).ready(function() { if ( $('#createNewAccount:checked').length || !$ ('#createNewAccount').length ){ $('div.showHideAccountDetails').show(); }else{ jQuery('div.showHideAccountDetails').hide(); } }); Ie, if it finds ( '#createNewAccount' that is checked ) OR ( it can't find any '#createNewAccount' ) { show the div } otherwise { hide it } Hope this helps! Hamish On Jun 20, 2:10 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all. I've done some searching, but being new to this am struggling to find what I'm after even though I'm sure the answer is simple. I'm in at the deep end working with a webapp that uses JQuery, I presume with various plugins for form validation. I have some code as follows: jQuery(document).ready(function() { if ($(#createNewAccount).is(:checked)){ jQuery('div.showHideAccountDetails').show(); }else{ jQuery('div.showHideAccountDetails').hide(); } } But in some situations the variable 'createNewAccount' does not exist, as the form element is not shown on the page. How can I test the variable first? I'm thinking of something along the lines of: if ( isDefined ( #createNewAccount) ) { // continue... } Many thanks for any help! -- Isaak Malik Web Developer
[jQuery] Re: Get some text and replace it
You could do it with: $('span.email').html().replace('[monkeytail]', '@'); And you probably also need: $('span.email').html().replace('[dot]', '.'); On Thu, Jun 19, 2008 at 12:26 AM, IschaGast [EMAIL PROTECTED] wrote: I have this: span class=emailcontact [monkeytail] yabadabadoo [dot] .com/span Now I want to replace the text [monkeytail] with some other text. Is there a simple solution that I can get the monkeytail text and replace it with something else? -- Isaak Malik Web Developer
[jQuery] Re: jQuery best practices
Did you already check out the documentation section? It's quite comprehensive. On Wed, Jun 18, 2008 at 4:28 PM, Estevão Lucas [EMAIL PROTECTED] wrote: Hi, I'd like to know if is there a document, article, or anything that a can show for the JavaScripts developers here in the company talking about best practices; Best regards -- Isaak Malik Web Developer
[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown
I've just tested the plugin demo available at: http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm in Opera 9.27 and 9.5 and it's completely compatible, which is great news! I can also confirm the following bug in Firefox 3 on Windows: On Wed, Jun 18, 2008 at 11:18 PM, Adam [EMAIL PROTECTED] wrote: Great plugin, Dan. Quick bug report: if I go down three levels (by using the first option) and the mouse off of the third out to the left, the 3rd level stays while I attempt to navigate to another option. I'm in FF3 on a Mac. Adam On Jun 18, 11:31 am, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Awhile back I blogged about a plug-in that my company was planning on releasing called mcDropdown (multicolumn dropdown.) Well, the plug-in was officially released today: http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm If you like the plug-in, feel free to digg it: http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in You can jump directly to the example here: http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example In a nutshell, this plug-in creates a tree-like form control. We need a UI control that would allow users to select an option from a large tree of data and this was the end result. I think the overall effect is pretty impressive and I've never seen a UI control like it (especially considering it supports keyboard entry.) -Dan And one more remark: when I click in the text area of the select element the drop down list appears but I'm not able to choose anything, is this behavior expected? -- Isaak Malik Web Developer
[jQuery] Re: firefox 3 RC1 : tremendous slow down
I'm having the same problems with Firefox 3, the animations get stuck while it wansn't happening for me in Firefox 2. On Thu, Jun 19, 2008 at 1:48 PM, Aldo [EMAIL PROTECTED] wrote: Hi I'm experiencing the same slow dows in animations and fades with FF3 Final as well. Someone any idea? Thanks Aldo On 21 Mai, 21:52, Alexandre Plennevaux [EMAIL PROTECTED] wrote: hi friends, i just checked my jquery application using Firefox 3 Release Candidate 1 and whatever animations that are smooth and fluid in FF2 are staggering in FF3 RC1. Does anybody have the same issue, or knows why? the test is here:http://m2.lab-au.com/ (choose 'projects'). thanks for your feedback, Alexandre -- Alexandre Plennevaux LAb[au] http://www.lab-au.com -- Isaak Malik Web Developer
[jQuery] Re: prevent more than one submit in ajaxsubmit
Well, I don't think the BlockUI plugin would be the best solution as it's not very user-friendly and personally I would find it very annoying if a whole web page is blocked. I rather suggest you just disable the submit button, which PayPal also does with the last pay now button to prevent multiple payments. You can disable the submit handler by using: $('input[type=submit]').attr('disabled', true); or create a custom effect if it's something else that submits the form, e.g. an image with an onclick event. $('div#container').html('Loading, please wait...'); If the choice where up to me I'd go for the second one. On Wed, Jun 18, 2008 at 7:09 PM, eldersoto [EMAIL PROTECTED] wrote: You can Block the page: http://www.malsup.com/jquery/block/#page Saludos. Don Quijote de Nicaragua. Elder Soto quot;Sebastián V. Würtzquot; wrote: Guys I need some litle help. var v = jQuery(#send_form).validate({ . .. }, submitHandler: function(form) { jQuery(form).ajaxSubmit({ dataType: json, success: process_result }); } }); how i can prevent or hide or disable the submit button or it behaviour when the first submit happend? -- View this message in context: http://www.nabble.com/prevent-more-than-one-submit-in-ajaxsubmit-tp17985286s27240p17987588.html Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- Isaak Malik Web Developer
[jQuery] Re: Can't post in this forum
They are, I can see two or more subjects from you without replies. Remember that the sender does not receive a copy from his message. On Thu, Jun 19, 2008 at 2:37 AM, shapper [EMAIL PROTECTED] wrote: Hello, Most of my posts in this forum are not published. Why? Thanks, Miguel -- Isaak Malik Web Developer
[jQuery] Re: What is the best way to send data betwen JS - PHP
There isn't really a best method, but if you're using GET then you should always convert your special characters to URI safe characters using: encodeURIComponent(). For sensitive data it's better to use POST. On Thu, Jun 19, 2008 at 12:51 PM, Aaron [EMAIL PROTECTED] wrote: Hi, I use POST for send all data to a PHP scrip, for ex: data:script.php?id=+id+text=+text, but sometimes text contains \ or another istrange characters and not like to be correct send data in this way. ¿what is the best way? PHP - JS I use json, but for JS-PHP? -- Asterisk ext: 13502 Asterisk server: null-lab.homelinux.org GPG Key ID 0x9ED66FA7 Key Fingerprint: 3674 956F E2DF DC3B 694C 5281 6D57 5656 9ED6 6FA7 -- Isaak Malik Web Developer
[jQuery] Re: cluetip and FF3
This might be caused by a slow computer, or see if you can run the demo of cluetip smoothly. If so then you should modify your own code. On Thu, Jun 19, 2008 at 5:26 PM, Alexandre Plennevaux [EMAIL PROTECTED] wrote: hello, i'm having issues implementing a simple cluetip in Firefox 3, it blocks the browser with a script is running slowly message. i use the default (rel=url) ajax call. The error message points to line 503 anyone has the issue ? thanks, Alex Alexandre Plennevaux -- Isaak Malik Web Developer
[jQuery] Re: Modify ID attribute
It would be much easier if you just create a sub class with the CSS style of #header-yellow and add it to your DIV element. And to be honest I doubt that you can change the ID attribute Like this: $(#header).addClass('span-24-2'); On Thu, Jun 19, 2008 at 6:34 PM, Daniel Amselem [EMAIL PROTECTED] wrote: Hi!, I'm new with jQuery, and I tried to modify the id attribute of a div without success. I need to do that because I want to change some CSS properties of that div, and I already have the code. So, how can I change something like this: div id=header-blue class=span-24 into this: div id=header-yellow class=span-24 ? I've already tried with $(#header-blue).attr(id,header-yellow); without success. Any ideas? Thanks in advance. -- View this message in context: http://www.nabble.com/Modify-ID-attribute-tp18010518s27240p18010518.html Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- Isaak Malik Web Developer
[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown
Great that you fixed it so soon Dan, I also hope that you can modify the keyboard mode a bit as it could confuse the user and this can't be done with just CSS. Perhaps you could let the autocomplete mode trigger after a certain amount of characters have been entered or perhaps start with an empty box (not recommended)? On Thu, Jun 19, 2008 at 8:38 PM, Stan Lemon [EMAIL PROTECTED] wrote: Very nice plugin! I second Jorn's thought on the usage of both modes. I found myself slightly confused at first when I went into keyboard mode and couldn't click on anything. Seems to be an issue too when you click on the arrow, the menu is expanded and then you proceed to click on the white area that would normally trigger the keyboard mode. I know Safari wasn't in your list of supported browsers, but I did notice that the keyboard mode didn't seem to work correctly in Safari 3.1 on OS X. Safari has a fairly decent user base, especially amongst the jQuery crowd and I could see this as advantageous to you to get the plugin more circulated. All in all, excellent plugin - I will likely use it on a project of my own. Pax, - Stan On Jun 19, 1:59 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hey Dan, great plugin, the interface is both innovative and familiar, and works well - as long as I use either mouse or keyboard, but not both. The inconsistent behaviour was already mentioned by so many others in this thread, I hope it gives you an idea how to merge both controls into one. If that inconsistency could be removed, the widget would be even greater. Regards Jörn On Thu, Jun 19, 2008 at 7:48 PM, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Graeme, This plugin looks really cool! I found a small issue: If you load the page for the first time (in ff3) and just click on the blank area in the dropdown (instead of the down arrow) there is no animation when it expands down and the hierarchy arrows don't work when you use the mouse. If you then click the down arrow and go down a level or two in the hierarchy and don't select something and go back to clicking on the blank area of the dropdown, the formatting gets messed up (large vertical spacing of the Entertainment entry in the demo). 1) If you click inside the text box, you go into keyboard entry mode--so you're actually seeing the autocomplete box, not the dropdown menu. You can change the styles in the CSS to make this look however you want (so that you can make it look visual different.) Currently, when you're in keyboard entry mode you can not use the mouse to select entries. You can disable keyboard support by using a div/ element instead of an input/ element and then clicking inside would always cause the same menu as dropdown arrow. 2) The second issue (with the large vertical spacing) seems to be related to the Chili plug-in (which is used for syntax highlighting.) The problem seems to be random and only occurs when Firebug reports Chili errors (at least that's the only time I've seen the behavior.) I've never seen the behavior on a page that doesn't have the Chili plug-in. -Dan Many thanks -- Isaak Malik Web Developer
[jQuery] Re: JQuery variables
#createNewAccount does not stand for a variable but for an ID attribute. To check if the element exist you can check if it contains a value, if it does by default or check if it contains any HTML inside the tags. On Thu, Jun 19, 2008 at 4:10 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all. I've done some searching, but being new to this am struggling to find what I'm after even though I'm sure the answer is simple. I'm in at the deep end working with a webapp that uses JQuery, I presume with various plugins for form validation. I have some code as follows: jQuery(document).ready(function() { if ($(#createNewAccount).is(:checked)){ jQuery('div.showHideAccountDetails').show(); }else{ jQuery('div.showHideAccountDetails').hide(); } } But in some situations the variable 'createNewAccount' does not exist, as the form element is not shown on the page. How can I test the variable first? I'm thinking of something along the lines of: if ( isDefined ( #createNewAccount) ) { // continue... } Many thanks for any help! -- Isaak Malik Web Developer
[jQuery] Re: Get some text and replace it
Oh sorry, the code I gave you just modifies the loaded HTML and doesn't write it back so this should work for you: // This is to prevent two searches var email = $('span.email'); email.html( email.html().replace('[monkeytail]', '@') ); Enjoy On Thu, Jun 19, 2008 at 8:33 PM, IschaGast [EMAIL PROTECTED] wrote: $('span.email').html().replace('[monkeytail]', '@'); I was also thinking it should be something like this, but this doesn't work... This should be possible some way I hope. And you probably also need: $('span.email').html().replace('[dot]', '.'); On Thu, Jun 19, 2008 at 12:26 AM, IschaGast [EMAIL PROTECTED] wrote: I have this: span class=emailcontact [monkeytail] yabadabadoo [dot] .com/span Now I want to replace the text [monkeytail] with some other text. Is there a simple solution that I can get the monkeytail text and replace it with something else? -- Isaak Malik Web Developer -- Isaak Malik Web Developer
[jQuery] Re: firefox 3 RC1 : tremendous slow down
Firefox 3 the stable version is already out and that's the one I'm commenting about, however I'm only using a 1.15Ghz AMD Athlon so it's possible that Firefox 3 is optimized for faster systems. Too bad for me.. On Thu, Jun 19, 2008 at 2:25 PM, F1LT3R [EMAIL PROTECTED] wrote: Remember FF3 is RC1, so their code is probably bloated with debug routines. I think when the final release is available things will run much faster. ( I hope! ) On Jun 19, 12:48 pm, Aldo [EMAIL PROTECTED] wrote: Hi I'm experiencing the same slow dows in animations and fades with FF3 Final as well. Someone any idea? Thanks Aldo On 21 Mai, 21:52, Alexandre Plennevaux [EMAIL PROTECTED] wrote: hi friends, i just checked my jquery application using Firefox 3 Release Candidate 1 and whatever animations that are smooth and fluid in FF2 are staggering in FF3 RC1. Does anybody have the same issue, or knows why? the test is here:http://m2.lab-au.com/ (choose 'projects'). thanks for your feedback, Alexandre -- Alexandre Plennevaux LAb[au] http://www.lab-au.com -- Isaak Malik Web Developer
[jQuery] Re: jQuery cannot select !-- COMMENT -- element?
I noticed that you sent several messages about this so I'm going to reply to you. First, you're not able to select comment tags because it's totally useless, however to get what you seek is simply by adding display: none; as CSS style to the elements you want to hide and then use $('img#someID').show(). On Thu, Jun 19, 2008 at 2:53 PM, F1LT3R [EMAIL PROTECTED] wrote: Am I right in thinking jQuery can not selected the ! COMMENT -- element? -- Isaak Malik Web Developer
[jQuery] Re: onRighClick method?
The reason that they don't implement this directly into the jQuery library is probably because of the lack of support by the Opera browser. Also the contextmenu plugin may be a little old but it still works On Wed, Jun 18, 2008 at 1:33 PM, Andy Matthews [EMAIL PROTECTED] wrote: Is there now, or are there any plans to have, an onRightClick method in jQuery? I found a ContextMenu plugin but it was last updated almost a year ago. Alternately, are there any other plugins out there that would offer ContextMenu support for right clicking? -- Isaak Malik Web Developer
[jQuery] Re: onRighClick method?
Actually, it's not that Opera doesn't support it as it has support for right click events but is disabled by default and context menus won't work as good as on firefox and yes for once also IE because just Opera discourages the use of context menus. Dangerous quote by Andy Matthews: Besides...who really cares about Opera? That should rather be: Who doesn't care about Opera, Opera is an amazing browser with great features, web standard support is almost equal and in some aspects even better than Firefox. I use Opera next to Firefox for daily stuff and sometimes even more so I cannot agree with your saying...! Good luck with your custom context menu, and don't let Opera overlap it with the default context menu ;). On Wed, Jun 18, 2008 at 3:11 PM, Andy Matthews [EMAIL PROTECTED] wrote: Ahh... Opera doesn't support it? Interesting. I'll take a look at the ContextMenu plugin, but it's a shame that jQuery doesn't offer a rightclick method. Besides...who really cares about Opera? :) -- *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Isaak Malik *Sent:* Wednesday, June 18, 2008 6:38 AM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] Re: onRighClick method? The reason that they don't implement this directly into the jQuery library is probably because of the lack of support by the Opera browser. Also the contextmenu plugin may be a little old but it still works On Wed, Jun 18, 2008 at 1:33 PM, Andy Matthews [EMAIL PROTECTED] wrote: Is there now, or are there any plans to have, an onRightClick method in jQuery? I found a ContextMenu plugin but it was last updated almost a year ago. Alternately, are there any other plugins out there that would offer ContextMenu support for right clicking? -- Isaak Malik Web Developer -- Isaak Malik Web Developer
[jQuery] Re: onRighClick method?
That's the one I last tested in Opera 9.5 because I was also looking for such a plugin and unfortunately it's not even working. On Wed, Jun 18, 2008 at 5:10 PM, Aaron Heimlich [EMAIL PROTECTED] wrote: The ContextMenu plugin you're referring to ( http://www.trendskitchens.co.nz/jquery/contextmenu/) works by listening for the contextmenu event, e.g. $(this).bind('contextmenu', function(e) { // do cool stuff... }); We use it pretty heavily (although with some mods to allow for activation on left-click as well) and I can't think of any issues it has with Opera of the top of my head. On Wed, Jun 18, 2008 at 8:11 AM, Andy Matthews [EMAIL PROTECTED] wrote: Ahh... Opera doesn't support it? Interesting. I'll take a look at the ContextMenu plugin, but it's a shame that jQuery doesn't offer a rightclick method. Besides...who really cares about Opera? :) -- *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Isaak Malik *Sent:* Wednesday, June 18, 2008 6:38 AM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] Re: onRighClick method? The reason that they don't implement this directly into the jQuery library is probably because of the lack of support by the Opera browser. Also the contextmenu plugin may be a little old but it still works On Wed, Jun 18, 2008 at 1:33 PM, Andy Matthews [EMAIL PROTECTED] wrote: Is there now, or are there any plans to have, an onRightClick method in jQuery? I found a ContextMenu plugin but it was last updated almost a year ago. Alternately, are there any other plugins out there that would offer ContextMenu support for right clicking? -- Isaak Malik Web Developer -- Aaron Heimlich Web Developer [EMAIL PROTECTED] -- Isaak Malik Web Developer
[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown
This plugin looks very interesting, how is the browser support? On Wed, Jun 18, 2008 at 5:31 PM, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Awhile back I blogged about a plug-in that my company was planning on releasing called mcDropdown (multicolumn dropdown.) Well, the plug-in was officially released today: http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm If you like the plug-in, feel free to digg it: http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in You can jump directly to the example here: http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example In a nutshell, this plug-in creates a tree-like form control. We need a UI control that would allow users to select an option from a large tree of data and this was the end result. I think the overall effect is pretty impressive and I've never seen a UI control like it (especially considering it supports keyboard entry.) -Dan -- Isaak Malik Web Developer
[jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner problem)
The IE 6 flickering bug might be solved with this (please in the HEAD): !--[if lt IE 7]script type='text/javascript' try {document.execCommand('BackgroundImageCache', false, true);} catch(e) {} /script![endif]-- If not then your only other option is hope that your visitors will have Check for new version of this page set to Automatically. On Wed, Jun 18, 2008 at 4:41 AM, Mike Alsup [EMAIL PROTECTED] wrote: Ok, will manage to squeeze the Microsoft Bug What about the hover issue? I don't see any hover issue. What do you see? -- Isaak Malik Web Developer
[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown
I hope that it also works in Opera, thank you for the information. On Wed, Jun 18, 2008 at 7:34 PM, Dan G. Switzer, II [EMAIL PROTECTED] wrote: It's been tested pretty extensively in Firefox 2 3 and IE 6 7 (because these are the only browsers used by our userbase.) -Dan -- *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Isaak Malik *Sent:* Wednesday, June 18, 2008 11:46 AM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown This plugin looks very interesting, how is the browser support? On Wed, Jun 18, 2008 at 5:31 PM, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Awhile back I blogged about a plug-in that my company was planning on releasing called mcDropdown (multicolumn dropdown.) Well, the plug-in was officially released today: http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm If you like the plug-in, feel free to digg it: http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in You can jump directly to the example here: http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example In a nutshell, this plug-in creates a tree-like form control. We need a UI control that would allow users to select an option from a large tree of data and this was the end result. I think the overall effect is pretty impressive and I've never seen a UI control like it (especially considering it supports keyboard entry.) -Dan -- Isaak Malik Web Developer -- Isaak Malik Web Developer
[jQuery] Re: jQuery tabs and cookies
It was just that I misplaced the cookie option, I had put it in the fx part while it should have been outside of it. Thank you for your answer. On 6/16/08, Klaus Hartl [EMAIL PROTECTED] wrote: That looks correct. Did you not forget to include the cookie plugin? --Klaus On 15 Jun., 18:34, Isaak Malik [EMAIL PROTECTED] wrote: Oups, it was a mistake at my side, corrected code: $(function() { $('#tabCont ul').tabs({fx: {opacity: 'toggle', duration: 500}, cookie: {expires: 7, path: '/'}}); }); -- Isaak Malik Web Developer -- Isaak Malik Web Developer
[jQuery] Re: Reversing slideDown/slideUp behavior
You could simply use the slideToggle() method, so it would be something like this: $('#myElement').slideToggle('fast'); And to check if an element is hidden you can use this: if ( $('#myElement').is(':hidden') ) alert('It is hidden!'); On 6/15/08, fallingandlaughing [EMAIL PROTECTED] wrote: Hello, I have what seems like a pretty basic question about the slideDown/ slideUp effects, but I'm new-ish to jquery and haven't been able to find a way to do what I'm after. Is there any way to reverse the default slideDown/slideUp behavior--so that, when the content is revealed, it slides upward, and when it is hidden, it slides downward? I going for something kind of like the pop-up bubble effect achieved in this tutorial: http://jqueryfordesigners.com/coda-popup-bubbles/ But instead of the opacity transition and the upward puff, I'd like the panel to just smoothly slide upward. Thanks in advance for any suggestions or advice! Erik -- Isaak Malik Web Developer
[jQuery] Re: Is it possible for jQuery define version of browser, for example IE 7.0?
Checking the version is more reliable by using object checking than the useragent string checking, or you can use both to increase the reliabilty. IE 7: if ( document.all !window.opera window.XMLHttpRequest $.browser.msie ) var isIE7 = true; or in HTML which is much better: !––[if IE 7] script type=text/javascriptvar isIE7 = true;/script ![endif]–– IE6: if ( document.all !window.opera !window.XMLHttpRequest $.browser.msie ) var isIE6 = true; or !––[if IE 6] script type=text/javascriptvar isIE6 = true;/script ![endif]–– It is ok to leave out the $.browser.msie. I hope this willbe of any use. On 6/16/08, RobG [EMAIL PROTECTED] wrote: On Jun 16, 4:38 pm, mtest [EMAIL PROTECTED] wrote: I know that jQuery can define browser: $.browser.msie $.browser.safari $.browser.opera $.browser.mozilla but can I define version??? IE 7.0 - ? IE 6.0 - ? IE 5.0 - ? Browser detection is almost always based on the user agent string. It is known that UAs do not honestly report the vendor, version or platform so any strategy based on that is flawed. There are thousands (literally) of UA strings, yet they are not guaranteed to be unique for any particular browser or version. Do a search for user agent string databases, there are quite a few of them. -- Rob -- Isaak Malik Web Developer
[jQuery] Re: [validate] Use Regex
Try this out: if ( !/[a-z0-9\-_]/i.test( $([EMAIL PROTECTED]'firstname']).val() ) ) alert('Wrong!'); On 6/16/08, shapper [EMAIL PROTECTED] wrote: Hello, How can I check the value inserted in an Input using a RegEx expression? Thanks, Miguel -- Isaak Malik Web Developer
[jQuery] jQuery tabs and cookies
Dear list, I am trying to remember the last selected tab using cookies but it doesn't seem to work no matter what I do. My code is the following: $(function() { $('#tabCont ul').tabs({fx: {opacity: 'toggle', duration: 500, cookie: {expires: 7, path: '/'}}}); }); Should this be enough to gain the wanted result or do I need to add custom code which handles the automated selecting on page reload? Many thanks -- Isaak Malik Web Developer
[jQuery] Re: jQuery tabs and cookies
Oups, it was a mistake at my side, corrected code: $(function() { $('#tabCont ul').tabs({fx: {opacity: 'toggle', duration: 500}, cookie: {expires: 7, path: '/'}}); }); -- Isaak Malik Web Developer
[jQuery] Re: jQuery.each() or element event triggers?
That's even better, I'm already using it that way and it didn't come to my mind to use it as alternative for the each() method. On Thu, Jun 12, 2008 at 12:55 AM, Michael Geary [EMAIL PROTECTED] wrote: But it's so easy to use event delegation that you may as well just do it - then you don't sacrifice any performance, no matter how many elements you have. For example: div id=outer div class=clicker id=oneone/div div class=clicker id=twotwo/div div class=clicker id=threethree/div /div $(function() { $('#outer').click( function( event ) { var target = event.target; if( $(target).is('div.clicker') ) { alert( 'You clicked me: ' + target.id + '!' ); } }); }); Isaak, FYI, .each() is nothing fancy - it's simply an ordinary for loop that calls your callback function in each iteration. But with event delegation you don't even have to use it: a single event handler does any number of elements. -Mike -- *From:* Josh Nathanson You are sacrificing a small bit of performance for a world of easier code development and maintenance. In nearly all cases it's a worthwhile trade. If you had 1000 or more divs you'd probably not want to use each() to bind the handlers, but for any reasonably small number of elements, the performance hit is ok. Plus, binding speed has been improved in jQuery 1.2.6. -- Josh - Original Message - *From:* Isaak Malik [EMAIL PROTECTED] *To:* jquery-en@googlegroups.com *Sent:* Wednesday, June 11, 2008 1:56 PM *Subject:* [jQuery] jQuery.each() or element event triggers? Dear list, I'm not really into the code of the jQuery core so I'm not sure of how jQuery.each() works, but I'm wondering: since jQuery.each() loops through every element that matches the given selector is my logics right that is it better performance wise to use static element event trigger instead of using the each() method on all the elements? An example for the simple-minded: $('div').each(function(){$(this).click(function(){alert('You clicked me: ' + this.id + '!')})}) or div id='blabla1' onclick=alert('You clicked me: ' + this.id + '!')/div div id='blabla2' onclick=alert('You clicked me: ' + this.id + '!')/div div id='blabla3' onclick=alert('You clicked me: ' + this.id + '!')/div ? In most cases it does take more characters for the same functionality but what are the differences in performance? Kind regards, -- Isaak Malik Web Developer Many thanks -- Isaak Malik Web Developer
[jQuery] Re: European Mirrors
Everything is loading just fine here: Belgium, 600kbps connection. Are you sure it's not cause locally? On Thu, Jun 12, 2008 at 12:07 PM, Tim Swann [EMAIL PROTECTED] wrote: I'm based in Ireland and I find that accessing the docs is very slow. Are there any European based mirrors for the documentation? If not are you open to the idea of partnering with European Based hosting companies for mirroring the docs? -- Isaak Malik Web Developer
[jQuery] Re: European Mirrors
If you're still having problems try out: www.coralcdn.org. Information on how to use it can be found at their Wiki section. On Thu, Jun 12, 2008 at 4:48 PM, tlob [EMAIL PROTECTED] wrote: docs are realy slow. Im based in switzerland. On Jun 12, 12:07 pm, Tim Swann [EMAIL PROTECTED] wrote: I'm based in Ireland and I find that accessing the docs is very slow. Are there any European based mirrors for the documentation? If not are you open to the idea of partnering with European Based hosting companies for mirroring the docs? -- Isaak Malik Web Developer
[jQuery] Re: Memory Leak?
Firefox 3 was rewritten and should no longer have memory leaks. That should highly probably be: Firefox 3 was rewritten and most memory leaks are fixed. Even Firefox 3 can use up a lot of memory after a while of browsing. On Thu, Jun 12, 2008 at 4:51 PM, NichlasBrodegaardLarsson [EMAIL PROTECTED] wrote: Firefox 2 has major problems with memory leaks, when many pages has been loaded. How about try running your monitor script in another browser ? Firefox 3 was rewritten and should no longer have memory leaks. It is still in beta stage though... On Jun 12, 4:01 pm, Howie [EMAIL PROTECTED] wrote: Hi, I don't really know if this is a jQuery issue or a Firefox issue... I have an internal status page that polls a monitoring system every few seconds to fetch a JSON[0] document with details of current network status. I use that to populate a ul, having first call .empty() on it. Overnight, my FF process has grown to 1.5GB! Is there something I need to do or avoid doing to stop this? The page is reloaded (using meta refresh) every 5 minutes, so whatever it is survives across page reloads. Can anyone recommend any article or guidance to avoid this type of problem? Googling seems to only turn up things for browser end-users. Thanks in advance, Howie [0] actually, not quite, thanks to the clunky scripting language in the monitoring system, so I tweak it afterwards. -- Isaak Malik Web Developer
[jQuery] Re: Best practice to get form field values
My favorite way to get form input values and validate them is by using the each() method. Here's an example: $(function() { $('#myForm input[type=text]').each(function() { switch (this.name) { case 'first_name': // validate the first name input field here break; case 'email': // Something with email here break; } }); } If this isn't sufficient information I can make a more advanced example for you. On Thu, Jun 12, 2008 at 9:16 AM, mar10 [EMAIL PROTECTED] wrote: Hi, what would you consider the 'best practice' to access form input values? Having an input field input value=New topic class=inputEdit name=title type=text I could use $('[EMAIL PROTECTED]').val() or $('[EMAIL PROTECTED]title]').val() or $('[name=title]').val() or $('[name=title]').val() ( I also once observed, that the right side of the '=' was evaluated, so it was possible to write var x = 'title'; $('[name=x]') but i could not reproduce it today, so maybe I'm wrong. ) Of course assigning an additional id input value=New topic class=inputEdit name=title type=text id=title would allow for $('#title') but that appears to be somewhat redundant to me. In short I am looking for the most simple built-in syntax to access form values, like prototype's $F(). This means that querying option lists should return a list of selected values (or texts), and text areas should work also. Thanks Martin -- Isaak Malik Web Developer
[jQuery] Re: jQuery help
What you need is AJAX and jQuery can perfectly help you with that, however asking someone to sit down with you for an hour and guiding you through every step is a bad way to build experience. What you should do is browse the very extensive jQuery documentation section and learn the syntax step by step. You could also Google: AJAX On Thu, Jun 12, 2008 at 8:04 PM, Chasery [EMAIL PROTECTED] wrote: I am having some serious problems over some easy dynamic content. I am looking for some one that would be willing to sit down for an hour or so on an instant messenger and just help me piece together my little project. All I am needing to do is without a page refresh take user input data through a few text boxes and display that information in a div next to it. After that, another div needs to be created to display a few options. aim - Billhillydude2k msn - [EMAIL PROTECTED] -- Isaak Malik Web Developer
[jQuery] jQuery.each() or element event triggers?
Dear list, I'm not really into the code of the jQuery core so I'm not sure of how jQuery.each() works, but I'm wondering: since jQuery.each() loops through every element that matches the given selector is my logics right that is it better performance wise to use static element event trigger instead of using the each() method on all the elements? An example for the simple-minded: $('div').each(function(){$(this).click(function(){alert('You clicked me: ' + this.id + '!')})}) or div id='blabla1' onclick=alert('You clicked me: ' + this.id + '!')/div div id='blabla2' onclick=alert('You clicked me: ' + this.id + '!')/div div id='blabla3' onclick=alert('You clicked me: ' + this.id + '!')/div ? In most cases it does take more characters for the same functionality but what are the differences in performance? Kind regards, -- Isaak Malik Web Developer
[jQuery] Re: jQuery.each() or element event triggers?
Well, a (web) developer should give user experience priority to those two, but as you mentioned in my case, which is about a smaller group of elements, it probably won't make any difference. However, I'm grateful of the hints, including the improvement in version 1.2.6 which I had no idea of, since this might be of use in much larger projects of mine. On Thu, Jun 12, 2008 at 12:41 AM, Josh Nathanson [EMAIL PROTECTED] wrote: You are sacrificing a small bit of performance for a world of easier code development and maintenance. In nearly all cases it's a worthwhile trade. If you had 1000 or more divs you'd probably not want to use each() to bind the handlers, but for any reasonably small number of elements, the performance hit is ok. Plus, binding speed has been improved in jQuery 1.2.6. -- Josh - Original Message - *From:* Isaak Malik [EMAIL PROTECTED] *To:* jquery-en@googlegroups.com *Sent:* Wednesday, June 11, 2008 1:56 PM *Subject:* [jQuery] jQuery.each() or element event triggers? Dear list, I'm not really into the code of the jQuery core so I'm not sure of how jQuery.each() works, but I'm wondering: since jQuery.each() loops through every element that matches the given selector is my logics right that is it better performance wise to use static element event trigger instead of using the each() method on all the elements? An example for the simple-minded: $('div').each(function(){$(this).click(function(){alert('You clicked me: ' + this.id + '!')})}) or div id='blabla1' onclick=alert('You clicked me: ' + this.id + '!')/div div id='blabla2' onclick=alert('You clicked me: ' + this.id + '!')/div div id='blabla3' onclick=alert('You clicked me: ' + this.id + '!')/div ? In most cases it does take more characters for the same functionality but what are the differences in performance? Kind regards, -- Isaak Malik Web Developer -- Isaak Malik Web Developer
[jQuery] Re: jQuery.each() or element event triggers?
Thanks about the notice, I had no idea about the two iterations. And also thanks for the tip, I'll be googling it right away. On Wed, Jun 11, 2008 at 11:58 PM, Ariel Flesler [EMAIL PROTECTED] wrote: Inline events handlers are a whole different way of doing that. A bad and old one by the way. The first approach you wrote, actually goes thru 2 iterations, while one is enough: $('div').click(function(){ alert('You clicked me: ' + this.id + '!') }); If you're REALLY worried about perfomance, you should google event delegation. Cheers -- Ariel Flesler http://flesler.blogspot.com/ On 11 jun, 17:56, Isaak Malik [EMAIL PROTECTED] wrote: Dear list, I'm not really into the code of the jQuery core so I'm not sure of how jQuery.each() works, but I'm wondering: since jQuery.each() loops through every element that matches the given selector is my logics right that is it better performance wise to use static element event trigger instead of using the each() method on all the elements? An example for the simple-minded: $('div').each(function(){$(this).click(function(){alert('You clicked me: ' + this.id + '!')})}) or div id='blabla1' onclick=alert('You clicked me: ' + this.id + '!')/div div id='blabla2' onclick=alert('You clicked me: ' + this.id + '!')/div div id='blabla3' onclick=alert('You clicked me: ' + this.id + '!')/div ? In most cases it does take more characters for the same functionality but what are the differences in performance? Kind regards, -- Isaak Malik Web Developer -- Isaak Malik Web Developer