[jQuery] Remove plugin from an element?
Is there a way to remove a plugin from an element? Lets say I have plugin called foo. I attach it to all inputs. $(input).foo() Later I need a way to detach foo() from some input elements. One way would be to have conditionals inside foo code. However I would prefer detaching plugin for good. -- Mika Tuupola http://www.appelsiini.net/
[jQuery] Re: filter(fn)
The filter(function) works fine for me (jQuery v1.1.4) - return TRUE and the filter is applied (ie. the element is kept); return FALSE and the element is removed - so taking the documented example it would return How are you?. The same effect (using the documented example again) can be achieved by using $('p').not(':has(ol)'); If you could post your HTML and script it would help. And what version of jQuery you are using. Pluthos wrote: Hi everyone, I am new to this group. I have been trying to get filter(function) to work for a few days without success. My goal was to remove DOM elements that did not belong to a pre-arranged array. Out of desperation I tried the example given in the on line documentation at http://docs.jquery.com/Traversing/filter#fn. The example is: $(p).filter(function(index) { return $(ol, this).length == 0; }); with the corresponding HTML code: polliHello/li/ol/ppHow are you?/p THIS DID NOT WORK! Is it a bug in jQuery or am I doing something wrong? Could one of you try this same example? Thank you. Pluthos -- View this message in context: http://www.nabble.com/filter%28fn%29-tf4411567s15494.html#a12588144 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: problem with selectors and ajax content
Here's where I think the problem is: $('#thesView').load('database.html', '', oThis.afterLoad()); should be $('#thesView').load('database.html', '', oThis.afterLoad); Notice the removal of the parans following oThis.afterLoad. This way you're passing the name of the function (as a callback), instead of executing the function and passing its result. With the parans, the function executes before the dynamic content is loaded so there are no divs under #thesView. - Richard On 9/8/07, JuergenRiemer [EMAIL PROTECTED] wrote: Hi, I have an HTML document, that I write into a div element. this works fine, yet when I try to access the the inserted elements via jQuery selectors I cant. here the main html document, the div where I input the html document via jquery respectively div id='thesView'empty/div here the html (database.html) document I insert: div class='left'eins/div div class='left'zwei/div div class='left'drei/div and here my javascript, the part that is commented out does work.. I can add events to the ajax content, yet $('#thesView div') does not.. do I overlook something here??? thx a lot test = { dRoot : null, load : function(){ var oThis = this; $('#thesView').load('database.html', '', oThis.afterLoad ()); }, afterLoad : function(){ this.addBehaviour() }, addBehaviour : function(){ $('#thesView div').click(function(){ alert('click') }) // $('div').click(function(){ // alert('this works!') // }) } } jQuery(function() { test.load() }
[jQuery] Re: Remove plugin from an element?
Each plugin itself must be written to expose a method to remove it from an element. Something like $(input).fooDestroy() - Richard On 9/10/07, Mika Tuupola [EMAIL PROTECTED] wrote: Is there a way to remove a plugin from an element? Lets say I have plugin called foo. I attach it to all inputs. $(input).foo() Later I need a way to detach foo() from some input elements. One way would be to have conditionals inside foo code. However I would prefer detaching plugin for good. -- Mika Tuupola http://www.appelsiini.net/
[jQuery] Re: prob with
Your load statment should be $('#thesView').load('database.html', '', oThis.afterLoad); ie. just oThis.afterLoad as the name of the callback function, instead of oThis.afterLoad() as you have it. BUT then when afterLoad gets run its context is div#thesView so this refers to that element, not test{} as you intend. If you change your code to ... test = { load : function(){ var oThis = this; $('#thesView').load('database.html', '', oThis.afterLoad); }, afterLoad : function(){ $('#thesView div').click(function(){ alert('click') }); } }; ... it will apply the click events. JuergenRiemer wrote: Hi, I have a problem with jquery recognizing elements of html that was inserted via ajax. here is the main html file where I input the ajax result body div id='thesView'xxx/div /body this is the html file that I include: div class='center'HEAT/div div class='left'ccc/div an this is my js file test = { load : function(){ var oThis = this; $('#thesView').load('database.html', '', oThis.afterLoad()); }, afterLoad : function(){ this.addBehaviour() }, addBehaviour : function(){ $('#thesView div').click(function(){ alert('click') }) //$('div').click(function(){ //alert('this works!') //}) } } jQuery(function() { test.load() }) now the file is loaded and put into the main div .. yet the click event is not set.. as you can see the commented code would work though... do I overlook anything that badly=??? -- View this message in context: http://www.nabble.com/prob-with-tf4411558s15494.html#a12588613 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Another site using jQuery...
Rick Faircloth wrote: The tabs display on the same page might be the tabs plug-in, also. If you find a not gracefully degrading href like javascript:void(null); you can be sure it's not the Tabs plugin :-) --Klaus
[jQuery] Re: Plugin doesn't seem to work in IE6 and IE7
You have superfluous commas in your settings and effect objects, indicating another member is going to be added but there isn't one. Try ... var settings = { effect: { duration: 100 } }; Thasmo wrote: This gives me an error in IE6 and IE7 on line 12 on position 3 and 5: alert('javascript running...'); (function($) { alert('1'); var settings = { effect: { duration: 100, }, }; $.fn.menu = function() { alert('2'); $(this).each(function() { alert('3'); $(this).find('/li').hover(function() { alert('4'); showItem($(this)); }, function() { alert('6'); hideItem($(this)); }); }); return this; }; function showItem(item) { alert('5'); item.find('/a').addClass('active'); item.find('/ul:hidden').slideDown(settings.effect.duration); }; function hideItem(item) { alert('7'); item.find('/a').removeClass('active'); item.find('/ul:visible').slideUp(settings.effect.duration); }; })(jQuery); What's wrong with the code? It works perfectly in Firefox. Thanks so much for your help! =o) -- View this message in context: http://www.nabble.com/Plugin-doesn%27t-seem-to-work-in-IE6-and-IE7-tf4411579s15494.html#a12588953 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: filter(fn)
Pluthos wrote: Hi everyone, I am new to this group. I have been trying to get filter(function) to work for a few days without success. My goal was to remove DOM elements that did not belong to a pre-arranged array. Out of desperation I tried the example given in the on line documentation at http://docs.jquery.com/Traversing/filter#fn. The example is: $(p).filter(function(index) { return $(ol, this).length == 0; }); with the corresponding HTML code: polliHello/li/ol/ppHow are you?/p THIS DID NOT WORK! Is it a bug in jQuery or am I doing something wrong? Could one of you try this same example? Thank you. Pluthos This is because a p element cannot contain a ol element and the filter like any other related selector simply does not match, because the browser's tag soup parser closes the p element before the ol starts. As of lately this problem was discussed pretty often, see the following thread: http://groups.google.com/group/jquery-en/browse_thread/thread/e8790c05fdfd754e/9044472237a98127?lnk=gstq=simple+listrnum=2#9044472237a98127 And the problem explained in more detail: http://groups.google.com/group/jquery-en/browse_thread/thread/50fa1b33346c54d4/9d9c13f8328e8bad#9d9c13f8328e8bad --Klaus
[jQuery] Re: Internet Explorer rounding numbers on data returned .getJSON request.
What does histars() do? Joey T wrote: Hello All, This is my first round with jQuery, which I think is absolutely fantastic, btw. At any rate, I have encountered a funky bug which seems to be IE / Internet Explorer specific. after completing a .getJSON request, whenever a numeric value is returned, IE is rounding the number, not returning the full decimal. I am not seeing this behavior in Firefox or Safari. The code to generate the JSON return data is pretty straight forward: $json = '{ avg: ' . $average . ', count: '.$count.' }'; as you can see, all values are wrapped in double quotes. When I load any element or event with the value from the return data set in jquery/javascript it is always rounded to the nearest whole number - but only on IE ! This occurs even if I pass the return data value off to a prepared variable such as :: var rating = new Number(); example jQuery code: $(document).ready(function() { $.getJSON('rate.php', { rating: '0' /* doesn't apply a new rating, just returns the count and avg */ }, function(data) { rating = data.avg; histars(rating); $('#starMsg').text(starMsg[0]).attr('title',rating); } ); }); for instance, this example will always set the span id=starMsg title element to '3' on IE, but in FF or Safari the title element will be '3.05' I have searched around for an answer to this, as I would think it is an IE issue, obviously - but is it perhaps related to jQuery too? Has anyone else had this issue, if so, how do they deal with it ? Thanks, Jt -- View this message in context: http://www.nabble.com/Internet-Explorer-rounding-numbers-on-data-returned-.getJSON-request.-tf4411585s15494.html#a12589226 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: filter(fn)
Yes, I must admit I did not test the actual documented example - I was heading more at the root of the problem, ie what wasn't working with Pluthos' script that caused him to try the example in the first place! Klaus Hartl wrote: Pluthos wrote: Hi everyone, I am new to this group. I have been trying to get filter(function) to work for a few days without success. My goal was to remove DOM elements that did not belong to a pre-arranged array. Out of desperation I tried the example given in the on line documentation at http://docs.jquery.com/Traversing/filter#fn. The example is: $(p).filter(function(index) { return $(ol, this).length == 0; }); with the corresponding HTML code: polliHello/li/ol/ppHow are you?/p THIS DID NOT WORK! Is it a bug in jQuery or am I doing something wrong? Could one of you try this same example? Thank you. Pluthos This is because a p element cannot contain a ol element and the filter like any other related selector simply does not match, because the browser's tag soup parser closes the p element before the ol starts. As of lately this problem was discussed pretty often, see the following thread: http://groups.google.com/group/jquery-en/browse_thread/thread/e8790c05fdfd754e/9044472237a98127?lnk=gstq=simple+listrnum=2#9044472237a98127 And the problem explained in more detail: http://groups.google.com/group/jquery-en/browse_thread/thread/50fa1b33346c54d4/9d9c13f8328e8bad#9d9c13f8328e8bad --Klaus -- View this message in context: http://www.nabble.com/filter%28fn%29-tf4411567s15494.html#a12589785 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Jorn's validation library, validate against default value
Hi all, We've got two input boxes on a form for the user to type their name in to. The client has requested Forename and Surname appear in these boxes by default as a hint to ensure they know what goes in which box. I want to validate these fields using Jorn's validation to ensure that they are not just the default values. Either by doing exactly this (preferable as I could re-use it), or checking they don't say Forename or Surname would be fine. What would be the best way of going about this? Thanks! Regards, Michael Price
[jQuery] Re: problem with selectors and ajax content
... and this within afterLoad (see http://www.nabble.com/prob-with-tf4411558s15494.html http://www.nabble.com/prob-with-tf4411558s15494.html ) Richard D. Worth-2 wrote: Here's where I think the problem is: $('#thesView').load('database.html', '', oThis.afterLoad()); should be $('#thesView').load('database.html', '', oThis.afterLoad); Notice the removal of the parans following oThis.afterLoad. This way you're passing the name of the function (as a callback), instead of executing the function and passing its result. With the parans, the function executes before the dynamic content is loaded so there are no divs under #thesView. - Richard On 9/8/07, JuergenRiemer [EMAIL PROTECTED] wrote: Hi, I have an HTML document, that I write into a div element. this works fine, yet when I try to access the the inserted elements via jQuery selectors I cant. here the main html document, the div where I input the html document via jquery respectively div id='thesView'empty/div here the html (database.html) document I insert: div class='left'eins/div div class='left'zwei/div div class='left'drei/div and here my javascript, the part that is commented out does work.. I can add events to the ajax content, yet $('#thesView div') does not.. do I overlook something here??? thx a lot test = { dRoot : null, load : function(){ var oThis = this; $('#thesView').load('database.html', '', oThis.afterLoad ()); }, afterLoad : function(){ this.addBehaviour() }, addBehaviour : function(){ $('#thesView div').click(function(){ alert('click') }) // $('div').click(function(){ // alert('this works!') // }) } } jQuery(function() { test.load() } -- View this message in context: http://www.nabble.com/problem-with-selectors-and-ajax-content-tf4411564s15494.html#a12590152 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: $.getScript and variables
is it real? On Sep 10, 4:37 am, Equand [EMAIL PROTECTED] wrote: *global for $(document).ready(function() { SPACE }; ... On Sep 10, 4:33 am, Equand [EMAIL PROTECTED] wrote: i forgot to mention... i tried to put it into a function and pass global vars in it thru functions vars... and ofcourse they've lost their globality... On Sep 10, 4:31 am, Equand [EMAIL PROTECTED] wrote: Hi everybody... i have a question... i want to virtualise my admin section... by getting the script from a php file on post. is this real? and i want it to use current documents vars... i just copied part of the script and tried to load it using getScript... but this part doesn't work, when I put some global variables in it is there a way to make global vars work in included file? like global $var; in php...
[jQuery] Re: Remove plugin from an element?
On Sep 10, 2007, at 11:17 AM, Richard D. Worth wrote: Each plugin itself must be written to expose a method to remove it from an element. Something like $(input).fooDestroy() Maybe I am missing something obvious :) How does this method remove the plugin instance from the element? Can you provide example code? -- Mika Tuupola http://www.appelsiini.net/
[jQuery] Re: Remove plugin from an element?
I just did this for my masked input plugin. $.fn.foo=function(){ return this.each(function(){ function bar(){ //Do Something useful here //Note: this function is deeply buried in scope and unaccessible from outside } $(this).bind(keydown,bar); $(this).one(unfoo,function(){ $(this).unbind(keydown,bar); }); }); } $.fn.unfoo=function(){ return this.trigger(unfoo); }) -Josh digitalbush.com On Sep 10, 6:17 am, Mika Tuupola [EMAIL PROTECTED] wrote: On Sep 10, 2007, at 11:17 AM, Richard D. Worth wrote: Each plugin itself must be written to expose a method to remove it from an element. Something like $(input).fooDestroy() Maybe I am missing something obvious :) How does this method remove the plugin instance from the element? Can you provide example code? -- Mika Tuupolahttp://www.appelsiini.net/
[jQuery] Re: Remove plugin from an element?
Sorry about the typo, the last close parenthesis(on unfoo()) should be removed. On Sep 10, 6:46 am, Josh Bush [EMAIL PROTECTED] wrote: I just did this for my masked input plugin. $.fn.foo=function(){ return this.each(function(){ function bar(){ //Do Something useful here //Note: this function is deeply buried in scope and unaccessible from outside } $(this).bind(keydown,bar); $(this).one(unfoo,function(){ $(this).unbind(keydown,bar); }); }); } $.fn.unfoo=function(){ return this.trigger(unfoo); }) -Josh digitalbush.com On Sep 10, 6:17 am, Mika Tuupola [EMAIL PROTECTED] wrote: On Sep 10, 2007, at 11:17 AM, Richard D. Worth wrote: Each plugin itself must be written to expose a method to remove it from an element. Something like $(input).fooDestroy() Maybe I am missing something obvious :) How does this method remove the plugin instance from the element? Can you provide example code? -- Mika Tuupolahttp://www.appelsiini.net/
[jQuery] Corner Plugin affects layout
When I apply the corner plugin to an element on the page, the layout is affected when I hover over a link with padding. This only seems to occur in Internet Explorer (IE 6 and 7), and I am unable to find out the cause. To replicate, go to http://www.nelctp.nhs.uk Resize the browser window (making it bigger illustrates the problem better), the boxes in the middle should move (to stay in the centre), but they don't. Then mouse over one of the links on the right. The right box moves to the correct position when this happens. I know it is the corner plugin, as a test without it applied works: http://www.nelctp.nhs.uk/?nocorner
[jQuery] Problem: Event on image load in IE
Hi I am trying to fire an event in IE when an image has loaded, using the following code : var img = $(img/) $(img).attr({ 'class': 'image', src: $elem.attr('href'), alt: $elem.text(), style: 'margin-top: -1px; margin- top:-1px'}).load(function() { functions.imageLoaded(elem, this)} ) imageLoaded fires in FF, but not in IE Any ideas why ? weepy *...(
[jQuery] Re: Problem: Event on image load in IE
Have you tried .bind('load', function() {})? Load() is also responsible for ajax calls, maybe IE gets it wrong in this case -- Piotr Petrus http://riddle.pl
[jQuery] Re: Another site using jQuery...
Oops! Sorry about that, Klaus! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Hartl Sent: Monday, September 10, 2007 4:40 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Another site using jQuery... Rick Faircloth wrote: The tabs display on the same page might be the tabs plug-in, also. If you find a not gracefully degrading href like javascript:void(null); you can be sure it's not the Tabs plugin :-) --Klaus
[jQuery] Re: confusing children() behavior
On Sep 7, 2007, at 18:33 , ScottBruin wrote: In this search, pressing enter when an item is highlighted redirects to a new page. The code from the book reads similar to the following: var redirectPage = function() { var x = $autocomplete.find('li').eq(selectedItem).children()[0]; location.href = x; }; where, from earlier: var $autocomplete = $('ol id=dropbox/ol').hide().insertAfter($ ('some search field')); selectedItem is the currently highlighted list element (li) in the drop down div. Its my understanding, then, that the redirectPage function should find the list item that is currently highlighted, and then find its first child. This first child is a link containing text (a la a href=google.comGoogle/a). To me, it seems that .children()[0] should return the entire string: a href=google.comGoogle/a However, it only returns google.com. It should be returning neither. Using the [0] notation on a jQuery object (which is what the .children() method returns) gives you a DOM node object. It may be that whatever diagnostic technique you are using to inspect the return value is using the href as a label for the object. Further, when I change var x = $autocomplete.find('li').eq(selectedItem).children().html() it does return the HTML inside the anchor, namely Google. In this case, you are in effect calling innerHtml on each of the item's children, and concatenating the results. Because only the string Google is in the anchor, this is what is returned. -- Jonathan Chaffer Technology Officer, Structure Interactive
[jQuery] Re: $.css() values from jQuery created objects return undefined in Opera
thanks, camelback ftw ) On Sep 10, 12:14 pm, Wizzud [EMAIL PROTECTED] wrote: There's a heck of a lot of script in there, and not much clue as to what exactly is returning undefined. One suggestion is to camelback the css attributes, eg... background-color - backgroundColor font-size - fontSize Equand wrote: http://www.jppromo.ru On Sep 10, 1:01 am, Piotr Petrus [EMAIL PROTECTED] wrote: Address of website please? ;) -- Piotr Petrushttp://riddle.pl -- View this message in context:http://www.nabble.com/%24.css%28%29-values-from-jQuery-created-object... Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Another site using jQuery...
Rick Faircloth wrote: Oops! Sorry about that, Klaus! Rick Rick, no need to apologize of course! Just wanted to give a hint for how to detect the tabs plugin :-) --Klaus
[jQuery] Horizontal Scrolling Text/Marquee
I tried posting to this thread: http://groups.google.com/group/jquery-en/browse_thread/thread/3fcd31510dfe2bc7/ but it won't go through. I'm basically looking for a scrolling horizontal text as a replacement to using marquee html tags. I want to try to find a smooth and easy way to do this with jQuery. Any help would be greatly appreciated. Thanks!
[jQuery] Re: Is it possible implement mutiple drag use jquery and interface?
up On Sep 9, 1:08 am, huangliang2211 [EMAIL PROTECTED] wrote: like there is a all item list and every item with a checkbox, when i check some items anddraga checked item, all checked item will begin move. is that possible?
[jQuery] Re: jQuery Edit In Place Help
Whoops did not mean to post this twice On Sep 9, 8:57 am, Chris [EMAIL PROTECTED] wrote: Hello All, I am working to get this pluginhttp://15daysofjquery.com/edit-in-place-with-ajax-using-jquery-javasc... working. I can successfully edit in place text, but I would like to take a php variable from my editing page and pass it to my updating the database page. Unfortunately I don't know javascript well enough to do this. The variable is the same for each div that is edited. Here is my code: Edit page: html head script src=jquery.js type=text/javascript/script script src=jqueryEIP.js type=text/javascript/script /head body ? $date = 1176274800; ? div class=entry Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt /div /body /html jqueryEIP.js: $(document).ready(function(){ $(span).each(function(i){ setClickable(this, i); }) }); function setClickable(obj, i) { $(obj).click(function() { var textarea = 'div id=edittextarea rows=2 cols=60'+$ (this).html()+'/textarea'; var button = 'divinput type=button value=SAVE class=saveButton / OR input type=button value=CANCEL class=cancelButton //div/div'; var revert = $(obj).html(); $(obj).after(textarea+button).remove(); $('.saveButton').click(function(){saveChanges(this, false, i);}); $('.cancelButton').click(function(){saveChanges(this, revert, i);}); }) .mouseover(function() { $(obj).addClass(editable); }) .mouseout(function() { $(obj).removeClass(editable); }); }//end of function setClickable function saveChanges(obj, cancel, n) { if(!cancel) { var t = $(obj).parent().siblings(0).val(); $.post(updatenotes.php,{ content: t, n: n, },function(txt){ alert( txt); });} else { var t = cancel; } if(t=='') t='(click to add text)'; $(obj).parent().parent().after('span class=regular'+t+'/ span').remove(); setClickable($(span).get(n), n); } Just to recap, how do pass $date to updatenotes.php using POST? Thank you for any help!
[jQuery] Re: Taconite,tables cellspacing and cellpadding in IE6
Thanks a lot Mike. Stefano
[jQuery] Re: Tablesorter 2.0
Hello, On 20 aug, 11:33, lukek [EMAIL PROTECTED] wrote: By the way I had another question. -- In the unpacked version of the latest script your comment on line 555 says apply easy methods that trigger binded events. Does this mean I can insert function calls in here - ie around line 560? I say this because I have added a call to applyWidget() as I reckon all the widgets should be reloaded when the update event is triggered - eg after I insert rows I want to reapply the zebra widget. I'm not sure if this helps anyone, but as this thread gave some pointers for my issue, here goes: I also wanted to reapply the zebra widget each time I add rows to the table. However in my case the rows are coming from an AJAX query, similar to http://tablesorter.com/docs/example-ajax.html The example there just applies a defined sorting when new data arrives with triggering sorton (after update) - this will also reapply the zebra from the sort operation. However I didn't want to loose the sorting that the user might have had already changed to, away from the default, and I wanted the arriving data to get sorted into the pre- existing data according to the sort selection. I didn't find a good way to get to the configuration saved, so I just ended up with this: $(table).trigger(update); var current_sort = $(table.tablesorter).get(0).config.sortList; $(table).trigger(sorton, [current_sort]); Hopefully there already is (that I don't know of yet), or will be, a good way to keep the sorting selection in tact. Maybe something like this in tablesorter2 itself: $this.bind(resort, function(e) { // update header count index updateHeaderSortCount(this,sortList); //set css for headers setHeadersCss(this,$headers,config.sortList,sortCSS); // sort the table and append it to the dom appendToTable(this,multisort(this,config.sortList,cache)); }); Some of these calls (like setHeadersCss) is probably not necessary from just a resort, as everything in the headers remains the same. Best Regards, Mart Raudsepp
[jQuery] Firing function on any form element changing?
I have a script that fires if any input or select element changes on my form: $('input, textarea, select').change(function(){ First, is this the correct way to do this? Second, how do I make sure that only the elements in form myform are the one that are being monitored for change? The form appears on a web page with other forms. I tried: $('input, textarea, select', myform).change(function(){ but it says that myform is undefined.
[jQuery] Re: Scrolling Horizontal Marquee
The only problem is that his implementation is a little choppy as well. I don't want to do this in flash, but is there a way to make this look really smooth? On Sep 9, 6:20 pm, Karl Swedberg [EMAIL PROTECTED] wrote: On Sep 8, 2007, at 2:39 PM, geetarista wrote: I tried to reply to this thread: http://groups.google.com/group/jquery-en/browse_thread/thread/ 3fcd31510dfe2bc7/ , but for some reason it said that I couldn't reply to that message. What I am looking for is an answer to the second part of the OP's request: a horizontal scrolling marquee. I have used the marquee tags before, but it is really choppy, and I just wanted a simple and smooth way to do this with jQuery. Any ideas? Here is one that GianCarlo Mingati put together a while back. http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/ you might be able to get some ideas from his code. --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com
[jQuery] Re: Start effect after another effect is complete / Start effect after image is loaded? - wafflgallery.js
Well, no one has answered but for future reference, I've settled on using callbacks. I'm not sure if this is the most efficient way, so someone should correct me if so? a la: $(element).effect(parameter, function() { secondeffect }); where secondeffect will trigger AFTER effect rather than simultaneously. On Sep 4, 5:26 am, alan [EMAIL PROTECTED] wrote: Hello, I posted earlier about a gallery for portfolio purposes. After being unable to find anything particularly suitable, I wanted to write my own but am having a few issues. I hope to release this gallery as a well documented and easy to use plugin for people with similar needs (very customizable and simple gallery in terms of divs that will be updated, reads from xml, preloader etc). Of course, it is far from complete, and as I am pretty new to jquery and not the most proficient javascript coder, I hope people can give me feedback too! Here are my issues: 1) I have previous and next buttons, but I want them disabled until the image they load is finished its effect (fadeIn) 2) I've built a basic preloader that loads images on either 'side' of the current image, I don't know how efficiently it is done or if it could be done better, but sometimes clicking too fast will cause the fadeIn to go (with no image loaded) then the image suddenly appears. ** Is there a more surefire way to hold off the fadeIn until the image is fully loaded? ** (they are preloaded as an array of Image() objects) 3) it seems like after fading in, some objects jump down a pixel or two which is okay i suppose but annoying - am I doing something wrong? An initial version in testing with some dummy data can be seen athttp://prod.waffl.ca Thank you so much in advance! Code is as follows: /* wafflgallery.js v0.1a September 4, 2007 [EMAIL PROTECTED] //http://www.waffl.ca Please wait until this is completed before using! Once I am done, you can feel free to modify and redistribute it as you like as long as you keep this commented header intact and unmodified. */ curPos = 0; function loadGallery(xmlPath, imageContainerId1, imageCaptionId1, imageControlBox1, imagePrevButtonId1, imageNextButtonId1) { /* Load the xml */ $.ajax({ type: GET, url: xmlPath, dataType: xml, success: function(xmlData) { xmlDataSet = xmlData; resultSetLength = $(item,xmlDataSet).length - 1; preloadImg = new Array(resultSetLength); /* load everything into global variables */ imageContainerId = imageContainerId1; imageCaptionId = imageCaptionId1; imageControlBox = imageControlBox1; imagePrevButtonId = imagePrevButtonId1; imageNextButtonId = imageNextButtonId1; /* Set up the prev/next buttons */ $(imagePrevButtonId).click(function() { curPos--; preload(); updateGallery(); }); $(imageNextButtonId).click(function() { curPos++; preload(); updateGallery(); }); /* SlideIn and Load the first image caption without an effect */ $(imageContainerId).fadeIn(1000).SlideInUp(1000,null,'easeout'); $(imageContainerId + img).attr({src: getCurrentImage(), alt: getCurrentTags()}); $(imageCaptionId).html(getCurrentCaption()); $(imageControlBox).fadeIn(5000); preload(); }, error: function() { $(imageContainerId).html(wafflgallery - error loading + xmlPath); } }); } /* returns the current image */ function getCurrentImage(specPos) { if (specPos) return $(imageLocation:eq( + specPos + ),xmlDataSet).text(); else return $(imageLocation:eq( + curPos + ),xmlDataSet).text(); } /* returns the current title */ function getCurrentTitle() { return $(title:eq( + curPos + ),xmlDataSet).text(); } /* returns the current caption */ function getCurrentCaption() { return a href= + getCurrentLink() + alt= + getCurrentTitle() + + getCurrentTitle() + /a // + $(year:eq( + curPos + ),xmlDataSet).text(); } /* returns the current tags */ function getCurrentTags() { return $(tags:eq( + curPos + ),xmlDataSet).text(); } /* returns the current link */
[jQuery] Re: Expanding tree + styling
Sorry, I meant that within li there is a caption link. In other words, my list will be completely linkable to other pages. So I've managed to prepend the level one li with a graphic. Now I need a way to make a recursive function to apply the graphic and the functionality to all child nodes li up to the nth level. Any suggestions? On Sep 10, 5:05 am, Piotr Petrus [EMAIL PROTECTED] wrote: 1) li cannot be a link. 2) Add class=parent and insert dynamically small element with graphic (for example, plus) and attach event listener expanding list to that element. -- Piotr Petrushttp://riddle.pl
[jQuery] jquery interface elements : drag starts with delay on IE
Hello, I am using Jquery + the interface elements for JQ (http:// interface.eyecon.ro/demos) in order to implement a sortable list. The 'start drag' event seems to be triggered with significant delay on IE. On firefox there is no delay that can be described as 'sluggish' but in IE the delay is real problem. I have stripped down the html markup, minimized memory leaks in IE, took a closer look on js memory management but the only performance issue remaining in terms of a responsive UI is the 'drag start delay'. Any help appreciated.
[jQuery] Found a dodgy copy of your book
Hey Karl, I was doing my usual Technorati feed for jQuery stories and saw this: http://e-liber.blogspot.com/2007/09/learning-jquery-better-interaction.html It looks like someone has put up a PDF version of the book for anyone to download, thought you might want to inform your publisher. -- Tane Piper http://digitalspaghetti.me.uk This email is: [ ] blogable [ x ] ask first [ ] private
[jQuery] Re: Found a dodgy copy of your book
Looks like he has a bunch of books from that publisher. On 9/10/07, Tane Piper [EMAIL PROTECTED] wrote: Hey Karl, I was doing my usual Technorati feed for jQuery stories and saw this: http://e-liber.blogspot.com/2007/09/learning-jquery-better-interaction.html It looks like someone has put up a PDF version of the book for anyone to download, thought you might want to inform your publisher. -- Tane Piper http://digitalspaghetti.me.uk This email is: [ ] blogable [ x ] ask first [ ] private -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Re: Found a dodgy copy of your book
Tane Piper schrieb: Hey Karl, Don't you think it would be more clever to directly mail him inistead of ... well micha
[jQuery] Re: Internet Explorer rounding numbers on data returned .getJSON request.
Hi Wiz, I am not sure why that would be relevant since, as stated previously, this rounding error occurs with the same routine as above only on IE, not on Firefox. The histars() routine simply iterates through 1 through 5 and uses rating as a limiter to re-src img tags with a different image - this ajax-styled script is a simple 'rate this whatever' with a star-rating - 1 through 5. If you replace $ ('#starMsg').text(starMsg[0]).attr('title',rating); with $ ('#starMsg').text(starMsg[0]).attr('title',data.avg); and remove the histars() function from the above routine, you will see the same rounding issue on IE but not in Firefox/Safari. I have implemented a work-around however: By placing a # sign in front of the number value in the PHP script, and adding these lines at the beginning of the .getJSON callback function: var average = new String(data.avg); rating = average.substr(1); I now see the whole decimal number in IE inside the rating variable, which works fine for numeric calculations and comparisons. Since I'm essentially just casting the value around (not even casting!) via this method and getting a valid result, I have to think this is a problem with jQuery, not IE ?! Possibly ? Has anyone else had this issue at all? Is it perhaps a JSON only problem only, or does this happen in IE with the jQuery ajax methods as well? If I have the time, I will do some tests with the other routines and see what I find. Thanks, Jt On Sep 10, 3:08 am, Wizzud [EMAIL PROTECTED] wrote: What does histars() do? Joey T wrote: Hello All, This is my first round with jQuery, which I think is absolutely fantastic, btw. At any rate, I have encountered a funky bug which seems to be IE / Internet Explorer specific. after completing a .getJSON request, whenever a numeric value is returned, IE is rounding the number, not returning the full decimal. I am not seeing this behavior in Firefox or Safari. The code to generate the JSON return data is pretty straight forward: $json = '{ avg: ' . $average . ', count: '.$count.' }'; as you can see, all values are wrapped in double quotes. When I load any element or event with the value from the return data set in jquery/javascript it is always rounded to the nearest whole number - but only on IE ! This occurs even if I pass the return data value off to a prepared variable such as :: var rating = new Number(); example jQuery code: $(document).ready(function() { $.getJSON('rate.php', { rating: '0' /* doesn't apply a new rating, just returns the count and avg */ }, function(data) { rating = data.avg; histars(rating); $('#starMsg').text(starMsg[0]).attr('title',rating); } ); }); for instance, this example will always set the span id=starMsg title element to '3' on IE, but in FF or Safari the title element will be '3.05' I have searched around for an answer to this, as I would think it is an IE issue, obviously - but is it perhaps related to jQuery too? Has anyone else had this issue, if so, how do they deal with it ? Thanks, Jt -- View this message in context:http://www.nabble.com/Internet-Explorer-rounding-numbers-on-data-retu... Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Corner Plugin affects layout
use this plugin: http://meerbox.nl/?page_id=4 works fine and it's pretty nice ;)
[jQuery] BlockUI fadeout
Hi All, I'm using the blockUI plugin for dialogs throughout the site, Content is loaded using $(element).load(... into a div created on on the fly. when unblocking the div with the content loaded disappears before the whole thing has faded. I would like to have this wait until the animation has completed, but can't find any information on the blockUI site about a callback on the fadeout method. Is there one? Cheers Keith -- View this message in context: http://www.nabble.com/BlockUI-fadeout-tf4414799s15494.html#a12593120 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Slide effect bugs in IE 6 and 7 since version 1.1.3
Hi all, I have issues with the slide effect since the version 1.1.3 (same issue with 1.1.4): _ Flicker effet when the div is sliding up, just before disappearing. (working fine with 1.1.2) _ The slide effect don't apply to a div with a relative position when the doctype is strict Everything is working fine with firefox, but with internet explorer it's a different story. It there sonething wrong in my code or is it a bug? You can find a demo here : http://sd-5269.dedibox.fr/temp/jquery/bug112T.html NB: I posted this message on the dev mailing list but had no reply.
[jQuery] Re: Found a dodgy copy of your book
LOL. Oh well. Thanks for the heads up, Tane. As for everyone else, please disregard the link Tane sent along with his warning. ;-) By the way, the jQuery project receives a small percentage of $ from all legitimate sales of the book. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 10, 2007, at 9:16 AM, Michael Stuhr wrote: Tane Piper schrieb: Hey Karl, Don't you think it would be more clever to directly mail him inistead of ... well micha
[jQuery] Re: Found a dodgy copy of your book
I made a comment on that post. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Stuhr Sent: Monday, September 10, 2007 8:17 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Found a dodgy copy of your book Tane Piper schrieb: Hey Karl, Don't you think it would be more clever to directly mail him inistead of ... well micha
[jQuery] Re: Another site using jQuery...
It uses something else that does not use jQuery: http://www.barelyfitz.com/projects/tabber/ Something similar can be done with jQuery. e.g. http://www.texotela.co.uk/code/jquery/headertabs/ On Sep 10, 1:58 pm, Klaus Hartl [EMAIL PROTECTED] wrote: Rick Faircloth wrote: Oops! Sorry about that, Klaus! Rick Rick, no need to apologize of course! Just wanted to give a hint for how to detect the tabs plugin :-) --Klaus
[jQuery] IE, Ajax and colspans
I'm having a very weird problem that manifests itself only in IE - both 6.x and 7.x I use taconite to retrieve a table from the server: taconite replaceContent select=#data table style=width: 90% tbody tr td style=border: 1px solid #efefef; padding: 10px; valign=top /td td style=border: 1px solid #efefef; padding: 10px; valign=top strongBoard/strong /td td style=border: 1px solid #efefef; padding: 10px; valign=top colspan=2 strong1 ADL/strong /td td style=border: 1px solid #efefef; padding: 10px; valign=top colspan=2 strong1 ADL + 1 CHLD 7-12/strong /td td style=border: 1px solid #efefef; padding: 10px; valign=top colspan=2 strong1 ADL + 2 CHLD 7-12/strong /td /tr tr td style=border: 1px solid #efefef; padding: 10px; valign=top Standart Room /td td style=border: 1px solid #efefef; padding: 10px; valign=top BB /td td align=center style=border: 1px solid #efefef; padding: 10px; valign=top125/td td align=center style=border: 1px solid #efefef; padding: 10px; valign=topstrong166/strong/td td align=center style=border: 1px solid #efefef; padding: 10px; valign=top140/td td align=center style=border: 1px solid #efefef; padding: 10px; valign=topstrong185/strong/td td align=center style=border: 1px solid #efefef; padding: 10px; valign=top158/td td align=center style=border: 1px solid #efefef; padding: 10px; valign=topstrong249/strong/td /tr /tbody /table /replaceContent /taconite When this taconite gets executed IE disregards the colspans and places a single cell in each column: Expected: -- | | -- | | | -- Explorer: -- | | -- | | | -- And I have no freaking idea why this is happening. Please, help :)
[jQuery] Re: jQuery example: help in review
On Sep 9, 8:19 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I've created a small game with jQuery: Fifteen puzzle.http://www.alexatnet.com/node/68 The jQuery part is very simple but I'm interested in ideas on how to make it smaller. Probably this can be a good demonstration of jQuery power, but it now contains 40 lines of jQuery code, when I prefer 20 :-) I almost here: 26 lines: var lock = false; $('#shuffle').click(function () { if (lock) return; field.reset(); $('#moves').html('0'); $('#game15-field').empty(); for (var col = 0; col 4; col++) { for (var row = 0; row 4; row++) { !field.isFree(row, col) ($('#game15-field').get(0).appendChild( $(div class='game-cell' + field.cells[row][col] + /div) .css({ 'left' : col * 60 + 10, 'top' : row * 60 + 45}) .click(function () { if (!lock field.move(this._p)) { lock = true; $('#moves').html('' + field.moves); $(this).animate( {'left' : this._p.col * 60 + 10, 'top' : this._p.row * 60 + 45}, 300, '', function () { field.isSolved() alert('You win!'); lock = false; }); } }).get(0))._p = {'row': row, 'col': col}); } } }).click(); Any ideas how to make it smaller? Sincerely, Alex Thanks, Alex
[jQuery] Re: $.getScript and variables
Is what real? Equand, I read your posts, but I'm not sure what you're trying to do or what the question is. Could you explain in more detail, with some actual code? Maybe post a link to a page, or at least post a code sample? -Mike From: Equand is it real? *global for $(document).ready(function() { SPACE }; ... i forgot to mention... i tried to put it into a function and pass global vars in it thru functions vars... and ofcourse they've lost their globality... Hi everybody... i have a question... i want to virtualise my admin section... by getting the script from a php file on post. is this real? and i want it to use current documents vars... i just copied part of the script and tried to load it using getScript... but this part doesn't work, when I put some global variables in it is there a way to make global vars work in included file? like global $var; in php...
[jQuery] Re: Problem: Event on image load in IE
I changed to bind('load', ... I still get the same problem - at first it fires - but once the image has loaded - it seems that IE has cached the image and so the image load event does not get fired. You can see it in action here : http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/ Jonah
[jQuery] Re: Corner Plugin affects layout
Using canvas instead of nested div's for the corner didn't help with the layout (although it looks slightly better). The problem is caused by the 'position: relative' added to the element with the corner applied to it. On Sep 10, 2:28 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: use this plugin:http://meerbox.nl/?page_id=4 works fine and it's pretty nice ;)
[jQuery] Re: Problem with ClueTip: Flash-Elements flickers when rollover
no flicker with wrapper-div: http://www.media-giganten.de/test/cluetip-test/index.html flicker without div and changed fx: http://www.media-giganten.de/test/cluetip-test/index_flick.html Is this a Firefox bug, not a Cluetip bug? I so wish this issue could be solved somehow.. PS. I noticed in Firebug that the two example pages differ from each other in that body gets style=position:static when hovering, is that relevant to the problem? Maybe it treats the DOM as fresh, thus reloading the Flash? Just a long shot.. Thanks in advance, /Anton
[jQuery] Re: jCarousel Lite - version 1.0
Anton - As per your request, the buttons will be assigned a class called disabled when the carousel is in the first or last element respectively. This is applicable to non-circular carousels only. Great, although that's not what I meant :) However, I solved my issue using (shortened, for brevity): if(jQuery(.jcarousel ul).children().length 12) { jQuery(.jcarousel).before('button class=jcarousel- prevPrevious/button').after('button class=jcarousel-nextNext/ button'); } But the disabled comes very handy too, thanks! cheers, /Anton
[jQuery] Re: $.getScript and variables
ok... this page... http://www.jppromo.ru : there is A LOT of code, so search in code for //ADMIN AREA START and //ADMIN AREA STOP, the code between them is the one i want to put into a separate file, for load via getScript... but there are used global vars like LASTLOGIN and LASTHREF etc, and global functions, like get and post... now when i load the suppose admin.js , the code doesn't work when plainly written, if i put this code into a function, i need to pass in the variables, but it's impossible to make a var like LASTHREF pass there everytime. is there a way to make global vars for the loaded page, to be used in loaded script from $.getScript()... On Sep 10, 4:40 pm, Michael Geary [EMAIL PROTECTED] wrote: Is what real? Equand, I read your posts, but I'm not sure what you're trying to do or what the question is. Could you explain in more detail, with some actual code? Maybe post a link to a page, or at least post a code sample? -Mike From: Equand is it real? *global for $(document).ready(function() { SPACE }; ... i forgot to mention... i tried to put it into a function and pass global vars in it thru functions vars... and ofcourse they've lost their globality... Hi everybody... i have a question... i want to virtualise my admin section... by getting the script from a php file on post. is this real? and i want it to use current documents vars... i just copied part of the script and tried to load it using getScript... but this part doesn't work, when I put some global variables in it is there a way to make global vars work in included file? like global $var; in php...
[jQuery] Re: Expanding tree + styling
jQuery is recursive by default. $('ul.parent li').prepend(yourElement); -- Piotr Petrus http://riddle.pl
[jQuery] Re: Expanding tree + styling
Blah, I meant $('li.parent').prepend(……) -- Piotr Petrus http://riddle.pl
[jQuery] Re: Firing function on any form element changing?
You can use $(myform).find('input, textarea, select') but var $('input, textarea, select', myform) is also correct. I'd seek an answer in myform element. If it's undefined it means it doesn't exist, so there's an error in your code or in algorithm. -- Piotr Petrus http://riddle.pl
[jQuery] Thickbox 3.1: Transparency issues in IE6
Hi folks, I've just started using thickbox 3.1 and I notice that transparencies are *not* working in IE6. Is anyone else having this issue? I've not had this issue in the past, so it's confusing me. The CSS appears to be correct to me, but for some reason, the background refuses to be transparent. Can anyone offer any advice? Thanks heaps, Chris
[jQuery] Re: Problem with ClueTip: Flash-Elements flickers when rollover
Hi Anton, While I think it's a Firefox bug, the most recent version of clueTip lets you work around it: http://jquery.com/plugins/project/cluetip/ You can use the $.cluetip.setup function to change where the clueTip divs are placed in the DOM. For example: $.cluetip.setup({ insertionType: 'prependTo', insertionElement: '#container' }); The most recent version also shows clueTips with a straight .show() by default. If you want a .fadeIn() effect, you can set that option like so: $('your-selector').cluetip({ fx: {open: ' fadeIn', openSpeed: 'fast'} }); Hope that helps. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 10, 2007, at 11:03 AM, Anton wrote: no flicker with wrapper-div: http://www.media-giganten.de/test/cluetip-test/index.html flicker without div and changed fx: http://www.media-giganten.de/test/cluetip-test/index_flick.html Is this a Firefox bug, not a Cluetip bug? I so wish this issue could be solved somehow.. PS. I noticed in Firebug that the two example pages differ from each other in that body gets style=position:static when hovering, is that relevant to the problem? Maybe it treats the DOM as fresh, thus reloading the Flash? Just a long shot.. Thanks in advance, /Anton
[jQuery] Re: Problem: Event on image load in IE
try adding this if ($.browser.msie) { var href = $(img, #preview).attr(src).replace(/\?\d*$/g,''); } to the load, and add a random string to every linking function like this if ($.browser.msie) { href+= '?' + (Math.round(512 * Math.random()) + Math.round(512 * Math.random())); } i see u have a there so just bind a click function to that a like in this example: $(a, .img).click(function() { var href = $(this).attr(href); if ($.browser.msie) href+= '?' + (Math.round(512 * Math.random()) + Math.round(512 * Math.random())); } }); On Sep 10, 4:57 pm, weepy [EMAIL PROTECTED] wrote: I changed to bind('load', ... I still get the same problem - at first it fires - but once the image has loaded - it seems that IE has cached the image and so the image load event does not get fired. You can see it in action here :http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/ Jonah
[jQuery] List of Useful jQuery Plugins
I viewed each of the jQuery plugins in the jQuery plugins repository. I couldn't believe how many there were! So I decided to make this master list to weeded out any plugins that were either broken or I didn't find any practical application for (view the link below). List of Useful jQuery Plugins: http://marcgrabanski.com/article/75/List-of-Useful-jQuery-Plugins P.S. Why am I simply linking to my own article? John Resig asked me to post this list to the mailing list.
[jQuery] Re: Problem: Event on image load in IE
oh by the way, here's my gallery, so u can check the code working in real-time and adapt it, http://www.nosite.ru/HU On Sep 10, 6:19 pm, Equand [EMAIL PROTECTED] wrote: try adding this if ($.browser.msie) { var href = $(img, #preview).attr(src).replace(/\?\d*$/g,'');} to the load, and add a random string to every linking function like this if ($.browser.msie) { href+= '?' + (Math.round(512 * Math.random()) + Math.round(512 * Math.random()));} i see u have a there so just bind a click function to that a like in this example: $(a, .img).click(function() { var href = $(this).attr(href); if ($.browser.msie) href+= '?' + (Math.round(512 * Math.random()) + Math.round(512 * Math.random())); }}); On Sep 10, 4:57 pm, weepy [EMAIL PROTECTED] wrote: I changed to bind('load', ... I still get the same problem - at first it fires - but once the image has loaded - it seems that IE has cached the image and so the image load event does not get fired. You can see it in action here :http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/ Jonah
[jQuery] Re: Thickbox 3.1: Transparency issues in IE6
Do you have a link where we can check your problem? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris Jordan Sent: lundi 10 septembre 2007 17:09 To: jQuery (English) Subject: [jQuery] Thickbox 3.1: Transparency issues in IE6 Hi folks, I've just started using thickbox 3.1 and I notice that transparencies are *not* working in IE6. Is anyone else having this issue? I've not had this issue in the past, so it's confusing me. The CSS appears to be correct to me, but for some reason, the background refuses to be transparent. Can anyone offer any advice? Thanks heaps, Chris Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.12/997 - Date: 9/09/2007 10:17
[jQuery] $.load() javascript problems in IE and Safari
As many others have already noted, if your page makes an AJAX call that returns javascript and HTML, for some reason IE and Safari are unwilling to execute any of the javascript. Looking through the jQuery code, I noticed that there *used* to be an evalScripts function in the same object as the load function, but that is deprecated in light of the fact that there is now a globalEval function that should be called with certain of the the HTML injection methods. However, after numerous tests, it seems that this wasn't working all the time in either Safari or IE. I dediced to add the evalScripts function back in like so: evalScripts: function( self ){ var scripts = self.get(0).getElementsByTagName( 'script' ); $(scripts).each(function(){ if ( window.execScript ) { window.execScript( $(this).html() ); } else if ( jQuery.browser.safari ) { window.setTimeout( $(this).html(), 0 ); } else { eval.call( window, $(this).html() ); } }); } This gets called by load if the oncomplete status is success with: self.evalScripts( self ); Can anyone tell me if this is a bad idea (and if so, why?) as well as any insights into why the built in globalEval function doesn't always work in IE or Safari?
[jQuery] Re: Thickbox 3.1: Transparency issues in IE6
looks to me like an 'opacity' css problem On Sep 10, 7:23 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: Do you have a link where we can check your problem? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris Jordan Sent: lundi 10 septembre 2007 17:09 To: jQuery (English) Subject: [jQuery] Thickbox 3.1: Transparency issues in IE6 Hi folks, I've just started using thickbox 3.1 and I notice that transparencies are *not* working in IE6. Is anyone else having this issue? I've not had this issue in the past, so it's confusing me. The CSS appears to be correct to me, but for some reason, the background refuses to be transparent. Can anyone offer any advice? Thanks heaps, Chris Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.12/997 - Date: 9/09/2007 10:17
[jQuery] Re: BlockUI fadeout
when unblocking the div with the content loaded disappears before the whole thing has faded. I would like to have this wait until the animation has completed, but can't find any information on the blockUI site about a callback on the fadeout method. Is there one? Keith, There is currently no exposed callback for the unblockUI fadeOut fx. Mike
[jQuery] IE 7(mostly likey all 6 too) issue with added content with javascript dynamically
I have a script that reorder some content an this content includes javascript that runs. I basically take the html/javscript text and put it into a variable in the correct order and then i empty out the current content and replace is with the new content. Now if FF, this works fine because the javscript gets ran when i load the content dynamically but in IE 7 the javscript does not seems to get run and was wondering if this is an issue known about IE? -- View this message in context: http://www.nabble.com/IE-7%28mostly-likey-all-6-too%29-issue-with-added-content-with-javascript-dynamically-tf4416607s15494.html#a12597220 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: licensing for distribution
On Sep 10, 6:36 pm, CodeMates [EMAIL PROTECTED] wrote: Do you offer any license for distributing jQuery? We have a community script in development and we wanted to add jQuery for the tabs design. http://docs.jquery.com/Licensing :)
[jQuery] licensing for distribution
Do you offer any license for distributing jQuery? We have a community script in development and we wanted to add jQuery for the tabs design. Thanks, Geoffrey
[jQuery] Re: IE 7(mostly likey all 6 too) issue with added content with javascript dynamically
Have you tried the Live jQuery plugin? I'm not sure if this is applicable for your needs. Glen On 9/10/07, Eridius [EMAIL PROTECTED] wrote: I have a script that reorder some content an this content includes javascript that runs. I basically take the html/javscript text and put it into a variable in the correct order and then i empty out the current content and replace is with the new content. Now if FF, this works fine because the javscript gets ran when i load the content dynamically but in IE 7 the javscript does not seems to get run and was wondering if this is an issue known about IE? -- View this message in context: http://www.nabble.com/IE-7%28mostly-likey-all-6-too%29-issue-with-added-content-with-javascript-dynamically-tf4416607s15494.html#a12597220 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Jorn's validation library, validate against default value
Michael Price schrieb: Hi all, We've got two input boxes on a form for the user to type their name in to. The client has requested Forename and Surname appear in these boxes by default as a hint to ensure they know what goes in which box. I want to validate these fields using Jorn's validation to ensure that they are not just the default values. Either by doing exactly this (preferable as I could re-use it), or checking they don't say Forename or Surname would be fine. What would be the best way of going about this? Thanks! Your best bet, and most unobtrusive, is to avoid using default values for labels: http://www.alistapart.com/articles/makingcompactformsmoreaccessible/ Otherwise, you can still implement that as a custom method. See http://jquery.bassistance.de/api-browser/plugins.html#jQueryvalidatoraddMethodStringFunctionString -- Jörn
[jQuery] Re: show hide div with menu
1. tabContent2 : holds the collection of DIVs that are immediate children of #tabcontent 2. filter(':visible') : reduces the collection from (1) to just those DIVs that are visible (ie probably the one that had previously had show() run on it) because it is not necessary to hide those that already hidden! 3. hide() : hides the (reduced) collection from (2), ie sets display:none 4. end() : reverts the last 'destructive' action, which was the filter in (2), so the collection is now back to as it was in (1) 5. filter(':eq('+(n+1)+')') : reduces the collection down to a single item, that item being the (n+1)th of the current collection (from (1)). So if you are adding the handler for the first anchor, n is 0, therefore the selector is ':eq(1)', which cuts the collection down to just the second DIV in the initial tabContent2 collection (the first DIV being the one that is only displayed if no menu option has been clicked?) 6. show() : shows the current collection from (5) - just one item! - ie. sets display:block 7. end() : reverts the last 'destructive' action, which was the filter in (5), so the collection is now back to the same as it started out in (1) ... again! Make sense? dogslife wrote: Thank you very much, that function did exactly what I was looking for. If you have time, would you mind breaking down how this line works? tabContent2.filter(':visible').hide().end().filter(':eq('+(n+1)+')').show().end(); I know your comment ( hide any div currently visible, and show the nth+1 div...) explains what, but I was wondering how it works. Thank's again! -- View this message in context: http://www.nabble.com/show-hide-div-with-menu-tf4411247s15494.html#a12598527 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: IE 7(mostly likey all 6 too) issue with added content with javascript dynamically
That that is not the issue. it is not on an event, just plain javascript that should when it is parsed. Glen Lipka wrote: Have you tried the Live jQuery plugin? I'm not sure if this is applicable for your needs. Glen On 9/10/07, Eridius [EMAIL PROTECTED] wrote: I have a script that reorder some content an this content includes javascript that runs. I basically take the html/javscript text and put it into a variable in the correct order and then i empty out the current content and replace is with the new content. Now if FF, this works fine because the javscript gets ran when i load the content dynamically but in IE 7 the javscript does not seems to get run and was wondering if this is an issue known about IE? -- View this message in context: http://www.nabble.com/IE-7%28mostly-likey-all-6-too%29-issue-with-added-content-with-javascript-dynamically-tf4416607s15494.html#a12597220 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/IE-7%28mostly-likey-all-6-too%29-issue-with-added-content-with-javascript-dynamically-tf4416607s15494.html#a12599042 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] why is code working on Firebug console, but not in script file?
I'm a javascript novice and I'm working with the jMaps plugin for jQuery to add Yahoo Maps to a site. For basic maps, the plugin is working great; however, I'm having trouble getting its addPoint function to work. When I try the following script, the map displays but the point doesn't: $('document').ready(function(){ $('#jmap').jmap({ provider: 'yahoo', maptype: map, zoom: 5, center: [18.335298917917967,-64.73007202148438]}); $('#jmap').addPoint('18.3437','-64.7152', false, 'Point1', false, false); }); I can add the point via the Firebug console just fine, by typing in the addPoint line directly. My guess is that the map isn't yet ready when I'm trying to add the point in the script. I've tried lots of other variations, but without any luck. Any tips on how to get the point added from inside the script? Thanks!
[jQuery] Re: using load cross site
Here is the JSONP proposal: http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/ Yahoo also uses the same approach (with a different callback parameter): http://developer.yahoo.com/common/json.html And I just released CrossSafe, which lets you securely use JSONP/XSS with callback: http://www.xucia.com/page/CrossSafe Kris On Aug 13, 11:06 pm, Hector Santos [EMAIL PROTECTED] wrote: But Michael, please excuse my ignorance. I'm curious. I have to ask because I still do not see this JSONP XSS loophole. Isn't this flickr example you showed below is selft containing with the same site I/O? Where is the cross-site logic? Do you have a link to some official or 'proposal' or draft specification on JSONP? -- HLS On Aug 13, 7:35 pm, Michael Geary [EMAIL PROTECTED] wrote: No, you can load *scripts* cross-site with no problem. It's true, a server-side proxy is the only way to do a cross-site Ajax download. But if the information is available in any kind of executable JavaScript format, you can use a script tag or a dynamic script element to download it. That's what the JSONP (JSON with callback) format is all about - wrap a JSON object inside a callback function whose name is given in the request URL. Here's an example: http://www.flickr.com/services/feeds/photos_public.gne?format=json http://www.flickr.com/services/feeds/photos_public.gne?format=jsonjs... back=fotofeed jsoncallback=fotofeed That URL returns: fotofeed({ title: Everyone's photos, link: http://www.flickr.com/photos/;, // more stuff here, including an array of photo links and info }) If you create either a script tag or a dynamic script element with that URL in the src, it will call your fotofeed function (or any function you name in the jsoncallback= URL parameter) and pass it the JSON data. It doesn't have to be JSON data, of course - the script tag can execute any JavaScript code (which can be good or bad - obviously you need to trust the data provider). JSONP is just a common convention for downloading JSON data cross-domain. If you want to make sure that no rogue JavaScript code is executed, or if the data isn't available in JSONP or a similar executable script format, then you do need to Ajax and a server-side proxy. -Mike _ From: Matt Stith The only way around is to use a server-side script as a proxy, as loading scripts cross-site is a security risk, which is why browsers block that out. From: Anthony Leboeuf(Worcester Wide Web) I am working on a website for the BBB and need to load a document cross site, I am getting apermissiondeniedmessage when doing so. Is there a way around that?- Hide quoted text - - Show quoted text -
[jQuery] Re: IE 7(mostly likey all 6 too) issue with added content with javascript dynamically
Can you post it online? (or a sample demonstrating the problem) It helps to see the problem in action. Best when you can simplify the page to the bare essentials. Glen On 9/10/07, Eridius [EMAIL PROTECTED] wrote: That that is not the issue. it is not on an event, just plain javascript that should when it is parsed. Glen Lipka wrote: Have you tried the Live jQuery plugin? I'm not sure if this is applicable for your needs. Glen On 9/10/07, Eridius [EMAIL PROTECTED] wrote: I have a script that reorder some content an this content includes javascript that runs. I basically take the html/javscript text and put it into a variable in the correct order and then i empty out the current content and replace is with the new content. Now if FF, this works fine because the javscript gets ran when i load the content dynamically but in IE 7 the javscript does not seems to get run and was wondering if this is an issue known about IE? -- View this message in context: http://www.nabble.com/IE-7%28mostly-likey-all-6-too%29-issue-with-added-content-with-javascript-dynamically-tf4416607s15494.html#a12597220 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/IE-7%28mostly-likey-all-6-too%29-issue-with-added-content-with-javascript-dynamically-tf4416607s15494.html#a12599042 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: IE 7(mostly likey all 6 too) issue with added content with javascript dynamically
Can you give a code example or a more precise description of your issue? I had to overcome a remote script's use of document.write(), but it works properly in all the browsers I test (FF 2, Saf 3, Op 9, IE 6/7): http://pyrolupus.com/demo/thawte.html In it, a remote script changes the contents of a div. However, I don't know if this applies to your problem. Pyro On Sep 10, 2:04 pm, Eridius [EMAIL PROTECTED] wrote: That that is not the issue. it is not on an event, just plain javascript that should when it is parsed. Glen Lipka wrote: Have you tried the Live jQuery plugin? I'm not sure if this is applicable for your needs. Glen On 9/10/07, Eridius [EMAIL PROTECTED] wrote: I have a script that reorder some content an this content includes javascript that runs. I basically take the html/javscript text and put it into a variable in the correct order and then i empty out the current content and replace is with the new content. Now if FF, this works fine because the javscript gets ran when i load the content dynamically but in IE 7 the javscript does not seems to get run and was wondering if this is an issue known about IE?
[jQuery] Re: why is code working on Firebug console, but not in script file?
it's a plugin initialisation bug... just add the $('#jmap').addPoint('18.3437','-64.7152', false, 'Point1', false, false); to check by if of the jmap plugin initialisation (usually any plugins create and id or class, by which u can find out if it has been loaded, look in the firebug in html for a clue ) On Sep 10, 8:07 pm, Matt Vance [EMAIL PROTECTED] wrote: I'm a javascript novice and I'm working with the jMaps plugin for jQuery to add Yahoo Maps to a site. For basic maps, the plugin is working great; however, I'm having trouble getting its addPoint function to work. When I try the following script, the map displays but the point doesn't: $('document').ready(function(){ $('#jmap').jmap({ provider: 'yahoo', maptype: map, zoom: 5, center: [18.335298917917967,-64.73007202148438]}); $('#jmap').addPoint('18.3437','-64.7152', false, 'Point1', false, false); }); I can add the point via the Firebug console just fine, by typing in the addPoint line directly. My guess is that the map isn't yet ready when I'm trying to add the point in the script. I've tried lots of other variations, but without any luck. Any tips on how to get the point added from inside the script? Thanks!
[jQuery] Re: Thickbox 3.1: Transparency issues in IE6
@Alexandre: Sorry, but I don't have a publicly accessible url to be able to show off this problem. @Equand: You think? ;o) Chris On Sep 10, 11:27 am, Equand [EMAIL PROTECTED] wrote: looks to me like an 'opacity' css problem On Sep 10, 7:23 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: Do you have a link where we can check your problem? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris Jordan Sent: lundi 10 septembre 2007 17:09 To: jQuery (English) Subject: [jQuery] Thickbox 3.1: Transparency issues in IE6 Hi folks, I've just started using thickbox 3.1 and I notice that transparencies are *not* working in IE6. Is anyone else having this issue? I've not had this issue in the past, so it's confusing me. The CSS appears to be correct to me, but for some reason, the background refuses to be transparent. Can anyone offer any advice? Thanks heaps, Chris Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.12/997 - Date: 9/09/2007 10:17
[jQuery] Re: Interface and Treeview plugins conflicting
Can anyone solve my above Problem ? Thanks On Sep 9, 11:58 pm, Jqlover [EMAIL PROTECTED] wrote: Hello , I am not able use interface library's tooltip withtreeviewmenus plugin. both areconflictingwith each other. Menus are jerking while expanding when i remove the interface library then the menus are working fine now. pls suggest. Thanks
[jQuery] Re: Thickbox 3.1: Transparency issues in IE6
http://www.mandarindesign.com/opacity.html u can manually set a filter on the thickboxes overlay. On Sep 10, 8:49 pm, Chris Jordan [EMAIL PROTECTED] wrote: @Alexandre: Sorry, but I don't have a publicly accessible url to be able to show off this problem. @Equand: You think? ;o) Chris On Sep 10, 11:27 am, Equand [EMAIL PROTECTED] wrote: looks to me like an 'opacity' css problem On Sep 10, 7:23 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: Do you have a link where we can check your problem? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris Jordan Sent: lundi 10 septembre 2007 17:09 To: jQuery (English) Subject: [jQuery] Thickbox 3.1: Transparency issues in IE6 Hi folks, I've just started using thickbox 3.1 and I notice that transparencies are *not* working in IE6. Is anyone else having this issue? I've not had this issue in the past, so it's confusing me. The CSS appears to be correct to me, but for some reason, the background refuses to be transparent. Can anyone offer any advice? Thanks heaps, Chris Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.12/997 - Date: 9/09/2007 10:17
[jQuery] Re: Interface and Treeview plugins conflicting
Thanks Karl, I had tried this Tooltip however it is showing the tooltip at the bottom of the page not with mouse pointer. Any suggestion Thanks On Sep 11, 12:19 am, Karl Swedberg [EMAIL PROTECTED] wrote: On Sep 10, 2007, at 2:38 PM, Jqlover wrote: Can anyone solve my above Problem ? Thanks On Sep 9, 11:58 pm, Jqlover [EMAIL PROTECTED] wrote: Hello , I am not able use interface library's tooltip withtreeviewmenus plugin. both areconflictingwith each other. Menus are jerking while expanding when i remove the interface library then the menus are working fine now. pls suggest. Thanks I can't solve your problem, but I can recommend that you try a different tooltip plugin. Jörn Zaefferer, the developer of the treeview menu plugin, has also created a tooltip plugin. I imagine that they will play nicely together. http://jquery.com/plugins/project/tooltip Hope that helps. --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com- Hide quoted text - - Show quoted text -
[jQuery] Re: Interface and Treeview plugins conflicting
Are you including the Dimensions plugin as well? The tooltip plugin requires Dimensions. If you download the zip bundle from the Plugin Repository, it should come with a file called jquery.dimensions.js. That's the one you should reference in the head of your document before you reference jquery.tooltip.js. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 10, 2007, at 3:32 PM, Jqlover wrote: Thanks Karl, I had tried this Tooltip however it is showing the tooltip at the bottom of the page not with mouse pointer. Any suggestion Thanks On Sep 11, 12:19 am, Karl Swedberg [EMAIL PROTECTED] wrote: On Sep 10, 2007, at 2:38 PM, Jqlover wrote: Can anyone solve my above Problem ? Thanks On Sep 9, 11:58 pm, Jqlover [EMAIL PROTECTED] wrote: Hello , I am not able use interface library's tooltip withtreeviewmenus plugin. both areconflictingwith each other. Menus are jerking while expanding when i remove the interface library then the menus are working fine now. pls suggest. Thanks I can't solve your problem, but I can recommend that you try a different tooltip plugin. Jörn Zaefferer, the developer of the treeview menu plugin, has also created a tooltip plugin. I imagine that they will play nicely together. http://jquery.com/plugins/project/tooltip Hope that helps. --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com- Hide quoted text - - Show quoted text -
[jQuery] Re: $.getScript and variables
thanks, i found the problem... i defined all of the functions and global vars inside 'document ready' function... doh, thanks anyways. On Sep 10, 5:58 pm, Equand [EMAIL PROTECTED] wrote: ok... this page...http://www.jppromo.ru: there is A LOT of code, so search in code for //ADMIN AREA START and //ADMIN AREA STOP, the code between them is the one i want to put into a separate file, for load via getScript... but there are used global vars like LASTLOGIN and LASTHREF etc, and global functions, like get and post... now when i load the suppose admin.js , the code doesn't work when plainly written, if i put this code into a function, i need to pass in the variables, but it's impossible to make a var like LASTHREF pass there everytime. is there a way to make global vars for the loaded page, to be used in loaded script from $.getScript()... On Sep 10, 4:40 pm, Michael Geary [EMAIL PROTECTED] wrote: Is what real? Equand, I read your posts, but I'm not sure what you're trying to do or what the question is. Could you explain in more detail, with some actual code? Maybe post a link to a page, or at least post a code sample? -Mike From: Equand is it real? *global for $(document).ready(function() { SPACE }; ... i forgot to mention... i tried to put it into a function and pass global vars in it thru functions vars... and ofcourse they've lost their globality... Hi everybody... i have a question... i want to virtualise my admin section... by getting the script from a php file on post. is this real? and i want it to use current documents vars... i just copied part of the script and tried to load it using getScript... but this part doesn't work, when I put some global variables in it is there a way to make global vars work in included file? like global $var; in php...
[jQuery] Re: Interface and Treeview plugins conflicting
On Sep 10, 2007, at 2:38 PM, Jqlover wrote: Can anyone solve my above Problem ? Thanks On Sep 9, 11:58 pm, Jqlover [EMAIL PROTECTED] wrote: Hello , I am not able use interface library's tooltip withtreeviewmenus plugin. both areconflictingwith each other. Menus are jerking while expanding when i remove the interface library then the menus are working fine now. pls suggest. Thanks I can't solve your problem, but I can recommend that you try a different tooltip plugin. Jörn Zaefferer, the developer of the treeview menu plugin, has also created a tooltip plugin. I imagine that they will play nicely together. http://jquery.com/plugins/project/tooltip Hope that helps. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com
[jQuery] Need plugin to determine # of chars
Guys, I need a plugin that does the following: - Displays a running total of the chars being entered in a field (input or textarea) - Enforces a char limit I could've sworn I saw a plugin that does this. Anyone seen this? Rey
[jQuery] Re: Need plugin to determine # of chars
Rey Bango wrote on 9/10/2007 3:33 PM: I need a plugin that does the following: - Displays a running total of the chars being entered in a field (input or textarea) - Enforces a char limit I could've sworn I saw a plugin that does this. Probably this one: http://www.tomdeater.com/jquery/character_counter/ - Bil
[jQuery] Re: Need plugin to determine # of chars
Yep that's it!! Thanks Bill. Bil Corry wrote: Rey Bango wrote on 9/10/2007 3:33 PM: I need a plugin that does the following: - Displays a running total of the chars being entered in a field (input or textarea) - Enforces a char limit I could've sworn I saw a plugin that does this. Probably this one: http://www.tomdeater.com/jquery/character_counter/ - Bil
[jQuery] Re: BlockUI fadeout
Hi Mike, Thanks for letting me know. Is it something that might be added to a later release? Cheers Keith -- View this message in context: http://www.nabble.com/BlockUI-fadeout-tf4414799s15494.html#a12602838 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] remove jScrollPane
Hi, I've used the jScrollPane Plugin in my Intefaces, and i have a problem. Every time that I resize my window, i also resize my main div, to stay with the same page's size, but when a resize the div that contains the jScrollPane method, it doesn't fix the height. What I would like to do is when I resize, I would remove the jScrollPane and attribute again the jScrollPane method. Can somebody help me?.
[jQuery] Re: Thickbox 3.1: Transparency issues in IE6
The opacity code is already inclided in the Thickbox code (in thickbox.css) how much more manual are you talking about? Thanks, Chris On 9/10/07, Equand [EMAIL PROTECTED] wrote: http://www.mandarindesign.com/opacity.html u can manually set a filter on the thickboxes overlay. On Sep 10, 8:49 pm, Chris Jordan [EMAIL PROTECTED] wrote: @Alexandre: Sorry, but I don't have a publicly accessible url to be able to show off this problem. @Equand: You think? ;o) Chris On Sep 10, 11:27 am, Equand [EMAIL PROTECTED] wrote: looks to me like an 'opacity' css problem On Sep 10, 7:23 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: Do you have a link where we can check your problem? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris Jordan Sent: lundi 10 septembre 2007 17:09 To: jQuery (English) Subject: [jQuery] Thickbox 3.1: Transparency issues in IE6 Hi folks, I've just started using thickbox 3.1 and I notice that transparencies are *not* working in IE6. Is anyone else having this issue? I've not had this issue in the past, so it's confusing me. The CSS appears to be correct to me, but for some reason, the background refuses to be transparent. Can anyone offer any advice? Thanks heaps, Chris Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.12/997 - Date: 9/09/2007 10:17 -- http://cjordan.us
[jQuery] 1.2 out?
I just grabbed http://jquery.com/src/jquery-latest.js and the header of the file says: /* * jQuery 1.2 - New Wave Javascript * * Copyright (c) 2007 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2007-09-10 15:45:49 -0400 (Mon, 10 Sep 2007) $ * $Rev: 3219 $ */ Is 1.2 officially out? YEAH! :-)
[jQuery] Re: 1.2 out?
Yah, it looks like they're in the middle of updating everything. On Sep 10, 3:46 pm, MrNase [EMAIL PROTECTED] wrote: I just grabbedhttp://jquery.com/src/jquery-latest.jsand the header of the file says: /* * jQuery 1.2 - New Wave Javascript * * Copyright (c) 2007 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2007-09-10 15:45:49 -0400 (Mon, 10 Sep 2007) $ * $Rev: 3219 $ */ Is 1.2 officially out? YEAH! :-)
[jQuery] Re: 1.2 out?
Woo-HOO! On 9/10/07, Justin Sepulveda [EMAIL PROTECTED] wrote: Yah, it looks like they're in the middle of updating everything. On Sep 10, 3:46 pm, MrNase [EMAIL PROTECTED] wrote: I just grabbedhttp://jquery.com/src/jquery-latest.jsand the header of the file says: /* * jQuery 1.2 - New Wave Javascript * * Copyright (c) 2007 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2007-09-10 15:45:49 -0400 (Mon, 10 Sep 2007) $ * $Rev: 3219 $ */ Is 1.2 officially out? YEAH! :-) -- http://cjordan.us
[jQuery] Re: Corner Plugin affects layout
Sam, I visited both links in your post (using IE6) and I can't see the problem? Also, I don't see anything on either page that looks like the corner plug-in has been applied. Hmmm... did you fix things already? :o/ Chris On 9/10/07, weepy [EMAIL PROTECTED] wrote: that's an awesome plugin On Sep 10, 3:59 pm, Sam Collett [EMAIL PROTECTED] wrote: Using canvas instead of nested div's for the corner didn't help with the layout (although it looks slightly better). The problem is caused by the 'position: relative' added to the element with the corner applied to it. On Sep 10, 2:28 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ugin use this plugin:http://meerbox.nl/?page_id=4 works fine and it's pretty nice ;) -- http://cjordan.us
[jQuery] Re: Corner Plugin affects layout
that's an awesome plugin On Sep 10, 3:59 pm, Sam Collett [EMAIL PROTECTED] wrote: Using canvas instead of nested div's for the corner didn't help with the layout (although it looks slightly better). The problem is caused by the 'position: relative' added to the element with the corner applied to it. On Sep 10, 2:28 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ugin use this plugin:http://meerbox.nl/?page_id=4 works fine and it's pretty nice ;)
[jQuery] Re: Corner Plugin affects layout
Dude, that looks pretty freakin' sweet! I may have to give that one a shot sometime. Chris On 9/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: use this plugin: http://meerbox.nl/?page_id=4 works fine and it's pretty nice ;) -- http://cjordan.us
[jQuery] Re: Corner Plugin affects layout
Sam, Did you get this solved? I couldn't reproduce the error (IE7), but it sounds like a classic hasLayout problem. Mike On 9/10/07, Sam Collett [EMAIL PROTECTED] wrote: Using canvas instead of nested div's for the corner didn't help with the layout (although it looks slightly better). The problem is caused by the 'position: relative' added to the element with the corner applied to it. On Sep 10, 2:28 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: use this plugin:http://meerbox.nl/?page_id=4 works fine and it's pretty nice ;)
[jQuery] Re: Thickbox 3.1: Transparency issues in IE6
Bah! Darned fingers! Included ... not inclided... :o/ Chris On 9/10/07, Christopher Jordan [EMAIL PROTECTED] wrote: The opacity code is already inclided in the Thickbox code (in thickbox.css) how much more manual are you talking about? Thanks, Chris On 9/10/07, Equand [EMAIL PROTECTED] wrote: http://www.mandarindesign.com/opacity.html u can manually set a filter on the thickboxes overlay. On Sep 10, 8:49 pm, Chris Jordan [EMAIL PROTECTED] wrote: @Alexandre: Sorry, but I don't have a publicly accessible url to be able to show off this problem. @Equand: You think? ;o) Chris On Sep 10, 11:27 am, Equand [EMAIL PROTECTED] wrote: looks to me like an 'opacity' css problem On Sep 10, 7:23 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: Do you have a link where we can check your problem? -Original Message- From: jquery-en@googlegroups.com [mailto: [EMAIL PROTECTED] On Behalf Of Chris Jordan Sent: lundi 10 septembre 2007 17:09 To: jQuery (English) Subject: [jQuery] Thickbox 3.1: Transparency issues in IE6 Hi folks, I've just started using thickbox 3.1 and I notice that transparencies are *not* working in IE6. Is anyone else having this issue? I've not had this issue in the past, so it's confusing me. The CSS appears to be correct to me, but for some reason, the background refuses to be transparent. Can anyone offer any advice? Thanks heaps, Chris Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.12/997 - Date: 9/09/2007 10:17 -- http://cjordan.us -- http://cjordan.us
[jQuery] Re: 1.2 out?
Its available for download but it hasn't been officially released. We're wrapping up some things. Rey... Justin Sepulveda wrote: Yah, it looks like they're in the middle of updating everything. On Sep 10, 3:46 pm, MrNase [EMAIL PROTECTED] wrote: I just grabbedhttp://jquery.com/src/jquery-latest.jsand the header of the file says: /* * jQuery 1.2 - New Wave Javascript * * Copyright (c) 2007 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2007-09-10 15:45:49 -0400 (Mon, 10 Sep 2007) $ * $Rev: 3219 $ */ Is 1.2 officially out? YEAH! :-)
[jQuery] Re: Thickbox 3.1: Transparency issues in IE6
yeah it's included... but something overrides this in your script probably On Sep 11, 12:37 am, Christopher Jordan [EMAIL PROTECTED] wrote: Bah! Darned fingers! Included ... not inclided... :o/ Chris On 9/10/07, Christopher Jordan [EMAIL PROTECTED] wrote: The opacity code is already inclided in the Thickbox code (in thickbox.css) how much more manual are you talking about? Thanks, Chris On 9/10/07, Equand [EMAIL PROTECTED] wrote: http://www.mandarindesign.com/opacity.html u can manually set a filter on the thickboxes overlay. On Sep 10, 8:49 pm, Chris Jordan [EMAIL PROTECTED] wrote: @Alexandre: Sorry, but I don't have a publicly accessible url to be able to show off this problem. @Equand: You think? ;o) Chris On Sep 10, 11:27 am, Equand [EMAIL PROTECTED] wrote: looks to me like an 'opacity' css problem On Sep 10, 7:23 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: Do you have a link where we can check your problem? -Original Message- From: jquery-en@googlegroups.com [mailto: [EMAIL PROTECTED] On Behalf Of Chris Jordan Sent: lundi 10 septembre 2007 17:09 To: jQuery (English) Subject: [jQuery] Thickbox 3.1: Transparency issues in IE6 Hi folks, I've just started using thickbox 3.1 and I notice that transparencies are *not* working in IE6. Is anyone else having this issue? I've not had this issue in the past, so it's confusing me. The CSS appears to be correct to me, but for some reason, the background refuses to be transparent. Can anyone offer any advice? Thanks heaps, Chris Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.12/997 - Date: 9/09/2007 10:17 -- http://cjordan.us --http://cjordan.us
[jQuery] Re: BlockUI fadeout
Thanks for letting me know. Is it something that might be added to a later release? Cheers Sure, I've added it to my todo list! Mike
[jQuery] popup div
Hi, I am trying to make a simple div that will pop which will be close by just clicking to any part of the page. I have no idea of how to do this. I have try something like this $(document).click(function(e){ $('[EMAIL PROTECTED]').hide(); }); $(body).click(function(e){ $('[EMAIL PROTECTED]').hide(); }); but all my other click function on specific html tag won't work anymore, it seems to be overide. Thanks james