[jQuery] Re: PeriodicalExecutor or $.executeEach
Currently I'm kinda busy, and the executeEach method is working for me... When I have more time I might try it, but not right now, also I will help as much as I can. I think it's not much of writing, but designing, as JS can get nasty with closures and 'this'. Regards, Emil Ivanov Stosh написа: Emil, Let me know if you decide to pursue a Queue plugin - I'd love to help. If you don't I may try and tackle it in my spare time...
[jQuery] Re: ANN: jQuery-Powered Sites: The List Continues to Grow
i use thickbox, jScrollpane and few custom jquery functions here : HYPERLINK http://www.lab-au.comhttp://www.lab-au.com it's a temporary website, but the final website will make HEAVY use of jquery for ajax, layouting and visual effects, in a non obtrusive manner. stay tuned! _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Karl Swedberg Sent: mardi 8 mai 2007 1:48 To: jquery-en@googlegroups.com Subject: [jQuery] Re: ANN: jQuery-Powered Sites: The List Continues to Grow yeah, Nathan Smith (HYPERLINK http://sonspring.comhttp://sonspring.com/) and a few others put that one together. very beautifully done. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 7, 2007, at 8:42 PM, Sam Sherlock wrote: I have just seen this on CSS Beauty - looks great too and using jQuery HYPERLINK http://www.stonebriar.org/http://www.stonebriar.org/ - S On 06/05/07, westamastaflash HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: I used jQuery for HYPERLINK http://westphotoinc.comhttp://westphotoinc.com I really liked the interface plugin's slider bar, it works great and looks the same on all browsers, unlike browser scrollbars. I didn't use too many of the effects, but it's nice for a few of the pages where i need to toggle images based on the thumbs on the left. Eventually I want to replace coppermine photo gallery with a php/mysql + jquery photo management ordering app of some sort. Is there anything out there already? I had to make some extensive mods to coppermine to let me talk to paypal and I nearly wiped out all but the viewing functionality (comments, smileys, additional user acct's, etc were superfluous). Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.467 / Base de données virus: 269.6.5/793 - Date: 7/05/2007 14:55
[jQuery] Re: PeriodicalExecutor or $.executeEach
Actually there is allready something called periodical update plugin, you can check that out if you wish..
[jQuery] Re: ajax tabs: Where is remote-tab-1 coming from?
[EMAIL PROTECTED] wrote: Hi, I'm trying to create some AJAX tabs that load a PHP page subject to a parameter. However, whenever I roll over my tabs, or click on one of them, they attempt to load something called remote-tab-n where n is the sequence of where the tab occurred. However, I haven't put this string anywhere in my code. What am I doing wrong? Here is what I have: html head link type=text/css href=jquery.tabs.css rel=stylesheet script src=scripts/jquery-1.1.2.pack.js type=text/javascript/ script script src=scripts/jquery.history_remote.pack.js type=text/ javascript/script script src=scripts/jquery.tabs.pack.js type=text/javascript/ script script type=text/javascript $(document).ready(function(){ // create AJAX tabs $('#container').tabs({ remote: true, onShow: function(clicked, shown, hidden) { // alert( $('li', shown).size() ); } }); }); /script /head body div id=containerul lia href=draw_modules?tab_id=1General/a/li lia href=draw_modules?tab_id=2Math/a/li lia href=draw_modules?tab_id=4Social Studies/a/li lia href=draw_modules?tab_id=5Reading/a/li lia href=draw_modules?tab_id=6Learning Management/a/li lia href=draw_modules?tab_id=9New Tab/a/li /ul/div /body /html Thanks for any advice, - Dave The plugin needs to change the existing links to hashes to be able to support history and bookmarking. This is by default done with the prefix remote-tab- plus a simple counter. You can change the default with the option hashPrefix, like so: $('#container').tabs({ remote: true, hashPrefix: 'draw_module_' }); That would result in links pointing to #draw_module_1, ... I'm planning for a little longer to retrieve that generated hash from the link text and/or its title attribute, but currently I have absolutely no time to work on a robust solution. HTH, Klaus
[jQuery] Unable to listen to elements appended by jQuery.
Well, im trying to append childrens to a div in a administration tool im developing. The problem is simple: I've added som html to this div like this: var toInsert = 'div class=menuBoxContentRow event name=eventRowHere'+ 'div class=eventTitle'+unescape($ (curEvent).find('Name').text())+'/div' + 'div class=eventDetaildomain: '+unescape($ (curEvent).find('Domain').text())+'/div' + 'div class=eventDetailvinder fundet: '+winnerFound+'/div' + '/div'; $(#eventsMenuContent).append(toInsert); And im trying to listen for onclick events on this with $([EMAIL PROTECTED]).click( function() { alert('asdasd'); }); All this is done inside a $(document).ready(function() {}); - But it wont work? Do I need to tell jQuery that something has been appended? Thanks in advance. Regards, Jakob Dam Jensen
[jQuery] JavaScript text nodes
Is it possible to take a node: window.onload = initAll; var nodeChangingArea; function initAll() { document.getElementsByTagName(form)[0].onsubmit = function() {return nodeChanger();} nodeChangingArea = document.getElementById(modifiable); } function addNode() { var inText = document.getElementById(textArea).value; var newText = document.createTextNode(inText); var newGraf = document.createElement(p); newGraf.appendChild(newText); nodeChangingArea.appendChild(newGraf); } function delNode() { var delChoice = document.getElementById(grafCount).selectedIndex; var allGrafs = nodeChangingArea.getElementsByTagName(p); var killGraf = allGrafs.item(delChoice); nodeChangingArea.removeChild(killGraf); } function insertNode() { var inChoice = document.getElementById(grafCount).selectedIndex; var inText = document.getElementById(textArea).value; var newText = document.createTextNode(inText); var newGraf = document.createElement(p); newGraf.appendChild(newText); var allGrafs = nodeChangingArea.getElementsByTagName(p); var oldGraf = allGrafs.item(inChoice); nodeChangingArea.insertBefore(newGraf,oldGraf); } function replaceNode() { var inChoice = document.getElementById(grafCount).selectedIndex; var inText = document.getElementById(textArea).value; var newText = document.createTextNode(inText); var newGraf = document.createElement(p); newGraf.appendChild(newText); var allGrafs = nodeChangingArea.getElementsByTagName(p); var oldGraf = allGrafs.item(inChoice); nodeChangingArea.replaceChild(newGraf,oldGraf); } function nodeChanger() { var actionType = -1; var currentPgraphCount = nodeChangingArea.getElementsByTagName (p).length; var radioButtonSet = document.getElementsByTagName (form)[0].nodeAction; for (var i=0; iradioButtonSet.length; i++) { if (radioButtonSet[i].checked) { actionType = i; } } switch(actionType) { case 0: addNode(); break; case 1: if (currentPgraphCount 0) { delNode(); break; } case 2: if (currentPgraphCount 0) { insertNode(); break; } case 3: if (currentPgraphCount 0) { replaceNode(); break } default: alert(No valid action was chosen); } document.getElementById(grafCount).options.length = 0; for (i=0; inodeChangingArea.getElementsByTagName(p).length; i++) { document.getElementById(grafCount).options[i] = new Option(i+1); } return false; } and have it PERMANENTLY pasted to the web page? Like a guestbook? Thanks in advance! -- Random Person
[jQuery] Draggables not working while scrolling !
Hi all , I am not able to use Draggables div with scrolling .. the drop elements when scrolled doesn't change their position ... and the this element returned by onDrag returns the instance of the one which was already present .. i know the issue is solved in version 2.0 of jquery .. but due to some requirements of my project i need to make it work on 1.2 version ! Please let me know the solution Thanks Kapil
[jQuery] Re: New patch release for CFJS
Might I suggest that instead of releasing a new version every few days, just wait and release every few weeks. That way you get less releasing. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Jordan Sent: Monday, May 07, 2007 6:46 PM To: jQuery Mailing List Subject: [jQuery] New patch release for CFJS Well, I've been looking at the numbers on RIAForge.org at the number of people downloading CFJS for jQuery. My first thought was, Yay! Lots of people are finding it useful! My second thought was that about a dozen or so people find it useful, but keep having to re-download, because I'm constantly releasing new functions and fixes. Either way, it's a fun bit of code to work on. :o) So, I've just released a new patch, which brings us up to 1.1.2. This patch adds the dimension checking ability to the IsArray() function. $.IsArray(myArray, 3); will return true if 'myArray' has three dimensions, and false otherwise. If you don't need this functionality right away, don't feel like you've got to go get the latest release. There are no additional bug fixes or anything of that nature. If you're interested, here's an idea of what I want to do next: 1. finish the DatePart() function. It's missing the 'y' and 'ww' date parts. 2. Add three additional functions (can't remember off hand which ones, but I've got it written down) :o) 3. Add a few more examples to cjordan.us I've a couple more ideas, but it'd be premature to mention them now. ;o) Cheers, Chris -- http://www.cjordan.us
[jQuery] Re: Unable to listen to elements appended by jQuery.
Hi Jakob, This is a good question that comes up quite a bit on this list. So I thought it might be a good idea to post a relevant excerpt of the forthcoming book, Learning jQuery, to the tutorial wiki: http://docs.jquery.com/Tutorials:AJAX_and_Events Jonathan Chaffer has already posted this to the list, so for those of you who have already read that, you won't find anything new here (except for a couple minor edits). It specifies AJAX, but the same principles apply with plain J DOM modification. If you don't find the answer to your question in that article, let us know. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 8, 2007, at 8:01 AM, [EMAIL PROTECTED] wrote: Well, im trying to append childrens to a div in a administration tool im developing. The problem is simple: I've added som html to this div like this: var toInsert = 'div class=menuBoxContentRow event name=eventRowHere'+ 'div class=eventTitle'+unescape($ (curEvent).find('Name').text())+'/div' + 'div class=eventDetaildomain: '+unescape($ (curEvent).find('Domain').text())+'/div' + 'div class=eventDetailvinder fundet: '+winnerFound+'/div' + '/div'; $(#eventsMenuContent).append(toInsert); And im trying to listen for onclick events on this with $([EMAIL PROTECTED]).click( function() { alert('asdasd'); }); All this is done inside a $(document).ready(function() {}); - But it wont work? Do I need to tell jQuery that something has been appended? Thanks in advance. Regards, Jakob Dam Jensen
[jQuery] Re: ANN: jQuery-Powered Sites: The List Continues to Grow
Thanks for all of the submission guys. I added: - Univ. of West Georgia - Named by The Princeton Review as one of the Best Southeastern Colleges and one of America’s Best Value Colleges - Metalab - Official website of the Belgium digital design lab __ LAb[au] - SonSpring by Nath Smith - SonSpring is a small, Christian web studio that specializes in creating sites for churches and non-profits. - Stonebriar Community Church - Stonebriar exists to encourage all people to pursue a lifelong, joyous relationship with Jesus Christ. - West Photography - West Photography offers professional photography services for a variety of events.
[jQuery] Re: Featured Content or Cnet Carousel
Thanks for the suggestions, and making me think. I guess I'm not that partial to the animation, a classic fade would be fine. Like http://medienfreunde.com/lab/innerfade/ What I really like is the navigation at the bottom, I'm not sure how to do that with no fuss, that would highlight which slide is showing at the moment, such as a selected Css class or something? There are seven, count 'em seven scripts attached to the non-jquery example at: http://www.builderau.com.au/resources/carousel/example2.htm I hate to even think about tying up that kind of bandwidth on a server. Any ideas on coding the navigation or an example or plugin that could be used in conjunction with innerfade maybe? I don't think I have the skills to mesh two app's into one, but my bud Mario might be able to help me figure it out. thanks again. On May 7, 4:42 pm, Alex Ezell [EMAIL PROTECTED] wrote: This is not an answer, just an observation. Does it seem odd that a carouselor slideshow which is decidedly horizontal uses a DropOutDown effect? Shouldn't it just fade or at least slide off to the side? /alex On 5/7/07, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Is anyone familiar with this type of setup: http://www.builderau.com.au/program/javascript/soa/Build-a-carousel-w... JavaScript/0,339028434,339271770,00.htm The demo is at the end of the article on page three or here: http://www.builderau.com.au/resources/carousel/example2.htm Interface already has a DropOutDown effect: http://interface.eyecon.ro/demos/ifx.html#drop-fx http://interface.eyecon.ro/docs/fx It wouldn't be hard to modify that code to do what you want using jQuery. You could also probably just use the animate() method if you didn't want to use Interface to get the same effect. -Dan
[jQuery] jCarousel 0.2.0 Beta
Hi, i've released the a new version of jCarousel yesterday. The source code is completely rewritten and i've tried to make it more flexible and to cover most of the features requested on the mailinglist. Online: http://sorgalla.com/projects/jcarousel-0.2.0-beta/ Related blog post: http://sorgalla.com/2007/05/07/jcarousel-020-beta/ Let me know if you have suggestions and/or if you find bugs. Jan
[jQuery] Re: Migrating from old jQuery
Hi Madison, After a quick glance, the only thing I see in the .js file that will break when you upgrade to the latest jQuery is .oneclick(function() {}). You'll need to change that to .one('click',function(){}). You might also want to change the $.get() to $.getJSON(). That way I think you'll be able to avoid the eval. Otherwise, looks like it will work as expected, though I don't know for sure about the DOM-creation plugin. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 8, 2007, at 9:05 AM, Madison Bryan wrote: I am the webmaster of a university and we have been happily using jQuery since last summer when we redesigned the university site. The build we are using is from May 12, 2006 (yes, yes... I know) and now we want to migrate to the current release. There is one place that I'm not sure the best way to migrate. On our combo search, I use ajax to get the people results and place them in the sidebar... http://www.westga.edu/index_combo-search.php?q=its To build the DOM I'm using... http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and- prototype#comment-176 If you want to see our code: http://www.westga.edu/assets/js/ search3.js I like how elegant this method is. How do you guys think I should migrate this code? Thank you! Madison
[jQuery] Re: New / Updated Plugin - Focus Fields
Sam, The demos don't seem to work for me in either FF2 or IE6 (?) SEAN O http://www.sean-o.com Sam Collett wrote: Haven't updated outlineTextInput's for a while (due to having issues with IE) - which is a plugin for adding outlines to text fields when they are given focus. Done a new version which does seem to work: http://www.texotela.co.uk/code/jquery/focusfields/ Only done very basic testing on Firefox and Internet Explorer. The input's are given a transparent background in Opera, so that could be easily remedied by giving the inputs a background colour via CSS. -- View this message in context: http://www.nabble.com/New---Updated-Plugin---Focus-Fields-tf3709094s15494.html#a10376620 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: New patch release for CFJS
Good point, Andy. I'm new at this releasing stuff. :o) I think maybe I will hold back my next few changes (which haven't happened yet) so that I'm not releasing quite so often. Thanks for the advice! :o) Cheers, Chris Andy Matthews wrote: Might I suggest that instead of releasing a new version every few days, just wait and release every few weeks. That way you get less releasing. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Jordan Sent: Monday, May 07, 2007 6:46 PM To: jQuery Mailing List Subject: [jQuery] New patch release for CFJS Well, I've been looking at the numbers on RIAForge.org at the number of people downloading CFJS for jQuery. My first thought was, Yay! Lots of people are finding it useful! My second thought was that about a dozen or so people find it useful, but keep having to re-download, because I'm constantly releasing new functions and fixes. Either way, it's a fun bit of code to work on. :o) So, I've just released a new patch, which brings us up to 1.1.2. This patch adds the dimension checking ability to the IsArray() function. $.IsArray(myArray, 3); will return true if 'myArray' has three dimensions, and false otherwise. If you don't need this functionality right away, don't feel like you've got to go get the latest release. There are no additional bug fixes or anything of that nature. If you're interested, here's an idea of what I want to do next: 1. finish the DatePart() function. It's missing the 'y' and 'ww' date parts. 2. Add three additional functions (can't remember off hand which ones, but I've got it written down) :o) 3. Add a few more examples to cjordan.us I've a couple more ideas, but it'd be premature to mention them now. ;o) Cheers, Chris -- http://www.cjordan.us -- http://www.cjordan.us
[jQuery] Re: create new element in DOM
That's simple html. On May 8, 12:58 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: What data is being sent to the html function? On May 7, 5:13 pm, joomlafreak [EMAIL PROTECTED] wrote: I thought it is simple but why am I not able to achieve it, I don't understand, this is what I am doing var isidThere = $(#tabcnt+fileid_id); if (isidThere.size() != 1){ $.get(files/+fileid+.php,function(data){ $(#tabcnt_+rowopen).html(data).slideDown(slow,function(){ $(#tabcnt+fileid_id).html(data); //here I am trying to create a new element to store data for future use without having to query it again form server }); }else{ $(#tabcnt+fileid_id).html(data); $(#tabcnt_+rowopen).html(data).fadeIn(slow); } }); } I thought this statement $(#tabcnt+fileid_id).html(data); would create a new element in the DOM but even after going through the loop the check on top throws isidThere.size() as 0, which means the element is not there is DOM. Can someone please guide me as to why the element is not being created here to store the data. many thanks in advance for any help.
[jQuery] Re: Select Length Reference
// remove selected items from the #mySelect element var oRemoved = $(option:selected, oSelect).remove(); -- or -- var oRemoved = oSelect.find(option:selected).remove(); How would you identify an individual option index using this syntax? In other words if I wanted to check the value of the first option in oSelect and if it is blank (), then remove it? Is there a way to check to see if an option value is contained within the select without looping (does jQuery have native functionality to do this)? Jeff
[jQuery] Re: jCarousel 0.2.0 Beta
Excellent ! -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jan Sorgalla Sent: mardi 8 mai 2007 14:42 To: jQuery (English) Subject: [jQuery] jCarousel 0.2.0 Beta Hi, i've released the a new version of jCarousel yesterday. The source code is completely rewritten and i've tried to make it more flexible and to cover most of the features requested on the mailinglist. Online: http://sorgalla.com/projects/jcarousel-0.2.0-beta/ Related blog post: http://sorgalla.com/2007/05/07/jcarousel-020-beta/ Let me know if you have suggestions and/or if you find bugs. Jan Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.467 / Base de données virus: 269.6.5/793 - Date: 7/05/2007 14:55
[jQuery] Re: Select Length Reference
Jeff, // remove selected items from the #mySelect element var oRemoved = $(option:selected, oSelect).remove(); -- or -- var oRemoved = oSelect.find(option:selected).remove(); How would you identify an individual option index using this syntax? In other words if I wanted to check the value of the first option in oSelect and if it is blank (), then remove it? Is there a way to check to see if an option value is contained within the select without looping (does jQuery have native functionality to do this)? There's nothing built-in to do that, but you can use the each() method to perform some logic on each match found: $(option:selected, oSelect).each( function (i){ // this is a reference to the DOM element, not jQuery object // i is the current array position // if the value attribute of the tag is empty, remove the item if( this.value.length == 0 ) $(this).remove(); } ); Now the above example would remove any value selected who's option / element's value attribute was empty. You need to build in additional checking to see if it was the first child of the parent select / element. -Dan
[jQuery] Re: New / Updated Plugin - Focus Fields
On May 8, 3:12 pm, Sean O [EMAIL PROTECTED] wrote: Sam, The demos don't seem to work for me in either FF2 or IE6 (?) SEAN Ohttp://www.sean-o.com Did you click the text fields after clicking on one of the examples? There is only an outline when they have focus.
[jQuery] Re: fixing some smaller issues on a gallery with msie
anybody help please, it's the final thing i can't figure out... msie just doesn't work as expected ( On May 8, 7:17 am, Equand [EMAIL PROTECTED] wrote: http://nosite.ru/HU/ ok guys. as you can see, there are some problems with msie... and I don't have a clue... i think it has something to do with remove() and load bining for the image... coz when it removes it's not accessible again... however firefox shows this gallery ok...
[jQuery] Re: New / Updated Plugin - Focus Fields
Sean O wrote on 5/8/2007 7:12 AM: The demos don't seem to work for me in either FF2 or IE6 (?) Worked for me in FF2. For IE7 (not 6), it didn't appear to work, but it does work on a local test site. - Bil
[jQuery] Re: New / Updated Plugin - Focus Fields
Worked for me on ie 6 and ff 2 On May 8, 4:12 pm, Sean O [EMAIL PROTECTED] wrote: Sam, The demos don't seem to work for me in either FF2 or IE6 (?) SEAN Ohttp://www.sean-o.com Sam Collett wrote: Haven't updated outlineTextInput's for a while (due to having issues with IE) - which is a plugin for adding outlines to text fields when they are given focus. Done a new version which does seem to work: http://www.texotela.co.uk/code/jquery/focusfields/ Only done very basic testing on Firefox and Internet Explorer. The input's are given a transparent background in Opera, so that could be easily remedied by giving the inputs a background colour via CSS. -- View this message in context:http://www.nabble.com/New---Updated-Plugin---Focus-Fields-tf3709094s1... Sent from the JQuery mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups jQuery (English) group. To post to this group, send email to jquery-en@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-en?hl=en -~--~~~~--~~--~--~---
[jQuery] New plugin: simple character counter for textareas
I've just released the first version of a simple plugin to add character counters/limiters to textarea elements. The demo and code can be found here: http://www.tomdeater.com/jquery/character_counter/
[jQuery] Re: New / Updated Plugin - Focus Fields
I really like this Sam and it works perfect in IE7 as well. Equand wrote: Worked for me on ie 6 and ff 2 On May 8, 4:12 pm, Sean O [EMAIL PROTECTED] wrote: Sam, The demos don't seem to work for me in either FF2 or IE6 (?) SEAN Ohttp://www.sean-o.com Sam Collett wrote: Haven't updated outlineTextInput's for a while (due to having issues with IE) - which is a plugin for adding outlines to text fields when they are given focus. Done a new version which does seem to work: http://www.texotela.co.uk/code/jquery/focusfields/ Only done very basic testing on Firefox and Internet Explorer. The input's are given a transparent background in Opera, so that could be easily remedied by giving the inputs a background colour via CSS. -- View this message in context:http://www.nabble.com/New---Updated-Plugin---Focus-Fields-tf3709094s1... Sent from the JQuery mailing list archive at Nabble.com. -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com
[jQuery] Re: New plugin: simple character counter for textareas
Very cool. Works great in FF 2 and IE7 [EMAIL PROTECTED] wrote: I've just released the first version of a simple plugin to add character counters/limiters to textarea elements. The demo and code can be found here: http://www.tomdeater.com/jquery/character_counter/ -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com
[jQuery] Re: New / Updated Plugin - Focus Fields
Sam, That was it. Works in FF2 IE 6 here. I had thought there was a default initiation of focusFields() on page load of the demo... My eyes passed right over the click one of the examples above... SEAN O Sam Collett wrote: Did you click the text fields after clicking on one of the examples? There is only an outline when they have focus. -- View this message in context: http://www.nabble.com/New---Updated-Plugin---Focus-Fields-tf3709094s15494.html#a10378562 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: New / Updated Plugin - Focus Fields
On May 8, 4:32 pm, Bil Corry [EMAIL PROTECTED] wrote: Sean O wrote on 5/8/2007 7:12 AM: The demos don't seem to work for me in either FF2 or IE6 (?) Worked for me in FF2. For IE7 (not 6), it didn't appear to work, but it does work on a local test site. - Bil It worked for me when I tested in IE7 (and IE6 in standalone mode). All I am doing is wrapping it in a span (for IE, Firefox uses the outline CSS property): e.g. span style=padding: 2px; background: #9ccinput type=text // span
[jQuery] Re: New / Updated Plugin - Focus Fields
On May 8, 4:57 pm, Sean O [EMAIL PROTECTED] wrote: Sam, That was it. Works in FF2 IE 6 here. I had thought there was a default initiation of focusFields() on page load of the demo... My eyes passed right over the click one of the examples above... SEAN O Actually I just added it just after your email (I try not to use the word 'click' in web pages, but I suppose it is OK in some circumstances, e.g. when you know you audience is going to use a visual browser and a mouse). It does it on page load now as well.
[jQuery] Re: jCarousel 0.2.0 Beta
Nice work On May 8, 6:42 pm, Jan Sorgalla [EMAIL PROTECTED] wrote: Hi, i've released the a new version of jCarousel yesterday. The source code is completely rewritten and i've tried to make it more flexible and to cover most of the features requested on the mailinglist. Online:http://sorgalla.com/projects/jcarousel-0.2.0-beta/ Related blog post:http://sorgalla.com/2007/05/07/jcarousel-020-beta/ Let me know if you have suggestions and/or if you find bugs. Jan
[jQuery] Prevent spammers from catch e-mail addresses
Hi, Is there any method to prevent spammers from catching e-mail addresses on webpage links, other than the method described here: http://15daysofjquery.com/safer-mailto-links/8/ I was looking for an option to hide e-mail text links, but also the e- mail included in recipient form declarations. Thank's on your possible help.
[jQuery] Re: New / Updated Plugin - Focus Fields
Sam Collett wrote on 5/8/2007 8:54 AM: For IE7 (not 6), it didn't appear to work, but it does work on a local test site. It worked for me when I tested in IE7 My bad, it works. I use IE7 only for local testing and forgot that I have scripting disabled for all other sites. Not surprisingly, it doesn't work with JavaScript turned off :) - Bil
[jQuery] Text editer suite in jquery
Is there any text editor (like FCKEditor) build using jquery. If not then why shouldn't build it. - Sharique
[jQuery] MooTools 1.1
Moo Tools 1.1 is out. Check out these demos. http://demos.mootools.net It's a great demo set. Clean and understandable. Very nice. I need to find the time to do each one of these in js.commadot.com and the jQuery equivelent. Glen
[jQuery] Re: MooTools 1.1
I agree - they did a very nice job with the demos site. I'm sure we could arrange for something similar on the main site. --John On 5/8/07, Glen Lipka [EMAIL PROTECTED] wrote: Moo Tools 1.1 is out. Check out these demos. http://demos.mootools.net It's a great demo set. Clean and understandable. Very nice. I need to find the time to do each one of these in js.commadot.com and the jQuery equivelent. Glen
[jQuery] Re: checkbox and .load
Hi Equand, THanks for the reply. I was testing in Firefox 2, but I created a plain example (Im reworking old legacy code) and I think the problem is with the page html. In a plain demo I dont get the refresh issue. Simple example !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 / script type=text/javascript src=jquery-1.1.2.pack.js/script script type='text/javascript' !-- adds checks item values in a delimited list to field ostr $(document).ready(function(){ $([EMAIL PROTECTED]'checkbox']).click(function(){ if ($(this).is(:checked)){ $(div#test).load(total.html? action=addval= + this.value); } else { $(div#test).load(total.html? action=addval= + this.value); } }); }); -- /script /head body div id=test/div form name=get-num action= method=get table width=250 border=0 cellpadding=5 cellspacing=0 tr td1/td td5.00/td tdinput name=check1 type=checkbox value=5.00|1 - Add to pay/td /tr tr td2/td td20.00/td tdinput name=check2 type=checkbox value=20.00|2 - Add to pay/td /tr tr td3/td td6.00CR/td tdinput name=check3 type=checkbox value=-6.00|3 - Add to pay/td /tr tr td4/td td12.00/td tdinput name=check3 type=checkbox value=12.00|3 - Add to pay/td /tr tr td5/td td5.00/td tdinput name=check3 type=checkbox value=5.00|3 - Add to pay/td /tr tr td6/td td89.00/td tdinput name=check3 type=checkbox value=89.00|3 - Add to pay/td /tr /table p input type=submit name=Submit value=Submit / /p /form /body /html and the external total.html was just something like: strongCurrent Payment Total:/strong On May 7, 8:19 pm, Equand [EMAIL PROTECTED] wrote: what browser u have? did you check in the error console of firefox? On May 8, 3:09 am, John W [EMAIL PROTECTED] wrote: Hi all, Question regarding the use of .load with a checkbox. I have a list of items. Each item has a checkbox with a unique id. When the customer checks the checkbox i want to do an ajah request to an external file (like adding an item to the cart) which then updates the content in a div showing updated totals. I have that working fine, but it only works on the first check. if I check another box or uncheck an item the page reloads instead of doing the get request via ajax. Any ideas? script type='text/javascript' $(document).ready(function(){ $([EMAIL PROTECTED]'checkbox']).click(function(){ if ($(this).is(:checked)){ $(div#test).load(cartupdate.cgi?action=addval= + this.value); } else { $(div#test).load(cartupdate.cgi?action=removeval= + this.value); } });}); -- /script -- View this message in context:http://www.nabble.com/checkbox-and-.load-tf3707122s15494.html#a10368208 Sent from the JQuery mailing list archive at Nabble.com.- Hide quoted text - - Show quoted text -
[jQuery] Re: New plugin: simple character counter for textareas
On Tuesday, May 08, 2007 8:48 AM [EMAIL PROTECTED] said: I've just released the first version of a simple plugin to add character counters/limiters to textarea elements. The demo and code can be found here: http://www.tomdeater.com/jquery/character_counter/ Great! Comment: I think you should change the 'container' option into a more flexible 'attachTo' option. It would work like this: html form textarea id=text1 .../textarea div id=count_text1/div /form /html $(textarea).charCounter(100, { attachTo: #count_text1, className: counter }); Chris.
[jQuery] Ajax Experience Refer-A-Friend
Ajax Experience 2007 has a refer a friend program. http://ajaxexperience.techtarget.com/west/html/faqs.html#Discounts You get $50 if a friend registers. Who is going? Meetup being planned by someone? Has anyone registered? I propose to register with John's promo code (if he has one) with the $50 going to the jQuery Foundation for the Criminally Insane Gambler and Hosting Facility. I'll hold off registering for a bit. Glen
[jQuery] Re: Append Content from links to a single div
I definitley think it saved me $10 in time and energy! You all are the best! Look for my donation for sure! :) On May 7, 4:39 pm, Glen Lipka [EMAIL PROTECTED] wrote: On 5/7/07, Aaron [EMAIL PROTECTED] wrote: This seems to fix it! Thanks s much for the help everyone! You all are real life savers!!! THANKS On May 7, 2:40 pm, Brian Cherne [EMAIL PROTECTED] wrote: My hoverIntent plug-in might help with the unintentional function firing .http://cherne.net/brian/resources/jquery.hoverIntent.html Brian. On 5/7/07, Aaron [EMAIL PROTECTED] wrote: Our pleasure. I hope we saved you at least $10 in time and energy. ;)http://www.jquery.com/Donate wink wink. nudge nudge. ;)- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups jQuery (English) group. To post to this group, send email to jquery-en@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-en?hl=en -~--~~~~--~~--~--~---
[jQuery] Re: Append Content from links to a single div
Just sent sent my donation! Thanks again for all the help! On May 7, 4:39 pm, Glen Lipka [EMAIL PROTECTED] wrote: On 5/7/07, Aaron [EMAIL PROTECTED] wrote: This seems to fix it! Thanks s much for the help everyone! You all are real life savers!!! THANKS On May 7, 2:40 pm, Brian Cherne [EMAIL PROTECTED] wrote: My hoverIntent plug-in might help with the unintentional function firing .http://cherne.net/brian/resources/jquery.hoverIntent.html Brian. On 5/7/07, Aaron [EMAIL PROTECTED] wrote: Our pleasure. I hope we saved you at least $10 in time and energy. ;)http://www.jquery.com/Donate wink wink. nudge nudge. ;)- Hide quoted text - - Show quoted text -
[jQuery] Plugin authoring
I wrote a plugin, but I don't have a place where I can serve it - believe it or not. Is there somewhere on the jquery site plugins can be hosted? If not, would someone be willing to host it for me? It's a pretty simple plugin. Only 8k. I can create an example usage with Lasso or php.
[jQuery] Re: Ajax Experience Refer-A-Friend
Actually, I'm going to be presenting, so I don't think I get a promo code - feel free to post yours, Glen, and reap the benefits! --John On 5/8/07, Glen Lipka [EMAIL PROTECTED] wrote: Ajax Experience 2007 has a refer a friend program. http://ajaxexperience.techtarget.com/west/html/faqs.html#Discounts You get $50 if a friend registers. Who is going? Meetup being planned by someone? Has anyone registered? I propose to register with John's promo code (if he has one) with the $50 going to the jQuery Foundation for the Criminally Insane Gambler and Hosting Facility. I'll hold off registering for a bit. Glen
[jQuery] $(#test:test) not working
It seems that using a : sign in a CSS selector by id in jQuery does not work. Since having : is valid in ids and names according to w3c (http:// www.w3.org/TR/html4/types.html#type-cdata), I assume it is a bug in jQuery?
[jQuery] Re: jCarousel 0.2.0 Beta
sorry, can't find changes log, so what's new? On May 8, 3:42 pm, Jan Sorgalla [EMAIL PROTECTED] wrote: Hi, i've released the a new version of jCarousel yesterday. The source code is completely rewritten and i've tried to make it more flexible and to cover most of the features requested on the mailinglist. Online:http://sorgalla.com/projects/jcarousel-0.2.0-beta/ Related blog post:http://sorgalla.com/2007/05/07/jcarousel-020-beta/ Let me know if you have suggestions and/or if you find bugs. Jan
[jQuery] Re: New plugin: simple character counter for textareas
sweet little gadget! Joomlafreak On May 8, 1:00 pm, Chris W. Parker [EMAIL PROTECTED] wrote: On Tuesday, May 08, 2007 8:48 AM [EMAIL PROTECTED] said: I've just released the first version of a simple plugin to add character counters/limiters to textarea elements. The demo and code can be found here: http://www.tomdeater.com/jquery/character_counter/ Great! Comment: I think you should change the 'container' option into a more flexible 'attachTo' option. It would work like this: html form textarea id=text1 .../textarea div id=count_text1/div /form /html $(textarea).charCounter(100, { attachTo: #count_text1, className: counter }); Chris.
[jQuery] Re: $(#test:test) not working
I'm pretty sure this is not a bug, how do you think user agents handle the following: HTML: a href=myanchor:hoverA bad ID string/a CSS: a#myanchor:hover {color:#000;} Will the anchor be black automatically or only when a cursor hovers over it? According to CSS2 and above, colons are reserved for defining psuedo-classes (:hover,:first-child, etc). The document you're referencing below is a an older and broader guide of what valid HTML (as a subset of SGML) is, but does not cover the interpretation that must take place between CSS and (X)HTML documents. - jake On 5/8/07, Plamen Mishev [EMAIL PROTECTED] wrote: It seems that using a : sign in a CSS selector by id in jQuery does not work. Since having : is valid in ids and names according to w3c (http:// www.w3.org/TR/html4/types.html#type-cdata), I assume it is a bug in jQuery?
[jQuery] Re: $(#test:test) not working
Jake McGraw wrote: I'm pretty sure this is not a bug, how do you think user agents handle the following: HTML: a href=myanchor:hoverA bad ID string/a CSS: a#myanchor:hover {color:#000;} Will the anchor be black automatically or only when a cursor hovers over it? According to CSS2 and above, colons are reserved for defining psuedo-classes (:hover,:first-child, etc). The document you're referencing below is a an older and broader guide of what valid HTML (as a subset of SGML) is, but does not cover the interpretation that must take place between CSS and (X)HTML documents. - jake Special characters with a certain meaning must be escaped with a backslash if you need to use it in a selector. Your example: a#myanchor\:hover would select a id=myanchor:hover http://www.w3.org/TR/CSS21/syndata.html#escaped-characters There has been a ticket for this, but I don't know if and how this is fixed. -- Klaus
[jQuery] Re: $(#test:test) not working
I believe this has been resolved in the latest SVN but I'm not for sure on that. In the mean time just use the attribute selector. $('[EMAIL PROTECTED]:test]') -- Brandon Aaron On 5/8/07, Klaus Hartl [EMAIL PROTECTED] wrote: Jake McGraw wrote: I'm pretty sure this is not a bug, how do you think user agents handle the following: HTML: a href=myanchor:hoverA bad ID string/a CSS: a#myanchor:hover {color:#000;} Will the anchor be black automatically or only when a cursor hovers over it? According to CSS2 and above, colons are reserved for defining psuedo-classes (:hover,:first-child, etc). The document you're referencing below is a an older and broader guide of what valid HTML (as a subset of SGML) is, but does not cover the interpretation that must take place between CSS and (X)HTML documents. - jake Special characters with a certain meaning must be escaped with a backslash if you need to use it in a selector. Your example: a#myanchor\:hover would select a id=myanchor:hover http://www.w3.org/TR/CSS21/syndata.html#escaped-characters There has been a ticket for this, but I don't know if and how this is fixed. -- Klaus
[jQuery] Re: MooTools 1.1
Holy crap. Those demos are freaking awesome! _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Tuesday, May 08, 2007 11:48 AM To: jquery-en@googlegroups.com Subject: [jQuery] MooTools 1.1 Moo Tools 1.1 is out. Check out these demos. http://demos.mootools.net It's a great demo set. Clean and understandable. Very nice. I need to find the time to do each one of these in js.commadot.com and the jQuery equivelent. Glen
[jQuery] Re: Ajax Experience Refer-A-Friend
Ok, well, I will volunteer (unless anyone already has a promo code). Any refer-a-friend money, Ill forward to the jQuery foundation. Glen On 5/8/07, John Resig [EMAIL PROTECTED] wrote: Actually, I'm going to be presenting, so I don't think I get a promo code - feel free to post yours, Glen, and reap the benefits! --John On 5/8/07, Glen Lipka [EMAIL PROTECTED] wrote: Ajax Experience 2007 has a refer a friend program. http://ajaxexperience.techtarget.com/west/html/faqs.html#Discounts You get $50 if a friend registers. Who is going? Meetup being planned by someone? Has anyone registered? I propose to register with John's promo code (if he has one) with the $50 going to the jQuery Foundation for the Criminally Insane Gambler and Hosting Facility. I'll hold off registering for a bit. Glen
[jQuery] Re: New plugin: simple character counter for textareas
Per Chris's suggestion, I've made an update to the plugin. Now, you can specify that the container be an existing DOM element (e.g, #myContainer) or an element type that will be created and inserted in the DOM directly after the textarea (e.g., em). If nothing is specified, a span element will be created and inserted. When specifying a container element by ID, the classname option is not applied to the element. I've got a slightly ugly bit of code where I check to see if the user has specified an existing element by ID for the container. I'd appreciate suggestions for cleaning this up: var container = (options.container.indexOf(#) == 0) ? $ (options.container) : $ (options.container).insertAfter(this).addClass(options.classname); On May 8, 1:00 pm, Chris W. Parker [EMAIL PROTECTED] wrote: Great! Comment: I think you should change the 'container' option into a more flexible 'attachTo' option. It would work like this: html form textarea id=text1 .../textarea div id=count_text1/div /form /html $(textarea).charCounter(100, { attachTo: #count_text1, className: counter }); Chris.
[jQuery] Re: Prevent spammers from catch e-mail addresses
For a mailto link, you could do something like this: $(document).ready(function() { $('[EMAIL PROTECTED]').each(function() { var mailto = $(this).attr('href').replace(/\/?sendme [-:]/,'mailto:').replace(/(\[|\()at(\]|\))/g,'@'); $(this).attr('href', mailto); }); }); then, you can put the href in your html like this: sendme-name(at)example.com or this: sendme:name[at]example.com and jquery will transform it to this: mailto:[EMAIL PROTECTED] --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 8, 2007, at 12:16 PM, [EMAIL PROTECTED] wrote: Hi, Is there any method to prevent spammers from catching e-mail addresses on webpage links, other than the method described here: http://15daysofjquery.com/safer-mailto-links/8/ I was looking for an option to hide e-mail text links, but also the e- mail included in recipient form declarations. Thank's on your possible help.
[jQuery] Re: MooTools 1.1
On 5/8/07, John Resig [EMAIL PROTECTED] wrote: I agree - they did a very nice job with the demos site. I'm sure we could arrange for something similar on the main site. We should really push an effort to create as many cutpaste example as possible. People see, they grab, they edit. That's most of web programming. jQuery is much more powerful than just that, however to really expand the user base, more examples would be ideal. ~Sean
[jQuery] .hover() on list element doesnt work properly
Hi there, I am trying to create a little flyout menu by doing this: $(ul.ul_inner/li).hover(function(){ $(ul, this).show(); },function(){ $(ul, this).hide(); }); It seems to work, but has one big problem: The ul inside of $(this) is hidden too early in IE6. The hover event is only recognized when hovering text (the menu link) within the given li element (this), but not when hovering the padding area or something. So it closes immediatly after moving the cursor off the links. The markup is like the following: ul class=ul_inner li a href=URIMySubmenu/a ul[mySubmenu]/ul /li /ul Any idea how to fix this? :-) The list element is already display:block, and when using the developer tools for IE it outlines the list element exactly like firefox does, so there should not be the problem of a list element thats really being too small, it just only works on the text and not the element space. Best regards, Arne
[jQuery] Re: jCarousel 0.2.0 Beta
awesome, looks really good. On May 8, 6:42 pm, Jan Sorgalla [EMAIL PROTECTED] wrote: Hi, i've released the a new version of jCarousel yesterday. The source code is completely rewritten and i've tried to make it more flexible and to cover most of the features requested on the mailinglist. Online:http://sorgalla.com/projects/jcarousel-0.2.0-beta/ Related blog post:http://sorgalla.com/2007/05/07/jcarousel-020-beta/ Let me know if you have suggestions and/or if you find bugs. Jan
[jQuery] Re: Thanks to Karl Swedberg During the Downtime
Thanks Karl! ~Sean
[jQuery] Selector help - All inputs except radio buttons?
I currently have this? var params = $('input,select,textarea').serialize(); Is there a simple way to serialize all inputs expect for radio buttons?
[jQuery] Re: New plugin: simple character counter for textareas
On 5/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Per Chris's suggestion, I've made an update to the plugin. Now, you can specify that the container be an existing DOM element (e.g, #myContainer) or an element type that will be created and inserted in the DOM directly after the textarea (e.g., em). If nothing is specified, a span element will be created and inserted. When specifying a container element by ID, the classname option is not applied to the element. I've got a slightly ugly bit of code where I check to see if the user has specified an existing element by ID for the container. I'd appreciate suggestions for cleaning this up: Why not do: var container = ($(options.container).parent().size() == 1) ? $(options.container) : $(options.container).insertAfter(this).addClass(options.classname); You're not limited to just the id selector then. -js On May 8, 1:00 pm, Chris W. Parker [EMAIL PROTECTED] wrote: Great! Comment: I think you should change the 'container' option into a more flexible 'attachTo' option. It would work like this: html form textarea id=text1 .../textarea div id=count_text1/div /form /html $(textarea).charCounter(100, { attachTo: #count_text1, className: counter }); Chris.
[jQuery] Can I use css to set background image dynamically
I am trying to use css(background-image,image) but it does not set the image as background. What am I doing wrong. here is the code. function changeit(imgnum){ $(.story).each(function(i){ var item = $(.story).eq(i); var image = $(.fullst).eq(i).html(); if ( item != ) { if(i != imagenum){ $(item).fadeOut(slow); } else{ $(item).css(background-image,image).fadeIn(slow); } } }); thanks in advance for help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups jQuery (English) group. To post to this group, send email to jquery-en@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-en?hl=en -~--~~~~--~~--~--~---
[jQuery] Re: New plugin: simple character counter for textareas
On May 8, 3:15 pm, Jonathan Sharp [EMAIL PROTECTED] wrote: On 5/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've got a slightly ugly bit of code where I check to see if the user has specified an existing element by ID for the container. I'd appreciate suggestions for cleaning this up: Why not do: var container = ($(options.container).parent().size() == 1) ? $(options.container) : $(options.container).insertAfter(this).addClass(options.classname); You're not limited to just the id selector then. -js That was my initial thought, but I couldn't get it to work. Strangely enough, $(em).parent().size() returns 1 when I wouldn't expect it to. For some reason, $(em).parent() returns [div]. I can't figure out why this is. If I do $(em).parent().parent().size(), it returns 0.
[jQuery] Re: New plugin: simple character counter for textareas
I remember reading the jQuery source, it's held in a div until it is put somewhere! On 5/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Strangely enough, $(em).parent().size() returns 1 when I wouldn't expect it to. For some reason, $(em).parent() returns [div]. I can't figure out why this is. If I do $(em).parent().parent().size(), it returns 0. -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
[jQuery] Re: Selector help - All inputs except radio buttons?
Try this: var params = $(input,select,textarea).not(:radio).serialize(); On 5/8/07, Brad Perkins [EMAIL PROTECTED] wrote: I currently have this? var params = $('input,select,textarea').serialize(); Is there a simple way to serialize all inputs expect for radio buttons?
[jQuery] ratings plugin - link down - anyone got a copy?
Hi im looking for the latest version of the ratings plugin. The link for its is down, I guess thats part of the downtime problem http://john.jquery.com/plugins/rating/ (down) has anyone got a link I can use or maybe just post it here? thanks Matt.
[jQuery] Re: Selector help - All inputs except radio buttons?
You could also do this: var params = $(':input:not(:radio)', 'form').serialize(); :) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 8, 2007, at 4:00 PM, Rafael Santos wrote: var params = $('input,select,textarea').not(input [EMAIL PROTECTED]).serialize(); 2007/5/8, Brad Perkins [EMAIL PROTECTED]: I currently have this? var params = $('input,select,textarea').serialize(); Is there a simple way to serialize all inputs expect for radio buttons? -- Rafael Santos Sá :: webdeveloper www.rafael-santos.com
[jQuery] Can't set focus on element with DatePicker applied
Hello, I'm trying to set focus on a form field but when I apply the DatePicker plugin* it stops working. But perhaps this doesn't really have anything to with DatePicker and is a js/jQuery thing. Here's the relevant code: js: $(#date).focus(); $(#date).datePicker(); HTML: input id=date ... / If I comment the datePicker() line it works fine. I even tried selecting focus with something other than the id e.g. $([EMAIL PROTECTED]).focus(); but I don't like that method and it doesn't work anyway. Thanks, Chris. * http://www.kelvinluck.com/assets/jquery/datePicker/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups jQuery (English) group. To post to this group, send email to jquery-en@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-en?hl=en -~--~~~~--~~--~--~---
[jQuery] Re: ratings plugin - link down - anyone got a copy?
Here you go: http://www.learningjquery.com/src/plugins/rating Enjoy, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 8, 2007, at 4:24 PM, Matt2012 wrote: Hi im looking for the latest version of the ratings plugin. The link for its is down, I guess thats part of the downtime problem http://john.jquery.com/plugins/rating/ (down) has anyone got a link I can use or maybe just post it here? thanks Matt. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups jQuery (English) group. To post to this group, send email to jquery-en@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-en?hl=en -~--~~~~--~~--~--~---
[jQuery] Re: Selector help - All inputs except radio buttons?
Karl Swedberg schrieb: You could also do this: var params = $(':input:not(:radio)', 'form').serialize(); What about this: var params = $('form :input:not(:radio)').serialize(); The extra context parameter isn't necessary. -- Jörn Zaefferer http://bassistance.de
[jQuery] Re: Text editer suite in jquery
I think jQuery is powerful enough to build such thing. On May 8, 9:19 pm, Sharique [EMAIL PROTECTED] wrote: Is there any text editor (like FCKEditor) build using jquery. If not then why shouldn't build it. - Sharique
[jQuery] Re: Selector help - All inputs except radio buttons?
Ah yes! You're right (as usual). :) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 8, 2007, at 4:54 PM, Jörn Zaefferer wrote: Karl Swedberg schrieb: You could also do this: var params = $(':input:not(:radio)', 'form').serialize(); What about this: var params = $('form :input:not(:radio)').serialize(); The extra context parameter isn't necessary. -- Jörn Zaefferer http://bassistance.de
[jQuery] Re: Selector help - All inputs except radio buttons?
That does the trick! Thanks On May 8, 2:05 pm, John Resig [EMAIL PROTECTED] wrote: Try this: var params = $(input,select,textarea).not(:radio).serialize(); On 5/8/07, Brad Perkins [EMAIL PROTECTED] wrote: I currently have this? var params = $('input,select,textarea').serialize(); Is there a simple way to serialize all inputs expect for radio buttons?
[jQuery] Re: Text editer suite in jquery
http://scriptinverse.com/textify/ Beta version with several bugs. On 5/8/07, Sharique [EMAIL PROTECTED] wrote: I think jQuery is powerful enough to build such thing. On May 8, 9:19 pm, Sharique [EMAIL PROTECTED] wrote: Is there any text editor (like FCKEditor) build using jquery. If not then why shouldn't build it. - Sharique
[jQuery] Re: New plugin: simple character counter for textareas
On May 8, 4:11 pm, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: I remember reading the jQuery source, it's held in a div until it is put somewhere! I wonder if $(elem).parent().parent().size() == 0 is the best/only option then for determining whether $(elem) is a node in the HTML document. Any other thoughts? Am I overlooking a more obvious approach?
[jQuery] Form plugin shows just result
I'm playing around with the form plugin yet when I press the submit button only the result (in my case true is shown afterwards. The full form is gone. My code is rather simple script type=text/javascript $(document).ready(function() { var options = { beforeSubmit: validateInput, dataType: 'json', success: processResult }; $('#kontakt_formular').ajaxForm (function() {alert (data[0]? 'success': 'failure')}); }); /script Yet if I remove the var options nothing is done at all. See http://www.orpatec.ch/termola/index.php?page=contact.php http://www.orpatec.ch/termola/index.php?page=contact2.php O. Wyss --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups jQuery (English) group. To post to this group, send email to jquery-en@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-en?hl=en -~--~~~~--~~--~--~---
[jQuery] Re: ratings plugin - link down - anyone got a copy?
thanks much appreciated! On 8 May, 21:46, Karl Swedberg [EMAIL PROTECTED] wrote: Here you go: http://www.learningjquery.com/src/plugins/rating Enjoy, --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com On May 8, 2007, at 4:24 PM, Matt2012 wrote: Hi im looking for the latest version of the ratings plugin. The link for its is down, I guess thats part of the downtime problem http://john.jquery.com/plugins/rating/(down) has anyone got a link I can use or maybe just post it here? thanks Matt.
[jQuery] Trouble adding HTML, passing validation
Hi, I have this block of JQuery $(document).ready( function () { doTDListBehavior(); $('#addNewTDItem').click( function() { $('#todoList').append(lt;div class=quot;sidebarToDoquot;gt;lt;table cellpadding=quot;0quot; cellspacing=quot;0quot; border=quot; 0quot;gt;lt;trgt;lt;tdgt;lt;input type=quot;checkboxquot; name=quot;completedquot;gt;lt;/tdgt;lt;td width=quot;100%quot; align=quot;leftquot; class=quot;sidebarTextquot;gt; + genEditableItemHTML() + lt;/tdgt;lt;td align=quot;rightquot;gt;lt;a class=quot;editTDItemquot; href=quot;#quot; title=quot;Editquot;gt;lt;img src=quot;images/ edit.gifquot; alt=quot;Editquot; border=quot;0quot;gt;lt;/ agt;lt;/tdgt;lt;td align=quot;rightquot;gt;lt;a class=quot;deleteTDItemquot; href=quot;#quot; title=quot;Deletequot;gt;lt;img src=quot;images/ deleteLink.gifquot; alt=quot;Deletequot; border=quot; 0quot;gt;lt;/agt;lt;/tdgt;lt;/trgt;lt;/tablegt;lt;/ divgt;); setEditableHandlers($ ('div.sidebarToDo:last').find(input.editableTDItem)); return false; }); } ); You'll notice the massive string witih lts and quots. I had to put these in, because when I didn't, the W3C validator was complaining, interpreting what was in the append as real tags. However, now, instead of HTML getting inserted into my DOM, the text above literally gets displayed on screen. That is, div class=sidebarToDo ... appears on screen. Is there a way that the string can be interpreted as HTML AND pass validation? Thanks, - Dave
[jQuery] Re: Text editer suite in jquery
On 5/8/07, Leonardo K [EMAIL PROTECTED] wrote: http://scriptinverse.com/textify/ Beta version with several bugs. Like not working at all in Firefox 2.0.0.3 -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com
[jQuery] Re: Trouble adding HTML, passing validation
Yes, two methods: 1) Use the src attribute for the script tag and keep JavaScript out of your XHTML documents. or 2) Use a commented out ![CDATA[ ]] tag to indicate sections of code the validator should skip over, like: script type=text/javascript // ![CDATA[ $(function(){$(body).append('divHello, world/div');}); //]] /script - jake On 5/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I have this block of JQuery $(document).ready( function () { doTDListBehavior(); $('#addNewTDItem').click( function() { $('#todoList').append(lt;div class=quot;sidebarToDoquot;gt;lt;table cellpadding=quot;0quot; cellspacing=quot;0quot; border=quot; 0quot;gt;lt;trgt;lt;tdgt;lt;input type=quot;checkboxquot; name=quot;completedquot;gt;lt;/tdgt;lt;td width=quot;100%quot; align=quot;leftquot; class=quot;sidebarTextquot;gt; + genEditableItemHTML() + lt;/tdgt;lt;td align=quot;rightquot;gt;lt;a class=quot;editTDItemquot; href=quot;#quot; title=quot;Editquot;gt;lt;img src=quot;images/ edit.gifquot; alt=quot;Editquot; border=quot;0quot;gt;lt;/ agt;lt;/tdgt;lt;td align=quot;rightquot;gt;lt;a class=quot;deleteTDItemquot; href=quot;#quot; title=quot;Deletequot;gt;lt;img src=quot;images/ deleteLink.gifquot; alt=quot;Deletequot; border=quot; 0quot;gt;lt;/agt;lt;/tdgt;lt;/trgt;lt;/tablegt;lt;/ divgt;); setEditableHandlers($ ('div.sidebarToDo:last').find(input.editableTDItem)); return false; }); } ); You'll notice the massive string witih lts and quots. I had to put these in, because when I didn't, the W3C validator was complaining, interpreting what was in the append as real tags. However, now, instead of HTML getting inserted into my DOM, the text above literally gets displayed on screen. That is, div class=sidebarToDo ... appears on screen. Is there a way that the string can be interpreted as HTML AND pass validation? Thanks, - Dave
[jQuery] ajax tabs: Making the tab contain more than just text
Hi, I want my tab to consist of both text, and a graphic (which will serve as a Delete Tab function). However, I discovered that trying to add in the graphic button does more harm than good (in other words tabs do not display or function properly). Here's what I did: div id=container ul li id=tab1a href=draw_modules.php?tab_id=1 table cellpadding=0 cellspacing=0 border=0 tr tdGeneral span id=moduleCount1 class=moduleCount(7)/span/ td td table cellpadding=0 cellspacing=0 border=0 trtda href='javascript:void(0);' class=deleteTabimg src=images/miniclose.GIF border=0 alt=Delete Tab/a/td/tr trtd/td/tr /table /td /tr /table /a/li ... /ul /div What is the better way of doing this? Thanks, - Dave
[jQuery] Re: Can't set focus on element with DatePicker applied
Chris W. Parker wrote on 5/8/2007 1:00 PM: $(#date).focus(); $(#date).datePicker(); Have you tried reversing it? $(#date).datePicker(); $(#date).focus(); - Bil
[jQuery] Re: Form plugin shows just result
On http://www.orpatec.ch/termola/index.php?page=contact.php Firebug gives me the following error: validateInput is not defined http://www.orpatec.ch/termola/contact.php?page=contact.php Line 30 On 5/8/07, wyo [EMAIL PROTECTED] wrote: I'm playing around with the form plugin yet when I press the submit button only the result (in my case true is shown afterwards. The full form is gone. My code is rather simple script type=text/javascript $(document).ready(function() { var options = { beforeSubmit: validateInput, dataType: 'json', success: processResult }; $('#kontakt_formular').ajaxForm (function() {alert (data[0]? 'success': 'failure')}); }); /script Yet if I remove the var options nothing is done at all. See http://www.orpatec.ch/termola/index.php?page=contact.php http://www.orpatec.ch/termola/index.php?page=contact2.php O. Wyss -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com
[jQuery] Fisheye menu on left or right of screen?
Hi everyone, Wondering if someone more knowledgeable than me can help me to get the Fisheye interface element working on the left or right of the screen, rather than top and bottom. Thanks, Shane.
[jQuery] Re: Plugin authoring
Since there were no takers, I created space on Google code. It's a bit of an overkill, but oh well. http://code.google.com/p/jqueryselectcombo/ A jQuery plugin for populating data of a select item from results of another select item. A Select Combo is setting the values of a select element based on the user's choice of the source select element. As a jQuery plugin, it will create unobtrusive javascript to bind a change event to the source select element and retrieve JSON results from your server, placing the results in the target select element. How does one go about having this listed on the plugins page? On May 8, 10:09 am, Shelane Enos [EMAIL PROTECTED] wrote: I wrote a plugin, but I don't have a place where I can serve it - believe it or not. Is there somewhere on the jquery site plugins can be hosted? If not, would someone be willing to host it for me? It's a pretty simple plugin. Only 8k. I can create an example usage with Lasso or php.
[jQuery] Re: Trouble adding HTML, passing validation
The easiest solution is to put that block of code into a seperate JavaScript file. The only other solution I can think of is to use one of the DOM Creation plugins (such as http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and-prototype ) and build the elements up that way. This is because most of them use a syntax that does not have any or characters, which is what the validator is complaining about in the end. Karl Rudd On 5/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I have this block of JQuery $(document).ready( function () { doTDListBehavior(); $('#addNewTDItem').click( function() { $('#todoList').append(lt;div class=quot;sidebarToDoquot;gt;lt;table cellpadding=quot;0quot; cellspacing=quot;0quot; border=quot; 0quot;gt;lt;trgt;lt;tdgt;lt;input type=quot;checkboxquot; name=quot;completedquot;gt;lt;/tdgt;lt;td width=quot;100%quot; align=quot;leftquot; class=quot;sidebarTextquot;gt; + genEditableItemHTML() + lt;/tdgt;lt;td align=quot;rightquot;gt;lt;a class=quot;editTDItemquot; href=quot;#quot; title=quot;Editquot;gt;lt;img src=quot;images/ edit.gifquot; alt=quot;Editquot; border=quot;0quot;gt;lt;/ agt;lt;/tdgt;lt;td align=quot;rightquot;gt;lt;a class=quot;deleteTDItemquot; href=quot;#quot; title=quot;Deletequot;gt;lt;img src=quot;images/ deleteLink.gifquot; alt=quot;Deletequot; border=quot; 0quot;gt;lt;/agt;lt;/tdgt;lt;/trgt;lt;/tablegt;lt;/ divgt;); setEditableHandlers($ ('div.sidebarToDo:last').find(input.editableTDItem)); return false; }); } ); You'll notice the massive string witih lts and quots. I had to put these in, because when I didn't, the W3C validator was complaining, interpreting what was in the append as real tags. However, now, instead of HTML getting inserted into my DOM, the text above literally gets displayed on screen. That is, div class=sidebarToDo ... appears on screen. Is there a way that the string can be interpreted as HTML AND pass validation? Thanks, - Dave
[jQuery] Re: Can I use css to set background image dynamically
It should work. What end up in image? It should be a URL (relative to the page). Karl Rudd On 5/9/07, joomlafreak [EMAIL PROTECTED] wrote: I am trying to use css(background-image,image) but it does not set the image as background. What am I doing wrong. here is the code. function changeit(imgnum){ $(.story).each(function(i){ var item = $(.story).eq(i); var image = $(.fullst).eq(i).html(); if ( item != ) { if(i != imagenum){ $(item).fadeOut(slow); } else{ $(item).css(background-image,image).fadeIn(slow); } } }); thanks in advance for help
[jQuery] Re: Can I use css to set background image dynamically
You might also want to try 'backgroundImage' instead of 'background- image' On May 9, 8:22 am, Karl Rudd [EMAIL PROTECTED] wrote: It should work. What end up in image? It should be a URL (relative to the page). Karl Rudd On 5/9/07, joomlafreak [EMAIL PROTECTED] wrote: I am trying to use css(background-image,image) but it does not set the image as background. What am I doing wrong. here is the code. function changeit(imgnum){ $(.story).each(function(i){ var item = $(.story).eq(i); var image = $(.fullst).eq(i).html(); if ( item != ) { if(i != imagenum){ $(item).fadeOut(slow); } else{ $(item).css(background-image,image).fadeIn(slow); } } }); thanks in advance for help
[jQuery] Re: Can I use css to set background image dynamically
It is url of image relative to this file. Pls see this url http://www.joomlaprodigy.com/test/jquery/mod_contentsliderjp.php thanks for your help. On May 8, 6:22 pm, Karl Rudd [EMAIL PROTECTED] wrote: It should work. What end up in image? It should be a URL (relative to the page). Karl Rudd On 5/9/07, joomlafreak [EMAIL PROTECTED] wrote: I am trying to use css(background-image,image) but it does not set the image as background. What am I doing wrong. here is the code. function changeit(imgnum){ $(.story).each(function(i){ var item = $(.story).eq(i); var image = $(.fullst).eq(i).html(); if ( item != ) { if(i != imagenum){ $(item).fadeOut(slow); } else{ $(item).css(background-image,image).fadeIn(slow); } } }); thanks in advance for help
[jQuery] Re: .hover() on list element doesnt work properly
This is usually a problem with block links in IE ( http://www.brunildo.org/test/IEABlock.html ). Check if the list item actually hasLayout (should be -1). If not then try setting a width or a height: 1% in the CSS. Karl Rudd On 5/9/07, Arne-Kolja Bachstein [EMAIL PROTECTED] wrote: Hi there, I am trying to create a little flyout menu by doing this: $(ul.ul_inner/li).hover(function(){ $(ul, this).show(); },function(){ $(ul, this).hide(); }); It seems to work, but has one big problem: The ul inside of $(this) is hidden too early in IE6. The hover event is only recognized when hovering text (the menu link) within the given li element (this), but not when hovering the padding area or something. So it closes immediatly after moving the cursor off the links. The markup is like the following: ul class=ul_inner li a href=URIMySubmenu/a ul[mySubmenu]/ul /li /ul Any idea how to fix this? :-) The list element is already display:block, and when using the developer tools for IE it outlines the list element exactly like firefox does, so there should not be the problem of a list element thats really being too small, it just only works on the text and not the element space. Best regards, Arne
[jQuery] Re: Selector help - All inputs except radio buttons?
Thanks everyone! -- Brad On May 8, 2:54 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Ah yes! You're right (as usual). :) --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com On May 8, 2007, at 4:54 PM, Jörn Zaefferer wrote: Karl Swedberg schrieb: You could also do this: var params = $(':input:not(:radio)', 'form').serialize(); What about this: var params = $('form :input:not(:radio)').serialize(); The extra context parameter isn't necessary. -- Jörn Zaefferer http://bassistance.de
[jQuery] Re: Selector help - All inputs except radio buttons?
Rafael, That is what I had in mind, but appears to filter out non-radio input fields. On May 8, 2:00 pm, Rafael Santos [EMAIL PROTECTED] wrote: var params = $('input,select,textarea').not([EMAIL PROTECTED]).serialize(); 2007/5/8, Brad Perkins [EMAIL PROTECTED]: I currently have this? var params = $('input,select,textarea').serialize(); Is there a simple way to serialize all inputs expect for radio buttons?
[jQuery] [ANN] New plugin - selectCombo
http://jqueryselectcombo.googlecode.com/files/jquery.selectCombo.js A jQuery plugin for populating data of a select item from results of another select item. A Select Combo is setting the values of a select element based on the user's choice of the source select element. As a jQuery plugin, it will create unobtrusive javascript to bind a change event to the source select element and retrieve JSON results from your server, placing the results in the target select element.
[jQuery] Re: Plugin authoring
It's a wiki... you can add it yourself. that's what I did. :o) Chris Shelane wrote: Since there were no takers, I created space on Google code. It's a bit of an overkill, but oh well. http://code.google.com/p/jqueryselectcombo/ A jQuery plugin for populating data of a select item from results of another select item. A Select Combo is setting the values of a select element based on the user's choice of the source select element. As a jQuery plugin, it will create unobtrusive javascript to bind a change event to the source select element and retrieve JSON results from your server, placing the results in the target select element. How does one go about having this listed on the plugins page? On May 8, 10:09 am, Shelane Enos [EMAIL PROTECTED] wrote: I wrote a plugin, but I don't have a place where I can serve it - believe it or not. Is there somewhere on the jquery site plugins can be hosted? If not, would someone be willing to host it for me? It's a pretty simple plugin. Only 8k. I can create an example usage with Lasso or php. -- http://www.cjordan.us
[jQuery] Re: Plugin authoring
Done. Thanks. On 5/8/07 3:58 PM, Christopher Jordan [EMAIL PROTECTED] wrote: It's a wiki... you can add it yourself. that's what I did. :o) Chris Shelane wrote: Since there were no takers, I created space on Google code. It's a bit of an overkill, but oh well. http://code.google.com/p/jqueryselectcombo/ A jQuery plugin for populating data of a select item from results of another select item. A Select Combo is setting the values of a select element based on the user's choice of the source select element. As a jQuery plugin, it will create unobtrusive javascript to bind a change event to the source select element and retrieve JSON results from your server, placing the results in the target select element. How does one go about having this listed on the plugins page? On May 8, 10:09 am, Shelane Enos [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I wrote a plugin, but I don't have a place where I can serve it - believe it or not. Is there somewhere on the jquery site plugins can be hosted? If not, would someone be willing to host it for me? It's a pretty simple plugin. Only 8k. I can create an example usage with Lasso or php.
[jQuery] Re: Trouble adding HTML, passing validation
Ah yes, good catch Jake. I'd forgotten about that. Karl Rudd On 5/9/07, Jake McGraw [EMAIL PROTECTED] wrote: Yes, two methods: 1) Use the src attribute for the script tag and keep JavaScript out of your XHTML documents. or 2) Use a commented out ![CDATA[ ]] tag to indicate sections of code the validator should skip over, like: script type=text/javascript // ![CDATA[ $(function(){$(body).append('divHello, world/div');}); //]] /script - jake On 5/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I have this block of JQuery $(document).ready( function () { doTDListBehavior(); $('#addNewTDItem').click( function() { $('#todoList').append(lt;div class=quot;sidebarToDoquot;gt;lt;table cellpadding=quot;0quot; cellspacing=quot;0quot; border=quot; 0quot;gt;lt;trgt;lt;tdgt;lt;input type=quot;checkboxquot; name=quot;completedquot;gt;lt;/tdgt;lt;td width=quot;100%quot; align=quot;leftquot; class=quot;sidebarTextquot;gt; + genEditableItemHTML() + lt;/tdgt;lt;td align=quot;rightquot;gt;lt;a class=quot;editTDItemquot; href=quot;#quot; title=quot;Editquot;gt;lt;img src=quot;images/ edit.gifquot; alt=quot;Editquot; border=quot;0quot;gt;lt;/ agt;lt;/tdgt;lt;td align=quot;rightquot;gt;lt;a class=quot;deleteTDItemquot; href=quot;#quot; title=quot;Deletequot;gt;lt;img src=quot;images/ deleteLink.gifquot; alt=quot;Deletequot; border=quot; 0quot;gt;lt;/agt;lt;/tdgt;lt;/trgt;lt;/tablegt;lt;/ divgt;); setEditableHandlers($ ('div.sidebarToDo:last').find( input.editableTDItem)); return false; }); } ); You'll notice the massive string witih lts and quots. I had to put these in, because when I didn't, the W3C validator was complaining, interpreting what was in the append as real tags. However, now, instead of HTML getting inserted into my DOM, the text above literally gets displayed on screen. That is, div class=sidebarToDo ... appears on screen. Is there a way that the string can be interpreted as HTML AND pass validation? Thanks, - Dave
[jQuery] Re: Text editer suite in jquery
The latest version of WYMeditor is using JQuery (JQuery version just reached alpha 1) http://www.wymeditor.org/en/ demo: http://demo.wymeditor.org/ Different approach to FCK et al. but one that I personally think is more useful for CMS type editing. Looks promising anyway. On May 9, 2:19 am, Sharique [EMAIL PROTECTED] wrote: Is there any text editor (like FCKEditor) build using jquery. If not then why shouldn't build it. - Sharique
[jQuery] Re: datePicker v2 beta
Overall, I think the new date picker and jquery are really awesome! I do have one comment though. I find the date parsing logic a little too strict. If I use format mm/dd/ and I type in 5/1/2007, it's not going to parse correctly (code in date.js:440). This causes the calendar to not refresh correctly and it's somewhat confusing to the user. Is there any way to get around that? Will On Apr 24, 4:54 am, Kelvin Luck [EMAIL PROTECTED] wrote: Hi, I'd like to announce the beta release of v2 of mydatePickerplugin for jQuery. This release is a complete rewrite which makes the date picker considerably more powerful and flexible than it previously was. Check out the temporary project page: http://kelvinluck.com/assets/jquery/datePicker/v2/demo/ Note, this is currently in beta and may be a little rough around the edges but I'd love to get some feedback. I've tested in FF2, IE6 and Opera 9 but it would be good to know if it works in other browsers (particulaly Safari). Plus any other feedback on extra stuff you'd like adding or bugs you discover, Cheers, Kelvin :)
[jQuery] Re: Can I use css to set background image dynamically
not sure what var image = $(.fullst).eq(i).html(); returns, but the 'backgroundImage' (or 'background-image'; either one is fine) value should look something like 'url(path/to/image.jpg)' --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 8, 2007, at 6:29 PM, joomlafreak wrote: It is url of image relative to this file. Pls see this url http://www.joomlaprodigy.com/test/jquery/mod_contentsliderjp.php thanks for your help. On May 8, 6:22 pm, Karl Rudd [EMAIL PROTECTED] wrote: It should work. What end up in image? It should be a URL (relative to the page). Karl Rudd On 5/9/07, joomlafreak [EMAIL PROTECTED] wrote: I am trying to use css(background-image,image) but it does not set the image as background. What am I doing wrong. here is the code. function changeit(imgnum){ $(.story).each(function(i){ var item = $(.story).eq(i); var image = $(.fullst).eq(i).html(); if ( item != ) { if(i != imagenum){ $(item).fadeOut(slow); } else{ $(item).css(background-image,image).fadeIn (slow); } } }); thanks in advance for help
[jQuery] Re: Can I use css to set background image dynamically
Got it. thanks a lot. It was so silly of me to miss using url. thanks again. On May 8, 7:53 pm, Karl Swedberg [EMAIL PROTECTED] wrote: not sure what var image = $(.fullst).eq(i).html(); returns, but the 'backgroundImage' (or 'background-image'; either one is fine) value should look something like 'url(path/to/image.jpg)' --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com On May 8, 2007, at 6:29 PM, joomlafreak wrote: It is url of image relative to this file. Pls see this url http://www.joomlaprodigy.com/test/jquery/mod_contentsliderjp.php thanks for your help. On May 8, 6:22 pm, Karl Rudd [EMAIL PROTECTED] wrote: It should work. What end up in image? It should be a URL (relative to the page). Karl Rudd On 5/9/07, joomlafreak [EMAIL PROTECTED] wrote: I am trying to use css(background-image,image) but it does not set the image as background. What am I doing wrong. here is the code. function changeit(imgnum){ $(.story).each(function(i){ var item = $(.story).eq(i); var image = $(.fullst).eq(i).html(); if ( item != ) { if(i != imagenum){ $(item).fadeOut(slow); } else{ $(item).css(background-image,image).fadeIn (slow); } } }); thanks in advance for help
[jQuery] Re: Can I use css to set background image dynamically
heh. I only mentioned it because it happened to me recently, too. ;-) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 8, 2007, at 7:59 PM, joomlafreak wrote: Got it. thanks a lot. It was so silly of me to miss using url. thanks again. On May 8, 7:53 pm, Karl Swedberg [EMAIL PROTECTED] wrote: not sure what var image = $(.fullst).eq(i).html(); returns, but the 'backgroundImage' (or 'background-image'; either one is fine) value should look something like 'url(path/to/image.jpg)' --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com On May 8, 2007, at 6:29 PM, joomlafreak wrote: It is url of image relative to this file. Pls see this url http://www.joomlaprodigy.com/test/jquery/mod_contentsliderjp.php thanks for your help. On May 8, 6:22 pm, Karl Rudd [EMAIL PROTECTED] wrote: It should work. What end up in image? It should be a URL (relative to the page). Karl Rudd On 5/9/07, joomlafreak [EMAIL PROTECTED] wrote: I am trying to use css(background-image,image) but it does not set the image as background. What am I doing wrong. here is the code. function changeit(imgnum){ $(.story).each(function(i){ var item = $(.story).eq(i); var image = $(.fullst).eq(i).html(); if ( item != ) { if(i != imagenum){ $(item).fadeOut(slow); } else{ $(item).css(background-image,image).fadeIn (slow); } } }); thanks in advance for help
[jQuery] Re: Can I use css to set background image dynamically
I really admire your honesty. I was feeling so stupid and was thinking people would label me a jerk after reading my post for this stupidity. But after such an honest admittance from you I think it was not such a big deal. Things like this can happen :). I apprecite and thank again for our reply. Have a good night. On May 8, 8:07 pm, Karl Swedberg [EMAIL PROTECTED] wrote: heh. I only mentioned it because it happened to me recently, too. ;-) --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com On May 8, 2007, at 7:59 PM, joomlafreak wrote: Got it. thanks a lot. It was so silly of me to miss using url. thanks again. On May 8, 7:53 pm, Karl Swedberg [EMAIL PROTECTED] wrote: not sure what var image = $(.fullst).eq(i).html(); returns, but the 'backgroundImage' (or 'background-image'; either one is fine) value should look something like 'url(path/to/image.jpg)' --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com On May 8, 2007, at 6:29 PM, joomlafreak wrote: It is url of image relative to this file. Pls see this url http://www.joomlaprodigy.com/test/jquery/mod_contentsliderjp.php thanks for your help. On May 8, 6:22 pm, Karl Rudd [EMAIL PROTECTED] wrote: It should work. What end up in image? It should be a URL (relative to the page). Karl Rudd On 5/9/07, joomlafreak [EMAIL PROTECTED] wrote: I am trying to use css(background-image,image) but it does not set the image as background. What am I doing wrong. here is the code. function changeit(imgnum){ $(.story).each(function(i){ var item = $(.story).eq(i); var image = $(.fullst).eq(i).html(); if ( item != ) { if(i != imagenum){ $(item).fadeOut(slow); } else{ $(item).css(background-image,image).fadeIn (slow); } } }); thanks in advance for help
[jQuery] AutoExec
Hi Folks How can I force my JQuery script run? After my Html page is loaded I have some scripts in the middle of DOM (like I need) (because is generated from some db_query) script $(document).ready(function(){ $(markup02).append(something); $(img).attr({title:something}); }); /script My JQuery.js is fine Is it possible? Regards Mario