[jQuery] Re: Cookie problem in Safari 3.1.1
I'm not sure. I don't know what could be causing an eventCache error, I've never heard of it. Karl Rudd On Fri, Jul 18, 2008 at 7:41 PM, [EMAIL PROTECTED] wrote: Dear folk, I checked it , I ahve a serious problem with IE7 and 6 ... when I over load the Cookie some times ($.cookie('SortSize',PagingData.SortSize); ) I receive an Javascript error Invalid Argument and eventCache Error but I don't have any problem in the Other Browsers On Jul 18, 10:35 am, [EMAIL PROTECTED] wrote: WOw you were right Modified my code setcookie(SortSize,0, time()+3600); to setcookie(SortSize,0); Right now there is no problem but SOmetimes IE6 have some Runtime Error .. . by the Wat my windows is vista so I am Using IE Tester Instead of IE 6 it has IE5,6,7,8 built in but I am not sure the Brosere is Standard so what is you Idea about the IE6 thanks Anyways Regards Pedram -- Forwarded message -- From: Karl Rudd [EMAIL PROTECTED] Date: Jul 18, 2:03 am Subject: Cookie problem in Safari 3.1.1 To: jQuery (English) The only problem I've come across with Safari and cookies is that it sometimes doesn't like cookies without an expiry time. I don't know if that's the problem you're coming up against. Karl Rudd On Fri, Jul 18, 2008 at 6:09 AM, [EMAIL PROTECTED] wrote: Dear folks, My system is working with AJax and I need to save some of my data with Cookies as you all know I have to handle this with javascript cookie and Server Cookie both when I call the AJAX I change the Value of the Cookie then when the AJAX loads the Server PHP file it recognizes the Cookie and it accepts the change .. I don't have ant Problem in IE7 and FF and netscape but I do have Problem with Safari ... Safari would not Recognize the Change by Javascript unless I refresh the Page ... when REfresh the page everything is allright but ... this is not what I want . Please help me on this... I think I am Clear Thanks Pedram
[jQuery] Finding the element which has focus
I am using jQuery table key navigation plugin and I have three key navigateable tables. And focus can be moved across tables. How can I know the table name which has focus?
[jQuery] Re: LightBox (or Modal) with ajax response from a POST type
Not sure if I understand but you need to bind an event to the content which is not on the page on load. Livequery http://brandonaaron.net/docs/livequery/ can do that. I use this lightbox plugin http://leandrovieira.com/projects/jquery/lightbox/ if it is photos you want to display., And it works in all browsers. Then you need to use livequery on your ajax code like ti.ex. this: $(#popup a).livequery(function() { #(this).lightbox; } (just out of my head!) Good docs on the livequery page. I use this on to load gallerys into a page and use lightbox on those galleryss. /asle
[jQuery] how to stop jquery execution
I have jquery for loop it runs for about an hour doing some processing before stopping. In the for loop it execute alot of jquery Ajax post statement. As the execution is quite long, I might want to stop the javascript sometime using another button in the form, where the button will can another javascript to stop it. But I am not sure what type of javascript can stop the jquery from processing. Another help on this, thank you. http://www.genericsmed.com http://www.generics.ws
[jQuery] Re: leandrovieira.com lightbox problems with several images
Anyone? Nobody using this lightbox plugin? /asle
[jQuery] jQuery Corner plugin not working
Hi, I'm pretty new to jQuery package and as a training opportunity I 'm converting my asp.net ajax site to use jQuery instead. Now, I need to use round corners functionlity and I downloaded the jquery.corner.js plugin, but when I try to use it, it doesn't seem to work right. Consider this simple html file: -- html head/head body script type=text/javascript src=jquery.js/script script type=text/javascript src=jquery.corner.js/script div style=background-color:navy;width:400px; border: solid 1px yellow id=divHello pHello World!/p /div script type=text/javascript var objs = $('#divHello') objs.corner(); /script /body /html -- Now, if you run it in IE 7.0, then Hello World! shows aligned to the top and part of H is damaged by the added divs. If you run in in FF 2.0, then this phrase appears to the bottom and again, part of H is corrupt. If I use IE developer toolbar or FireBug to explore the DOM, I see that added div's have some weird margins. Any ideas what I might be doing wrong in this example? Thank you, Andrey
[jQuery] Re: leandrovieira.com lightbox problems with several images
Thanks. I did not know that. I removed that but that did not solve my problem. /asle
[jQuery] Re: How can I downlod that jQuery Ipod Drilldown menu?
If you go to their demo page: http://www.filamentgroup.com/examples/menusHierarchical/ you can grab all the needed files (which appears to be 3 js and a css file) using Firefox and firebug
[jQuery] Re: how to stop jquery execution
Try checking for a status variable in the for loop and change that variable on button click. On Jul 20, 12:30 am, robert123 [EMAIL PROTECTED] wrote: I have jquery for loop it runs for about an hour doing some processing before stopping. In the for loop it execute alot of jquery Ajax post statement. As the execution is quite long, I might want to stop the javascript sometime using another button in the form, where the button will can another javascript to stop it. But I am not sure what type of javascript can stop the jquery from processing. Another help on this, thank you. http://www.genericsmed.comhttp://www.generics.ws
[jQuery] Re: BlockUI Plugin Doesn't Unblock in IE 6/7
Please check your HTML. It's missing a closing div (put a /div just before /form) Hope that helps! -Syam On Jul 20, 1:17 am, Mark [EMAIL PROTECTED] wrote: Hi, I'm not the first person to post this problem: http://groups.google.com/group/jquery-en/browse_thread/thread/4c60ce5... http://www.nabble.com/Problem-with-blockUI-plugin-td17185345s27240.html and not sure whether this is the best forum in which to post (is there a jQuery Plugins forum?) But there seems to be a problem (bug?) in block UI which prevents it from unblocking in IE (it does unblock in FF. The Block UI's site demos do unblock in IE so this is caused by something not in the demos. Instead of unblocking, a short and wide div appears and doesn't go away. A screenshot is athttp://www.solelsoftware.com/blockui.gif Has anyone found a solution to this? Here is a minimal test page causing the problems: http://www.solelsoftware.com/Test2.htm
[jQuery] Re: how to stop jquery execution
Hi, you can envelope your for loop in an if statement to test for boolean variable that will control execution like this: var loopControl=true; for (var=startvalue;var=endvalue;var=var+increment){ if(loopControl){ // your loop code goes here } } and now, if you set loopControl=false (or loopControl=0) your loop will stop at the very next iteration. I hope this was the solution you needed. On 20 srp, 09:30, robert123 [EMAIL PROTECTED] wrote: I have jquery for loop it runs for about an hour doing some processing before stopping. In the for loop it execute alot of jquery Ajax post statement. As the execution is quite long, I might want to stop the javascript sometime using another button in the form, where the button will can another javascript to stop it. But I am not sure what type of javascript can stop the jquery from processing. Another help on this, thank you. http://www.genericsmed.comhttp://www.generics.ws
[jQuery] Re: Create a class on run-time?
I mean (2) create css set of rules. Now i have a simple way to modify the css set of rules. Thanks. : ) On Jul 20, 1:15 am, Ariel Flesler [EMAIL PROTECTED] wrote: You mean, (1) add a class to an element, or (2) create css set of rules ? if (1): check the docs (docs.jquery.com). if(2): jQuery.Rule could be the solutionhttp://flesler.blogspot.com/2007/11/jqueryrule.html -- Ariel Fleslerhttp://flesler.blogspot.com/ On 18 jul, 19:13, Evert [EMAIL PROTECTED] wrote: Is it possible to create css class on run-time with jquery/javascript? if yes, how?
[jQuery] Re: Forms: Convert spaces to +'s, and how to GET only certain form elements?
I think you can use .replace(/%20/g, +) after encodeURIComponent(String) to replace the %20 with a +. Like: var encodedString = encodeURIComponent(dog cat horse whale); encodedString.replace(/%20/g, +); Good Luck! //Mickster On Jul 20, 3:24 am, spicyj [EMAIL PROTECTED] wrote: encodeURIComponent(dog cat horse whale)
[jQuery] Re: hover links to fadeIn/Out Divs
Never mind. I figured it out. The problem was div style=clear:both;/ -- View this message in context: http://www.nabble.com/hover-links-to-fadeIn-Out-Divs-tp18550252s27240p18550694.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: [Validate] Maximum call stack size exceeded.
Try this: submitHandler: function(form) { $(#loginBtn).hide(slow); form.submit(); }, The subtle difference: $(form).submit() triggers the validation again, form.submit() doesn't. Jörn On Sun, Jul 20, 2008 at 5:23 AM, Steffan A. Cline [EMAIL PROTECTED] wrote: Jörn, Ok, I am not sure which lib is causing the error. I am using the latest of jQuery and Validate. I get the console error Maximum call stack size exceeded. This appears in the error pane of Coda which uses WebKit for rendering. Below is the code in my head if it helps track the issue down. $.validator.setDefaults({ submitHandler: function(form) { $(#loginBtn).hide(slow); $(form).submit(); }, errorClass : error }); $().ready(function() { $(#logon).validate({ rules: { username: { required: true, minlength: 4 }, password: { required: true, minLength: 5 } }, messages: { username: { required: Please enter a username, minLength: Your username must consist of at least 4 characters }, password: { required: Please provide a password, minLength: Your password must be at least 5 characters long } } }); $(input[name=username]).focus(); } ) What can be done to alleviate this error? Thanks Steffan --- T E L 6 0 2 . 7 9 3 . 0 0 1 4 | F A X 6 0 2 . 9 7 1 . 1 6 9 4 Steffan A. Cline [EMAIL PROTECTED] Phoenix, Az http://www.ExecuChoice.net USA AIM : SteffanC ICQ : 57234309 YAHOO : Steffan_Cline MSN : [EMAIL PROTECTED] GOOGLE: Steffan.Cline Lasso Partner Alliance Member ---
[jQuery] Re: jQuery Corner plugin not working
You need to wrap your javascript in a ready event, like this: script type=text/javascript $(document).ready(function() { var objs = $('#divHello') objs.corner(); }); /script It may also be a good idea to put this in the head if you can. Check out this for more information on using jQuery: http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery On Jul 20, 1:39 am, Muzzzy [EMAIL PROTECTED] wrote: Hi, I'm pretty new to jQuery package and as a training opportunity I 'm converting my asp.net ajax site to use jQuery instead. Now, I need to use round corners functionlity and I downloaded the jquery.corner.js plugin, but when I try to use it, it doesn't seem to work right. Consider this simple html file: -- html head/head body script type=text/javascript src=jquery.js/script script type=text/javascript src=jquery.corner.js/script div style=background-color:navy;width:400px; border: solid 1px yellow id=divHello pHello World!/p /div script type=text/javascript var objs = $('#divHello') objs.corner(); /script /body /html -- Now, if you run it in IE 7.0, then Hello World! shows aligned to the top and part of H is damaged by the added divs. If you run in in FF 2.0, then this phrase appears to the bottom and again, part of H is corrupt. If I use IE developer toolbar or FireBug to explore the DOM, I see that added div's have some weird margins. Any ideas what I might be doing wrong in this example? Thank you, Andrey
[jQuery] Re: attr(style: ) vs. css
Also attr('style', 'prop:val') replaces the entire inline style. css() just replaces that property. Danny On Jul 19, 12:37 pm, Geir [EMAIL PROTECTED] wrote: Thanks!
[jQuery] Re: unsubscribe (was: Create a class on run-time?)
Do NOT reply to an existing thread with a different topic? Don't you know where the New Post link is? And besides, you can go to your account from the My Account link at the top of this page. Then click on the button that says, Manage Subscriptions and scroll down the page that appears, until you come to the line that says jQuery (English) at the beginning of it. At the end of that line you will see a dropdown menu to edit your subscription. Click on it and select unsubscribe. On Jul 20, 10:52 am, my name [EMAIL PROTECTED] wrote: please unsubscribe me. Date: Sun, 20 Jul 2008 06:04:34 -0700 Subject: [jQuery] Re: Create a class on run-time? From: [EMAIL PROTECTED] To: jquery-en@googlegroups.com I mean (2) create css set of rules. Now i have a simple way to modify the css set of rules. Thanks. : ) On Jul 20, 1:15 am, Ariel Flesler wrote: You mean, (1) add a class to an element, or (2) create css set of rules ? if (1): check the docs (docs.jquery.com). if(2): jQuery.Rule could be the solutionhttp://flesler.blogspot.com/2007/11/jqueryrule.html -- Ariel Fleslerhttp://flesler.blogspot.com/ On 18 jul, 19:13, Evert wrote: Is it possible to create css class on run-time with jquery/javascript? if yes, how? _ With Windows Live for mobile, your contacts travel with you.http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_mob...
[jQuery] Re: Create a class on run-time?
For the second time, I am posting this to the errant poster named my name. Do NOT post an unsubscribe request to an existing thread. Don't you know how to find the link for posting a new topic? Besides, you can unsubscribe from your My Account link at the top of this page. Click the button marked Manage Subscriptions. Scroll down the page to the line that begins with jQuery (English). At the end of that line there is a dropdown menu to edit your subscription type. Select unsubscribe. On Jul 20, 10:52 am, my name [EMAIL PROTECTED] wrote: please unsubscribe me. Date: Sun, 20 Jul 2008 06:04:34 -0700 Subject: [jQuery] Re: Create a class on run-time? From: [EMAIL PROTECTED] To: jquery-en@googlegroups.com I mean (2) create css set of rules. Now i have a simple way to modify the css set of rules. Thanks. : ) On Jul 20, 1:15 am, Ariel Flesler wrote: You mean, (1) add a class to an element, or (2) create css set of rules ? if (1): check the docs (docs.jquery.com). if(2): jQuery.Rule could be the solutionhttp://flesler.blogspot.com/2007/11/jqueryrule.html -- Ariel Fleslerhttp://flesler.blogspot.com/ On 18 jul, 19:13, Evert wrote: Is it possible to create css class on run-time with jquery/javascript? if yes, how? _ With Windows Live for mobile, your contacts travel with you.http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_mob...
[jQuery] Re: Forms: Convert spaces to +'s, and how to GET only certain form elements?
encodedString.replace(/%20/g, +); Or simply decodeURIComponent(dog+cat%20horse+whale).
[jQuery] Minifying
I was curious what the jQuery guys use to minify their files? I saw there are two big ones out there, JSMin and YUI Compressor and was just curious which jQuery uses and if there are any special settings they use. Thanks in advance!
[jQuery] Re: Lighbox not working
You have sent me the old version of Lighbox I have used it in my current project without any problem .But I was fascinated that how could they upload a Plugin which doesn't support safar!!! On Jul 18, 10:58 pm, asle [EMAIL PROTECTED] wrote: I can confirm this. The large image opens in the same window and the console says: String.vsprintf(Resource interpreted as %1$@ but transferred with MIME type [EMAIL PROTECTED], document, image/jpeg): unsupported format character [EMAIL PROTECTED] Treating as a string. file:///System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/We bCore.framework/Resources/inspector/inspector.html This one works fine in Safari:http://leandrovieira.com/projects/jquery/lightbox/ I only have a bug trying to show a series of pictures. Anyone used this lightbox plugin? It figures out the number of objects in the element (i.ex. gallery) to count if the window needs navigation. I can get the demo to work but when I put it on my server It always thinks it only has one object. The variable jQueryMatchedObj.length always says 1 even if I have several images in the container. Just wonder if anyone tried this. /asle On 18 Jul, 21:07, [EMAIL PROTECTED] wrote: Yup I just test it , it works with other browsers but in safar 3.1.1 it doesn't work but the old version worked I'm talking about the Direct LInk http://www.balupton.com/sandbox/jquery_lightbox/ On Jul 18, 1:57 pm, Michael W [EMAIL PROTECTED] wrote: I've actually used this lightbox and I have it working just fine, On Jul 18, 8:46 am, [EMAIL PROTECTED] wrote: Dear all , I've test the lastest release of Lighbox it doesn't seem to work .. has any body any idea about whats wrong with the Plugin by the way I've test it by Safari this is the Linkhttp://www.balupton.com/sandbox/jquery_lightbox/ Regards Pedram
[jQuery] Farbtastic - need some help bad.
Hi All, i'm going crazy trying to get a pretty basic feature implemented with Farbtastic. I'm fairly new to jQuery so i hope this is just me being thick. what I want to do is have 3 input boxes (just like in demo2.html), which also controls the color of an additional element, i.e. click input one, set color on wheel and see the color change on input one AND (for example) a div background color. All i've managed to do far is get a callback changing the div background color - I just can't seem to get both (the input and dicv bg) changing at same time :( can any one help, I've read the very sparse docs and did not understand them much, then I looked at every single google SRP on farbtastic but no luck. really would appreciate any help. -Mark.
[jQuery] Re: Forms and syntax: Radio buttons and tutorials?
I guess this would be even better: $(#option01:checked) Not sure why I did not think of that earlier. :) On Jul 20, 11:53 am, Micky Hulse [EMAIL PROTECTED] wrote: Hi, I have a form (#fmSearch) with three radio buttons: input name=options value=a.html id=option01 type=radio ... input name=options value=b.html id=option02 type=radio ... input name=options value=c.html id=option03 type=radio ... When testing for a specific radio button, which of the below techniques is faster/better? $('#option01').attr('checked', 'checked'); or $([EMAIL PROTECTED]'option01']:checked) If I had to guess, I would say the the first option is faster... but I like the readability of the second one better. Anyone know of a good tutorial that details how to wok with forms using jQuery (sans-plugins)? Many thanks in advance! Cheers, Micky
[jQuery] ycodaslider in an iframe
dosent work anyone know a fix?
[jQuery] get textarea content and display
Hi, I'm new to jQuery, so please take me slow :) I've got a textarea: textarea cols=30 class=textarea id=code name=code/textarea And a div: div id=code_preview/div For example if i want to write the code for embeding a youtube vid in the textarea i want the div to display the embeded vid. Help! :D
[jQuery] jQuery.com Broken?
Hello, The website is not rendering the CSS.
[jQuery] Re: Forms: Convert spaces to +'s, and how to GET only certain form elements?
This worked perfectly: HTML: form name=fmSearch ... input type=text name=search id=fmSearchKeywords title=Search... ... /form JS: $(function() { ... ... $('form#fmSearch').submit(function() { var encodedString = encodeURIComponent($('#fmSearchKeywords').val()); encodedString.replace(/%20/g, +); }); ... ... }); Thanks for the specific coding Mickster! Ya'll rock!! :) On Jul 20, 2:52 am, Mickster [EMAIL PROTECTED] wrote: I think you can use .replace(/%20/g, +) after encodeURIComponent(String) to replace the %20 with a +. Like: var encodedString = encodeURIComponent(dog cat horse whale); encodedString.replace(/%20/g, +); Good Luck! //Mickster On Jul 20, 3:24 am, spicyj [EMAIL PROTECTED] wrote: encodeURIComponent(dog cat horse whale)
[jQuery] jQuery made these search tools possible, too
hello, I'm becoming quite enthusiastic about jQuery as it has made many solvable issues much more easier to handle. I'd like to introduce to you the following 2 search tools. Plugins used were jQuery UI (tabs and slider) and Cookie. If I had to choose one single most useful jQuery-aided feature on the site, it might be something as simple as toggling of checkboxes and visibility of multiple div-blocks in an one click. View the search results behind the first link to understand what I mean. PubMed slicer: brain (basic keyword based search) http://datacalmers.hoito.org/index.php?searchstring=brainearliestyear=1800latestyear=2008toolname=pubmedslicer Nutrition tactician: foods containing Magnesium (Mg), in descending order http://datacalmers.hoito.org/index.php?foodgroup=1100toolname=nutritiontactician Nutrition tactician: foods belonging to a group named Vegetables and Vegetable Products http://datacalmers.hoito.org/index.php?nutrition=304toolname=nutritiontactician Nutrition tactician: food basket (4 foods, nutritional information presented as a table) http://datacalmers.hoito.org/index.php?foodids=09078_9_AND_09040_2_AND_09021_1toolname=nutritiontacticiancommand=showbasket
[jQuery] Re: jQuery.com Broken?
same here. no CSS. degrading gracefully. On Sun, Jul 20, 2008 at 3:46 PM, xwisdom [EMAIL PROTECTED] wrote: Hello, The website is not rendering the CSS.
[jQuery] Re: BlockUI Plugin Doesn't Unblock in IE 6/7
Dear Syam, That solved it! Thank you for catching that. On Jul 20, 3:16 pm, Syam [EMAIL PROTECTED] wrote: Please check your HTML. It's missing a closing div (put a /div just before /form) Hope that helps! -Syam On Jul 20, 1:17 am, Mark [EMAIL PROTECTED] wrote: Hi, I'm not the first person to post this problem: http://groups.google.com/group/jquery-en/browse_thread/thread/4c60ce5... http://www.nabble.com/Problem-with-blockUI-plugin-td17185345s27240.html and not sure whether this is the best forum in which to post (is there a jQuery Plugins forum?) But there seems to be a problem (bug?) in block UI which prevents it from unblocking in IE (it does unblock in FF. The Block UI's site demos do unblock in IE so this is caused by something not in the demos. Instead of unblocking, a short and wide div appears and doesn't go away. A screenshot is athttp://www.solelsoftware.com/blockui.gif Has anyone found a solution to this? Here is a minimal test page causing the problems: http://www.solelsoftware.com/Test2.htm- Hide quoted text - - Show quoted text -
[jQuery] Re: Forms: Convert spaces to +'s, and how to GET only certain form elements?
Thank you all Much much appreciated!!! Have a great day! Cheers, Micky On Jul 20, 2:52 am, Mickster [EMAIL PROTECTED] wrote: I think you can use .replace(/%20/g, +) after encodeURIComponent(String) to replace the %20 with a +. Like: var encodedString = encodeURIComponent(dog cat horse whale); encodedString.replace(/%20/g, +); Good Luck! //Mickster On Jul 20, 3:24 am, spicyj [EMAIL PROTECTED] wrote: encodeURIComponent(dog cat horse whale)
[jQuery] Mike Alsup: .phps source view not functioning at malsup.com
Hi Mike. First up, thanks for all your hard work with the jQuery team. It's an awesome project. :-) I was browsing http://malsup.com/jquery/form/#code-samples http://malsup.com/jquery/form/#code-samples this morning and chanced upon a link thus: http://malsup.com/jquery/form/files.phps http://malsup.com/jquery/form/files.phps , from the following paragraph in the file uploads section: The form below provides an input element of type file along with a select element to specify the dataType of the response. The form is submitted to http://malsup.com/jquery/form/files.phps files.php which uses the datType to determine what type of response to return. Clicking the link revealed that files.phps was not output as lovely syntax-highlighted PHP script as expected, but simply parsed by the PHP processor to output: VAR DUMP: array(0) { } Oh and, if I'm not mistaken, I think quot;datTypequot; in the same paragraph may be a typo. Isn't it dataType? :-) Thanks again to the whole team! We're LOVING jQuery to pieces. :D Gruvin -- View this message in context: http://www.nabble.com/Mike-Alsup%3A-.phps-source-view-not-functioning-at-malsup.com-tp18520238s27240p18520238.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Separating HTML special characters from their escaped counterparts in a textarea.
This may not really be a jQuery question; if you can suggest someplace better to ask, please let me know. I have some HTML in a textarea that the user will need to be able to edit (eventually in FCK Editor.) This is stored in a DB as HTML, with some things that look like escaped XML start tags included, e.g. pSome text, including a lt;CustIdgt; in the middle./p I would like the editor to use the regular markup such as p as editing marks, but to treat the escaped code such as lt;CustIdgt; as plain data. The trouble is, any way I've found to pull the code from the textarea treats them the same, either both as markup or both as escaped data. It seems as though loading the textarea into the DOM is masking the difference. Is there a straightforward way to retrieve the markup from a textarea that retrieves it looking just as it does in the source code view? If you look at this page: http://scott.sauyet.com/issues/2008-07-20a/ and check the Firefox console, you'll see that none of these works the way I'm hoping: $textarea.text() $textarea.html() $textarea[0].innerHTML $textarea[0].value document.getElementById(test).value document.getElementById(test).innerHTML Does anyone have a suggestion as to how I can get back the original source version of this? -- Scott where
[jQuery] .slice() a specific number of characters?
I am wondering if it is possible to use the .slice() method to keep 6 characters on the end of a URL in a href attribute, then append a new URL to the beginning? Or is there a better method to do this?
[jQuery] Getting image src while using iepngfix
Hey guys, I do have an image overlay running at: http://preview.ndoki.de/ It works like a charm in all browsers, except IE6. I noticed that it does not work, because the iepngfix script changes the src-attribute of the images, since my navigation is made up from transparent PNGs. But the jQuery rollover script relies on the src-value, since it swaps out the image by altering its source. Is there any way to make jQuery retrieve the real, as in hard-coded, src-value of the image? The value that is in the markup and not the one changed by Javascript. I also could put the image name into the title again, but this would change my markup and isn't that what jQuery saves you from doing? ;) Regards, Samy
[jQuery] Announcing Cascade plugin
Hi all, I have had this plugin in use for a while and it is ready for the wild. This plugin originally was conceived to simply handle the canonical cascade requirement of select elements filtering other select element options, but has grown to deal with any similar behavior requirement . A demo has just been put out on http://dev.chayachronicles.com/jquery/cascade/index.html and the project page is at http://plugins.jquery.com/project/cascade . If there are any suggestions or requests, please let me know. Mike
[jQuery] Re: How do I write a JQuery expression for this?
My bad. Here's the HTML. I would like to write an expression to apply a class to all the TD's that have .pdf as the last part of their innerHTML. div id=domRoot div id=folder0 style=display: block;/div div id=folder1 style=display: block;/div div id=folder2 style=display: block;/div div id=item4 style=display: block; table cellspacing=0 cellpadding=0 border=0 width=100% tbody tr td background=ftv2vertline.gif valign=top/td td valign=top/td td width=100% valign=middle a id=itemTextLink4 class=draggable onclick=clickOnLink('4', 'link','_self');return false; target=_self href=link style=-moz- user-select: none;cougar.pdf/a /td Thanks, - Dave On Jul 20, 7:03 pm, Samuel Vogel [EMAIL PROTECTED] wrote: We can't really help you with the information you provided. How is the PDF placed in the td? You could also just toss an exerpt of your markup at us. That'd be fine... Regards, Samy 2008/7/21 [EMAIL PROTECTED] [EMAIL PROTECTED]: Within a span with class TreeView, there is a table. Within the table, there are TD's. I want to select the TD's whose content ends in .pdf. How would I go about writing an expression to, say, apply a class to only those nodes? Thanks for your help, - Dave- Hide quoted text - - Show quoted text -
[jQuery] Re: Using $.post with complex JSON structures
I am having the some problem... obviously, I'm trying to post different data, but structured the same way... and I'm also getting [object object] on PHP side... maybe if we bang our heads at same time to wall :) I'll let you know if make it through the wall On Jul 10, 10:07 am, lionstone [EMAIL PROTECTED] wrote: Hi, I am having trouble using $.postwith complexJSONstructures. Specifically, when Ipostan object that contains an object or array as a value, the nested object posts as the string [object+object] . Sample code: sampleJSON = {}; sampleJSON = { a : b, c : {d: e, f:g}, h: i}; $.post('spit.php', sampleJSON , function(txt){ console.log(txt); } ); What I am really hoping to do is: complexJSON = {}; complexJSON = {title:abcd, playlist: [ {url: url }, {url: url }, {url: url } ] } $.post('spit.php', complexJSON , function(txt){ console.log(txt); } ); I've been really banging my head over this one, so all suggestions would be greatly appreciated :) Thanks!
[jQuery] Re: .slice() a specific number of characters?
sure, that would work just fine. something like this, maybe? : $('#somelink').attr({href: 'newprependedtext' + this.href.slice(-6)}); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 20, 2008, at 7:52 PM, hubbs wrote: I am wondering if it is possible to use the .slice() method to keep 6 characters on the end of a URL in a href attribute, then append a new URL to the beginning? Or is there a better method to do this?
[jQuery] Re: How do I write a JQuery expression for this?
Hi Dave, I'd do it like this: $('td').filter(function() { return (/\.pdf\s*$/).test($(this).text()) }).addClass('someclass'); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 20, 2008, at 9:23 PM, [EMAIL PROTECTED] wrote: My bad. Here's the HTML. I would like to write an expression to apply a class to all the TD's that have .pdf as the last part of their innerHTML. div id=domRoot div id=folder0 style=display: block;/div div id=folder1 style=display: block;/div div id=folder2 style=display: block;/div div id=item4 style=display: block; table cellspacing=0 cellpadding=0 border=0 width=100% tbody tr td background=ftv2vertline.gif valign=top/td td valign=top/td td width=100% valign=middle a id=itemTextLink4 class=draggable onclick=clickOnLink('4', 'link','_self');return false; target=_self href=link style=-moz- user-select: none;cougar.pdf/a /td Thanks, - Dave On Jul 20, 7:03 pm, Samuel Vogel [EMAIL PROTECTED] wrote: We can't really help you with the information you provided. How is the PDF placed in the td? You could also just toss an exerpt of your markup at us. That'd be fine... Regards, Samy 2008/7/21 [EMAIL PROTECTED] [EMAIL PROTECTED]: Within a span with class TreeView, there is a table. Within the table, there are TD's. I want to select the TD's whose content ends in .pdf. How would I go about writing an expression to, say, apply a class to only those nodes? Thanks for your help, - Dave- Hide quoted text - - Show quoted text -
[jQuery] Re: Minifying
Dean Edward's Packer. http://dean.edwards.name/packer/ -- Ariel Flesler http://flesler.blogspot.com/ On 20 jul, 12:47, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I was curious what the jQuery guys use to minify their files? I saw there are two big ones out there, JSMin and YUI Compressor and was just curious which jQuery uses and if there are any special settings they use. Thanks in advance!
[jQuery] Problems parsing posted array of objects
Hello, I have this on my client-side: script language=javascript type=text/javascript function BigAction(inputdata) { var url = 'index2.php'; $('#progressIndicator').show('fast', function () { $.post(url, inputdata, function(data) { $.each(data.items, function(i,item){ $(item.id).html(item.html); }); $('#progressIndicator').hide('fast'); }, json); }); return false; }//function BigAction(inputdata) { /script a href=# onclick='BigAction({items[]:[{ys:content, action:view},{ys:other,action:onemore}]}); return false;'Get content/a and I'm only using var_dump($_POST) for now on index2.php This is what I get: array(1) { [items]= array(2) { [0]= string(15) [object Object] [1]= string(15) [object Object] } } My question would be: why $_POST['items'][0] is not something like: ys=content action=view What am i missing?
[jQuery] Re: jQuery.com Broken?
All our static files are hosted on Amazon S3 - they had an outage earlier today. --John On Sun, Jul 20, 2008 at 4:43 PM, Kevin Pepperman [EMAIL PROTECTED] wrote: same here. no CSS. degrading gracefully. On Sun, Jul 20, 2008 at 3:46 PM, xwisdom [EMAIL PROTECTED] wrote: Hello, The website is not rendering the CSS.
[jQuery] Re: .slice() a specific number of characters?
Perfect! Thank you very much! On Jul 20, 7:26 pm, Karl Swedberg [EMAIL PROTECTED] wrote: sure, that would work just fine. something like this, maybe? : $('#somelink').attr({href: 'newprependedtext' + this.href.slice(-6)}); --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Jul 20, 2008, at 7:52 PM, hubbs wrote: I am wondering if it is possible to use the .slice() method to keep 6 characters on the end of a URL in a href attribute, then append a new URL to the beginning? Or is there a better method to do this?
[jQuery] How do I write a JQuery expression for this?
Within a span with class TreeView, there is a table. Within the table, there are TD's. I want to select the TD's whose content ends in .pdf. How would I go about writing an expression to, say, apply a class to only those nodes? Thanks for your help, - Dave
[jQuery] Re: How do I write a JQuery expression for this?
I would strongly recommend against putting a table in a span. Karl's solution below is correct. You might also do :contains(.pdf) depending on what sort of text is in your td's. -- Yehuda On Sun, Jul 20, 2008 at 6:38 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Within a span with class TreeView, there is a table. Within the table, there are TD's. I want to select the TD's whose content ends in .pdf. How would I go about writing an expression to, say, apply a class to only those nodes? Thanks for your help, - Dave -- Yehuda Katz Developer | Engine Yard (ph) 718.877.1325