Re: [jQuery] bgiframe update, sneak peak
On 18/03/2007, at 3:10 PM, John W wrote: Hey guys this is great stuff. Joel your menu works a lot better now under IE6 and Brandon thanks for making Bgiframe updates. One thing I was wondering, since IE7 doesnt really suffer from the same issue as IE6 perhaps there is a way not to fire the bgiframe for IE7. There isnt really a reason to have the iframe with IE7 or maybe Im wrong? Too bad with with $.browser you cant specify the browser version only the type. Hint hint for a jquery update. Thanks John. Regarding excluding IE7 - the bgIframe already does that with these lines: // This is only for IE6 if ( !($.browser.msie typeof XMLHttpRequest == 'function') ) return this; I was reading the archive of the dev list the other day and saw talk about introducing $.browser.msie6. I didn't find what the resolution of the thread was. Does anyone reading this know what was decided? Joel. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Problem with Star Rating plugin
Hey everyone I'm having problems with the star rating plugin written by Ritesh Agrawal. I've tried contacting him but he hasn't yet replied to my email, so I'm hoping someone on the list can help out. What is also odd is that it was working before, but isn't now. Here's the link to the plugin I'm using: http://php.scripts.psu.edu/rja171/widgets/rating.php The reason why I'm using this star rating plugin, and not the original one, is that this one allows me to implement a one star / unstar system like Gmail. Here's a sample page where I'm using the plugin: http://arsenal-mania.com/news/3103818/Gilberto-rumours-squashed.html When you click on a star, it is meant to go off to a URL and submit the post. If I copy and paste the URL it's meant to go off to into the browser's address bar, it works, so there is nothing wrong with the script that does that, just the plugin not directing to the required URL. Would appreciate it greatly if any of the jquery gurus on this list could help, and I will provide as much relevant information as I can. Thanks again. -- Jonathan Chong http://jonathanchong.com/ http://arsenal-mania.com/ http://ashburrn.com/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Javascript MVC
Hi guys, just saw this posted on cakebaker. Wondered what people thought... http://cakebaker.42dh.com/2007/03/17/mvc-with-javascript/ Cheers, Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Javascript MVC
Interesting. I had never thought of using a MCV approach to Javascript. Now I this gives me something to think about. On 3/18/07, Chris Domigan [EMAIL PROTECTED] wrote: Hi guys, just saw this posted on cakebaker. Wondered what people thought... http://cakebaker.42dh.com/2007/03/17/mvc-with-javascript/ Cheers, Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Javascript MVC
Perhaps fun as an exercise, but it looks like a lot of overhead for relatively little gain. Also, it doesn't really fit my idea of MVC. In this, the Controller is pushing information from the Model into the View. To me, the View is supposed to pull information from the Model, and the Model is mapped to the View by way of the Controller, which also handles interactions and responds to events. It looks like a creative pairing of buzzwords to me :) But it's a clever exercise. --Erik On 3/18/07, Chris Domigan [EMAIL PROTECTED] wrote: Hi guys, just saw this posted on cakebaker. Wondered what people thought... http://cakebaker.42dh.com/2007/03/17/mvc-with-javascript/ Cheers, Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] bgiframe update, sneak peak
Hmm Didnt realize that would do the trick. Because IE use an active x object and IE7 does not. I admit Im not the javascript expert. Thanks for pointing that out. // This is only for IE6 if ( !($.browser.msie typeof XMLHttpRequest == 'function') ) return this; And yes I do hope they add in a method to check a browser version. I believe there is a plugin that adds that capability but It would be nice if it was just native to jquery. thumblewend wrote: On 18/03/2007, at 3:10 PM, John W wrote: Hey guys this is great stuff. Joel your menu works a lot better now under IE6 and Brandon thanks for making Bgiframe updates. One thing I was wondering, since IE7 doesnt really suffer from the same issue as IE6 perhaps there is a way not to fire the bgiframe for IE7. There isnt really a reason to have the iframe with IE7 or maybe Im wrong? Too bad with with $.browser you cant specify the browser version only the type. Hint hint for a jquery update. Thanks John. Regarding excluding IE7 - the bgIframe already does that with these lines: // This is only for IE6 if ( !($.browser.msie typeof XMLHttpRequest == 'function') ) return this; I was reading the archive of the dev list the other day and saw talk about introducing $.browser.msie6. I didn't find what the resolution of the thread was. Does anyone reading this know what was decided? Joel. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/bgiframe-update%2C-sneak-peak-tf3402941.html#a9537223 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] dimensions plugin Mozilla bug
While playing with Ext I encountered a problem in Firefox whereby the offset function in dimensions was causing an elem.style error. The reason is that there is a do-while loop if options.scroll is set, and that loop will go all the way up to the document, at which point - if the browser is Mozilla - the code attempts to check the css for overflow not visible and falls over because document has no style. I fixed this in my version by modifying line 260 of dimensions.js and inserting a check for op, so the line now begins ... if (op jQuery.browser.mozilla This prevents the jQuery.css() call failing at the document level. -- View this message in context: http://www.nabble.com/dimensions-plugin-Mozilla-bug-tf3421935.html#a9537545 Sent from the jQuery Plugins mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Javascript MVC
On 3/18/07, Chris Domigan [EMAIL PROTECTED] wrote: Hi guys, just saw this posted on cakebaker. Wondered what people thought... http://cakebaker.42dh.com/2007/03/17/mvc-with-javascript/ Cheers, Chris If you really want to write an application totally in javascript, you may want to go http://trimpath.com/ way. RoR fans seems like to turn everything on the world into a framework. -- simple is good http://brucewang.net skype: number5 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] slideDown/slideUp problems when using tables
Hi Kush, If you are smoking crack, you're surprisingly lucid, because I've noticed the same issues. :) Like you, I threw in the .show() to get the .fadeIn() to work in FF, but we shouldn't have to do that. Also, I hadn't tested in IE, but now I see that table rows hide and show without animation whether we use fade in/out or slide down/up. I'll try to submit a bug report later today. Thanks a lot for noting those things! --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 17, 2007, at 9:51 PM, Kush Murod wrote: Hi Karl, Thanks for your help dude There are few things though. in FF it fades in/out, but it had to manually show() it [.fadeIn ('slow').show();] otherwise wasn't fadeIn, is it supposed to that way in IE doesn't fade in/out is this a limitation or is it just me smoking crack :) http://www.khurshid.com/sebs/?page=portfolio_Table Regards, Kush Karl Swedberg wrote: Hi Kush, It looks like you're using jquery.latest.js. That one won't work with the .fadeIn() and .fadeOut(). As I mentioned before, you'll need the most recent nightly build. Actually, scratch that. It looks like the file there is dated 2007-03-01 (Rev: 1472): http://jquery.com/src/nightlies/jquery-nightly.js So, I put the latest svn builds up on my test server if you want to grab one and try the row stuff with it. It works fine with my tables: * $Date: 2007-03-16 16:37:10 -0400 (Fri, 16 Mar 2007) $ * $Rev: 1538 $ http://test.learningjquery.com/scripts/jquery.js http://test.learningjquery.com/scripts/jquery.lite.js http://test.learningjquery.com/scripts/jquery.pack.js --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 17, 2007, at 7:36 PM, Kush Murod wrote: Hi Karl, Your idea is great workaround, I have tried it http:// www.khurshid.com/sebs/?page=portfolio_Table However still something weird as you can see Maybe I should just give up and use pure CSS Thanks for help Kush Karl Swedberg wrote: there have already been a number of threads related to the problems with showing and hiding table rows. In a nutshell, table rows get mangled in Firefox when using any of the animated show and hide techniques because of FF's use of display:table-row and jQuery's setting animated elements to display:block when showing them. The non-animated .show() and .hide() work fine. Also, John Resig just posted a fix to opacity-related bugs yesterday, so you might be able to use .fadeIn() and .fadeOut() with table rows if you grab the latest nightly build: http://docs.jquery.com/Downloading_jQuery#Nightly_Builds While .slideDown() and .show('speed') still won't work properly in FF, you could use .fadeIn() as a compromise if you need some animation. For example, $('tr:eq(2)').fadeOut('slow'); and $('tr:eq(2)').show().fadeIn('slow'); to hide and show the third table row. Also, you may find the solution in this thread helpful as well for doing the slide: http://www.nabble.com/Hiding-and-showing-table-rows- tf2585537.html#a7208756 --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 17, 2007, at 11:11 AM, Rick Faircloth wrote: Hi, Kush... Looks like the responses are kinda slow today, so this newbie (only working with jQuery for about 2 weeks) will tell you the little he's learned. I was very interested in using sliding table rows for exposing details of calendar events. I could get the rows sliding, but was never happy with how smoothly they would show hide. I tried using two separate tables, one for the always showing event summary and another for the showing hiding details. That performed really well. Don't ask me why. Here's an example of what I did showing the concept. It's just a couple of headings and then when you click you see the details. http://resm.whitestonemedia.com/html/trial_slide.cfm Don't worry about the This is the part to click. line... that's just experimentation. Is it performance of the show/hide you're concerned about? Rick -Original Message- From: [EMAIL PROTECTED] [mailto:discuss- [EMAIL PROTECTED] On Behalf Of Kush Murod Sent: Saturday, March 17, 2007 8:44 AM To: jQuery Discussion. Subject: Re: [jQuery] slideDown/slideUp problems when using tables Hi, me again I meant I need some help with sliding table rows (tr) which doesn't slide properly as it does when using divs Thanks, Kush ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery Powered Sites - The List Continues to Grow
The domain laid waste so I launched http://validhtml.com - Enjoy! :) dominik ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery Powered Sites - The List Continues to Grow
Aww... so many PHP errors :( Love the domain name, though! --John On 3/18/07, Dominik Hahn [EMAIL PROTECTED] wrote: The domain laid waste so I launched http://validhtml.com - Enjoy! :) dominik ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Selector not firing
Thanks, Jack. I found dimensions.js last night and it's great. It's a feature *every* js library should include - an easy way to get offsets and dimensions.That's just critical info. I just looked at block and that looks like *exactly* what I need for this. Thanks for the feedback. On 3/17/07, Jack Killpatrick [EMAIL PROTECTED] wrote: These might help... 1. check out the Dimensions plugin: http://docs.jquery.com/Plugins 2. if you want to block a block: http://malsup.com/jquery/block/#element - Jack Rob Wilkerson wrote: I did copy and paste that, but I did manage to track down that problem. It was a syntax error in a $(document).ready() function that was included in an external script (this one is specific to a particular page). I do have one other question, though. I'd like to get the top left positions of an element's parent so that I can shift the main element to overlay it's parent. I have a block of content and I want to overlay a child block so that the parent is completely covered. Any thoughts? Thanks. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery Powered Sites - The List Continues to Grow
The caching must have gone wrong, I thought that bug was sorted out. Thanks, I'll keep an eye on that. :) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Event not firing inside unhidden div
I have a div which is invisible by default, and becomes visible via slidetoggle when a button is clicked. Inside the div is dynamic content via ajax -- i take the responseText of an ajax call, and then append it to an empty div (inside the slidetoggled div) via .html(ajaxreponsevar). I do it this way because I use the same div for multiple bits of dynamic content, a different bit depending on which button is clicked. This approach works fine for getting/showing the dynamic content. However, now I'm trying to add a click event to an image inside that dynamically generated content, and it's not working. I am thinking this is maybe because my jquery bind events and such are loaded once on page load (in a php file), and and thus can't bind to something that doesn't exist yet? I also tried (divstuff img).bind(click, function(){ ...etc (which I think is the same thing as just saying divstuff img.click()) but that didn't work either. I'm guessing there's some sort of trick to binding events to dynamic content? thanks! -kim It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Event not firing inside unhidden div
Hi Kim, My friend Jonathan Chaffer posted a reply to a similar question that I think you might find helpful. Here it is: In the near future there will be a dead-tree reference for jQuery on the shelves. A short excerpt from the first draft should prove applicable to this conversation: --- AJAX and Events: Handling the Handlers Suppose we wanted to highlight all the h3 elements on the page when they are clicked. By now the code to perform such a task is almost second-nature: $(document).ready(function() { $('h3').click(function() { $(this).toggleClass('highlighted'); }); }); All is well, in that clicking on the letters on the left side of the page highlights them. But the dictionary terms are also h3 elements, and they do not get the highlight. Why? The dictionary terms are not yet part of the DOM when the page is loaded, so the event handlers are never bound. This is an example of a general issue with event handlers and AJAX calls: loaded elements must have all of their event handlers rebound. A first pass at solving this problem is to factor the binding out into a function, and call that function both at the time the document is ready and after the AJAX call: $(document).ready(function() { var bindBehaviors = function() { $('h3').click(function() { $(this).toggleClass('highlighted'); }); } bindBehaviors(); $('#letter-a .button').click(function() { $('#dictionary').hide().load('a.html', function() { bindBehaviors(); $(this).fadeIn(); }); }); }); Now we can put all our event handlers in the bindBehaviors() function, and call that whenever the DOM changes. Clicking on a dictionary term now highlights it, as we intended. Unfortunately, we've also managed to cause very strange behavior when the letters are clicked. At first they highlight correctly, but after the button is clicked (loading the dictionary entries), they no longer highlight on subsequent clicks. Closer inspection reveals that, after the AJAX call, the highlighting breaks because the click handler is fired twice. A doubled .toggleClass() is the same as none at all, so the click seems not to work. A tricky behavior to debug, to be sure. The culprit here is bindBehaviors(), which binds the click event to all h3 elements each time. After a button click, there are actually two event handlers for clicks on an h3, which happen to do the exact same thing. Scoping an Event Binding Function A nice way around this double-firing is to pass some context into bindBehaviors() each time we call it. the $() constructor can take a second argument, a DOM node to which the search is restricted. By using this feature in bindBehaviors(), we can avoid multiple event bindings: $(document).ready(function() { var bindBehaviors = function(scope) { $('h3', scope).click(function() { $(this).toggleClass('highlighted'); }); } bindBehaviors(this); $('#letter-a .button').click(function() { $('#dictionary').hide().load('a.html', function() { bindBehaviors(this); $(this).fadeIn(); }); }); }); The first time bindBehaviors() is called, the scope is document, so all h3 elements in the document are matched and have the click event bound. After an AJAX load, though, the scope is instead the div id=dictionary element, so the letters are not matched and are left alone. Using Event Bubbling Adding scope to a behavior-binding function is often a very elegant solution to the problem of binding event handlers after an AJAX load. We can often avoid the issue entirely, however, by exploiting event bubbling. We can bind the handler not to the elements that are loaded, but to a common ancestor element: $(document).ready(function() { $('body').click(function(e) { if ($(e.target).is('h3')) { $(e.target).toggleClass('highlighted'); } }); }); Here we bind the click event handler to the bodyelement. Because this is not in the portion of the document that is changed when the AJAX call is made, the event handler never has to be re-bound. However, the event context is now wrong, so we compensate for this by checking what the event's target attribute is. If the target is of the right type, we perform our normal action; otherwise, we do nothing. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 18, 2007, at 2:24 PM, Kim Johnson wrote: I have a div which is invisible by default, and becomes visible via slidetoggle when a button is clicked. Inside the div is dynamic content via ajax -- i take the responseText of an ajax call, and then append it to an empty div (inside the slidetoggled div) via .html(ajaxreponsevar). I do it this way because I use the same div for multiple bits of dynamic content, a different bit depending on which button is clicked. This approach works fine for getting/showing the dynamic content. However, now I'm trying to add a
Re: [jQuery] Javascript MVC
On Sunday 18 March 2007 4:40 am, Erik Beeson wrote: Perhaps fun as an exercise, but it looks like a lot of overhead for relatively little gain. Also, it doesn't really fit my idea of MVC. In this, the Controller is pushing information from the Model into the View. To me, the View is supposed to pull information from the Model, and the Model is mapped to the View by way of the Controller, which also handles interactions and responds to events. It looks like a creative pairing of buzzwords to me :) But it's a clever exercise. --Erik Oh bless you, someone who gets it. :-) Yes, most web apps that claim to be MVC are actually PAC (Presentation-Abstraction-Control). In MVC, the Controller is used only for updates and the View has direct read access to the Model. In PAC, the Controller does everything and simply pushes it through the Presentation layer, using it as just an output channel and theming layer. There's nothing wrong with PAC, especially on the web, but people really need to stop confusing the two. :-) I blame Sun for calling anything with JSP MVC just to sound cool. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it. -- Thomas Jefferson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] document ready not firing when loaded via ajax in IE
Hey jQuerians, I am having trouble getting IE to recognize a script that is loaded with html via ajax. I tried both .get and .ajax and neither will work. I can't get a simple alert to fire when the content is loaded. Everything works as expected in FireFox. I have done a few searches in the archives and tried implementing those solutions, but they didn't work. Can anyone point me in the right direction? Thanks, Marshall ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery scrollbar
hi husy, i somehow figured out how to have multiple instances of the jquery scrollbar on the same page - however, i would like to use those scrollable divs in a auto-centered fixed width layout. i cannot seem to be able to modify the code in a way so the scrollbars move with the centered layout. is there any way to fix this? i could imagine this could be of interest for others too since this technique finally gives cross platform identitical scrollbars and would help unifying designs. any help highly appreciated. thanks, s here is a test site: http://www.myonlyworkingeye.co.uk/schnuck/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] document ready not firing when loaded via ajax in IE
checkout $.getScript() on visualjquery.com under the ajax tab Thank You, David SENT FROM MY TREO 650 HANDHELD -Original Message- From: Marshall Salinger [EMAIL PROTECTED] Subj: [jQuery] document ready not firing when loaded via ajax in IE Date: Sun Mar 18, 2007 11:24 am Size: 547 bytes To: jQuery Discussion. discuss@jquery.com Hey jQuerians, I am having trouble getting IE to recognize a script that is loaded with html via ajax. I tried both .get and .ajax and neither will work. I can't get a simple alert to fire when the content is loaded. Everything works as expected in FireFox. I have done a few searches in the archives and tried implementing those solutions, but they didn't work. Can anyone point me in the right direction? Thanks, Marshall ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery scrollbar
sorry, bad bad typo: hi husy = hi guys :) On 18/03/07, Schnuck [EMAIL PROTECTED] wrote: hi husy, ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Release: Validation plugin beta 2
The validation plugin beta 2 is out! If you are already working with it: A update is recommended. If not, and you need client-side validation (pure or mixed with AJAX requests), check it out: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Recent changes: * Improved dependecy feature by adding two custom expressions: :blank to select elements with an empty value and :filled to select elements with a value, both excluding whitespace * Added a resetForm() method to the validator: Resets each form element (using the form plugin, if available), removes classes on invalid elements and hides all error messages * Fixed docs for validator.showErrors() * Fixed error label creation to always use html() instead of text(), allowing arbitrary HTML passed in as messages * Fixed error label creation to use specified error class Have fun! -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] dimensions plugin Mozilla bug
Thanks for the bug ... I'll get this fixed soon! -- Brandon Aaorn On 3/18/07, Wizzud [EMAIL PROTECTED] wrote: While playing with Ext I encountered a problem in Firefox whereby the offset function in dimensions was causing an elem.style error. The reason is that there is a do-while loop if options.scroll is set, and that loop will go all the way up to the document, at which point - if the browser is Mozilla - the code attempts to check the css for overflow not visible and falls over because document has no style. I fixed this in my version by modifying line 260 of dimensions.js and inserting a check for op, so the line now begins ... if (op jQuery.browser.mozilla This prevents the jQuery.css() call failing at the document level. -- View this message in context: http://www.nabble.com/dimensions-plugin-Mozilla-bug-tf3421935.html#a9537545 Sent from the jQuery Plugins mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery scrollbar
You might want to check out jScrollPane [1] and I'm currently working on a new scroll window plugin myself [2], but jScrollPane is going to be stable and mine will for sure be changing a lot in the near future. BTW ... I'm still not convinced that using a custom designed scroll bar cross-platform is a good thing. Couldn't it just confuse users who are used to seeing a specific scroll bar? I guess it really just depends on your audience. [1]: http://kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html [2]: http://brandon.jquery.com/plugins/scrollWindow/demo/ -- Brandon Aaron On 3/18/07, Schnuck [EMAIL PROTECTED] wrote: hi husy, i somehow figured out how to have multiple instances of the jquery scrollbar on the same page - however, i would like to use those scrollable divs in a auto-centered fixed width layout. i cannot seem to be able to modify the code in a way so the scrollbars move with the centered layout. is there any way to fix this? i could imagine this could be of interest for others too since this technique finally gives cross platform identitical scrollbars and would help unifying designs. any help highly appreciated. thanks, s here is a test site: http://www.myonlyworkingeye.co.uk/schnuck/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Possible next()/prev() bug?
Hi all, I've come across what is possibly a bug (or unexpected behaviour) when using next(). I have an example page setup here: http://fapdragon.com/test/test.html As far as I can see, the filter for next() is not being applied and it always returns the next DOM element. Can anyone comment on this or should I log a ticket for it? Thanks, Evan -- View this message in context: http://www.nabble.com/Possible-next%28%29-prev%28%29-bug--tf3422183.html#a9538163 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Possible next()/prev() bug?
.next() and .prev() only work with the next (or previous) /immediate/ element. In your example, the next element is actually a br/ - which your filter doesn't match. Currently there isn't a way to do what you want (easily) in jQuery. I'd imagine it being something like .nextClosest(div.myDiv). The next best thing that I can think of would be to do: $(this).next().next(div.myDiv) Hope that helps. --John On 3/18/07, EvanT [EMAIL PROTECTED] wrote: Hi all, I've come across what is possibly a bug (or unexpected behaviour) when using next(). I have an example page setup here: http://fapdragon.com/test/test.html As far as I can see, the filter for next() is not being applied and it always returns the next DOM element. Can anyone comment on this or should I log a ticket for it? Thanks, Evan -- View this message in context: http://www.nabble.com/Possible-next%28%29-prev%28%29-bug--tf3422183.html#a9538163 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Plugins mailing list
Hi everyone, It seems the new place to post plugin-related stuff is in the plugins mailing list ([EMAIL PROTECTED]). I didn't even know about this list until just recently, so not sure how advertised it is. Anyways just a heads-up in case, like me, you didn't realise it was there :) Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problem with Star Rating plugin
Hi, The implementation is wrong, and it also looks like you've tweaked the plugin code - which is a double hit for it not working. In particular, the plugin is based on a 'less accessible' implementation, and you've tried to (correctly) make it work when JS is turned off (i.e. by having the anchor point to the actual URL to change the rating). The original plugin expected the following type of HTML: /blah.php?id=xyz#2 2 stars and it *was* reading the hash value - with the .split('#')[1]. However, you've changed the plugin to read .split('#')[0] - taking everything on the left and breaking the actual info that is submitted. I would recommend adding the hashed value back in to your page (i.e. appending the #$RATING to all the image URLs) and changing the code back to read .split('#')[1] (don't forget this happens in two places). Hope that helps. Remy. Jonathan Chong wrote: Hey everyone I'm having problems with the star rating plugin written by Ritesh Agrawal. I've tried contacting him but he hasn't yet replied to my email, so I'm hoping someone on the list can help out. What is also odd is that it was working before, but isn't now. Here's the link to the plugin I'm using: http://php.scripts.psu.edu/rja171/widgets/rating.php The reason why I'm using this star rating plugin, and not the original one, is that this one allows me to implement a one star / unstar system like Gmail. Here's a sample page where I'm using the plugin: http://arsenal-mania.com/news/3103818/Gilberto-rumours-squashed.html When you click on a star, it is meant to go off to a URL and submit the post. If I copy and paste the URL it's meant to go off to into the browser's address bar, it works, so there is nothing wrong with the script that does that, just the plugin not directing to the required URL. Would appreciate it greatly if any of the jquery gurus on this list could help, and I will provide as much relevant information as I can. Thanks again. -- Jonathan Chong http://jonathanchong.com/ http://arsenal-mania.com/ http://ashburrn.com/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Problem-with-Star-Rating-plugin-tf3421681.html#a9543932 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Possible next()/prev() bug?
Thanks John, I thought it might have been the case, the documentation is a little ambiguous. It would be nice to see a function like $(selector).after(filter) that finds the next matching element (I know that after is already used for DOM manipulation) and a similar one for prev() Cheers, Evan John Resig wrote: .next() and .prev() only work with the next (or previous) /immediate/ element. In your example, the next element is actually a br/ - which your filter doesn't match. Currently there isn't a way to do what you want (easily) in jQuery. I'd imagine it being something like .nextClosest(div.myDiv). The next best thing that I can think of would be to do: $(this).next().next(div.myDiv) Hope that helps. --John On 3/18/07, EvanT [EMAIL PROTECTED] wrote: Hi all, I've come across what is possibly a bug (or unexpected behaviour) when using next(). I have an example page setup here: http://fapdragon.com/test/test.html As far as I can see, the filter for next() is not being applied and it always returns the next DOM element. Can anyone comment on this or should I log a ticket for it? Thanks, Evan -- View this message in context: http://www.nabble.com/Possible-next%28%29-prev%28%29-bug--tf3422183.html#a9538163 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Possible-next%28%29-prev%28%29-bug--tf3422183.html#a9543998 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery scrollbar
On 18/03/07, Brandon Aaron [EMAIL PROTECTED] wrote: You might want to check out jScrollPane [1] and I'm currently working on a new scroll window plugin myself [2], but jScrollPane is going to be stable and mine will for sure be changing a lot in the near future. thanks! that saved my bacon - it indeed works as intended! BTW ... I'm still not convinced that using a custom designed scroll bar cross-platform is a good thing. Couldn't it just confuse users who are used to seeing a specific scroll bar? I guess it really just depends on your audience. i am not sure about that. after all, when we talk about (web)standards, then, to me, these standards should also include html widgets - independantly of what microsoft, apple or mozilla believes how these must or should look like. [1]: http://kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html [2]: http://brandon.jquery.com/plugins/scrollWindow/demo/ -- Brandon Aaron On 3/18/07, Schnuck [EMAIL PROTECTED] wrote: hi husy, i somehow figured out how to have multiple instances of the jquery scrollbar on the same page - however, i would like to use those scrollable divs in a auto-centered fixed width layout. i cannot seem to be able to modify the code in a way so the scrollbars move with the centered layout. is there any way to fix this? i could imagine this could be of interest for others too since this technique finally gives cross platform identitical scrollbars and would help unifying designs. any help highly appreciated. thanks, s here is a test site: http://www.myonlyworkingeye.co.uk/schnuck/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Selector Help - Accordion style menu
Hello, I'm new to jQuery and I'm not sure if I have my selectors right and how to test. The first part of my JS (below) is working, but the 2nd part, the accordion stuff, is not. My relevant html and JS are below. div id=ancillary div class=block first div class=inside div class=bar h2Recent Content/h2 spana href=# class=pane_slideropen/a/span /div div class=section ?php $hemingway-get_block_output('block_1'); ? /div div class=clear/div /div /div div class=block second div class=inside div class=bar h2Categories Links/h2 spana href=# class=pane_slideropen/a/span /div div class=section ?php $hemingway-get_block_output('block_2'); ? /div div class=clear/div /div /div div class=block third div class=inside div class=bar h2Photos Music/h2 spana href=# class=pane_slideropen/a/span /div div class=section ?php $hemingway-get_block_output('block_3'); ? /div div class=clear/div /div /div /div script//![CDATA[ // When the page is ready $(document).ready(function(){ $(#about p).hide(); $('#profile_a').click(function(event){ $('#about p').toggle(400); return false; }); //end about - begin bottom menu $('a.pane_slider').click(function(){ $('.section:visible').slideUp(slow); $(this).parent(.inside).next(.section).slideDown(slow); return false; }); }); //]]/script Any ideas? Is there an easy way to tell if the click event is being attached and if it's targeting the correct div? Thanks, BJ Clark ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] document ready not firing when loaded via ajax in IE
[EMAIL PROTECTED] wrote: checkout $.getScript() on visualjquery.com under the ajax tab Thank You, David SENT FROM MY TREO 650 HANDHELD -Original Message- From: Marshall Salinger [EMAIL PROTECTED] Subj: [jQuery] document ready not firing when loaded via ajax in IE Date: Sun Mar 18, 2007 11:24 am Size: 547 bytes To: jQuery Discussion. discuss@jquery.com Hey jQuerians, I am having trouble getting IE to recognize a script that is loaded with html via ajax. I tried both .get and .ajax and neither will work. I can't get a simple alert to fire when the content is loaded. Everything works as expected in FireFox. I have done a few searches in the archives and tried implementing those solutions, but they didn't work. Can anyone point me in the right direction? Thanks, Marshall ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ Hi David, Thanks for the reply and I have tried using .getScript without any luck. The thing that gets me, is that I can't get any code to execute in IE in a document ready statement when loaded via ajax. I have posted a very simple test page. http://salingermultimedia.com/jQuery/ajax/ Loading the html/js content triggers the alert in FireFox, but not in IE. Any help is greatly appreciated. -Marshall ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] document ready not firing when loaded via ajax in IE
Marshall, I'm pretty sure you don't need to call document.ready() when using ajax. This function is there for dealing with a standard page load rather than dynamic content. If you are using .load() for instance, scripts are automatically evaluated after the html has been inserted. Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] loading js files at the bottom of the page
Do you guys think loading js files at the bottom of the page would make the page load faster? -- Kush Murod, Web applications developer Sensory Networks [E] [EMAIL PROTECTED] [W] www.sensorynetworks.com [T] +61 2 8302 2745 [F] +61 2 9475 0316 [A] Level 6, 140 William Street East Sydney 2011 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] loading js files at the bottom of the page
Try it. Firebug makes it easy to see the order that things are loaded and how long they take. I will say keeping script tags in the head makes the body DOM cleaner, FWIW. --Erik On 3/18/07, Kush Murod [EMAIL PROTECTED] wrote: Do you guys think loading js files at the bottom of the page would make the page load faster? -- Kush Murod, Web applications developer Sensory Networks [E] [EMAIL PROTECTED] [W] www.sensorynetworks.com [T] +61 2 8302 2745 [F] +61 2 9475 0316 [A] Level 6, 140 William Street East Sydney 2011 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] loading js files at the bottom of the page
Also scripts linked in the head can be cached. - Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] loading js files at the bottom of the page
Firebug is the BEST!!! thanks guys Erik Beeson wrote: Try it. Firebug makes it easy to see the order that things are loaded and how long they take. I will say keeping script tags in the head makes the body DOM cleaner, FWIW. --Erik On 3/18/07, *Kush Murod* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Do you guys think loading js files at the bottom of the page would make the page load faster? -- Kush Murod, Web applications developer Sensory Networks [E] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [W] www.sensorynetworks.com http://www.sensorynetworks.com [T] +61 2 8302 2745 [F] +61 2 9475 0316 [A] Level 6, 140 William Street East Sydney 2011 ___ jQuery mailing list discuss@jquery.com mailto:discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Kush Murod, Web applications developer Sensory Networks [E] [EMAIL PROTECTED] [W] www.sensorynetworks.com [T] +61 2 8302 2745 [F] +61 2 9475 0316 [A] Level 6, 140 William Street East Sydney 2011 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery scrollbar
It's more an usability issue here. It's as simple as an user looking for a normal/simple/used-to scrollbar, and then you have a div with a yellow with red scrollbar instead. That uses to confuse a lot of users, some think it's pretty cool, but most of the time the users get confused and don't really know if that really is a scrollbar or just a plain pic. On 3/18/07, Schnuck [EMAIL PROTECTED] wrote: On 18/03/07, Brandon Aaron [EMAIL PROTECTED] wrote: You might want to check out jScrollPane [1] and I'm currently working on a new scroll window plugin myself [2], but jScrollPane is going to be stable and mine will for sure be changing a lot in the near future. thanks! that saved my bacon - it indeed works as intended! BTW ... I'm still not convinced that using a custom designed scroll bar cross-platform is a good thing. Couldn't it just confuse users who are used to seeing a specific scroll bar? I guess it really just depends on your audience. i am not sure about that. after all, when we talk about (web)standards, then, to me, these standards should also include html widgets - independantly of what microsoft, apple or mozilla believes how these must or should look like. [1]: http://kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html [2]: http://brandon.jquery.com/plugins/scrollWindow/demo/ -- Brandon Aaron On 3/18/07, Schnuck [EMAIL PROTECTED] wrote: hi husy, i somehow figured out how to have multiple instances of the jquery scrollbar on the same page - however, i would like to use those scrollable divs in a auto-centered fixed width layout. i cannot seem to be able to modify the code in a way so the scrollbars move with the centered layout. is there any way to fix this? i could imagine this could be of interest for others too since this technique finally gives cross platform identitical scrollbars and would help unifying designs. any help highly appreciated. thanks, s here is a test site: http://www.myonlyworkingeye.co.uk/schnuck/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Joan Piedra || Frontend webdeveloper http://joanpiedra.com/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/