[jQuery] Tablesorter + repeatHeaders widget bug?
Hi, I 'm using tablesorter w/ my own parser and sort table link outside the table w/ no problem. I've just a problem w/ repeatHeaders widget example available on the sample page here: http://tablesorter.com/docs/example-widgets.html If you click on one sortable header, headers are repeated 6x at the beginning of the table. I've tested w/ both IE6 and Firefox 2. If someone have a workaround for this, thanks in advance. -- David -- View this message in context: http://www.nabble.com/Tablesorter-%2B-repeatHeaders-widget-bug--tf4787613s27240.html#a13696317 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Sortable on dynamic content - how to?
hi, I would try and re-declare the .Sortable object after you've appended the content and see if that works. This would mean that the .Sortable object works only on elements present inside the ul the moment the object is given. Prior to this I would have a look at the generated source after you've clickedthe #additem to see if the .append works as you expected it. On 12 Nov., 02:39, asle [EMAIL PROTECTED] wrote: Where do I go for help on this. Anyone?
[jQuery] Show me what you created using jQuery / web apps
Hi! I'd love if anyone wants to share interactive websites, or in particular web apps they have created using jQuery. I am starting to work on a simple task manager, and wanted to see what other people out there have created - what is possible, so to speak. Also, if there is any developers out there that would have fun in creating apps like calendar, contact manager, bug tracker, and some more super simple apps, I'm working on a humble small project that you could have fun working with, just contact me. Especially if you are interested in something fresh. lmk, everything appreciated, Herb
[jQuery] manipulate loaded html
Hi, I am using the jQuery 1.2.1 and I am able to load an external html document into the DOM. I would like to manipulate the loaded elements, but I haven't been able to figure out how to get references to them. $('div#g_sidebar').load('sidebar.html', new function(){ console.log('loaded sidebar'); $('div#g_sidebar').children().each(function(i){ console.log('each: %d, %s', i, this); }); }); That will successfully load the sidebar and print loaded sidebar, but that is it. How might I get it to print the children? http://docs.jquery.com/Ajax/load#urldatacallback Cameron
[jQuery] Re: 'this.$event[...].keys' is null or it isn't an object
I still have this problem ... please help me :-
[jQuery] jqModal re-binding
hi, I have let say an element which I use as for dialog's let say : div id=dialogdiv id=content/div/div then i use : $('#dialog').jqm({ ajax: url, target: '#content' }); so far ok.. it works. But now I want to reuse this dialog. But if I try to bind again with different url2: $('#dialog').jqm({ ajax: url2, target: '#content' }); It still uses the old url for ajax fetch ?? How can I change this behavior, so I can pass different urls ? Opps forgot the most important thing, I'm using jqModal ;)
[jQuery] manipulate loaded html
Hi, I am using the jQuery 1.2.1 and I am able to load an external html document into the DOM. I would like to manipulate the loaded elements, but I haven't been able to figure out how to get references to them. $('div#g_sidebar').load('sidebar.html', new function(){ console.log('loaded sidebar'); $('div#g_sidebar').children().each(function(i){ console.log('each: %d, %s', i, this); }); }); That will successfully load the sidebar and print loaded sidebar, but that is it. How might I get it to print the children? http://docs.jquery.com/Ajax/load#urldatacallback Cameron
[jQuery] Accessibility, CSS
Have just joined and nervously used Jquery for the first time. Just woudering about two thngs: 1. When jquery modifies styles it seems to do in-line styles. I tend to keep all my styles external. Does it have to do it in-line? 2. I see no mention of accessibility or advice on validating or accessible javascript discussion. Why not? Thanks.
[jQuery] Re: Nested getJSON
It appears that I can't nest getJSON calls. When I make the second call, the throbber in Firebug spins forever. I'm getting a list of changes from a database and then trying to get more precise data on each change with a second getJSON call in an anonymous function in the first getJSON call. Can anyone enlighten me on this? On Nov 11, 10:07 am, herbasher [EMAIL PROTECTED] wrote: Pretty, pretty. What's your problem? What are you working on? Herb On Nov 10, 3:45 pm, Mark Lacas [EMAIL PROTECTED] wrote: Here is my code: $.getJSON(/cgi-bin/messages.cgi, { id: last_message }, function( json ) { $.each( json.messages, function( i, item ){ if ( item.command == new ) { $.getJSON(/cgi-bin/get_data.cgi, { id: item.id, fields: all }, function( json ) { $.each( json.objects, function( i, item ){ create_object( item ); //return false; }); }); } else if ( item.command == change ){ $.getJSON(/cgi-bin/get_data.cgi, { id: item.target, fields: all }, function( json ) { $.each( json.dp_objects, function( i, item ) { update_object( item ); }); }); } else if ( item.command == delete ){ $(.object[id_num=item.target]).remove(); } }); });
[jQuery] How to make the first word bold.
I am trying to make the first word of a sentence (a title from a generated feed) bold. TURN THIS: div id=title a href=123.htmlOne Two Three/a /div INTO THIS: div id=title a href=123.htmlstrongOne/strong Two Three/a /div I sure there is a way to do with jQuery, but I can't quite figure it out. I have tried something like this, with no luck: $(#title.a).contents(0).wrap(strong/strong); Any help would be greatly appreciated.
[jQuery] cross domain ajax calls
hi folks. ok. it's possible to make cross-domain ajax calls if you get json data, but i need to to pull xml. i need to get some xml data from another domain. isn't there any solution for this problem? :(
[jQuery] jqGrid update
Just now I have updated the jqGrid. The news are: - Row editing - From now jqGrid can accept XML and JSON data with arbitrary structure using a xmlReader and jsonReader. Demo at: http://trirand.com/jqgrid/jqgrid.html Just now I will work hard on documentation. Enjoy Tony
[jQuery] Re: Accessibility, CSS
For non-inline styles you can just use the addClass and removeClass functions. As for accessibility etc, it's quite a complex, somewhat specialised subject. You might try websites like http://juicystudio.com/ for more details about how screen readers etc cope with JavaScript. Karl Rudd On Nov 12, 2007 6:51 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Have just joined and nervously used Jquery for the first time. Just woudering about two thngs: 1. When jquery modifies styles it seems to do in-line styles. I tend to keep all my styles external. Does it have to do it in-line? 2. I see no mention of accessibility or advice on validating or accessible javascript discussion. Why not? Thanks.
[jQuery] Re: Safari Mac fatal error
On Nov 12, 5:35 pm, Michael Geary [EMAIL PROTECTED] wrote: That's invalid JavaScript. It's not the duplicate function name that makes it invalid, it's the fact that those are named functions at all. Even if you reduced the code to this, it would still be invalid: $(document).ready( function () { field1.click( function somename () { // do something } ); } ); The only place you can define a named function is directly inside another function or in the global scope. I'm not sure that's correct. According to the ECMAScript spec section 10, an identifier is optional in a function expression. They normally aren't used because IE has a habit of making them global variables and a reference to the function itself is available internally for the purposes of recursion as arguments.callee. You can't define a named function inside a function call, So: window.setTimeout(function(){...}, 20); is a syntax error? as this code does, or inside any other code such as an if statement. Trimming the OP's code to make it more legible (to me) gives: $(document).ready( function () { field1.click( function somename () { } ); field2.click( function somename () { } ); } ); which can be made more general as: function foo() {}; function bar0() {}; function bar1() {}; foo( function() { bar0( function somename() {} ); bar1( function somename() {} ); } ); Which does not raise any exceptions in Safari 3.0.3 (or Firefox, Opera or IE) but does in Safari 2.0.4. Removing the identifier somename prevents the error in Safari 2.0.4. So I would say that it's a bug in Safari 2.0.4 that has been fixed in version 3, but also that it is rather pointless to have included the identifier in the first place. If the functions need to refer to themselves internally, the OP should use arguments.callee, otherwise there is no need for the names at all. -- Rob
[jQuery] Re: SITE: http://www.bankofamerica.com/
I only saw it in their admin area, for account holders. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pcdinh Sent: Saturday, November 10, 2007 7:43 AM To: jQuery (English) Subject: [jQuery] Re: SITE: http://www.bankofamerica.com/ Great news but nothing about JQuery stuff is on that website at the moment On Nov 10, 9:36 am, Andy Matthews [EMAIL PROTECTED] wrote: HOLY CRAP! My wife was in our BoA account this evening and they had some nice AJA and JS based interaction going on. So I thought it would be interestting to see what they were using. Sure enough, good old jQuery, right there behind the scenes. That's amazing as jQuery is one of the biggest banks in the world. Good on you John!
[jQuery] Re: SITE: http://www.bankofamerica.com/
Nice. Didn't bother checking the version on it. That's cool that they're using the latest and greatest. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of MikeR Sent: Saturday, November 10, 2007 4:16 PM To: jQuery (English) Subject: [jQuery] Re: SITE: http://www.bankofamerica.com/ Confirmed here too... logged into my account, jQuery 1.2.1... nice! On Nov 9, 6:36 pm, Andy Matthews [EMAIL PROTECTED] wrote: HOLY CRAP! My wife was in our BoA account this evening and they had some nice AJA and JS based interaction going on. So I thought it would be interestting to see what they were using. Sure enough, good old jQuery, right there behind the scenes. That's amazing as jQuery is one of the biggest banks in the world. Good on you John!
[jQuery] Re: This jQuery mailing list
Seriously? There's several hundred emails a day on this list. And you think it's not active? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of herbasher Sent: Sunday, November 11, 2007 12:07 PM To: jQuery (English) Subject: [jQuery] This jQuery mailing list I read somewhere that the jQuery mailing list was supposed to be really active. I haven't really seen a sign of that, which makes me wonder. Has the community seen it's days? Is it a safe bet to develop with jQuery - will it be supported for a couple of years by an active community? Thanks, Herb
[jQuery] Re: Ingrid, jQuery Datagrid : Update, v0.9.1
I found it REALLY slow in IE7 using the bells and whistles demo. Clicking one of the column headers to sort on took several seconds. The loading bar was a very nice effect, but there's no reason it should have taken that long, not with only 20 or 30 rows. I'd work on speed increases before any more feature development. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Sunday, November 11, 2007 10:19 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Ingrid, jQuery Datagrid : Update, v0.9.1 Guys, I would also like to have folks do cross browser testing on this in order to help Matt truly iron out any issues. People with Safari 2.x installed would be especially helpful. Rey matthew knight wrote: Hi All, I've just posted the latest version of Ingrid datagrid plugin. Incorporates a lot of feedback I've received over the last couple weeks, including: - Row selection - Saving state (page number, column sort amp; direction, selected rows) - Exposed object model, added helper methods like ingrid.getSelectedRows(), ingrid.getColumn(), etc - A couple bug fixes and some general code refactoring. I confess I added way too many comments. I'll get to those later... http://www.reconstrukt.com/ingrid/ Check it out and let me know your thoughts. Please send bugs, I'm an absolutely awful tester. :) Cheers, Matt
[jQuery] Re: This jQuery mailing list
I posted a message today and it has not appeared yet. In fact nothing has appeared in the last 10 hours. John have you tightened the control of the list? Is it now more heavily moderated than in the past? pd On Nov 12, 5:06 am, herbasher [EMAIL PROTECTED] wrote: I read somewhere that the jQuery mailing list was supposed to be really active. I haven't really seen a sign of that, which makes me wonder. Has the community seen it's days? Is it a safe bet to develop with jQuery - will it be supported for a couple of years by an active community? Thanks, Herb
[jQuery] Re: This jQuery mailing list
Ooops, sorry all. It seems the group home page is now sorting a little differently. I thought I should see my message at the top but it appears sorted on popularity now? On Nov 13, 1:15 am, pd [EMAIL PROTECTED] wrote: I posted a message today and it has not appeared yet. In fact nothing has appeared in the last 10 hours. John have you tightened the control of the list? Is it now more heavily moderated than in the past? pd On Nov 12, 5:06 am, herbasher [EMAIL PROTECTED] wrote: I read somewhere that the jQuery mailing list was supposed to be really active. I haven't really seen a sign of that, which makes me wonder. Has the community seen it's days? Is it a safe bet to develop with jQuery - will it be supported for a couple of years by an active community? Thanks, Herb
[jQuery] Cross Browser Issues - Simple use of JQuery
Hi, I have a series of nested drop down lists being used for the navigation on a website. I have added a click() event to certain elements to toggle the visibility of some nested elements. This works in Firefox and Opera perfectly but the wrong elements are being toggled in IE6. I think the problem lies within my use of $(this) or $(this).next() Can anyone let me know if there is a known bug in this area, and if possible suggest a fix/workaround. An example of this issue is at http://www.good-together.co.uk/demo.htm as it will make it clearly obvious what my problem is. Try this in Firefox first and then in IE and it will be obvious. Thanks
[jQuery] Re: Sortable on dynamic content - how to?
Thanks webrocker, sorry for my frustration. I solved this myself and saw your reply which was exactly what solved it. In the sortable plugin you can declare a new object as a .Sortable. I was a bit lost about listen and live query. Still a couple of things I am not sure about: - I think you need the .ready part but this script is at the bottom so I guess not - The id=newitem is adde to every new element. That is really not correct to have a lot of elements with the same id? But for any others frustrated this does the following with the sortable plugin (http://interface.eyecon.ro/docs/sort): - makes .Sortable objects of list items - adds a new item to the list - the new item is also sortable Sometimes I make things so complicated when they are not :-) span id=additemNew item/span ul class=items li class=sortableitemItem 1/li li class=sortableitemItem 2/li li class=sortableitemItem 3/li li class=sortableitemItem 4/li /ul script type=text/javascript $(document).ready( function() { $('ul.items').Sortable( { accept :'sortableitem', helperclass : 'sorthelper', activeclass : 'sortableactive', hoverclass :'sortablehover', opacity:0.8, fx: 200, axis: 'vertically', opacity:0.4, revert: true } ) } ); $(#additem).click(function(){ $('ul.items') .append('li id=newitemnew item/li') .SortableAddItem(document.getElementById('newitem')); }); /script On Nov 12, 8:41 am, webrocker [EMAIL PROTECTED] wrote: hi, I would try and re-declare the .Sortable object after you've appended the content and see if that works. This would mean that the .Sortable object works only on elements present inside the ul the moment the object is given. Prior to this I would have a look at the generated source after you've clickedthe #additem to see if the .append works as you expected it. On 12 Nov., 02:39, asle [EMAIL PROTECTED] wrote: Where do I go for help on this. Anyone?
[jQuery] Re: Ingrid, jQuery Datagrid : Update, v0.9.1
Excellent, thanks Karl for that feedback - I'll make a note of it. Anything else, let me know Matt On Nov 11, 11:57 pm, Karl Rudd [EMAIL PROTECTED] wrote: A quick initial test on Safari 2.0.4 comes up with a syntax error on line 124 of the main JS file, jquery. .css({float: 'left', display: 'block'}) My guess is that it doesn't like float being there (probably one of those keywords that were never used in JavaScript but were still reserved). Put quotes around it, 'float', and it should work. It's not easy to test the plugin at the moment. It'd be great to have a Zip archive with some basic examples. Karl Rudd On Nov 12, 2007 3:18 PM, Rey Bango [EMAIL PROTECTED] wrote: Guys, I would also like to have folks do cross browser testing on this in order to help Matt truly iron out any issues. People with Safari 2.x installed would be especially helpful. Rey matthew knight wrote: Hi All, I've just posted the latest version of Ingrid datagrid plugin. Incorporates a lot of feedback I've received over the last couple weeks, including: - Row selection - Saving state (page number, column sort amp; direction, selected rows) - Exposed object model, added helper methods like ingrid.getSelectedRows(), ingrid.getColumn(), etc - A couple bug fixes and some general code refactoring. I confess I added way too many comments. I'll get to those later... http://www.reconstrukt.com/ingrid/ Check it out and let me know your thoughts. Please send bugs, I'm an absolutely awful tester. :) Cheers, Matt
[jQuery] AjaxTop - New plugin
Hi, This is to let you know about the AjaxTop plugin. It provides a way to bind XML to JavaScript objects. Some of the things you can do with it are: - Load XHTML with embeded client side custom tags - Treat XML as a command format for server responses - Handle XML as semantic data (instead of XSLT) This is still experimental. Any feedback would be appreciated. Look for AjaxTop under the Ajax category or at http://ajaxtop.sourceforge.net. Matt
[jQuery] clicking appended element
guys, for example i want to append the li element dynamically and attach the click event HTML : ul id=subs /ul JS: $(document).ready(function() { ... //add dummy data for(var i = 0; i 5; i++) { dataString +=lia href='#' rel='+i+' title='+i+' class='group'+i+/a/li }; $('#subs').append(dataString); // the list is visible, now attach click event $(a).filter(.group).click(function() { alert(this.getAttribute('rel')); }); why the alert(this.getAttribute('rel')) is never executed ? please advise.
[jQuery] Re: cross domain ajax calls
On Nov 12, 2007, at 6:57 AM, [EMAIL PROTECTED] wrote: hi folks. ok. it's possible to make cross-domain ajax calls if you get json data, but i need to to pull xml. i need to get some xml data from another domain. isn't there any solution for this problem? :( I use curl with PHP to create a mirror xml file on my own domain. Then I just reference that in the $.ajax() I'm sure there are similar ways to do this with other languages, too. Here is an example: ?php header('Content-Type: text/xml'); $ch = curl_init(); $timeout = 5; // set to zero for no timeout curl_setopt ($ch, CURLOPT_URL, 'http://feeds.feedburner.com/jquery/'); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $file_contents = curl_exec($ch); curl_close($ch); // display file echo $file_contents; ? Also, PHP offers a simpler way to do this using file_get_contents, but my web host (Dreamhost) doesn't allow it: ?php echo file_get_contents(http://feeds.feedburner.com/jquery/;); ? Hope that helps. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com
[jQuery] cross domain ajax calls
thank you so much karl. i forgot to point out that i need a client-side solution. because, the server which is serving the xml document i need, only accepts one request per second. if you query more, the server blocks my servers ip. i need a pure java script solution. so every query will be made via users ip. but i am about to loose my hope.
[jQuery] Re: jqGrid update
This looks AWESOME Tony! :) Tony wrote: Just now I have updated the jqGrid. The news are: - Row editing - From now jqGrid can accept XML and JSON data with arbitrary structure using a xmlReader and jsonReader. Demo at: http://trirand.com/jqgrid/jqgrid.html Just now I will work hard on documentation. Enjoy Tony
[jQuery] Re: Accessibility, CSS
I will second Karl on his first point. But for accessibility, not sure if I can explain well the things you need to do to make you app accessible, but a few key things are: 1. Never use display:none or visiblility:hidden always use position:absolute;left:999em;top:999em This will keep things in the flow for screen readers. 2. Use your anchor tags and use them well. 3. AOL has a really nice and small framework for creating shortcuts and adding focus to elements, I don't have the url now, but will try to find it for you. I plan to use this on a wbt (web based training) framework I put the needs to be 508 compliant. 4. Will my late point, take a look at http://distiller.brainware.informationexperts.com/, it is still in development (client keeps asking for drastic changes) so it make break from time to time, but view the source and see how I have the basic html set up. There are a people on this list the believe strongly in accessibility, so if you have any specific question, feel free to ask them. On 11/12/07, Karl Rudd [EMAIL PROTECTED] wrote: For non-inline styles you can just use the addClass and removeClass functions. As for accessibility etc, it's quite a complex, somewhat specialised subject. You might try websites like http://juicystudio.com/ for more details about how screen readers etc cope with JavaScript. Karl Rudd On Nov 12, 2007 6:51 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Have just joined and nervously used Jquery for the first time. Just woudering about two thngs: 1. When jquery modifies styles it seems to do in-line styles. I tend to keep all my styles external. Does it have to do it in-line? 2. I see no mention of accessibility or advice on validating or accessible javascript discussion. Why not? Thanks. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com http://www.benjaminsterling.com
[jQuery] Re: cross domain ajax calls
Hi, On 12 Nov., 15:50, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: thank you so much karl. i forgot to point out that i need a client-side solution. because, the server which is serving the xml document i need, only accepts one request per second. if you query more, the server blocks my servers ip. i need a pure java script solution. so every query will be made via users ip. but i am about to loose my hope. maybe that will help: http://code.google.com/apis/ajaxfeeds/ Jan
[jQuery] Re: iframe bug document.defaultView.getComputedStyle(elem,null)
I think this this is covered by bug 1661 http://dev.jquery.com/ticket/1661 I just ran into this problem as well. Hopefully it will be addressed soon. On Oct 10, 11:41 pm, Skilip [EMAIL PROTECTED] wrote: Hi, I found a bug with jQuery version 1.2. It concerns the following error generated by Firebug in Firefox when a iframe is present in a page. document.defaultView.getComputedStyle(elem, null) has no properties I solved it by replacing the following code with the code pasted underneath. old: (line 729) ret = prop == display swap[stack.length-1] != null ? none : document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop) || ; new: ret = prop == display swap[stack.length-1] != null ? none : (document.defaultView.getComputedStyle(elem,null)) ? document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop) : ; Can I report this bug somewhere @ jQuery's website?
[jQuery] Re: Google Analytics Tracking With jQuery
D'oh! That was it. I'm getting good data back now. I'll clean up the code a little bit and get it posted to the plugin repository as soon as I get a chance. Thanks again, Jason On Nov 11, 10:13 pm, jason [EMAIL PROTECTED] wrote: Thanks for taking a look, Craig. I certainly hope it turns out to be something that simple. I'll post back if I see any results. - jason On Nov 9, 11:23 am, Craig [EMAIL PROTECTED] wrote: Bit more... turns out you can declare it in the function, just remove var. So instead of var _uacct = code; // - local declaration Write: _uacct = code; // - global declaration On Nov 8, 4:13 pm, Craig [EMAIL PROTECTED] wrote: Hi Jason, I've been working on something very similar and stumbled on your code. Not sure if you figured out your problem yet, but this is my guess for why it hasn't been logging your test accounts: snip // add tracking code to the current page function addTracking(){ var _uacct = code; // console.log('Set _uacct to ' + code); // console.log('urchinTracker defined: ' + (typeof urchinTracker == 'function')); urchinTracker(); ...} /snip You declare _uacct in a local scope. Try declaring _uacct on a document level, outside of that function. It's not adding it to the global scope when you declare it inside a function. See if that helps. Cheers On Oct 26, 2:45 am, jason [EMAIL PROTECTED] wrote: Yep, that's my understanding as well, although: 1) I don't know how long it will be in beta -- what's there now is not recommended for production use and is subject to change. 2) I don't know how configurable it will be out of the box -- a lot of the things people do with urchin.js now are features that have never been documented by Google. 3) I would still like to know why this hasn't been logging to my test accounts. Thanks, Jason On Oct 26, 5:29 am, Mika Tuupola [EMAIL PROTECTED] wrote: On Oct 26, 2007, at 3:54 AM, jason wrote: - Examine all of the links on the page and attach onclick events to: - External links. - Mailto links. - Downloads. - Call urchinTracker() when these links are clicked, prefixing them appropriately. AFAIK new ga.js tracks outbound links automatically. -- Mika Tuupolahttp://www.appelsiini.net/
[jQuery] Invite me please
Hi... I am from Kiev, Ukraine. My name is Alexandr Petrov and I am 26 years old. Now I write code for google gadget and use jquery + interface... and have a problem... I use SlideOutLeft and SlideInRight but have a shakes when SlideOutLeft finish and SlideInRight starts it's movement e.g. $('#content_div').SlideOutLeft(1000); setTimeout('_gel(content_div).innerHTML = html', 5000); $('#content_div').SlideInRight(1000); setTimeout(callBack(myFeed), 5000); I try to fix this problem by pauses (setTimeout). But this don't help. Then I see that all work on demo page http://interface.eyecon.ro/demos/ifx.html#slide-fx by clicking and emulate event by methode - this not help too... ( Is this group of people who can help find me solution. May be absolute position is my target... Alexandr Petrov
[jQuery] Re: Sortable on dynamic content - how to?
hm... multiple IDs are definetly not valid. But I think you could easily replace the part: $(#additem).click(function(){ $('ul.items') .append('li id=newitemnew item/li') .SortableAddItem(document.getElementById('newitem')); }); with something like this: var myi = 1; $(#additem).click(function(){ $('ul.items') .append('li class=newitem-'+myi+'new item/li') .SortableAddItem( $('li.newitem-'+myi) ); myi++; }); (not tested, just an idea) or perhaps you could create the new .Sortable directly: $(#additem).click(function(){ $('ul.items') .append('li class=sortableitemnew item/li') .Sortable( { accept : 'sortableitem', helperclass : 'sorthelper', activeclass : 'sortableactive', hoverclass :'sortablehover', opacity: 0.8, fx: 200, axis: 'vertically', opacity: 0.4, revert: true } ) }); this should do the trick... (again, not tested) On 12 Nov., 12:57, asle [EMAIL PROTECTED] wrote: Thanks webrocker, sorry for my frustration. I solved this myself and saw your reply which was exactly what solved it. In the sortable plugin you can declare a new object as a .Sortable. I was a bit lost about listen and live query. Still a couple of things I am not sure about: - I think you need the .ready part but this script is at the bottom so I guess not - The id=newitem is adde to every new element. That is really not correct to have a lot of elements with the same id? But for any others frustrated this does the following with the sortable plugin (http://interface.eyecon.ro/docs/sort): - makes .Sortable objects of list items - adds a new item to the list - the new item is also sortable Sometimes I make things so complicated when they are not :-) span id=additemNew item/span ul class=items li class=sortableitemItem 1/li li class=sortableitemItem 2/li li class=sortableitemItem 3/li li class=sortableitemItem 4/li /ul script type=text/javascript $(document).ready( function() { $('ul.items').Sortable( { accept :'sortableitem', helperclass : 'sorthelper', activeclass : 'sortableactive', hoverclass :'sortablehover', opacity:0.8, fx: 200, axis: 'vertically', opacity:0.4, revert: true } ) } ); $(#additem).click(function(){ $('ul.items') .append('li id=newitemnew item/li') .SortableAddItem(document.getElementById('newitem')); }); /script On Nov 12, 8:41 am, webrocker [EMAIL PROTECTED] wrote: hi, I would try and re-declare the .Sortable object after you've appended the content and see if that works. This would mean that the .Sortable object works only on elements present inside the ul the moment the object is given. Prior to this I would have a look at the generated source after you've clickedthe #additem to see if the .append works as you expected it. On 12 Nov., 02:39, asle [EMAIL PROTECTED] wrote: Where do I go for help on this. Anyone?
[jQuery] Re: Cross Browser Issues - Simple use of JQuery
To nest lists properly, I believe you want to put the ul you are toggling inside the li you are clicking, like this lia href=javascript:;Sub Level 1/a ul class=SubSubLevelCategory lia href=javascript:;Bottom Level 1/a/ li lia href=javascript:;Bottom Level 2/a/ li lia href=javascript:;Bottom Level 3/a/ li lia href=javascript:;Bottom Level 4/a/ li /ul/li Then instead of next() use children(ul) Hope that works for you, I tried it out and it worked. -Matt W On Nov 12, 4:10 am, Andrew Banks [EMAIL PROTECTED] wrote: Hi, I have a series of nested drop down lists being used for the navigation on a website. I have added a click() event to certain elements to toggle the visibility of some nested elements. This works in Firefox and Opera perfectly but the wrong elements are being toggled in IE6. I think the problem lies within my use of $(this) or $(this).next() Can anyone let me know if there is a known bug in this area, and if possible suggest a fix/workaround. An example of this issue is athttp://www.good-together.co.uk/demo.htm as it will make it clearly obvious what my problem is. Try this in Firefox first and then in IE and it will be obvious. Thanks
[jQuery] Re: How to make the first word bold.
Somebody else probably has a more consice method but you could try something like this var mystring = One Two Three; //replace with your string var stringarray = mystring.split( ); var firstword = mystring.split( )[0]; myarray = jQuery.grep(stringarray, function(n, i){ return (i 0); }); $(div#title a).append(strong + firstword + /strong ).append(myarray.join( )); On Nov 11, 8:56 pm, Viktor Tarm [EMAIL PROTECTED] wrote: I am trying to make the first word of a sentence (a title from a generated feed) bold. TURN THIS: div id=title a href=123.htmlOne Two Three/a /div INTO THIS: div id=title a href=123.htmlstrongOne/strong Two Three/a /div I sure there is a way to do with jQuery, but I can't quite figure it out. I have tried something like this, with no luck: $(#title.a).contents(0).wrap(strong/strong); Any help would be greatly appreciated.
[jQuery] Re: This jQuery mailing list
Mail has been flowing for me all morning and I verified that there was no issue with your specific account. From our end, it all looks good. Rey... pd wrote: I posted a message today and it has not appeared yet. In fact nothing has appeared in the last 10 hours. John have you tightened the control of the list? Is it now more heavily moderated than in the past? pd On Nov 12, 5:06 am, herbasher [EMAIL PROTECTED] wrote: I read somewhere that the jQuery mailing list was supposed to be really active. I haven't really seen a sign of that, which makes me wonder. Has the community seen it's days? Is it a safe bet to develop with jQuery - will it be supported for a couple of years by an active community? Thanks, Herb
[jQuery] Re: How to make the first word bold.
Can you provide the setup for the RSS feed? If you know that the feed will always be links like this: div id=title a href=123.htmlbOne Two Three/a/b/div a href=456.htmlfour five six/a /div a href=789.htmlseven eight nine/a /div And you just want the first link to be bold? Then you could do this: $('#title a:eq(0)').wrap('b/b'); That line says wrap the first child in a bold tag. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, November 12, 2007 10:52 AM To: jQuery (English) Subject: [jQuery] Re: How to make the first word bold. Somebody else probably has a more consice method but you could try something like this var mystring = One Two Three; //replace with your string var stringarray = mystring.split( ); var firstword = mystring.split( )[0]; myarray = jQuery.grep(stringarray, function(n, i){ return (i 0); }); $(div#title a).append(strong + firstword + /strong ).append(myarray.join( )); On Nov 11, 8:56 pm, Viktor Tarm [EMAIL PROTECTED] wrote: I am trying to make the first word of a sentence (a title from a generated feed) bold. TURN THIS: div id=title a href=123.htmlOne Two Three/a /div INTO THIS: div id=title a href=123.htmlstrongOne/strong Two Three/a /div I sure there is a way to do with jQuery, but I can't quite figure it out. I have tried something like this, with no luck: $(#title.a).contents(0).wrap(strong/strong); Any help would be greatly appreciated.
[jQuery] Fix for BlockUI slowness
I just spent a while tracking this down, so I thought I would post it here in case anyone is searching the archives in the future. I use blockUI to block containers while they are getting loaded via ajax. I found that in many cases, the call to block was going very slow - sometimes taking 5 seconds just to put up the block message! What I traced it down to is blockUI attaching events to every a and input within the blocked element. In my case, I had a tree structure with hundreds or thousands of nodes, each with an anchor in them. The binding of 5 events to every element caused the unbearable lag. My application is an internal webapp, and I didn't need this functionality. So I made the change below in the page where it was a problem and now the interface responds much quicker. I would recommend making this an option in blockUI, perhaps documenting it as a caveat, or maybe even consider not doing this kind of action by default. // Matt - 2007-11-12 // The bind call in BlockUI is extremely inefficient when there are large numbers of anchors or inputs within the // blocked element. We're going to over-write it here because we don't even care about the functionality it is // trying to add. // bind/unbind the handler $.blockUI.impl.bind = function(b, el) { var full = el == window; // don't bother unbinding if there is nothing to unbind if (!b (full !this.pageBlock || !full !el.$blocked)) return; if (!full) el.$blocked = b; //var $e = full ? $() : $(el).find('a,:input'); //$.each(['mousedown','mouseup','keydown','keypress','click'], function(i,o) { //$e[b?'bind':'unbind'](o, $.blockUI.impl.handler); //}); } Matt Kruse
[jQuery] Re: Safari Mac fatal error
From: Michael Geary That's invalid JavaScript. It's not the duplicate function name that makes it invalid, it's the fact that those are named functions at all. Even if you reduced the code to this, it would still be invalid: $(document).ready( function () { field1.click( function somename () { // do something } ); } ); The only place you can define a named function is directly inside another function or in the global scope. From: RobG I'm not sure that's correct. According to the ECMAScript spec section 10, an identifier is optional in a function expression. They normally aren't used because IE has a habit of making them global variables and a reference to the function itself is available internally for the purposes of recursion as arguments.callee. D'oh! You're right. This sheds some light on a similar question that came up in the Google Maps API group, which was where I came up with the idea that this was a syntax error. Yeah, browser support for the optional identifier in a function expression is pretty spotty. Firefox will even try to guess whether you meant for it to be a function declaration or a function expression - which led to some surprising results in the Maps API code sombody wrote. I'll have to get back to you later on the details. You can't define a named function inside a function call... So: window.setTimeout(function(){...}, 20); is a syntax error? Of course not! I'm not *that* dumb! :-) -Mike
[jQuery] Re: How to make the first word bold.
You could also do this with a regular expression. Maybe something like this: var mystring = $('#title a:first').html(); var firstword = mystring.replace(/(^\w+)/,'strong$1/strong'); $('#title a:first').html(firstword); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 12, 2007, at 11:52 AM, [EMAIL PROTECTED] wrote: Somebody else probably has a more consice method but you could try something like this var mystring = One Two Three; //replace with your string var stringarray = mystring.split( ); var firstword = mystring.split( )[0]; myarray = jQuery.grep(stringarray, function(n, i){ return (i 0); }); $(div#title a).append(strong + firstword + /strong ).append(myarray.join( )); On Nov 11, 8:56 pm, Viktor Tarm [EMAIL PROTECTED] wrote: I am trying to make the first word of a sentence (a title from a generated feed) bold. TURN THIS: div id=title a href=123.htmlOne Two Three/a /div INTO THIS: div id=title a href=123.htmlstrongOne/strong Two Three/a /div I sure there is a way to do with jQuery, but I can't quite figure it out. I have tried something like this, with no luck: $(#title.a).contents(0).wrap(strong/strong); Any help would be greatly appreciated.
[jQuery] Manipulate elements in new window (context)
Hello, I'm using: var plan = window.open(tmp.htm, plan); $(#header, plan.document).hide(); $(#main).hide(); * it's bind to a button onclick event to open a new window and manipulate it, but when I execute it nothing have happened in the new window. When I trace down with firebug everything happens as expected - the #header is hidden. In the both cases the #main in the parent window is hidden. If you can point me to what is wrong, I would appreciate it. Thanks, Evgeni
[jQuery] Script evaluation in IE7 fails
I have a jQuery script that loads html into the page. Sometimes, within this html I would like to put a small script to handle button functions. Such a script runs fine in FF but not in IE7 (Untested IE6) I worked around this issue for now by putting my script in a div and having jQuery evaluate the div. Is there a better way to load html (I am using $.get) into the page and have jQuery run the script in the html? jQuery 1.1.1 Thanks!
[jQuery] Re: Show me what you created using jQuery / web apps
Ben Nadel has been working on an exercise task list and a calendar using jQuery. http://www.bennadel.com/blog/1027-Exercise-List-Building-The-Domain-Model-Saucy-.htm http://www.bennadel.com/projects/kinky-calendar.htm (Hmm, the cal doesnt have much JS yet at all) Regarding sites using jQuery, there is an exhaustive list: http://docs.jquery.com/Sites_Using_jQuery Glen On Nov 11, 2007 11:40 PM, herbasher [EMAIL PROTECTED] wrote: Hi! I'd love if anyone wants to share interactive websites, or in particular web apps they have created using jQuery. I am starting to work on a simple task manager, and wanted to see what other people out there have created - what is possible, so to speak. Also, if there is any developers out there that would have fun in creating apps like calendar, contact manager, bug tracker, and some more super simple apps, I'm working on a humble small project that you could have fun working with, just contact me. Especially if you are interested in something fresh. lmk, everything appreciated, Herb
[jQuery] Re: cross domain ajax calls
Have you seen Purple Include? http://blueoxen.net/c/purple/purple-include/ The thread got messed up in Gmail so I lost the original question. Glen On Nov 12, 2007 8:20 AM, Jan Sorgalla [EMAIL PROTECTED] wrote: Hi, On 12 Nov., 15:50, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: thank you so much karl. i forgot to point out that i need a client-side solution. because, the server which is serving the xml document i need, only accepts one request per second. if you query more, the server blocks my servers ip. i need a pure java script solution. so every query will be made via users ip. but i am about to loose my hope. maybe that will help: http://code.google.com/apis/ajaxfeeds/ Jan
[jQuery] Re: iframe bug document.defaultView.getComputedStyle(elem,null)
As a quick fix for this problem, you can make a plugin (I think this would classify as a plugin) just add the following after you include jquery jQuery.extend({ curCSS: function(elem, prop, force) { var ret, stack = [], swap = []; // A helper method for determining if an element's values are broken function color(a){ if ( !jQuery.browser.safari ) return false; var ret = document.defaultView.getComputedStyle(a,null); return !ret || ret.getPropertyValue(color) == ; } if (prop == opacity jQuery.browser.msie) { ret = jQuery.attr(elem.style, opacity); return ret == ? 1 : ret; } if (prop.match(/float/i)) prop = styleFloat; if (!force elem.style[prop]) ret = elem.style[prop]; else if (document.defaultView document.defaultView.getComputedStyle) { if (prop.match(/float/i)) prop = float; prop = prop.replace(/([A-Z])/g,-$1).toLowerCase(); var cur = document.defaultView.getComputedStyle(elem, null); if ( cur !color(elem) ) ret = cur.getPropertyValue(prop); // If the element isn't reporting its values properly in Safari // then some display: none elements are involved else { // Locate all of the parent display: none elements for ( var a = elem; a color(a); a = a.parentNode ) stack.unshift(a); // Go through and make them visible, but in reverse // (It would be better if we knew the exact display type that they had) for ( a = 0; a stack.length; a++ ) if ( color(stack[a]) ) { swap[a] = stack[a].style.display; stack[a].style.display = block; } // Since we flip the display style, we have to handle that // one special, otherwise get the value //bug fix - http://dev.jquery.com/ticket/1661 // ret = prop == display swap[stack.length-1] != null ? // none : // document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop) || ; ret = (prop == display swap[stack.length-1] != null) ? none : (document.defaultView.getComputedStyle(elem,null) != null) ? document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop) : ; // Finally, revert the display styles back for ( a = 0; a swap.length; a++ ) if ( swap[a] != null ) stack[a].style.display = swap[a]; } if ( prop == opacity ret == ) ret = 1; } else if (elem.currentStyle) { var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}); ret = elem.currentStyle[prop] || elem.currentStyle[newProp]; // From the awesome hack by Dean Edwards // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 // If we're not dealing with a regular pixel number // but a number that has a weird ending, we need to convert it to pixels if ( !/^\d+(px)?$/i.test(ret) /^\d/.test(ret) ) { var style = elem.style.left; var runtimeStyle = elem.runtimeStyle.left; elem.runtimeStyle.left = elem.currentStyle.left; elem.style.left = ret || 0; ret = elem.style.pixelLeft + px; elem.style.left = style; elem.runtimeStyle.left = runtimeStyle; } } return ret; } });
[jQuery] Re: clicking appended element
Insert ... var dataString = ''; ...in front of your 'for' loop and it works fine! On Nov 12, 12:16 pm, system.drawing [EMAIL PROTECTED] wrote: guys, for example i want to append the li element dynamically and attach the click event HTML : ul id=subs /ul JS: $(document).ready(function() { ... //add dummy data for(var i = 0; i 5; i++) { dataString +=lia href='#' rel='+i+' title='+i+' class='group'+i+/a/li }; $('#subs').append(dataString); // the list is visible, now attach click event $(a).filter(.group).click(function() { alert(this.getAttribute('rel')); }); why the alert(this.getAttribute('rel')) is never executed ? please advise.
[jQuery] Zoomimage
Another plugin to present images http://www.eyecon.ro/zoomimage/
[jQuery] Re: Zoomimage
Excellent plugin! Looks gorgeous. Very much like the highSlide image gallery that many people on this list have mentioned. Congrats. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 12, 2007, at 2:43 PM, Stefan Petre wrote: Another plugin to present images http://www.eyecon.ro/zoomimage/
[jQuery] Powered by jQuery -- ActiveState?!
so I'm surfing around, and I've put the jQuery sniffer on for fun -- and ActiveState pops up the sniffer-generated logo! I mean, how cool is that?! -Toby
[jQuery] jcarousel using jquery - VERY slow init in IE7
I have a very simple jcarousel example that works perfectly in Firefox but takes about 20 seconds to startup in IE7. This is using jcarousel 0.2.1 and jquery 1.2.1. Here is a link to the sample (very straightforward html): http://www.azestimators.com/slide/az.htm If you can help me figure out why this takes so long with IE7 I would really appreciate it. Thanks, Tim
[jQuery] Re: jqGrid update
one of greatest useful plugins ^-^ On Nov 12, 7:59 pm, Tony [EMAIL PROTECTED] wrote: Just now I have updated the jqGrid. The news are: - Row editing - From now jqGrid can accept XML and JSON data with arbitrary structure using a xmlReader and jsonReader. Demo at:http://trirand.com/jqgrid/jqgrid.html Just now I will work hard on documentation. Enjoy Tony
[jQuery] Re: Ingrid, jQuery Datagrid : Update, v0.9.1
@Andy: The latency isn't Ingrid itself: its the data coming back - the feed is very slow to respond. When tested with a local data store, response time is (almost) instant. She's quick. Please have another look and confirm this when you get a chance (use a tool like Fiddler, for example, and watch the request/response times.) Cheers, Matt On Nov 12, 7:47 am, matthew knight [EMAIL PROTECTED] wrote: Excellent, thanks Karl for that feedback - I'll make a note of it. Anything else, let me know Matt On Nov 11, 11:57 pm, Karl Rudd [EMAIL PROTECTED] wrote: A quick initial test on Safari 2.0.4 comes up with a syntax error on line 124 of the main JS file, jquery. .css({float: 'left', display: 'block'}) My guess is that it doesn't like float being there (probably one of those keywords that were never used in JavaScript but were still reserved). Put quotes around it, 'float', and it should work. It's not easy to test the plugin at the moment. It'd be great to have a Zip archive with some basic examples. Karl Rudd On Nov 12, 2007 3:18 PM, Rey Bango [EMAIL PROTECTED] wrote: Guys, I would also like to have folks do cross browser testing on this in order to help Matt truly iron out any issues. People with Safari 2.x installed would be especially helpful. Rey matthew knight wrote: Hi All, I've just posted the latest version of Ingrid datagrid plugin. Incorporates a lot of feedback I've received over the last couple weeks, including: - Row selection - Saving state (page number, column sort amp; direction, selected rows) - Exposed object model, added helper methods like ingrid.getSelectedRows(), ingrid.getColumn(), etc - A couple bug fixes and some general code refactoring. I confess I added way too many comments. I'll get to those later... http://www.reconstrukt.com/ingrid/ Check it out and let me know your thoughts. Please send bugs, I'm an absolutely awful tester. :) Cheers, Matt
[jQuery] Re: jqGrid update
Fantastic job, Tony. I already know where I can use this. On Nov 12, 5:59 am, Tony [EMAIL PROTECTED] wrote: Just now I have updated the jqGrid. The news are: - Row editing - From now jqGrid can accept XML and JSON data with arbitrary structure using a xmlReader and jsonReader. Demo at:http://trirand.com/jqgrid/jqgrid.html Just now I will work hard on documentation. Enjoy Tony
[jQuery] Re: Ingrid, jQuery Datagrid : Update, v0.9.1
Andy Matthews wrote: I found it REALLY slow in IE7 using the bells and whistles demo. Clicking one of the column headers to sort on took several seconds. The loading bar was a very nice effect, but there's no reason it should have taken that long, not with only 20 or 30 rows. I'd work on speed increases before any more feature development. The sorting on that demo is done server side so it was prolly the ajax call that took several seconds if the server was under load. The reason that one was sorting server side, I assume, is that the table was paged so sorting affects which results appear on which page.
[jQuery] How this can be done with jQuery
Hi, I'm a newbe and need to get a simple thing done with jQuery ... which doesn't seem to be that simple to me. Want a sort of accordian effect with just one div attached to the bottom of the page which slides in/up on hover and slides out when cursor is out ... there's one more thing in between which is when the div is sliding out and you hove back it starts sliding in from that point !!! Have done a sample in flash which can be seen at http://asifrnaqvi.com/stuff/sample/del.swf Would be really great if any guru can help sort this out. Thanks -- View this message in context: http://www.nabble.com/How-this-can-be-done-with-jQuery-tf4785449s27240.html#a13690152 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: How to make the first word bold.
Viktor... You'd probably need an $.each() on there then. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Viktor Tarm Sent: Monday, November 12, 2007 2:35 PM To: jQuery (English) Subject: [jQuery] Re: How to make the first word bold. Thank you all for your help. Andy, I'm looking to bold the first WORD, of all the links, not the first link. Karl, I made a simple page to test your code. It looks like this: script type=text/javascript src=./src/jquery-1.2.1.pack.js/ script script type=text/javascript $(document).ready(function() { var mystring = $('#links a').html(); var firstword = mystring.replace(/(^\w+)/,'strong$1/strong'); $('#links a').html(firstword); }); /script /head body div id=links p class=titlea href=a.htmlone two three four five/a/p p class=titlea href=b.htmlsix seven eight/a/p p class=titlea href=c.htmlnine ten eleven/a/p p class=titlea href=d.htmltwelve thirteen fourteen/a/p /div This results in changing the content to = the first link's content, like so: div id=links p class=titlea href=a.htmlstrongOne/strong two three four five/a/p p class=titlea href=b.htmlstrongOne/strong two three four five/a/p p class=titlea href=c.htmlstrongOne/strong two three four five/a/p p class=titlea href=d.htmlstrongOne/strong two three four five/a/p /div I'm looking to just make the first word of the link bold (without changing the content), like this: div id=links p class=titlea href=a.htmlstrongOne/strong two three four five/a/p p class=titlea href=b.htmlstrongsix/strong seven eight/ a/p p class=titlea href=c.htmlstrongnine/strong ten elevan/ a/p p class=titlea href=d.htmlstrongtwelve/strong thirteen fourteen/a/p /div Any ideas? Thanks again. On Nov 12, 12:24 pm, Karl Swedberg [EMAIL PROTECTED] wrote: You could also do this with a regular expression. Maybe something like this: var mystring = $('#title a:first').html(); var firstword = mystring.replace(/(^\w+)/,'strong$1/strong'); $('#title a:first').html(firstword); --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com On Nov 12, 2007, at 11:52 AM, [EMAIL PROTECTED] wrote: Somebody else probably has a more consice method but you could try something like this var mystring = One Two Three; //replace with your string var stringarray = mystring.split( ); var firstword = mystring.split( )[0]; myarray = jQuery.grep(stringarray, function(n, i){ return (i 0); }); $(div#title a).append(strong + firstword + /strong ).append(myarray.join( )); On Nov 11, 8:56 pm, Viktor Tarm [EMAIL PROTECTED] wrote: I am trying to make the first word of a sentence (a title from a generated feed) bold. TURN THIS: div id=title a href=123.htmlOne Two Three/a /div INTO THIS: div id=title a href=123.htmlstrongOne/strong Two Three/a /div I sure there is a way to do with jQuery, but I can't quite figure it out. I have tried something like this, with no luck: $(#title.a).contents(0).wrap(strong/strong); Any help would be greatly appreciated.
[jQuery] Re: How this can be done with jQuery
Take a look here: http://commadelimited.com/ Its not mine (its from Andy Matthews), but he is doing what u want to do. PS: he is an active user of this list too. On Nov 12, 2007 7:17 PM, sarn [EMAIL PROTECTED] wrote: Hi, I'm a newbe and need to get a simple thing done with jQuery ... which doesn't seem to be that simple to me. Want a sort of accordian effect with just one div attached to the bottom of the page which slides in/up on hover and slides out when cursor is out ... there's one more thing in between which is when the div is sliding out and you hove back it starts sliding in from that point !!! Have done a sample in flash which can be seen at http://asifrnaqvi.com/stuff/sample/del.swf Would be really great if any guru can help sort this out. Thanks -- View this message in context: http://www.nabble.com/How-this-can-be-done-with-jQuery-tf4785449s27240.html#a13690152 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Zoomimage
I love this plugin... good job stefan ! 2007/11/12, Stefan Petre [EMAIL PROTECTED]: Another plugin to present images http://www.eyecon.ro/zoomimage/
[jQuery] Re: How this can be done with jQuery
Jeferson Koslowski wrote: Take a look here: http://commadelimited.com/ This looks quite close to what I'm thinking of - the only difference I want is the div to slide in on over ... -- View this message in context: http://www.nabble.com/How-this-can-be-done-with-jQuery-tf4785449s27240.html#a13714807 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Powered by jQuery -- ActiveState?!
w00t! From the header: script type=text/javascript language=JavaScript src=/_js/lib/ jquery.js/script They're running the packed version, interestingly. ActiveState's Komodo has been supporting jQuery through extensions since 1.1.1, even releasing the 1.1.4 extension same-day as the official release. Unfortunately the script documentation change has left us without 1.2 support so far. Nevertheless I've been coding with Komodo as long as I have jQuery, they're a great match and I've never looked back. I highly recommend Komodo to any PHP, CSS, X(HT)ML, JavaScript, or even VBScript coders. Way cool. Charles On Nov 12, 12:28 pm, Tobias Parent [EMAIL PROTECTED] wrote: so I'm surfing around, and I've put the jQuery sniffer on for fun -- and ActiveState pops up the sniffer-generated logo! I mean, how cool is that?! -Toby
[jQuery] Re: Invite me please
Alexander, You've found the right group of people. What version of jQuery are you using? 1.2 and above are known to not work with those Interface functions (see thread: http://groups.google.com/group/jquery-ui/browse_thread/thread/8179ba78b23e891f/e4ab8be5475b0c8f?lnk=raot), since Interface is now deprecated in favor of jQUERy UI. Also, do you have an example page we can see? Charles doublerebel.com On Nov 12, 7:56 am, Karlson [EMAIL PROTECTED] wrote: Hi... I am from Kiev, Ukraine. My name is Alexandr Petrov and I am 26 years old. Now I write code for google gadget and use jquery + interface... and have a problem... I use SlideOutLeft and SlideInRight but have a shakes when SlideOutLeft finish and SlideInRight starts it's movement e.g. $('#content_div').SlideOutLeft(1000); setTimeout('_gel(content_div).innerHTML = html', 5000); $('#content_div').SlideInRight(1000); setTimeout(callBack(myFeed), 5000); I try to fix this problem by pauses (setTimeout). But this don't help. Then I see that all work on demo pagehttp://interface.eyecon.ro/demos/ifx.html#slide-fx by clicking and emulate event by methode - this not help too... ( Is this group of people who can help find me solution. May be absolute position is my target... Alexandr Petrov
[jQuery] Re: Safari Mac fatal error
On Nov 13, 12:26 am, pd [EMAIL PROTECTED] wrote: Hi Just thought I'd re-iterate that I didn't post this item to whinge or whine about dodgy code being invalid or unecessary. No need to be defensive, you pointed out a legititmate bug. Safari might not have the browser-share of IE or Firefox, but it runs pretty much a dead heat for third with Opera and Mozilla. I wrote to highlight a difference in behaviour between a relatively obscure browser and the rest. AFAIK that is one of the big goals of any library - to pave over the cracks in the 'platform' the library sits on top of. I'm not expecting jQuery to have behaved differently in this example as I'm pretty sure I read somewhere that John considers overly detailed error messages and debugging options to be the job of a plugin, if anything (does such a plugin yet exist?). It's not an issue with jQuery but with Safari 2.0.4 (and probably earlier versions too). I don't think any javascript library can gloss over bugs related to otherwise legal syntax. I just wanted to point out that there is no need to invoke the bug as there is a work around that is considered better form anyway. -- Rob
[jQuery] Re: Zoomimage
I think I want to cry. This is beautiful. Keyboard shortcuts, easing, clear styling instructions. Wonderful. I am going to switch to this from Highslide for sure. Although, I can't help myself, I need to point out a couple of tiny items (TINY ONES) 1. The header should probably have a css rule of cursor: move. Even though you can move it from anywhere (AWESOME), having an area that affords more dragging is a good thing. 2. Alternate styling is nice. I know highslide somehow figured out how to do rounded corners with it. This is a nice to have, not a have to have. What happens if the image is really big? I need to test this. :) What browsers has this been tested with? I am so excited! Glen On Nov 12, 2007 1:36 PM, Matthieu BARBE [EMAIL PROTECTED] wrote: I love this plugin... good job stefan ! 2007/11/12, Stefan Petre [EMAIL PROTECTED]: Another plugin to present images http://www.eyecon.ro/zoomimage/
[jQuery] Re: How to make the first word bold.
eg. $('#links a').each(function(){ var me = $(this); me.html( me.text().replace(/(^\w+)/,'strong$1/strong') ); }); or $('#links a').each(function(){ var me = $(this) , t = me.text().split(' '); me.html( 'strong'+t.shift()+'/strong '+t.join(' ') ); }); etc On Nov 12, 9:17 pm, Andy Matthews [EMAIL PROTECTED] wrote: Viktor... You'd probably need an $.each() on there then. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Viktor Tarm Sent: Monday, November 12, 2007 2:35 PM To: jQuery (English) Subject: [jQuery] Re: How to make the first word bold. Thank you all for your help. Andy, I'm looking to bold the first WORD, of all the links, not the first link. Karl, I made a simple page to test your code. It looks like this: script type=text/javascript src=./src/jquery-1.2.1.pack.js/ script script type=text/javascript $(document).ready(function() { var mystring = $('#links a').html(); var firstword = mystring.replace(/(^\w+)/,'strong$1/strong'); $('#links a').html(firstword); }); /script /head body div id=links p class=titlea href=a.htmlone two three four five/a/p p class=titlea href=b.htmlsix seven eight/a/p p class=titlea href=c.htmlnine ten eleven/a/p p class=titlea href=d.htmltwelve thirteen fourteen/a/p /div This results in changing the content to = the first link's content, like so: div id=links p class=titlea href=a.htmlstrongOne/strong two three four five/a/p p class=titlea href=b.htmlstrongOne/strong two three four five/a/p p class=titlea href=c.htmlstrongOne/strong two three four five/a/p p class=titlea href=d.htmlstrongOne/strong two three four five/a/p /div I'm looking to just make the first word of the link bold (without changing the content), like this: div id=links p class=titlea href=a.htmlstrongOne/strong two three four five/a/p p class=titlea href=b.htmlstrongsix/strong seven eight/ a/p p class=titlea href=c.htmlstrongnine/strong ten elevan/ a/p p class=titlea href=d.htmlstrongtwelve/strong thirteen fourteen/a/p /div Any ideas? Thanks again. On Nov 12, 12:24 pm, Karl Swedberg [EMAIL PROTECTED] wrote: You could also do this with a regular expression. Maybe something like this: var mystring = $('#title a:first').html(); var firstword = mystring.replace(/(^\w+)/,'strong$1/strong'); $('#title a:first').html(firstword); --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com On Nov 12, 2007, at 11:52 AM, [EMAIL PROTECTED] wrote: Somebody else probably has a more consice method but you could try something like this var mystring = One Two Three; //replace with your string var stringarray = mystring.split( ); var firstword = mystring.split( )[0]; myarray = jQuery.grep(stringarray, function(n, i){ return (i 0); }); $(div#title a).append(strong + firstword + /strong ).append(myarray.join( )); On Nov 11, 8:56 pm, Viktor Tarm [EMAIL PROTECTED] wrote: I am trying to make the first word of a sentence (a title from a generated feed) bold. TURN THIS: div id=title a href=123.htmlOne Two Three/a /div INTO THIS: div id=title a href=123.htmlstrongOne/strong Two Three/a /div I sure there is a way to do with jQuery, but I can't quite figure it out. I have tried something like this, with no luck: $(#title.a).contents(0).wrap(strong/strong); Any help would be greatly appreciated.
[jQuery] Re: Zoomimage
nice plugin. on testing with Safari/Win i noticed that the keyboard navigation does not work for me , FF is fine. Best regards, Stefan Kilp Another plugin to present images http://www.eyecon.ro/zoomimage/ -- Stefan Kilp SK-Software, Entwicklung Beratung email: [EMAIL PROTECTED] fon : +49 6151 93344-0 fax : +49 6151 93344-20 Herta-Mansbacher-Str. 98 64289 Darmstadt, Germany. -
[jQuery] Feature Request: Add support for CSS position:fixed for IE6 and lower
I don't know if this is the correct forum for this type of request, but it would be extremely helpful if jQuery could apply the hacked IE css for position: fixed. I've been using the following in my conditional IE stylesheet: /* IE hacked CSS */ #topleft { position: absolute; top: expression(document.documentElement.scrollTop + Math.round(document.documentElement.offsetHeight) + 'px'); left: expression(document.documentElement.scrollLeft + Math.round(document.documentElement.offsetWidth) + 'px'); overflow: hidden; } #bottomright { position: absolute; top: expression(document.documentElement.scrollTop + Math.round(document.documentelement.clientHeight - this.clientHeight) + 'px'); left: expression(document.documentElement.scrollLeft + Math.round(document.documentElement.offsetWidth - this.clientWidth) + 'px'); overflow: hidden; } A much more elegant solution would be to have jQuery apply the IE css hack when called as in: $('#topleft').css({position: 'fixed', top: '0px', left: '0px'}); //or $('#bottomright').css({position: 'fixed', bottom: '0px', right: '0px'}); [Pandering praise] Otherwise, I think jQuery is freakin' awesome, the biggest benefit being the huge reduction in the countless hours of cross-browser debugging. Thanks jQuery Team.
[jQuery] Re: Powered by jQuery -- ActiveState?!
How does the sniffer work? Glen On Nov 12, 2007 12:28 PM, Tobias Parent [EMAIL PROTECTED] wrote: so I'm surfing around, and I've put the jQuery sniffer on for fun -- and ActiveState pops up the sniffer-generated logo! I mean, how cool is that?! -Toby
[jQuery] Easing cheat sheet demo page
I just couldn't get my head around the new easing naming conventions. So I made a cheat sheet demo page. http://www.commadot.com/jquery/easing.php At some point someone pointed to a page that had the cool graph that showed what the math meant. Anyone know what it is? Glen
[jQuery] Re: Powered by jQuery -- ActiveState?!
... wait for it... Very well! (ba-dum TSHCH!) Actually, it's a greasemonkey Scriptlet that simply checks for the existence of a jquery object, and if it finds one, creates a div displaying the jquery logo. Let me see if I can remember where I found it - or look at last week's discussions of sites powered by jQuery. Rey posted about it about a week ago (Nov. 6, to be exact), look for the thread titled jQuery Site Detection Greasemonkey Script. Regards! -Toby Glen Lipka wrote: How does the sniffer work? Glen On Nov 12, 2007 12:28 PM, Tobias Parent [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: so I'm surfing around, and I've put the jQuery sniffer on for fun -- and ActiveState pops up the sniffer-generated logo! I mean, how cool is that?! -Toby
[jQuery] Re: Powered by jQuery -- ActiveState?!
Worked! Thanks. Glen On Nov 12, 2007 5:16 PM, Tobias Parent [EMAIL PROTECTED] wrote: ... wait for it... Very well! (ba-dum TSHCH!) Actually, it's a greasemonkey Scriptlet that simply checks for the existence of a jquery object, and if it finds one, creates a div displaying the jquery logo. Let me see if I can remember where I found it - or look at last week's discussions of sites powered by jQuery. Rey posted about it about a week ago (Nov. 6, to be exact), look for the thread titled jQuery Site Detection Greasemonkey Script. Regards! -Toby Glen Lipka wrote: How does the sniffer work? Glen On Nov 12, 2007 12:28 PM, Tobias Parent [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: so I'm surfing around, and I've put the jQuery sniffer on for fun -- and ActiveState pops up the sniffer-generated logo! I mean, how cool is that?! -Toby
[jQuery] Re: Zoomimage
Playing with the settings. http://www.commadot.com/jquery/experiments/easebox/ Great work Stephan! If I wanted to use DimScreen with it, would I just call *onZoomIn? Glen * On Nov 12, 2007 3:52 PM, Stefan Kilp [sk-software] [EMAIL PROTECTED] wrote: nice plugin. on testing with Safari/Win i noticed that the keyboard navigation does not work for me , FF is fine. Best regards, Stefan Kilp Another plugin to present images http://www.eyecon.ro/zoomimage/ -- Stefan Kilp SK-Software, Entwicklung Beratung email: [EMAIL PROTECTED] fon : +49 6151 93344-0 fax : +49 6151 93344-20 Herta-Mansbacher-Str. 98 64289 Darmstadt, Germany. -
[jQuery] Re: Easing cheat sheet demo page
Nice work Glen, Appreciated, and book marked. I think the math link you were after could be: http://www.robertpenner.com/easing/ Cheers Stephen
[jQuery] Re: Easing cheat sheet demo page
Thanks, There was a dynamic chart that when you chose the different styles it showed a chart with a curve. It was fancy schmancy. I looked through penner's site and couldn't find it. :( Glen On Nov 12, 2007 6:01 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Nice work Glen, Appreciated, and book marked. I think the math link you were after could be: http://www.robertpenner.com/easing/ Cheers Stephen
[jQuery] looking for tutorial
Hi, I currently wrigth easy jQuery plugin but today I find myself in a new territory. I want to let my plugin perform a callback called as attributes: ... success:function(){ .} My probem is to wrigth the code that let the plugin evaluate the callback. Anyone knows if there is any tutorial on this issue?? Thnaks Andrea
[jQuery] Re: Easing cheat sheet demo page
Hey Glen, Here is a page that shows the curves. It's a custom easing tool for flash, but it is basically the same thing. It shows the different curves and you can see the effect by clicking on the ball and then on another point in the movie. I have been thinking about creating a page that explains how to create custom easing equations and then adding them to the easing plugin. I just haven't had the time to take action. http://timotheegroleau.com/Flash/experiments/easing_function_generator.htm -Marshall Glen Lipka wrote: Thanks, There was a dynamic chart that when you chose the different styles it showed a chart with a curve. It was fancy schmancy. I looked through penner's site and couldn't find it. :( Glen On Nov 12, 2007 6:01 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Nice work Glen, Appreciated, and book marked. I think the math link you were after could be: http://www.robertpenner.com/easing/ Cheers Stephen
[jQuery] jQpanels 1.0.2 Update
The jqPanles plugin has been updated to version 1.0.2. All the bugs related to the accordion behaviour have been corrected. A demo/Api is available here: http://www.andreacfm.com/examples/jQpanels/ Let me have your feedback. Andrea
[jQuery] Re: jcarousel using jquery - VERY slow init in IE7
Hi, On 12 Nov., 20:53, tflanders [EMAIL PROTECTED] wrote: I have a very simple jcarousel example that works perfectly in Firefox but takes about 20 seconds to startup in IE7. This is using jcarousel 0.2.1 and jquery 1.2.1. Here is a link to the sample (very straightforward html):http://www.azestimators.com/slide/az.htm If you can help me figure out why this takes so long with IE7 I would really appreciate it. Thanks, Tim hmm...the page loads fast for me in IE7. Jan
[jQuery] Re: Zoomimage
I'm glad to hear this :). 1. You can edit the CSS and add add cursor move to '.zoomimage_controls' 2. You can do rounded corners too. Change the shadow image to include the rounded corners too Glen Lipka wrote: I think I want to cry. This is beautiful. Keyboard shortcuts, easing, clear styling instructions. Wonderful. I am going to switch to this from Highslide for sure. Although, I can't help myself, I need to point out a couple of tiny items (TINY ONES) 1. The header should probably have a css rule of cursor: move. Even though you can move it from anywhere (AWESOME), having an area that affords more dragging is a good thing. 2. Alternate styling is nice. I know highslide somehow figured out how to do rounded corners with it. This is a nice to have, not a have to have. What happens if the image is really big? I need to test this. :) What browsers has this been tested with? I am so excited! Glen On Nov 12, 2007 1:36 PM, Matthieu BARBE [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I love this plugin... good job stefan ! 2007/11/12, Stefan Petre [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Another plugin to present images http://www.eyecon.ro/zoomimage/
[jQuery] Re: Zoomimage
I can confirm this. I will fix it, I was too tired last night. Stefan Kilp [sk-software] wrote: nice plugin. on testing with Safari/Win i noticed that the keyboard navigation does not work for me , FF is fine. Best regards, Stefan Kilp Another plugin to present images http://www.eyecon.ro/zoomimage/ -- Stefan Kilp SK-Software, Entwicklung Beratung email: [EMAIL PROTECTED] fon : +49 6151 93344-0 fax : +49 6151 93344-20 Herta-Mansbacher-Str. 98 64289 Darmstadt, Germany. -