[jQuery] Re: Job for everyone submit your resume now
img src=http://i26.photobucket.com/albums/c103/wulfweard/september06/ spam-c07.jpg / On Nov 30, 2:48 am, kunal sinha [EMAIL PROTECTED] wrote: Job for everyone submit your resume now *Pls sends your CV in **www.allindiajobbank.com*http://www.allindiajobbank.com/ * website. It is fast and gives U positive response. Pls pass this message to Ur friend also because vacancies are waiting.* file:///F:/email%20matter/mail/nov/job_details.php?job_id=55comp_id=19*P.R.O OR DRAFTMAN* http://www.allindiajobbank.com/ Lead the Design Team in development of innovative solutions to challenging sites and high land costs, without incurring costs overruns, innumerable change orders and knowledge of filling tender. Location: *Delhi*. Salary: 55- 87 . Company: *Geetanjali Construction* Job Type: Full Time.Exp. 1-5 file:///F:/email%20matter/mail/nov/job_details.php?job_id=55comp_id=19*ARCHITECT ASSISTANT* http://www.allindiajobbank.com/ Should be able to handle Architecture Interior Design projects from the Concept Stage to the Final Execution of the project, client meeting, site visit of the respective sites as per requirement. Location:*Delhi* . Salary: 33- 57 . Company: *Geetanjali Construction* Job Type: Full Time.Exp. 1-3 *MARKETING EXECUTIVE* http://www.allindiajobbank.com/ *Required marketing executives(min. graduate) for platform for employers and job seekers. with 0-5 yr experience. freshers can also apply. . Location: Delhi . Salary: 8- 12 . Company: all india job bank.comJob Type: Full Time . Exp: 1-5 .* file:///F:/email%20matter/mail/nov/job_details.php?job_id=55comp_id=19*ONLINE SALES EXECUTIVE* http://www.allindiajobbank.com/ *we excel at selling solutions because we have a proactive approach to winning new business and a product portfolio that delivers on what we promise. Now we are looking for individuals with the ability to influence businesses, . Location: Delhi . Salary: 8- 11 . Company: ALL INDIA JOB BANK.COMJob Type: Full Time . Exp: 1-2 .* file:///F:/email%20matter/mail/nov/job_details.php?job_id=55comp_id=19*HARWARE NETWORKING* http://www.allindiajobbank.com/ Assembliling of Computers at Service Centre and at customer location. Basic knowledge of Networking. . Location: *Delhi* . Salary: 14- 36 . Company: *Ansun Electronics *Job Type: Full Time . Exp: 0-3 . file:///F:/email%20matter/mail/nov/job_details.php?job_id=55comp_id=19*MANAGER ACCOUNT* http://www.allindiajobbank.com/ *Handling clients. Incharge of the entire office. Take care of all admin. related activities. Smart Extrovert. Highly Effective Communication Skills. . Location: Delhi . Salary: 6- 10 . Company: NEW DELHI TYRE HOUSEJob Type: Full Time . Exp: 0-1 .* *For more information visit* *www.allindiajobbank.com*http://www.allindiajobbank.com/ *Pls sends your CV in **www.allindiajobbank.com*http://www.allindiajobbank.com/ * website. It is fast and gives U positive response. Pls pass this message to Ur friend also because vacancies are waiting.* *Thank Regards* *ALLINDIAJOBBANK TEAM *http://www.allindiajobbank.com/ *011-41619668* *509, Nehru place-92* *New Delhi-19* [28-11.html] Job for everyone submit your resume now Pls sends your CV inwww.allindiajobbank.comwebsite. It is fast and gives U positive response. Pls pass this message to Ur friend also because vacancies are waiting. P.R.O OR DRAFTMAN      Lead the Design Team in development of innovative solutions to challenging sites and high land costs, without incurring costs overruns, innumerable change orders and knowledge of filling tender. Location: Delhi. Salary: 55- 87 . Company: Geetanjali ConstructionJob Type: Full Time.Exp. 1-5 ARCHITECT ASSISTANT      Should be able to handle Architecture Interior Design projects from the Concept Stage to the Final Execution of the project, client meeting, site visit of the respective sites as per requirement. Location:Delhi . Salary: 33- 57 . Company: Geetanjali ConstructionJob Type: Full Time.Exp. 1-3 MARKETING EXECUTIVE      Required marketing executives(min. graduate) for platform for employers and job seekers. with 0-5 yr experience. freshers can also apply. . Location: Delhi. Salary: 8- 12 . Company: all india job bank.comJob Type: Full Time . Exp: 1-5. ONLINE SALES EXECUTIVE      we excel at selling solutions because we have a proactive approach to winning new business and a product portfolio that delivers on what we promise. Now we are looking for individuals with the ability to influence businesses, . Location: Delhi. Salary: 8- 11 . Company: ALL INDIA JOB BANK.COMJob Type: Full Time . Exp: 1-2. HARWARE NETWORKING      Assembliling of Computers at Service Centre and at customer location. Basic knowledge of Networking. . Location: Delhi. Salary:Â
[jQuery] Re: jQuery putting logic in separate file
script src/js/jquery.js type=text/javascript/script is not valid. I'm not sure if your email program did this but it should be: script src=/js/jquery.js type=text/javascript/script Cheers, -js On Nov 30, 2007 10:41 AM, bludog [EMAIL PROTECTED] wrote: I'm new to jQuery, so please bear with me. I'm putting the jQuery logic in a separate file for the jQuery calendar: script src/js/jquery.js type=text/javascript/script script src/js/sdr/jquery-calendar.js type=text/javascript/ script And the css link rel=stylesheet type=text/css href/css/sdr/us/en/ hostessBookingTracker.css / link href/css/sdr/tabs.css rel=stylesheet type=text/css media=screen / link href=/css/sdr/jquery-calendar.css rel=stylesheet type=text/ css media=screen / and nothing happens. If I include the script in the head it works fine. Any suggestions? Thanks.
[jQuery] Survey, what is the scariest animal?
...and for sure will loose my participation in the survey. /Göran Rey Bango wrote on 11/30/2007 9:56 AM: It may have slipped through. We do our best to catch these when Google doesn't but we can't catch em all. Oh, I expect things will slip through. I was just asking so that the poster can be shown the door. - Bil -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- - Göran Törnquist Stockby Hantverksby 4 181 75 Lidingö 0733-86 04 70 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
[jQuery] Re: ajax/jquery architectural question
You should look at the Live Query plug-in. http://brandonaaron.net/docs/livequery/ Hope that helps. -Marshall spherop wrote: i am loving jquery and the foray into a very ajax centric development approach. i am stuck though on a key architectural question. my app loads different aspects of the ui separately into divs ... and swaps out div content according to ui actions. very responsive and elegant from user standpoint. the key thing i am unclear on is how the newly ajax-loaded content can access the javascript functionality of the rest of the page/app. say the jquery library itself for example, or my own scripts, classes/functions. should every loaded content chunk (using php) require_once: jquery lib, my libs, jquery plugins etc? won't this have a negative performance impact? or will browser caching kick in and make it a moot point? or is there another way i should approach things?
[jQuery] Re: thickbox IE7 position
I have this same problem but only with IE 6 and not IE 7. I'd love to hear about how this could be fixed.
[jQuery] Re: Scrolling Quote Craziness
Looks normal to me in FF 2.0.0.10 . Charles On Nov 30, 12:20 pm, Glen Lipka [EMAIL PROTECTED] wrote: On the main page ofhttp://www.marketo.com/ There is a scrolling quote on the left. (Originally made by Karl, I think) Watch it for 15 seconds. After that it starts to go nuts. Any ideas why this is happening? The whole page uses jQuery. Glen
[jQuery] Re: select element by id
There are two issues here: 1. There should never be any more than one instance of an id on any one page so your query about being able to select multiple ID's is flawed by this. 2. In your code you would need to prepend your is query with a # As for being able to select multiple classes or elements in this way, why don't you try it out and see what happens ;) Goon-2 wrote: can you select elements with a partial id, something like: $(my*) instead of $(my_id) -- View this message in context: http://www.nabble.com/select-element-by-id-tf4900880s27240.html#a14097128 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Scrolling Quote Craziness
On Nov 30, 2007, at 4:55 PM, Glen Lipka wrote: I remember too. Ahh, the good old days when jQuery was new. Back in my day, we used top()! Yeah, we didn't have none of this fancy attr() stuff! We used set(), and we liked it! -- Karl
[jQuery] Detecting default action on previous click handler
If I have two handlers on click on a link, added by different scripts, how can I tell (on the second script) if the first one returned true or false to prevent the default action? Glen
[jQuery] Re: Scrolling Quote Craziness
On Nov 30, 2007, at 6:19 PM, sawmac wrote: On Nov 30, 1:46 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Just kidding. I'm glad you switched it to the cycle plugin. I'm actually using it, too, on a site I just redesigned:http://www.calvin.edu/festival/ Karl, Thought you might want to know that the scrolling list of speakers on http://www.calvin.edu/academic/engl/festival/ doesn't work in Safari 3 (Mac)--can't read any of the names, they all overlap. Looks great in Firefox, though. --dave Thanks for the heads-up, Dave. Actually, though, I'm not seeing that problem in Safari 3 Mac. Would somebody else with Safari 3 Mac mind checking this page and letting me know if you can reproduce the problem Dave is seeing? Thanks! --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com
[jQuery] Re: Scrolling Quote Craziness
On Nov 30, 1:46 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Just kidding. I'm glad you switched it to the cycle plugin. I'm actually using it, too, on a site I just redesigned:http://www.calvin.edu/festival/ Karl, Thought you might want to know that the scrolling list of speakers on http://www.calvin.edu/academic/engl/festival/ doesn't work in Safari 3 (Mac)--can't read any of the names, they all overlap. Looks great in Firefox, though. --dave
[jQuery] Re: problems using variables instead of text with :contains()
I've just recently figured out a way to use this: You can do as follows: var name = whatever; $('#someid:contains('+name+')'); Should work (just tried it myself) Cheers, David On Nov 12, 11:12 pm, jeff [EMAIL PROTECTED] wrote: I am a little confused on the syntax for :contains. I want to be able to pass in a variable to the parameter for :contains. It can take either quoted or non-quoted text, which on one hand can be convenient, but on the other is difficult if you are trying to pass a variable. Here is the test cases I came up with: (all sections are meant to be commented out except the one being tested) // ___ adding a string directly into :contains var $elements = $('a:contains(farm)'); // works fine: finds all links that contain the text farmvar $elements = $ ('a:contains(farm)');// works fine // adding a regular string variable to :contains _ var searchText = farm; var $elements = $('a:contains(searchText)'); // doesn't work (can't distinquish between a variable and text) var $elements = $ ('a:contains(String(searchText))'); // doesn't work (I thought I would try) var $elements = $('a:contains(+searchText+)'); // doesn't work var $elements = $('a:contains('+searchText+')'); // works! // __ adding a jQuery object to :contains $('#search-box').keyup(function() { var $searchText = $('#search-box').val(); var $searchResults = $('a:contains($searchText)');// does not work var $searchResults = $('a:contains('+$searchText+')'); // works! }); So, I figured out a solution, but I am not even clear why it works (I found an example buried in these forums.) It seams that if :search() required quoted parameters and unquoted parameters implied a variable, then it would be much more intuitive. I am somewhat new to jQuery. It is amazing and actually fun to program in. But I am not that familiar with all of the subtleties. Can anybody tell me why this solution works? Also, it would be great if someone could update the documentation to provide an example of :contains() that has a variable being passed in. thanks
[jQuery] .append() problem when used with .each
I am trying to add a series of links to a div and then an a click event to the links. If I append outside of the the .each() iteration the link is matched by the click event handler. However, links created within the loop are not matched by the click event handler. My code is : $(#col1).append(a href='6'link/abr/); // links added in this way are matched ok $.ajax({ type: GET, url:/catalog/category_all/, dataType: xml, success: function(xml) { // format and output result $(xml).find('object').each(function(){ $(#col1).append(a href=' + $(this).attr('pk')+ '+ $ (this).find('field').text() + /abr/); // links added in this way do not match }); } }); $(#col1 a).click(function(){ var href = $(this).attr('href'); alert(href); $.ajax({ type: GET, url:/catalog/category_sub/ + href , dataType: xml, success: function(xml2) { $(xml2).find('object').each(function(){ $(#col2).append(a href=' + $(this).attr('pk')+ + $ (this).find('field').text() + /abr/); });//close each } }); // stop normal link click return false; }); Can anybody suggest what I might be doing wrong?
[jQuery] Re: noob question: how to close current visible DD in this script
Thanks, that looks like it does the job! Looks quite easy to adapt to my requirements. Cheers, Adrian On Nov 30, 6:41 pm, Glen Lipka [EMAIL PROTECTED] wrote: I made this a while back.http://www.commadot.com/jquery/faq.php I think it does what you want. You can change the markup to be DD/DT pretty easily. Glen On Nov 30, 2007 8:47 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ladies and Gentlemen, Here goes my complete noob question: I have this demo page: http://www.itchycloud.co.uk/panther/ in which I'm using this jquery script: $(document).ready(function(){ $(dd:not(:first)).hide(); $(dt a).click(function(){ $(dd:visible).slideUp(slow); $(this).parent().next().slideDown(slow); return false; }); }); which I found on sniplr: http://snipplr.com/view/2208/jquery-collapsible-sidebar-menu/ I would like to modify this script so that when the user clicks on the current active - displayed, open - DTA then the appropriate DD will collapse/hide. I suppose it should be something like this in pseudo-code: if current.DT is the previous sibling of current visible DD then click function() will close DD; else click function() will open next sibling DD Basically, when there is a lot of content in a given DD I want the user to be able to click on the previous sibling DT A and it will close that DD. This will prevent a lot of scrolling with some pages on the planned website. TIA for your help. I am really looking forward to learning javascript and jquery, Adrian
[jQuery] Re: slideUp submenu before loading a new page (it won't wait)
So, in your situation, you can do this: $(dt.current).next('dd').addClass(show) Makes me blush, thank you ;-) Maybe I'm looking for solutions to deeply... BTW: any useful philosophy behind your use of single and double quotes? I assume you can mix them to taste, but I'm not always sure if I see pros writing it like you did. But maybe pros are human too... ;-)
[jQuery] Re: Using Superfish with images as triggers (a or img as top level)?
can you place your images in lists. liimg //li of use lists with background images? On Nov 30, 3:03 pm, Anobjectn [EMAIL PROTECTED] wrote: Hi, Can anyone give me some pointers on how to use Superfish were the top level triggers are images (or links with images in them)? Superfish seems to be all setup for *all* nav items being in a list(s) whereas I want my top level to be images. ThanX!
[jQuery] Re: Scrolling Quote Craziness
I remember too. Ahh, the good old days when jQuery was new. Back in my day, we used top()! Thank you for that code though! It helped me get on the road. Alsup is pretty cool, I gotta admit. Glen On Nov 30, 2007 1:46 PM, Karl Swedberg [EMAIL PROTECTED] wrote: Oh sure, Glen. Blame it all on me! :-p Just kidding. I'm glad you switched it to the cycle plugin. I'm actually using it, too, on a site I just redesigned: http://www.calvin.edu/festival/ I remember writing that script for you on the bus ride home from work about a year ago. Seems like a lifetime ago. Jonathan and I wrote a better version of the same thing for the Learning jQuery book. But there's nothing like a great plugin to ease the pain. Mike Alsup rocks! --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 30, 2007, at 4:37 PM, Glen Lipka wrote: I just switched it to the cycle plugin. Wow, what a cool plugin. I like it alot! I think I am going to try and use it elsewhere. Anyway, problem solved. Glen On Nov 30, 2007 1:31 PM, polyrhythmic [EMAIL PROTECTED] wrote: Looks normal to me in FF 2.0.0.10 . Charles On Nov 30, 12:20 pm, Glen Lipka [EMAIL PROTECTED] wrote: On the main page ofhttp://www.marketo.com/ There is a scrolling quote on the left. (Originally made by Karl, I think) Watch it for 15 seconds. After that it starts to go nuts. Any ideas why this is happening? The whole page uses jQuery. Glen
[jQuery] Re: Scrolling Quote Craziness
I just switched it to the cycle plugin. Wow, what a cool plugin. I like it alot! I think I am going to try and use it elsewhere. Anyway, problem solved. Glen On Nov 30, 2007 1:31 PM, polyrhythmic [EMAIL PROTECTED] wrote: Looks normal to me in FF 2.0.0.10 . Charles On Nov 30, 12:20 pm, Glen Lipka [EMAIL PROTECTED] wrote: On the main page ofhttp://www.marketo.com/ There is a scrolling quote on the left. (Originally made by Karl, I think) Watch it for 15 seconds. After that it starts to go nuts. Any ideas why this is happening? The whole page uses jQuery. Glen
[jQuery] Re: Form target out of jquery plugin cluetip
I won't get into an anti iframes flame, but in your example: FORM ACTION= do.php target=something You would be targeting an iFrame named something The target in HTML lets you tell a link, form, whatever where to load, be it in a new window, an iframe, whatever. Here is a link to some frame targeting info that should help you understand what to do including how to do the same in javascript: http://www.technorealm.co.uk/design/frame-targetting.html Hope this helps you out. Wil On 11/29/07, Merlin [EMAIL PROTECTED] wrote: Hello everybody, I am relativly new to Jquery so forgive me if this is a bit basic. I am opening a form with cluetip that where user can submit. Now if I hit the submit button the parent window gets affected, not the iframe. I believe from forum readings that I have to add a target into that form: FORM ACTION=do.php target=something But what is the target name? I can not find it anywhere. Can somebody please help? Thank you for any hint. Merlin
[jQuery] Re: Our New (and first) Ajax E-Commerce project using jQuery
Karl Thank you for this: -- 1. On the main sicilianidoc logo, you're using the image-replacement technique. This is great, but in Firefox, when the link becomes active the dotted border goes all the way off to the left of the page, because of the text-indent: -2000px; . This is easily fixed by adding overflow: hidden; to your h1 a rule in the stylesheet: h1 a {height : 160px; display : block; background : url(immagini/ logo.jpg) no-repeat center center; width : 230px; text-indent : -2000px; overflow: hidden;} --- I've tried and was great! But I found a better (not fully w3c standard because it uses a -moz rule) solution... And I want to share it with you all! Just add this on your main css file a:active {outline : none;} a:focus{ -moz-outline-style: none; } I hope it Helps! - Thank you for the other great comments suggestions! Antonio
[jQuery] Using Superfish with images as triggers (a or img as top level)?
Hi, Can anyone give me some pointers on how to use Superfish were the top level triggers are images (or links with images in them)? Superfish seems to be all setup for *all* nav items being in a list(s) whereas I want my top level to be images. ThanX!
[jQuery] Using Superfish with images as triggers
Hi, How does one use Superfish with a set of images used as the top level? Normally, the top of the nav ul would form the top level options but I need to use images to trigger the sub menus to open. Thanx!
[jQuery] ajax/jquery architectural question
i am loving jquery and the foray into a very ajax centric development approach. i am stuck though on a key architectural question. my app loads different aspects of the ui separately into divs ... and swaps out div content according to ui actions. very responsive and elegant from user standpoint. the key thing i am unclear on is how the newly ajax-loaded content can access the javascript functionality of the rest of the page/app. say the jquery library itself for example, or my own scripts, classes/functions. should every loaded content chunk (using php) require_once: jquery lib, my libs, jquery plugins etc? won't this have a negative performance impact? or will browser caching kick in and make it a moot point? or is there another way i should approach things? -- View this message in context: http://www.nabble.com/ajax-jquery-architectural-question-tf4924181s27240.html#a14092255 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Fetching data with jQuery tutorial
Jim, Nice post. On 11/30/07, Priest, James (NIH/NIEHS) [C] [EMAIL PROTECTED] wrote: Before Rey beats me to it :) I typed up a quick tutorial on my first use of Ajax w/jQuery: http://www.thecrumb.com/2007/11/30/fetching-data-with-jquery/ Just like everything else I've done with jQuery it was easy and quick to implement :) Soon as I have some time I'm also going to post the final results of my checkbox show/hide code which several people on the list (Karl, Trevor, etc) helped me with. Jim -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com http://www.benjaminsterling.com
[jQuery] Fetching data with jQuery tutorial
Before Rey beats me to it :) I typed up a quick tutorial on my first use of Ajax w/jQuery: http://www.thecrumb.com/2007/11/30/fetching-data-with-jquery/ Just like everything else I've done with jQuery it was easy and quick to implement :) Soon as I have some time I'm also going to post the final results of my checkbox show/hide code which several people on the list (Karl, Trevor, etc) helped me with. Jim
[jQuery] Re: noob question: how to close current visible DD in this script
I made this a while back. http://www.commadot.com/jquery/faq.php I think it does what you want. You can change the markup to be DD/DT pretty easily. Glen On Nov 30, 2007 8:47 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ladies and Gentlemen, Here goes my complete noob question: I have this demo page: http://www.itchycloud.co.uk/panther/ in which I'm using this jquery script: $(document).ready(function(){ $(dd:not(:first)).hide(); $(dt a).click(function(){ $(dd:visible).slideUp(slow); $(this).parent().next().slideDown(slow); return false; }); }); which I found on sniplr: http://snipplr.com/view/2208/jquery-collapsible-sidebar-menu/ I would like to modify this script so that when the user clicks on the current active - displayed, open - DTA then the appropriate DD will collapse/hide. I suppose it should be something like this in pseudo-code: if current.DT is the previous sibling of current visible DD then click function() will close DD; else click function() will open next sibling DD Basically, when there is a lot of content in a given DD I want the user to be able to click on the previous sibling DT A and it will close that DD. This will prevent a lot of scrolling with some pages on the planned website. TIA for your help. I am really looking forward to learning javascript and jquery, Adrian
[jQuery] Trigger keypress event to launch autocompletion
Hi, I'm using the autocomplete script, and I like it a lot. script type=text/javascript src=javascript/interface.js/script script type=text/javascript src=javascript/iautocompleter.js/script But I want it to search not when I write in the input by hand but when I change the input with a script like this : var content = how are y ; $([EMAIL PROTECTED]).eq(0).focus().val(content); To lauch the autocompletion after my content is in the input, I still need to press a key (down arrow for instance), how can I emulate this to launch the autocompletion without touching the keyboard ?? I've tried $([EMAIL PROTECTED]).eq(0).focus().val(content).trigger(keydown); But it isn't enought. Thanks for reading, BoOz
[jQuery] Tooltip
Hello, Is there a JQuery tooltip available that can be used to show a custom tooltip, based on a text passed to the function which does not require a title or a tag set. For example on hover over a table row shows a tip.
[jQuery] Re: Our New (and first) Ajax E-Commerce project using jQuery
Karl Thank you for this: -- 1. On the main sicilianidoc logo, you're using the image-replacement technique. This is great, but in Firefox, when the link becomes active the dotted border goes all the way off to the left of the page, because of the text-indent: -2000px; . This is easily fixed by adding overflow: hidden; to your h1 a rule in the stylesheet: h1 a {height : 160px; display : block; background : url(immagini/ logo.jpg) no-repeat center center; width : 230px; text-indent : -2000px; overflow: hidden;} --- I've tried and was great! But I found a better (not fully w3c standard because it uses a -moz rule) solution... And I want to share it with you all! Just add this on your main css file a:active {outline : none;} a:focus{ -moz-outline-style: none; } I hope it Helps! - Thank you for the other great comments suggestions! Antonio
[jQuery] noob question: how to close current visible DD in this script
Ladies and Gentlemen, Here goes my complete noob question: I have this demo page: http://www.itchycloud.co.uk/panther/ in which I'm using this jquery script: $(document).ready(function(){ $(dd:not(:first)).hide(); $(dt a).click(function(){ $(dd:visible).slideUp(slow); $(this).parent().next().slideDown(slow); return false; }); }); which I found on sniplr: http://snipplr.com/view/2208/jquery-collapsible-sidebar-menu/ I would like to modify this script so that when the user clicks on the current active - displayed, open - DTA then the appropriate DD will collapse/hide. I suppose it should be something like this in pseudo-code: if current.DT is the previous sibling of current visible DD then click function() will close DD; else click function() will open next sibling DD Basically, when there is a lot of content in a given DD I want the user to be able to click on the previous sibling DT A and it will close that DD. This will prevent a lot of scrolling with some pages on the planned website. TIA for your help. I am really looking forward to learning javascript and jquery, Adrian
[jQuery] Re: jQuery.extend not working for function as target,is it a bug?
is there any reason to use first variant instead of second? jQuery.extend(target, {}) jQuery.extend(target.prototype, {}) 2007/11/30, David Serduke [EMAIL PROTECTED]: Ah the beauty of bug fixes. Fix one thing and break another. This was a change from changeset [3841]. There were some issues with deep copy and this was one of the changes to prevent the problems. The problem you are having should be fixed in [3985]. Sorry bout that. David -- Максим Игоревич Гришаев, AstroStar.ru
[jQuery] Re: quick question, selecting dynamic elements
here is my code. http://pastemonkey.org/paste/229 for some reason i still cant get this to work. instead of using the toggle(); function i am manually toggling the elements based on the resulting string. but how can i select an element based on a variable. essentially the variable newSpecial is equal to the selector im trying to select. $(newSpecial) doesn't work, $(newSpecial) doesn't work. i cant figure it out. On Nov 29, 9:38 pm, Josh V [EMAIL PROTECTED] wrote: wow silly me, after all I am trying to target the ID, # would be useful. :p ill give that a try tomorrow. On Nov 29, 7:22 pm, Karl Swedberg [EMAIL PROTECTED] wrote: On Nov 29, 2007, at 6:04 PM, Josh V wrote: on click i am storing the ID of an the a i clicked. i am then replacing characters in that string to get the desired resulting string. i am then trying to toggle a div whos ID is the resulting string. heres what i got. $(ul#specialsNav li a).click( function(){ var whichID = $(this).attr(id).replace(/_a_/, ); var newSpecial = div. + whichID; $(newSpecial).toggle(); }); i have tried putting... $(newSpecial).toggle(); but nothing Hi Josh, Is it because you're using div. instead of div#? You shouldn't even need the div part at all. Try this instead: var newSpecial = # + whichID; Hope that helps. --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com
[jQuery] Re: quick question, selecting dynamic elements
Your selector is still incorrect, this this instead: $(ul#specialsNav li a).click( function(){ var whichID = $(this).attr(id).replace(/_a_/, ); $(# + whichID).toggle(); return false; }); jvittetoe2 wrote: here is my code. http://pastemonkey.org/paste/229 for some reason i still cant get this to work. instead of using the toggle(); function i am manually toggling the elements based on the resulting string. but how can i select an element based on a variable. essentially the variable newSpecial is equal to the selector im trying to select. $(newSpecial) doesn't work, $(newSpecial) doesn't work. i cant figure it out. On Nov 29, 9:38 pm, Josh V [EMAIL PROTECTED] wrote: wow silly me, after all I am trying to target the ID, # would be useful. :p ill give that a try tomorrow. On Nov 29, 7:22 pm, Karl Swedberg [EMAIL PROTECTED] wrote: On Nov 29, 2007, at 6:04 PM, Josh V wrote: on click i am storing the ID of an the i clicked. i am then replacing characters in that string to get the desired resulting string. i am then trying to toggle a div whos ID is the resulting string. heres what i got. $(ul#specialsNav li a).click( function(){ var whichID = $(this).attr(id).replace(/_a_/, ); var newSpecial = div. + whichID; $(newSpecial).toggle(); }); i have tried putting... $(newSpecial).toggle(); but nothing Hi Josh, Is it because you're using div. instead of div#? You shouldn't even need the div part at all. Try this instead: var newSpecial = # + whichID; Hope that helps. --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com -- View this message in context: http://www.nabble.com/quick-question%2C-selecting-dynamic-elements-tf4900879s27240.html#a14097100 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Multiple jCarousel 's on one page
anybody? On Nov 29, 5:03 pm, Josh V [EMAIL PROTECTED] wrote: hi. i have a site where i need two different carousels on the same page. each carousel has a different purpose with different items and different controls. how can i go about getting this done? it seems to me there would be a css conflict issue with the jquery.jcarousel.css file. how do i specify 2 different css files for each carousel?
[jQuery] Re: ajax/jquery architectural question
A way to do this w/o adding another plugin is as follows. I'm sure there are situations where livequery outperforms this perhaps but I haven't needed it yet... Say I'm loading script.html and I want my function, called bobFun, to be applied to the newly loaded content... //here's your function var bobFun = function(){ //some function }; //here's how you set it up originally $(#mydiv).click(bobFun); //here's how you make apply the same function to your loaded content $(this).load(script.html, function() { $(#mydiv).click(bobFun); }); Works pretty well for me. Karl's reply with tutorial links follows... -- Forwarded message -- From: Karl Swedberg [EMAIL PROTECTED] Date: Nov 24, 2007 9:39 AM Subject: [jQuery] Re: jQuery functions on loaded html The livequery plugin is excellent. Highly recommended. If you'd like to learn how to do this sort of thing yourself, check out the FAQ topic: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F That topic points to this tutorial (which is excerpted from the Learning jQuery book): http://docs.jquery.com/Tutorials:AJAX_and_Events --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com
[jQuery] Re: Masked Input Plugin 1.1.2
That's good to know! I had a good discussion with Felix about other forms of validation. My problem with regular expressions is that there's no good way to convey what is a mask character and what is a placeholder. This is something that is on my mind and I'm looking into ways to expand validation functionality. Josh digitalbush.com On Nov 30, 8:55 am, KidsKilla .grin! wuz here [EMAIL PROTECTED] wrote: I tried, seems like it works just fine =): input.one(unmask,function(){ input.unbind(focus,focusEvent); input.unbind(blur,checkVal); input.unbind(keydown,keydownEvent); input.unbind(keypress,keypressEvent); input.unbind('paste, input',checkValST0); }); input.bind(focus,focusEvent); input.bind(blur,checkVal); input.bind(keydown,keydownEvent); input.bind(keypress,keypressEvent); input.bind('paste, input', checkValST0); checkVal();//Perform initial check for existing values }); function checkValST0(){ setTimeout(checkVal,0); }; And maybe it's better to accept RegExp to use it like a template for validation? 2007/11/30, Josh Bush [EMAIL PROTECTED]: By using the event.identifier type binding, I'd be limiting my plugin to 1.2.x+. I've never tried using bind with the paste and input events. The solution that is in the plugin was the only way I could make it work, but that was quite some time ago. I'll investigate that further when I get home tonight. Can anyone confirm if that would work or not? Josh On Nov 30, 6:56 am, KidsKilla .grin! wuz here [EMAIL PROTECTED] wrote: Great plugin! i only think it's better to use somethin like $(this).bind('paste.jqmask, input.jqmask',function(){ setTimeout(checkVal,0);};) instead of if ($.browser.msie) this.onpaste= function(){setTimeout(checkVal,0);}; else if ($.browser.mozilla) this.addEventListener('input',checkVal,false); 2007/11/30, Josh Bush [EMAIL PROTECTED]: I just released version 1.1.2 of my Masked Input Plugin for jQuery. Felix Geisendörfer helped me mash out a few things with this release. He fixed the bug for Mac/Firefox with the backspace key and got me to open up the caret positioning functions. Thanks Felix! Here are the changes for this release * Fixed a bug in Mac Firefox with backspacing. * Fixed a bug where delete at end of mask produced an extra placeholder character. * Exposed the caret positioning and retrieval methods as a jQuery function extension. You can now call $().caret() to get a caret position and $().caret(start [,end]) to set a caret position. Please go check out the latest version athttp://digitalbush.com/projects/masked-input-plugin -- Максим Игоревич Гришаев, AstroStar.ru -- Максим Игоревич Гришаев, AstroStar.ru
[jQuery] Re: jQuery CoverFlow
True enough. The ones I've seen where you could, though, were all very slow and jerky. On Nov 30, 10:56 am, Andy Matthews [EMAIL PROTECTED] wrote: But on his you can't drag it. Or at least I couldn't figure out how to in FF2. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Scholl Sent: Friday, November 30, 2007 9:50 AM To: jQuery (English) Subject: [jQuery] jQuery CoverFlow Greetings, all! Has anyone done a jQuery equivalent of Apple's coverflow navigation? I've seen several Javascript implementations, SE51 (http://www.se51.net/devnull/cover-flow/) being the nicest I've come across. But no sign of a jQuery variant that I've seen. This is beyond my skills and capabilities at present, but it would be a nice plugin to have in the repository. Anyone working on such a thing?
[jQuery] Re: jQuery CoverFlow
Andy you are correct, I did not see any code to actually make that draggable. On 11/30/07, Andy Matthews [EMAIL PROTECTED] wrote: But on his you can't drag it. Or at least I couldn't figure out how to in FF2. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Scholl Sent: Friday, November 30, 2007 9:50 AM To: jQuery (English) Subject: [jQuery] jQuery CoverFlow Greetings, all! Has anyone done a jQuery equivalent of Apple's coverflow navigation? I've seen several Javascript implementations, SE51 (http:// www.se51.net/devnull/cover-flow/) being the nicest I've come across. But no sign of a jQuery variant that I've seen. This is beyond my skills and capabilities at present, but it would be a nice plugin to have in the repository. Anyone working on such a thing? -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com http://www.benjaminsterling.com
[jQuery] Re: jQuery CoverFlow
But on his you can't drag it. Or at least I couldn't figure out how to in FF2. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Scholl Sent: Friday, November 30, 2007 9:50 AM To: jQuery (English) Subject: [jQuery] jQuery CoverFlow Greetings, all! Has anyone done a jQuery equivalent of Apple's coverflow navigation? I've seen several Javascript implementations, SE51 (http:// www.se51.net/devnull/cover-flow/) being the nicest I've come across. But no sign of a jQuery variant that I've seen. This is beyond my skills and capabilities at present, but it would be a nice plugin to have in the repository. Anyone working on such a thing?
[jQuery] Re: jQuery.extend not working for function as target,is it a bug?
Hello Jacky, what reversion number of jquery you use? I was using the original 1.2.1 stable release: Rev: 3353 This was a change from changeset [3841]. There were some issues with deep copy and this was one of the changes to prevent the problems. The problem you are having should be fixed in [3985]. Looks like David's right, we're working from different versions. Thanks David! Charles
[jQuery] Re: jQuery CoverFlow
Hi guys, I have something like that planned for a long time. the current UI demo gallery features something quite similiar, but it doesn't operate in 3D, it only scales. There is only one possibility to create this effect using open web standards, that is by using he canvas element. However, right now, only the 2d context is supported in major browsers. Some days ago, a 3D context plugin was released with Firefox, and Opera has a certain build with a different 3D context implemention. If I find the time, I'm going to prepare a cover flow effect using these new APIs available. Paul On Nov 30, 5:05 pm, Kevin Scholl [EMAIL PROTECTED] wrote: True enough. The ones I've seen where you could, though, were all very slow and jerky. On Nov 30, 10:56 am, Andy Matthews [EMAIL PROTECTED] wrote: But on his you can't drag it. Or at least I couldn't figure out how to in FF2. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Scholl Sent: Friday, November 30, 2007 9:50 AM To: jQuery (English) Subject: [jQuery] jQuery CoverFlow Greetings, all! Has anyone done a jQuery equivalent of Apple's coverflow navigation? I've seen several Javascript implementations, SE51 (http://www.se51.net/devnull/cover-flow/) being the nicest I've come across. But no sign of a jQuery variant that I've seen. This is beyond my skills and capabilities at present, but it would be a nice plugin to have in the repository. Anyone working on such a thing?
[jQuery] Re: Newbie needs help on selector
On Nov 30, 2007, at 12:48 AM, Dan M wrote: Karl, Thanks for taking the time to help! Should I be able to apply the hide method from there??? $('input:not(:checkbox)').prev('label').hide('slow'); Yes, absolutely. Of course, you need to bind it to an event of some sort, too, or at least put it inside document ready. $(document).ready(function() { $('input:not(:checkbox)').prev('label').hide('slow'); }); On Nov 29, 10:45 pm, Karl Swedberg [EMAIL PROTECTED] wrote: On Nov 29, 2007, at 8:00 PM, Dan M wrote: All, I don't know if this is the correct place to post this but here goes... I have form with many elements (textboxes, selects, textareas and such). Each element has a label just before it. I'm trying to select all of the labels in the form EXCEPT those that precede a checkbox. Thanks in advance for any help. Dan Hi Dan, You could start with the inputs and remove the checkboxes, and finally find all previous labels: $('input:not(:checkbox)').prev('label'); Or you could do it with a filter function: $('label').filter(function() { return !$(this).next(':checkbox').length; }); --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com
[jQuery] Re: CSS JS Library - is there a jQuery equivalent?
Heh, I was about to post the same, nice to see that someone remembered it :) Ariel Flesler On Nov 29, 2:04 pm, sawmac [EMAIL PROTECTED] wrote: On Nov 29, 5:16 am, Guy Fraser [EMAIL PROTECTED] wrote: Another sweet thing found on Ajaxian:http://feeds.feedburner.com/~r/ajaxian/~3/192351009/new-css-javascrip... There was recently a thread regarding a jQuery plugin which dealt with CSS but I can't find it now. Maybe you're thinking about the Rule plugin:http://jquery.com/plugins/project/Rule --dave
[jQuery] Re: Jcarousel problems in Safari.
Hi, On 30 Nov., 12:55, jonhobbs [EMAIL PROTECTED] wrote: Hi, I've been trying to use Jcarousel -http://sorgalla.com/jcarousel/- I'm sure some of you will know of it. The problem is that I was coming across all sorts of display bugs in the PC version of Safari (version 3.0.3). I thought it was my implementation but then I checked the official site and found out that the demos on there don't work either. If you try this demo in Safari -http://sorgalla.com/projects/jcarousel/examples/static_simple.html - and click the back and forward buttons you should see that items just disappear. In my implementation the items usually start off showing but then end up spaced really far apart or disappearing completely when you scroll back and forth. i've checked that with version 3.0.4 and can't reproduce that. Its all working just fine for me... Jan
[jQuery] jQuery CoverFlow
Greetings, all! Has anyone done a jQuery equivalent of Apple's coverflow navigation? I've seen several Javascript implementations, SE51 (http:// www.se51.net/devnull/cover-flow/) being the nicest I've come across. But no sign of a jQuery variant that I've seen. This is beyond my skills and capabilities at present, but it would be a nice plugin to have in the repository. Anyone working on such a thing?
[jQuery] Re: Masked Input Plugin 1.1.2
Great plugin! i only think it's better to use somethin like $(this).bind('paste.jqmask, input.jqmask',function(){ setTimeout(checkVal,0); };) instead of if ($.browser.msie) this.onpaste= function(){setTimeout(checkVal,0);}; else if ($.browser.mozilla) this.addEventListener('input',checkVal,false); 2007/11/30, Josh Bush [EMAIL PROTECTED]: I just released version 1.1.2 of my Masked Input Plugin for jQuery. Felix Geisendörfer helped me mash out a few things with this release. He fixed the bug for Mac/Firefox with the backspace key and got me to open up the caret positioning functions. Thanks Felix! Here are the changes for this release * Fixed a bug in Mac Firefox with backspacing. * Fixed a bug where delete at end of mask produced an extra placeholder character. * Exposed the caret positioning and retrieval methods as a jQuery function extension. You can now call $().caret() to get a caret position and $().caret(start [,end]) to set a caret position. Please go check out the latest version at http://digitalbush.com/projects/masked-input-plugin -- Максим Игоревич Гришаев, AstroStar.ru
[jQuery] Documentation of datatype map
Hello all, i'm new to jquery and i'm very happy with it! Thaks to the developers! I have a missing documentation hint. The datatype map, for example used in $.get(url,data,callback) for data, is documented as Key/value pairs that will be sent to the server.. What is missing is the possibility to us an array as value. Looking thru the code told me, that in this case the key will be repeated. Using PHP at the serverside you can use the [] to declare the key as array - known from checkboxes and multiple-selects. Using: var data={'key[]':[foo,bar]} in jquery, would be: $_GET['key'][0]=foo; $_GET['key'][1]=bar; in PHP. Maybe that hint is useful for someone or get's included to the documentation. Regards, Mario Wolff
[jQuery] Jcarousel problems in Safari.
Hi, I've been trying to use Jcarousel - http://sorgalla.com/jcarousel/ - I'm sure some of you will know of it. The problem is that I was coming across all sorts of display bugs in the PC version of Safari (version 3.0.3). I thought it was my implementation but then I checked the official site and found out that the demos on there don't work either. If you try this demo in Safari - http://sorgalla.com/projects/jcarousel/examples/static_simple.html - and click the back and forward buttons you should see that items just disappear. In my implementation the items usually start off showing but then end up spaced really far apart or disappearing completely when you scroll back and forth. I'm hoping somebody will have come across this bug before and know of a solution. If there isn't one then that's a shame because as far as I know it's the only carousel solution built using Jquery and my knowledge doesn't really stretch as far as being able to make my own :( Jon
[jQuery] Re: jQuery.extend not working for function as target,is it a bug?
Ah the beauty of bug fixes. Fix one thing and break another. This was a change from changeset [3841]. There were some issues with deep copy and this was one of the changes to prevent the problems. The problem you are having should be fixed in [3985]. Sorry bout that. David
[jQuery] Opacity/Transperency in clueTip Plugin
Hi All, First of all, thanks for everybody behind jQuery and lot of useful plugins it comes with especially clueTip ( for this post :) . I wanted to know if it is possible to achieve opacity/transperency in clueTip plugin ? If so how do I do that ? Thanks n' Regards, Samyak
[jQuery] Re: Noob question: How to access a PHP variable and append it to the html?
Your best approach would be to write a PHP script that serves data in XML or JSON format and then invoke the script from a $.ajax call in jQuery. Then you process the data you get back and insert it into your document as appropriate. Sorry for being vague, but without more information that's the best I can do. On Nov 29, 9:34 pm, Action [EMAIL PROTECTED] wrote: I have a PHP array of data I want to be able to append to the html using jquery and ajax. I want to be able to add different elements of the array to different parts of the page. How can I go about doing this?
[jQuery] Re: Noob question: How to access a PHP variable and append it to the html?
There are a lot of way to take data via ajax. I always use this one: Client side: data = param1=fooparam2=bar $.ajax({ type: POST, url: ajax.php, data: data, dataType: json, success: function(data_result) { FillResult(data_result) } // on success the FillResult will be fired passing the result data from the php call }); function FillResult(data) { $('#divtofill').html(data.param1+br /+data.param2); } on server side: ?php $param1 = $_POST['param1']; // here you have to check if in post there is the data you expect for security reasons $param2 = $_POST['param2']; // here you have to check if in post there is the data you expect for security reasons // then you can retrieve your data in the way you want, I'm going to return the posted data json_encode($_POST); // this function comes from the json php extension, which is included by default in php5, in php4 you can find it via PECL. ? Hope this help. Bye On Nov 29, 10:34 pm, Action [EMAIL PROTECTED] wrote: I have a PHP array of data I want to be able to append to the html using jquery and ajax. I want to be able to add different elements of the array to different parts of the page. How can I go about doing this?
[jQuery] Re: Using Superfish with images as triggers (a or img as top level)?
On 01/12/2007, Josh V [EMAIL PROTECTED] wrote: can you place your images in lists. liimg //li of use lists with background images? Or better still: liaimg //ali ...or background images set on those anchors (hiding any text with text-indent:-999em;). Make sure you use anchors inside the list either way, because Superfish's keyboard accessibility depends on it. Joel Birch
[jQuery] Re: Scrolling Quote Craziness
Oh sure, Glen. Blame it all on me! :-p Just kidding. I'm glad you switched it to the cycle plugin. I'm actually using it, too, on a site I just redesigned: http://www.calvin.edu/festival/ I remember writing that script for you on the bus ride home from work about a year ago. Seems like a lifetime ago. Jonathan and I wrote a better version of the same thing for the Learning jQuery book. But there's nothing like a great plugin to ease the pain. Mike Alsup rocks! --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 30, 2007, at 4:37 PM, Glen Lipka wrote: I just switched it to the cycle plugin. Wow, what a cool plugin. I like it alot! I think I am going to try and use it elsewhere. Anyway, problem solved. Glen On Nov 30, 2007 1:31 PM, polyrhythmic [EMAIL PROTECTED] wrote: Looks normal to me in FF 2.0.0.10 . Charles On Nov 30, 12:20 pm, Glen Lipka [EMAIL PROTECTED] wrote: On the main page ofhttp://www.marketo.com/ There is a scrolling quote on the left. (Originally made by Karl, I think) Watch it for 15 seconds. After that it starts to go nuts. Any ideas why this is happening? The whole page uses jQuery. Glen
[jQuery] Re: slideUp submenu before loading a new page (it won't wait)
Hi Rob, Here I think the documentation will be very helpful. http://docs.jquery.com/Traversing/next#expr You can insert an expression into the .next() to filter it further -- by class, tag name, id, whatever. So, in your situation, you can do this: $(dt.current).next('dd').addClass(show) If the next element isn't a dd, nothing will happen. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 30, 2007, at 8:27 AM, Rob_ wrote: Managed to fix the previous problem and am left with a less critical one...: $(dt.current).next().addClass(show); ...adds this class to my dd submenu. However, when there's no submenu, the class is added to the next element, like the next dt So, with this code I would *not* like to add class=show if next() is not a dd Again, had to give up after 20 times of trying and thinking how easy and intuitive this one would be... ;-p
[jQuery] Re: Survey, what is the scariest animal?
Rey Bango wrote on 11/30/2007 9:56 AM: It may have slipped through. We do our best to catch these when Google doesn't but we can't catch em all. Oh, I expect things will slip through. I was just asking so that the poster can be shown the door. - Bil
[jQuery] Re: Survey, what is the scariest animal?
biophilen wrote on 11/30/2007 1:53 AM: Please take 10-15 mnutes of your time to be an anonymous participant in a research project that I am performing for school. Doesn't posting the same message in 385 different forums count as spam? http://groups.google.com/groups/search?q=biophilenqt_s=Search+Groups - Bil
[jQuery] Re: slideUp submenu before loading a new page (it won't wait)
Managed to fix the previous problem and am left with a less critical one...: $(dt.current).next().addClass(show); ...adds this class to my dd submenu. However, when there's no submenu, the class is added to the next element, like the next dt So, with this code I would *not* like to add class=show if next() is not a dd Again, had to give up after 20 times of trying and thinking how easy and intuitive this one would be... ;-p
[jQuery] Re: Noob question: How to access a PHP variable and append it to the html?
On Nov 30, 5:55 am, Action [EMAIL PROTECTED] wrote: On Nov 29, 8:02 pm, Wizzud [EMAIL PROTECTED] wrote: For example ... ? Sorry, maybe that was a bit too cryptic. Can you provide an example of your PHP data? Can you provide examples of the before/after affected HTML? Can you provide _any_ further information? As you can probably tell from the other responses received so far, your question is too general for anyone to be able to provide more than a vague guess at what you _could_ do. There are all sorts of different ways of going about this sort of thing, most of which could probably be ruled out as not applicable to your particular situation ... *if* we knew more about it! On Nov 29, 9:34 pm, Action [EMAIL PROTECTED] wrote: I have a PHP array of data I want to be able to append to the html using jquery and ajax. I want to be able to add different elements of the array to different parts of the page. How can I go about doing this?
[jQuery] Re: Using animate within an IFrame
Luciano, Thanks for the suggestion. The problem is that the page containing the iframe is not using jquery. The user is clicking on a button on the page inside the iframe and that page is where the jquery is being executed from. What's extremely odd is that the animation for width is working, it's just the animation for height which has no effect. Hardcoding: $(#myVideo).css({width: 60px, height: 45px}); works fine. Could there be something peculiar about the way animate targets the css element to be affected? TIA! On Nov 30, 2:21 am, Luciano G. Panaro [EMAIL PROTECTED] wrote: I think what's going on is that you are trying to access a dom element of the Iframe doc, and AFAIK you can't do that directly with jQuery selectors. However I found a discussion where this is solved:http://groups.google.com/group/jquery-en/browse_thread/thread/744ba7f... Hope it helps! On Nov 29, 6:04 pm, t3k [EMAIL PROTECTED] wrote: I'm trying desperately to figure out a problem using animate, iframes, and jmedia. It goes something like this: I have a piece of media (youtube video) displaying inside a definition list: dl id=myDL dt id=myDT embed id=myVideo width=240 height=180 bgcolor=#00 autoplay=1 pluginspage=http://www.macromedia.com/go/getflashplayer; src=http://www.youtube.com/v/x2wgJdMoSDgautoplay=1; type=application/x-shockwave-flash/ /dt /dl I'm trying to call animate on #myVideo to resize it when the user clicks a button. When the page is viewed normally, it works great, but when the page is viewed within an iframe the height doesn't seem to be change. The animate code is: $(#myVideo).animate({width: 60px, height: 45px}, {duration: slow}); To make things a little more complicated, I'm using jmedia to embed the video inside #myDT. Has anyone else grappled with this issue? It seems that there were a couple of questions in the past, but no solutions. Any help would be much appreciated! Thanks! Jason
[jQuery] unsubscribe
Hi guys. I have subscribed to this group but im not using a gmail account, how do I unsubscribe? thanks
[jQuery] Re: Masked Input Plugin 1.1.2
By using the event.identifier type binding, I'd be limiting my plugin to 1.2.x+. I've never tried using bind with the paste and input events. The solution that is in the plugin was the only way I could make it work, but that was quite some time ago. I'll investigate that further when I get home tonight. Can anyone confirm if that would work or not? Josh On Nov 30, 6:56 am, KidsKilla .grin! wuz here [EMAIL PROTECTED] wrote: Great plugin! i only think it's better to use somethin like $(this).bind('paste.jqmask, input.jqmask',function(){ setTimeout(checkVal,0);};) instead of if ($.browser.msie) this.onpaste= function(){setTimeout(checkVal,0);}; else if ($.browser.mozilla) this.addEventListener('input',checkVal,false); 2007/11/30, Josh Bush [EMAIL PROTECTED]: I just released version 1.1.2 of my Masked Input Plugin for jQuery. Felix Geisendörfer helped me mash out a few things with this release. He fixed the bug for Mac/Firefox with the backspace key and got me to open up the caret positioning functions. Thanks Felix! Here are the changes for this release * Fixed a bug in Mac Firefox with backspacing. * Fixed a bug where delete at end of mask produced an extra placeholder character. * Exposed the caret positioning and retrieval methods as a jQuery function extension. You can now call $().caret() to get a caret position and $().caret(start [,end]) to set a caret position. Please go check out the latest version athttp://digitalbush.com/projects/masked-input-plugin -- Максим Игоревич Гришаев, AstroStar.ru
[jQuery] Re: Masked Input Plugin 1.1.2
I tried, seems like it works just fine =): input.one(unmask,function(){ input.unbind(focus,focusEvent); input.unbind(blur,checkVal); input.unbind(keydown,keydownEvent); input.unbind(keypress,keypressEvent); input.unbind('paste, input',checkValST0); }); input.bind(focus,focusEvent); input.bind(blur,checkVal); input.bind(keydown,keydownEvent); input.bind(keypress,keypressEvent); input.bind('paste, input', checkValST0); checkVal();//Perform initial check for existing values }); function checkValST0(){ setTimeout(checkVal,0); }; And maybe it's better to accept RegExp to use it like a template for validation? 2007/11/30, Josh Bush [EMAIL PROTECTED]: By using the event.identifier type binding, I'd be limiting my plugin to 1.2.x+. I've never tried using bind with the paste and input events. The solution that is in the plugin was the only way I could make it work, but that was quite some time ago. I'll investigate that further when I get home tonight. Can anyone confirm if that would work or not? Josh On Nov 30, 6:56 am, KidsKilla .grin! wuz here [EMAIL PROTECTED] wrote: Great plugin! i only think it's better to use somethin like $(this).bind('paste.jqmask, input.jqmask',function(){ setTimeout(checkVal,0);};) instead of if ($.browser.msie) this.onpaste= function(){setTimeout(checkVal,0);}; else if ($.browser.mozilla) this.addEventListener('input',checkVal,false); 2007/11/30, Josh Bush [EMAIL PROTECTED]: I just released version 1.1.2 of my Masked Input Plugin for jQuery. Felix Geisendörfer helped me mash out a few things with this release. He fixed the bug for Mac/Firefox with the backspace key and got me to open up the caret positioning functions. Thanks Felix! Here are the changes for this release * Fixed a bug in Mac Firefox with backspacing. * Fixed a bug where delete at end of mask produced an extra placeholder character. * Exposed the caret positioning and retrieval methods as a jQuery function extension. You can now call $().caret() to get a caret position and $().caret(start [,end]) to set a caret position. Please go check out the latest version athttp://digitalbush.com/projects/masked-input-plugin -- Максим Игоревич Гришаев, AstroStar.ru -- Максим Игоревич Гришаев, AstroStar.ru
[jQuery] jQuery putting logic in separate file
I'm new to jQuery, so please bear with me. I'm putting the jQuery logic in a separate file for the jQuery calendar: script src/js/jquery.js type=text/javascript/script script src/js/sdr/jquery-calendar.js type=text/javascript/ script And the css link rel=stylesheet type=text/css href/css/sdr/us/en/ hostessBookingTracker.css / link href/css/sdr/tabs.css rel=stylesheet type=text/css media=screen / link href=/css/sdr/jquery-calendar.css rel=stylesheet type=text/ css media=screen / and nothing happens. If I include the script in the head it works fine. Any suggestions? Thanks.
[jQuery] Scrolling Quote Craziness
On the main page of http://www.marketo.com/ There is a scrolling quote on the left. (Originally made by Karl, I think) Watch it for 15 seconds. After that it starts to go nuts. Any ideas why this is happening? The whole page uses jQuery. Glen
[jQuery] Re: ajax/jquery architectural question
In our app we include all jquery/javascript code in our main page rather than loading more scripts via AJAX. We can then manipulate the new content (loaded via AJAX) using those already existing scripts, functions, etc. As far as binding events to this new content, we generally use the livequery plugin for that. On Nov 30, 2:12 pm, spherop [EMAIL PROTECTED] wrote: i am loving jquery and the foray into a very ajax centric development approach. i am stuck though on a key architectural question. my app loads different aspects of the ui separately into divs ... and swaps out div content according to ui actions. very responsive and elegant from user standpoint. the key thing i am unclear on is how the newly ajax-loaded content can access the javascript functionality of the rest of the page/app. say the jquery library itself for example, or my own scripts, classes/functions. should every loaded content chunk (using php) require_once: jquery lib, my libs, jquery plugins etc? won't this have a negative performance impact? or will browser caching kick in and make it a moot point? or is there another way i should approach things? -- View this message in context:http://www.nabble.com/ajax-jquery-architectural-question-tf4924181s27... Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Click through on stacked elements
I'm struggling to figure out a way to click through a series of stacked elements until I find one with my custom click handler. Is there an easy way to do this? For example I have a image of a US map and I want to put a clickable image behind it. When I click on the place where the image is behind (placed behind using the z-axis) I want the behind element with the bound click handler to fire. So far it doesn't seem to work with the US map image in front of the clickable element. If I put the clickable element in front of the map it works. Is there a way to chain through elements under the mouse and have the first with a bound click take the event? If I'm not being clear please let me know so I can explain in a different way. Thanks, ml
[jQuery] Re: Attribute Selector Docs Error?
I have been following the docs and using a very recent version of jQuery. The docs don't mention the @ thing at all and I was wondering why my selector didn't work... Well obviously I'll upgrade and leave out the @ but it would have been handy to learn this just by reading the docs... The docs are correct as of jQuery version 1.2. Previous versions use @. Actually, you can get by using @ even in 1.2, but it's deprecated.
[jQuery] Re: Superfish: a way to right-align arrow char?
Hi Jennifer, Maybe try wrapping a span tag (with a class... say arrow) around the arrow character and do: .arrow { position: absolute; right: .5em; top: .5em; } ...or something like that. Joel Birch.