[jQuery] Re: Superfish feature request
You're right, this is the quirk I'm talking about. I'm on Windows myself, so I have been referring to Windows Firefox. I'm still puzzled by this :| I hope we (or someone else) will be able to work this out.
[jQuery] Server side JQeury
I have been following John's article: http://ejohn.org/blog/bringing-the-browser-to-the-server The script only support well formed XML, as defined in the function (env.js) window.__defineSetter__(location, function(url){ var xhr = new XMLHttpRequest(); xhr.open(GET, url); xhr.onreadystatechange = function(){ curLocation = new java.net.URL( curLocation, url ); window.document = xhr.responseXML; var event = document.createEvent(); event.initEvent(load); window.dispatchEvent( event ); }; xhr.send(); }); But why we need fetch valid XML?
[jQuery] Re: Problems with clueTip
Thanks for your reply! But I just want to open it faster in internet explorer since IE doesn't rcognize the fadein effect and so shows it after the time, the tooltip would have been faded in completely, you understand?? Why can't the IE use the fadein effect? Is three any workaround??? Thanks! Karl Swedberg schrieb: On Jan 5, 2008, at 2:32 PM, KnoxBaby wrote: Sorry for asking again, but perhaps you overread that there's again a question at the end of my statement when I already said that everything works fine: Is it possible to show the tooltip a little bit faster in IE and with the fade effect??? Hi, yes, I must have missed that question. Are you using the hoverIntent plugin? If so, you can try to show the tooltip faster using hoverIntent: false and by setting an openSpeed. Something like this, perhaps: $('a.help').cluetip({ cluetipClass: 'jtip', arrows: true, dropShadow: false, leftOffset: 20, fx: { open: 'fadeIn', openSpeed: 'fast' }, local: true, hideLocal: true, hoverIntent: false }); Hope that does the trick for you. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On 1 Jan., 12:36, KnoxBaby [EMAIL PROTECTED] wrote: WOW thanks, now it works also in IE (the confirm msg abort and the tooltip)! To the problem with the trailing comma: I thought first when I started with jquery that thisd may be wrong but than I often saw it with a trailing comma at the end of an array and since in php it's also allowed (array('asd', 'asd312', );) I thought that wouldn't be the problem... Now another question: Is it possible to show the tooltip a little bit faster in IE and with the fade effect??? On 30 Dez. 2007, 20:18, Karl Swedberg [EMAIL PROTECTED] wrote: Okay, it looks like it's working fine in Firefox, but not at all in IE6. The problem is that you have a trailing comma in your object literal, an incorrect syntax that Firefox overlooks. $('a.help').cluetip({ cluetipClass: 'jtip', arrows: true, dropShadow: false, positionBy: 'auto', leftOffset: 20, fx: { open: 'fadeIn', // can be 'show' or 'slideDown' or 'fadeIn' openSpeed: '' }, local: true, hideLocal: true, // -- REMOVE THIS COMMA }).click(function() { return confirm('Diese News wirklich löschen?'); }); Actually, hideLocal is set to true by default, so you don't need that line at all. If you remove the line, however, make sure you remove the trailing comma after local: true as well. --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com On Dec 29, 2007, at 8:17 AM, KnoxBaby wrote: Still the problem: http://www.jahlabs.de/jquery/test/ In IE: Tooltips and confirm message bug still not working :( On 26 Dez., 01:45, Karl Swedberg [EMAIL PROTECTED] wrote: On Dec 24, 2007, at 5:41 PM, KnoxBaby wrote: Hello, thanks for your help again. Thanks, I want to say that I didn't upload the new version because it worked everything ... Second, I want to ask you if you can add the possibility to split the local content too if spitTitle is set because than I would not have a redundant data as title again and again. Hmm. I doubt I'll be adding that as a feature. Than, to your solution about the link with the onclick=return confirm(...), I have to say: Is there another solution because I have several links and every link has a tooltip with the same style, but another confirm message so I would have to use the same cluetip with different confirm messages and that would be a little be redundant :( Adding onclick handlers directly in your HTML seems to be the most redundant way you could possibly do this. There are a number of ways to target your confirm messages to the particular link that is being clicked. Here is just one way: $('a.help') .cluetip({ cluetipClass: 'jtip', arrows: true, dropShadow: false, positionBy: 'auto', leftOffset: 20, fx: { open: 'fadeIn', // can be 'show' or 'slideDown' or 'fadeIn' openSpeed: '' }, local: true }) .filter(':first-child') // from all a.help elements, select only those that are the first child of their parent .click(function() { return confirm('Diese News wirklich löschen?'); }); You could also, as another example, filter by what the value of any of the link's attributes is. thanks!!! You're welcome. :-) On Dec 24, 8:31 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Okay, after investigating a bit more, I discovered that there is an
[jQuery] Re: looking for plugin that presets values in text box
How about just using tooltips (or clueTips), instead of all that custom code for each field? You could even attach the tooltip on a little icon or question mark next to each field. Larry Kevin Scholl wrote: The plugin toggleVal (written by a colleague of mine) might be of some interest to you. http://plugins.jquery.com/project/toggleval On Jan 5, 11:45 pm, Bhaarat Sharma [EMAIL PROTECTED] wrote: Hi, some time ago I saw a jquery plugin which would preset the value in a text box and when users' cursor came to that text box...the preset value would go away. it was sort of there to let the user know what format should be in this text field. I cant recall the name of the plugin. Wondering if someone can help me find this plugin?
[jQuery] Re: Server side JQeury
On Jan 7, 3:46 am, howa [EMAIL PROTECTED] wrote: I have been following John's article:http://ejohn.org/blog/bringing-the-browser-to-the-server The script only support well formed XML, as defined in the function (env.js) window.__defineSetter__(location, function(url){ var xhr = new XMLHttpRequest(); xhr.open(GET, url); xhr.onreadystatechange = function(){ curLocation = new java.net.URL( curLocation, url ); window.document = xhr.responseXML; var event = document.createEvent(); event.initEvent(load); window.dispatchEvent( event ); }; xhr.send(); }); But why we need fetch valid XML? You don't have to use XML for sure, you can use JSON and fetch Javascript data structures from the server-side. I think it's often much easer for a server-side developer.. or you can just load plain html text into your DOM tree(usually into a single field). lihao(XC)
[jQuery] Using JQuery with PHP Frameworks
Hello, I wish to start usign some PHP framework soon and was wondering wich one works better with JQuery. I will use Zend Framework or CakePHP. Not decided yet. Do you have any experience with one of them? How can I use JQuery with them? Any article or tutorial I can read? Thanks, rics
[jQuery] Aspect Oriented Extension for jQuery
Surfing dzone.com this morning, I came across this plugin for jQ: http://code.google.com/p/jquery-aop/wiki/Reference. Being unfamiliar with aspect oriented programming, I did a quick wikipedia lookup and quickly realized that this could be a great way to keep code clean. My question is this: who among us can better explain aspect oriented programming or provide some examples of how to use it effectively? What types of functions are best applied via this methodology? Any known drawbacks? Thanks for any info on this subject.
[jQuery] keyboard sortable list
Hello, Im building an app that requires keyboard use and im using jquery for some of the things. I was looking for a plugin that can do exactly this on this page. http://www.dhtmlkitchen.com/scripts/draglib/DragModule/demo/dragpane/index.html Any idea which one, because i can't find any.
[jQuery] keyboard sortable list
Hello, Im building an app that needs to be able to work with keyboard. Im using jquery fot some of the things and i searched for a plugin with exactly this behaviour, http://www.dhtmlkitchen.com/scripts/draglib/DragModule/demo/dragpane/index.html but i can't find any plugins that do this. Are there any? Or which existing should i use to get that effect? Thank you
[jQuery] Re: .click()
best to see the live page- On Jan 6, 9:32 pm, Steffan A. Cline [EMAIL PROTECTED] wrote: on 1/6/08 5:29 PM, chrismarx at [EMAIL PROTECTED] wrote: first, it would be better jquery technique to bind your img outside of the onclick $('#imgID').click(function(){ $('#logo').click(); }); what function is executed when you trigger the click event on the logo input? On Jan 6, 5:46 pm, Steffan A. Cline [EMAIL PROTECTED] wrote: Running into something strange. I have an image with an onclick handler that calls on a hidden input type=file id=logo via img src=xx onclick=$('#logo').click() This works flawlessly in Safari, IE 6 7 but not in FF Mac (not sure about PC). Any ideas? Also, what is the best way when taking this approach? I have it where the file input is in a div. I initially tried using display:none for the container div but the file inputs stopped working. I changed the div to visibility:hidden and height: 0px and it works (with the exception above) anyone have a better suggestion on how to hide these inputs better? I am using jquery 1.1.3.1 Suggestions? Thanks Steffan I am hiding the file inputs and then parsing the data from the file input onchange and placing it into a dummy text field so that there are no paths etc when the end user views it. As you know, some browsers prepend the path to the name in the file input and I wasn't thrilled with that. By trimming the path and displaying only the file name looked more appealing. The end user wants to have their own add/delete buttons for the images rather than the standard choose button. The odd thing is that when I use the DOM inspector in FF it shows that the image has the click attribute so I am not sure why it's not firing. Would it beneficial to show all of the code or is there enough mentioned to see why the click event fails? Odd that FF does not show any errors or warnings in the error console. Thanks Steffan --- T E L 6 0 2 . 7 9 3 . 0 0 1 4 | F A X 6 0 2 . 9 7 1 . 1 6 9 4 Steffan A. Cline [EMAIL PROTECTED] Phoenix, Azhttp://www.ExecuChoice.net USA AIM : SteffanC ICQ : 57234309 YAHOO : Steffan_Cline MSN : [EMAIL PROTECTED] GOOGLE: Steffan.Cline Lasso Partner Alliance Member ---
[jQuery] Superfish appears behind Flash in IE7
I'm having a problem with Superfish drop down menus appearing behind a flash object in IE7. I use FusionCharts for a Flash Chart system and I've set the flash settings with param name=WMode value=Transparent and embed wmode=transparent but I still have the problem. It only occurs in IE (go figure) and it works properly in Firefox. I've even tried increasing the z-index of the menu items in the css file, but still no luck. Here is a static post to see what I mean. I really need to use both Superfish AND flash, but my IE customers won't be able to get to the menu items. http://dev.pureagent.net/admin/fusionchart_and_superfish_problem.html Luke Brookhart
[jQuery] Re: height of a hidden element
boermans escribi: I was thinking of innerfade http://medienfreunde.com/lab/innerfade/ hope that helps On Jan 7, 2:16 pm, boermans [EMAIL PROTECTED] wrote: I could be thinking of the wrong plugin? thx, is a good plugin, but cycle have callback and pause/play ...
[jQuery] Re: LIVE jQuery
How is that the client can listen for responses of the server? it's an XHR connection that remains opened ? Ariel Flesler On 6 ene, 21:30, Peter E Higgins [EMAIL PROTECTED] wrote: For whatever reason the magnet post didn't get pushed to my client, but I wanted to chime in. fwiw, I have been considering porting the dojox.cometd client to jQuery-plugin-like code. but as far as I know, the only real javascript implementation of comet client is the dojo 1.x one. DWR has a java client as well, which is cool at a glance, but I've not had any chance to play with it. i use twistd comet server and dojox.cometd a lot. It love it. and the API is very simple, the jQuery would look something like: $.cometd.init(url); $.cometd.publish(/some/topic,{ some:object }); $.cometd.subscribe(/some/topic,function(obj){ console.log(obj.data); // [object some:object] }); no ETA, I'm really just playing around with it. Big fan of comet though personally, would love to see it adopted in the various toolkits. Regards, Peter Higgins On Tuesday 01 January 2008, Eridius wrote: This might or might not be what your looking for but if you want to keep pushing new content to a page you could use the JHeartbeat plugin http://www.jasons-toolbox.com/JHeartbeat/ coughlinsmyalias wrote: Hey all, I am wondering is it possible with jQuery or any other plugin to have say real time results on a page. To do say see what other changes are being made as you are on the screen? Or any with a tad bit delay of a couple of seconds? Thanks! Ryan- Ocultar texto de la cita - - Mostrar texto de la cita -
[jQuery] Re: Using JQuery with PHP Frameworks
Well not sure if thier will be an complications I would recommend using Codeigniter. rics wrote: Hello, I wish to start usign some PHP framework soon and was wondering wich one works better with JQuery. I will use Zend Framework or CakePHP. Not decided yet. Do you have any experience with one of them? How can I use JQuery with them? Any article or tutorial I can read? Thanks, rics -- View this message in context: http://www.nabble.com/Using-JQuery-with-PHP-Frameworks-tp14664189s27240p14665274.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Is it possible to show a specific div on a distant page (same domain) ?
Hi Dominique, Check out this page in the documentation: http://docs.jquery.com/Ajax/load#urldatacallback It includes a nice example of doing just what you're attempting: $(#links).load(/Main_Page #p-Getting-Started li); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 7, 2008, at 5:14 AM, dme69 wrote: Hello all, First i want to say Happy new year to everybody. I'm from france so don't take too much attention on my english ;-) I think all is the title ... The ID is to make a kind of sitemap with preview mode. Dominique.
[jQuery] Re: Server side JQeury
On 1月7日, 下午6時00分, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Jan 7, 3:46 am, howa [EMAIL PROTECTED] wrote: I have been following John's article:http://ejohn.org/blog/bringing-the-browser-to-the-server The script only support well formed XML, as defined in the function (env.js) window.__defineSetter__(location, function(url){ var xhr = new XMLHttpRequest(); xhr.open(GET, url); xhr.onreadystatechange = function(){ curLocation = new java.net.URL( curLocation, url ); window.document = xhr.responseXML; var event = document.createEvent(); event.initEvent(load); window.dispatchEvent( event ); }; xhr.send(); }); But why we need fetch valid XML? You don't have to use XML for sure, you can use JSON and fetch Javascript data structures from the server-side. I think it's often much easer for a server-side developer.. or you can just load plain html text into your DOM tree(usually into a single field). lihao(XC) from John's site, it said: This is one part that works pretty well right now - with the huge caveat that it only works on well-formed XML documents (oops!). I'll be integrating an HTML parser into the code base so that we can make this functionality a little more resilient. In the meantime, here's an example of the sort of scraping that you can do currently: I am wondering why it was difficult to parse HTML at the beginning. Howard
[jQuery] Re: cluetip question
Thanks for answering this question, Shawn! I really appreciate the time you've taken here and on your blog to help others with some of clueTip's features. Feijó, Shawn showed you a way to use an element on the same page for the tooltip's contents. If you'd like to use the invoking element's title attribute (or some other attribute as set by the titleAttribute option) for the contents, you need to set the splitTitle option. Something like this, for example: $('h4').cluetip({splitTitle: '|'}); h4 title=Fancy Title!|testingHover over me./h4 Hope that helps. --Karl _ Karl Swedberg On Jan 4, 2008, at 11:10 PM, Shawn wrote: Yes, you can. First, you specify the attribute that contains the ajax page OR the name of the local element to show. If you are doing local a local element, you then set the local property to true, and adjust any other properties as needed. Using a local element is mutually exclusive of any of the Ajax items... i.e. h4 id=myheadingMy Heading/h4 div id=clueDiv style=display: none;Here's my extra detail/div //javascript $(#myheading).attr(rel, #cluediv).cluetip({ local : true, hoverClass : highlight }); That *should* show the clueDiv as your popup/cluetip without any Ajax calls. Options can be found at http://plugins.learningjquery.com/cluetip/#options . Samples can be found at http://plugins.learningjquery.com/cluetip/ demo/ I'm sure others may have responded by now (no mail from the list for a while, but that's usual for me for some reason, then I'll get a flood). And they probably have more definitive recommendations (i.e. Karl monitors the list and he is the Cluetip author...) But, if not, I hope this helps. Shawn Feijó wrote: With *non-link element*, why can't I use without ajax? I try that: $('h4').cluetip(); h4 title=Fancy Title!|testingHover over me./h4 Didnt work, only like this works: $('h4').cluetip({attribute: 'id', hoverClass: 'highlight'}); h4 title=Fancy Title! id=ajax3.htmHover over me./h4 Can't I just set a tip without ajax? With a the first one runs. thanks Feijó
[jQuery] Re: jQuery.ScrollTo 1.3 released
I'd say that RAR is just fine. There's a free zip app called 7-zip that can work with RAR files. It's a great little find. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stosh Sent: Saturday, January 05, 2008 9:03 PM To: jQuery (English) Subject: [jQuery] Re: jQuery.ScrollTo 1.3 released Ariel, Thanks! :) Pax, - Stan On Jan 4, 10:29 am, Ariel Flesler [EMAIL PROTECTED] wrote: @Stosh Sure! actually, all the releases till this one, I uploaded as ZIP, I chose RAR this time because it was a few KB smaller, that's all. You can get the ZIP from here:http://www.freewebs.com/flesler/jQuery.ScrollTo/jquery.scrollTo.zip. Should I make them all ZIP again from now on ? @Andy I do agree with you, that it would look better, but I think it's more clear, for some that is not experienced with these stuff, if they see the scrollbar. Someone could think it's just a absolute positioned div, that is moved back and forth. IMO the scrollbar make it clear that you are actually forcing the elements to scroll. If you're good at design, I wouldn't mind some help :) I'm quite awful at that. I'd really like the demo to look better :) @All Someone with older versions of Firefox could confirm it works well ? Also from Linux browsers. Thanks. Ariel Flesler On 4 ene, 10:52, Stosh [EMAIL PROTECTED] wrote: Ariel, Any chance we could get you to post the source in a format other than rar? Perhaps zip or a tarball? Pax, - Stan On Jan 3, 6:08 pm, Ariel Flesler [EMAIL PROTECTED] wrote: There, now it shows an example of code when a link is clicked. I'd appreciate it, if some people could try it on different browser versions and platforms. Thanks Ariel Flesler On 3 ene, 12:36, Ariel Flesler [EMAIL PROTECTED] wrote: Ok, sounds good, I'll try to add that ASAP. Thanks! Ariel Flesler On 3 ene, 12:33, Andy Matthews [EMAIL PROTECTED] wrote: Ariel... I know I could check the source...that would be easy. But it's also nice to have a quick reference as to what I'm clicking on. Mike Alsup's Cycle demos are a perfect example. With every single demo instance, the specific code used to run that demo is right next to it. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ariel Flesler Sent: Thursday, January 03, 2008 9:04 AM To: jQuery (English) Subject: [jQuery] Re: [ANNOUNCE] jQuery.ScrollTo 1.3 released Thanks to all of you for the quick and encouraging reply. @Andy I thought developers always checked the source ( asi in, View Source ). I was told that the code, in former demo was not clear. So I made this one very redundant and full of comments. Maybe I should add a sign saying check the demo source to see how it is done ? Ariel Flesler On 3 ene, 11:56, Andy Matthews [EMAIL PROTECTED] wrote: Oh...one thing I'd like to see on the demos is a code view. On the various links that you can click, I'd like to see exactly what options you're using. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ariel Flesler Sent: Thursday, January 03, 2008 6:28 AM To: jQuery (English) Subject: [jQuery] [ANNOUNCE] jQuery.ScrollTo 1.3 released Hi everyone jQuery.ScrollTo 1.3 is out, It includes a few fixes, some features and it went through a structural change. Fixed the behavior for Opera which seems to scroll on both html and body. This last change, requires some crossbrowser testing. It works well on FF 2.0.0.11, IE 6, Opera 9.22 and Safari 3 beta. All of them on Windows. I'd appreciate some feedback on this for other versions/ platforms. Now the scroll limits are checked, this solves the problem that arised when scrolling to the last elements within the scrollable container (or window). I'd be grateful to get some confirmations on this too. I restructured the arguments to make it work like $().animate. Now the duration can be specified as a number in the 2nd argument, and the settings hash as 3rd. Or the hash settings as 2nd argument, including the option 'duration' (or 'speed', backward compatibility is kept). Finally, I remade the demo, this version shows clearly what each option does, also what are all the ways to specify the targeted position (many!). I want to improve its look, but that can wait :) Thanks all. Ariel Flesler- Ocultar texto de la cita - - Mostrar texto de la cita-- Ocultar texto de la cita - - Mostrar texto de la cita -- Ocultar texto de la cita - - Mostrar texto de la cita -- Ocultar texto de la cita - - Mostrar texto de la cita-
[jQuery] Re: Using JQuery with PHP Frameworks
hi I used jquery with cake. In cake 1.1 Prototype is used as javascript helper for AJAX, etc but you are free not to use it. I think there is a helper that has be made specifically for jquery, a port of phpQuery if I remember right. Personally I do not like much helpers to generate js code, so I have preferred to use the Head helper that simply allows you to inject your code in the head part of the html from any view. Olivier rics wrote: Hello, I wish to start usign some PHP framework soon and was wondering wich one works better with JQuery. I will use Zend Framework or CakePHP. Not decided yet. Do you have any experience with one of them? How can I use JQuery with them? Any article or tutorial I can read? Thanks, rics
[jQuery] Re: Is it possible to show a specific div on a distant page (same domain) ?
Karl... I'm thinking he wants to show/hide a div on another page. Not pull content into the current page from another. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Karl Swedberg Sent: Monday, January 07, 2008 7:42 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Is it possible to show a specific div on a distant page (same domain) ? Hi Dominique, Check out this page in the documentation: http://docs.jquery.com/Ajax/load#urldatacallback It includes a nice example of doing just what you're attempting: $(#links).load(/Main_Page #p-Getting-Started li); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 7, 2008, at 5:14 AM, dme69 wrote: Hello all, First i want to say Happy new year to everybody. I'm from france so don't take too much attention on my english ;-) I think all is the title ... The ID is to make a kind of sitemap with preview mode. Dominique.
[jQuery] Re: append ul (unordered list) ie bug
It looks like you've got some syntax errors. In the first example, ul id=c-rply-to'+id+'/ul is missing a double quote: ul id=c-rply-to'+id+'/ul (that's a single quote followed by a double right after id+ In the second, #('#c-r+id) should be $('#c-r'+id) See if that works Danny On Jan 6, 4:28 pm, chrismarx [EMAIL PROTECTED] wrote: in firefox this works fine var id = 1; $parent.append('div id=c-r'+id+' class=c-replies c-hide style=display: none;ul id=c-rply-to'+id+'/ul/div'); but in ie, no ul gets created. next i tried appending the ul to the newly created div (and yes, the div was found) var id = 1; $parent.append('div id=c-r'+id+' class=c-replies c-hide style=display: none;/div'); #(#c-r+id).append(ul/ul); that didnt work either. i had to resort to this var iediv = document.getElementById(c-r+id); var newElem = document.createElement('ul'); newElem.id = c-rply-to+id+; iediv.appendChild(newElem); can someone spot the problem?
[jQuery] Re: Fading out a text
That was it! Nice and simple CSS no need trickering around with javascript. Thanks -jp On Jan 7, 1:05 pm, Erik Beeson [EMAIL PROTECTED] wrote: Effect can be seen here:http://fortuito.us/ I think I would be inclined to overlay an alpha PNG to get that effect, not javascript. --Erik On 1/7/08, JP [EMAIL PROTECTED] wrote: Hi, I want to create an effect where text on the line starts to fade out after 100 characters. I though, I have seen such an effect somewhere but now I cannot find it. I think earlier Gmail inbox items were rendereder like that but maybe I just remember wrong because now they don't do that. Has anyone else seen such a functionality?
[jQuery] Re: Working with data from a GoogleMaps InfoWindow
can u post a link? On Jan 6, 4:52 pm, chrismarx [EMAIL PROTECTED] wrote: if you're using jquery u dont even need a form. but if you do want to serialize your parameters, that's fine. i think the easiest thing to do is to give your form an id, making it easy for jquery to find it. once you've got that, everything else should be easy- On Jan 6, 10:21 am, marcus [EMAIL PROTECTED] wrote: Hi, I am very bad at Javascript so my question is perhaps silly... When I have something like this google.maps.Event.addListener(map, click, function(overlay, latlng) { inputForm = 'form action= onsubmit=store(); return false;' + 'input type=text id=some /' + 'input type=text id=thing /' + 'input type=submit value=Save/' + '/form'; map.openInfoWindow (latlng,inputForm); }); Is there a chance to let jQuery somehow take over? I tried to get the data, but I guess $('#map form').click probably just can't work, because the form is simply not existing at $(document).ready But is there a chance at all to do that? regards, Marcus
[jQuery] DragDrop tree
Hi, I'm looking for a dragdrop tree like this : http://interface.eyecon.ro/demos/drag_drop_tree.html But this tree must to be reorderable. In fact, I looking for a dragdrop reorderable tree which can be built with an other tree (draggable) similar like this : http://extjs.com/deploy/dev/examples/tree/two-trees.html ... but also with Jquery. Does somebody know something similar ? Thanks in advance. SebR.
[jQuery] Weird bahaviour of validation plugin in a textarea used by fckeditor
Hello, look at this page: http://www.jahlabs.de/jquery/test2/ I'm using validaiton plugin to validate the form, but there is the following weird behaviour: When I write something to the textbox and click on submit, the error occurs that I have to insert at least 5 characters (even though I have written more than this). Then I click in the textbox and without doin anything there, I click directly again the submit button and it works without any error message... What's wrong with it? thanks!
[jQuery] Re: jCarousel Lite and Thickbox
I'm currently developing a site for the company I work for (can't post url at this time) using those plugins. Very easy to use, I have an image and a link clickable to launch Thickbox. On Jan 6, 10:10 am, Andrea - Aosta [EMAIL PROTECTED] wrote: Anyone as worked with this two plugin... i want to use a jcarousel lite and, with a click on the image, a thickboc effetct... it is possible? Thank you
[jQuery] Re: Using JQuery with PHP Frameworks
I recommend Symfony [1] with Unobtrusive JavaScript Plug-In [2]. It dynamically generated javascript from your php code. [1] http://www.symfony-project.org/ [2] http://trac.symfony-project.com/wiki/sfUJSPlugin 2008/1/7, Eridius [EMAIL PROTECTED]: Well not sure if thier will be an complications I would recommend using Codeigniter. rics wrote: Hello, I wish to start usign some PHP framework soon and was wondering wich one works better with JQuery. I will use Zend Framework or CakePHP. Not decided yet. Do you have any experience with one of them? How can I use JQuery with them? Any article or tutorial I can read? Thanks, rics -- View this message in context: http://www.nabble.com/Using-JQuery-with-PHP-Frameworks-tp14664189s27240p14665274.html Sent from the jQuery General Discussion mailing list archive at Nabble.com . -- Yılmaz Uğurlu ~ jabber : [EMAIL PROTECTED] ~ http://www.2nci.com ~ İzmir
[jQuery] Drag-Drop tree
Hi, I'm looking for a dragdrop tree like this : http://interface.eyecon.ro/demos/drag_drop_tree.html But this tree must to be reorderable. In fact, I looking for a dragdrop reorderable tree which can be built with an other tree (draggable) similar like this : http://extjs.com/deploy/dev/examples/tree/two-trees.html ... but also with Jquery. Does somebody know something similar ? Thanks in advance. SebR.
[jQuery] Re: Is it possible to show a specific div on a distant page (same domain) ?
So what you want is that you have a site map structure and when you mouse over a link it runs off and gets a specific DIV from that page? it should be possible to use ajax to retrieve the page html source and parse it for a specific div. large memory hog. would it be possible for you to add a bit of code to each page that would render just the div that you want as you could pass that as a parameter when calling the ajax function ie http://mysite/mystructure/mypage.php?showID=myID this way would be quicker as you would not be loading all the page content.
[jQuery] Re: Using JQuery with PHP Frameworks
rics wrote: I wish to start usign some PHP framework soon and was wondering wich one works better with JQuery. I will use Zend Framework or CakePHP. Not decided yet. Are you looking for a framework for creating RESTful web services for use with jQuery, or something else? -Mike
[jQuery] Re: LIVE jQuery
On Monday 07 January 2008, Ariel Flesler wrote: How is that the client can listen for responses of the server? it's an XHR connection that remains opened ? there are a couple transports availble in the dojox.cometd client, long polling being the default. subscribe() would issue a command to the server (ch: /cometd/meta) to alert the server it wants messages published on some topic. when something comes to the server via someone's publish(), anyone subscribed to that topic() gets that data. for instance, I did a magnet demo, is was basically: connect(onDragStart) - publish(/magnet/moving,{ node: magnetId }); connect(onDragEnd) - publish(/magnet/done,{ coords:$(magnet).dimensions(), magnet: magnetId }); subscribe(/magnet/done,function(o){ var x = o.data.x +px; var y = o.data.x +px; $(o.data.magnet).css({ top: y, left: x }); }); Ariel Flesler On 6 ene, 21:30, Peter E Higgins [EMAIL PROTECTED] wrote: For whatever reason the magnet post didn't get pushed to my client, but I wanted to chime in. fwiw, I have been considering porting the dojox.cometd client to jQuery-plugin-like code. but as far as I know, the only real javascript implementation of comet client is the dojo 1.x one. DWR has a java client as well, which is cool at a glance, but I've not had any chance to play with it. i use twistd comet server and dojox.cometd a lot. It love it. and the API is very simple, the jQuery would look something like: $.cometd.init(url); $.cometd.publish(/some/topic,{ some:object }); $.cometd.subscribe(/some/topic,function(obj){ console.log(obj.data); // [object some:object] }); no ETA, I'm really just playing around with it. Big fan of comet though personally, would love to see it adopted in the various toolkits. Regards, Peter Higgins On Tuesday 01 January 2008, Eridius wrote: This might or might not be what your looking for but if you want to keep pushing new content to a page you could use the JHeartbeat plugin http://www.jasons-toolbox.com/JHeartbeat/ coughlinsmyalias wrote: Hey all, I am wondering is it possible with jQuery or any other plugin to have say real time results on a page. To do say see what other changes are being made as you are on the screen? Or any with a tad bit delay of a couple of seconds? Thanks! Ryan- Ocultar texto de la cita - - Mostrar texto de la cita -
[jQuery] Re: append ul (unordered list) ie bug
doh! its so misleading when firefox fixes your errors for u. i'll stop thinking thats it jquery bugs- On Jan 7, 10:14 am, Danny [EMAIL PROTECTED] wrote: It looks like you've got some syntax errors. In the first example, ul id=c-rply-to'+id+'/ul is missing a double quote: ul id=c-rply-to'+id+'/ul (that's a single quote followed by a double right after id+ In the second, #('#c-r+id) should be $('#c-r'+id) See if that works Danny On Jan 6, 4:28 pm,chrismarx[EMAIL PROTECTED] wrote: in firefox this works fine var id = 1; $parent.append('div id=c-r'+id+' class=c-replies c-hide style=display: none;ul id=c-rply-to'+id+'/ul/div'); but in ie, no ul gets created. next i tried appending the ul to the newly created div (and yes, the div was found) var id = 1; $parent.append('div id=c-r'+id+' class=c-replies c-hide style=display: none;/div'); #(#c-r+id).append(ul/ul); that didnt work either. i had to resort to this var iediv = document.getElementById(c-r+id); var newElem = document.createElement('ul'); newElem.id = c-rply-to+id+; iediv.appendChild(newElem); can someone spot the problem?
[jQuery] getJSON doesn't remove the script tags when using a callback.
The getJSON function does not remove the scripts added to head when using a callback (for jsonp). This of course means that you get a build up of markup if you're using the getJSON function (with callback) to poll a resource. Someone called Tom had noticed this before, but the discussion was not resolved. I would have replied to this thread but there didn't seem to be an option to post to the group, only to the individuals involved in the discussion. http://groups.google.com/group/jquery-en/browse_thread/thread/5de2eeeb835711a6/c375846e20dec5bd?lnk=gstq=getjson+remove+scripts John, who replied to Tom, was wrong in that the jQuery code has a condition that prevents head.removeChild( script ) being reached if using jsonp (i.e. if the jsonp variable is set). It looks like this is by design, presumably because there's no way of knowing when the callback has finished its work. Can someone please confirm this or provide further details? Many thanks. P.S. As a temporary work-around, I've added the following to the end of my callback function, which removes the last script tag added to the head when it's finished its work. $(head script:last-child).remove();
[jQuery] Re: Server side JQeury
On 1月8日, 上午12時50分, John Resig [EMAIL PROTECTED] wrote: I am wondering why it was difficult to parse HTML at the beginning. Simply: Because one doesn't exist. I've since written one and hope to be integrating it soon. --John Good! Server side using jquery is really useful for extracting useful information on remote sites without using many regex...
[jQuery] any update on new versions of jQuery or jQuery UI?
is there any update on when new versions of jQuery and/or jQuery UI are coming out? I know I heard the last dates of 17/18 of December last month. I am mainly interested in the jQuery UI. -- View this message in context: http://www.nabble.com/any-update-on-new-versions-of-jQuery-or-jQuery-UI--tp14671627s27240p14671627.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Odd behavior calling height() or width() on a page with flash content
OK, this is strange, at best. I'm trying to use the clueTip plugin for some titles on a page that plays video content in a flash player, in the event that the title has exceeded a given length. clueTip works fine, but it's triggering a redraw of the flash content in FF. Working fine in IE. I think I've narrowed the problem down somewhat - in testing, I can check the height() / width() of pre-existing content, but if I create a div and check its height() / width(), the redraw is triggered. Am I going slowly mad, or is this something anybody else has seen?
[jQuery] Re: jQuery cycle not working??
The curvycorners plugin is causing cycle to fail. But I can't see why because the code is packed. Mike On Jan 7, 2008 9:48 AM, Ash [EMAIL PROTECTED] wrote: Hi I need some help with this I have never used this before and i can't seem to be able to get it to work. Now it might be because I have a Cold at the moment (no not man flue, I'm just ill), but i can't seem to figure it out. Please see my example here... http://www.c9dd.com/v2/portfolio/index2.php It seems to see that i have got the images in the page but it does not do anything with them. Please help! Ash
[jQuery] Re: help with addClass
The problem is that you're binding the click event to the projectLink class on document ready but since no one has clicked the image yet the class isn't present so there are no elements that match the class selector and thus no events bound. You could do something like the code below. This will allow the image's parent link to active upon image click if the linkActive class is present. $(.switchProject).click(function(e) { if ( !$(this).parent().is('.linkActive') ) { var img = $(this).attr(id); $(#+img).attr(src, images/+img+_down.png); $(#+img+_up2).attr(src, images/+img+_down2.png); $(this).parent().addClass('linkActive'); // Cancel our event so it doesn't trigger the link. e.stopPropagation(); e.preventDefault(); return false; } }); Cheers, -Jonathan On 1/7/08, browntown [EMAIL PROTECTED] wrote: So I'm working with a client that wants to be able to click an image to see the rollover state...they then want to click the image again to be taken to a url. I'm about to suggest that we change the first click to be a traditional rollover as it would simplify things and make things less confusing but I would still like to know how I can achieve the following. I want to be able to to add a class to the parent link and then when I click the link with the new class I want to be taken to the url. I'm having trouble getting this to work. I can see that the class is being added as the presentation changes. How can I get jquery to recognize this new class? my html looking something like: codea href=# id=btn_projects_1_link class=piggybankimg src=images/btn_projects_1_up.png id=btn_projects_1 class=switchProject alt=I smell bankin' border=0 //a /code my jquery... code $(document).ready(function(){ $(.projectLink).click( function() { alert('w00t'); } ); $(.switchProject).click( function() { var img = $(this).attr(id); $(#+img).attr(src, images/+img+_down.png); $(#+img+_up2).attr(src, images/+img+_down2.png); $(this).parent().addClass(projectLink); } ); }); /code
[jQuery] Re: Aspect Oriented Extension for jQuery
Also worth noting is that jQuery is not required for this library. It uses the jQuery namespace (jQuery.aop) but this could easily be changed to work with non-jQuery implementations. -js On 1/7/08, PragueExpat [EMAIL PROTECTED] wrote: Surfing dzone.com this morning, I came across this plugin for jQ: http://code.google.com/p/jquery-aop/wiki/Reference. Being unfamiliar with aspect oriented programming, I did a quick wikipedia lookup and quickly realized that this could be a great way to keep code clean. My question is this: who among us can better explain aspect oriented programming or provide some examples of how to use it effectively? What types of functions are best applied via this methodology? Any known drawbacks? Thanks for any info on this subject.
[jQuery] Re: Odd behavior calling height() or width() on a page with flash content
Hi Tobias, Sorry you're experiencing that weird problem! I have a workaround in clueTip that allows you to set a different parent element for the cluetip div to be inserted into, but it looks like the Flash reset bug has been fixed in recent svn versions of jquery.js: http://dev.jquery.com/ticket/1415 If you can't use an svn version, check out the $.cluetip.setup(options) info here: http://plugins.learningjquery.com/cluetip/#options I should really add something about this on the plugin documentation's faq page. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 7, 2008, at 12:53 PM, Tobias Parent wrote: OK, this is strange, at best. I'm trying to use the clueTip plugin for some titles on a page that plays video content in a flash player, in the event that the title has exceeded a given length. clueTip works fine, but it's triggering a redraw of the flash content in FF. Working fine in IE. I think I've narrowed the problem down somewhat - in testing, I can check the height() / width() of pre-existing content, but if I create a div and check its height() / width(), the redraw is triggered. Am I going slowly mad, or is this something anybody else has seen?
[jQuery] Using jQuery in Wordpress
So I'm trying to use jQuery in Wordpress (2.3.2)... Mostly for site design/effects now, eventually for posts too, if possible. It looks like jQuery is in the WP core now, but when I Firebug a few $() functions, I get errors. Any trick to getting this going? Googling provided sparse / old articles. Thanks, SEAN O ___ www.sean-o.com -- View this message in context: http://www.nabble.com/Using-jQuery-in-Wordpress-tp14672948s27240p14672948.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Using jQuery in Wordpress
Sean O, I just include it in my theme: script type=text/javascript src=?php bloginfo('template_directory');?/common/js/jquery-1.2.1.min.js/script Not sure how to include what they have in the core, but I think it is out of date anyways. On 1/7/08, Sean O [EMAIL PROTECTED] wrote: So I'm trying to use jQuery in Wordpress (2.3.2)... Mostly for site design/effects now, eventually for posts too, if possible. It looks like jQuery is in the WP core now, but when I Firebug a few $() functions, I get errors. Any trick to getting this going? Googling provided sparse / old articles. Thanks, SEAN O ___ www.sean-o.com -- View this message in context: http://www.nabble.com/Using-jQuery-in-Wordpress-tp14672948s27240p14672948.html Sent from the jQuery General Discussion mailing list archive at Nabble.com . -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com http://www.benjaminsterling.com
[jQuery] Re: [ANNOUNCE] Cornerz - Bullet Proof Curved Corners using Canvas/VML
wonderful job, Jonah! btw, looks fine in my Mac Safari 3 --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 7, 2008, at 11:01 AM, weepy wrote: Hi I'd like to announce my latest jQuery plugin. I hope you'll find it useful. FEATURES: # Antialiased # Very Fast # Support for any size radius and border width with minimal performance increase # No excanvas # Current layout is maintained # Works with all tested positions/display/floats # Supports fluid layouts # Original div still shows through, so can easily do hover/background effects # Script is only 4.0k uncompressed Issues # IE6 has some slight problems with the VML in some cases # Mac/Safari doesn't work (Windows Safari is fine) You can see it in action here : http://www.parkerfox.co.uk/cornerz Look forward to your comments Jonah
[jQuery] MooFlow: Carousel of sorts
Has anyone seen the MooFlow image gallery: http://www.outcut.de/MooFlow/ It even allows the pictures to be rotated using the mouse wheel. Very cool stuff, I suppose anything could be ported to jquery, or not? Don't have an immediate use for this, but it's cool, I've seen similar things done in flash.
[jQuery] Re: Using jQuery in Wordpress
-Original Message- From: Benjamin Sterling [mailto:[EMAIL PROTECTED] Not sure how to include what they have in the core, but I think it is out of date anyways. I didn't even mess with trying to get whatever is included working - I didn't want to get stuck using an old version, etc. I just dumped jQuery in the root of my site and called it in my template header.php... Shameless plug for my wife's site: http://www.yourdoorandmore.com/ I want to next build a little gallery using the cycle plugin w/pager as well... http://www.malsup.com/jquery/cycle/pager3.html Jim
[jQuery] Re: Using jQuery in Wordpress
Ben, Jim, thanks for the replies. I was ready to just hack it in myself, but I haven't worked with Wordpress in quite some time and remember it being fairly fragile. I'll give your code a shot, Benjamin. Shameless plug for my wife's site: http://www.yourdoorandmore.com/ @Jim: my wife is looking for this very thing - a pen ink drawing of her childhood home. Can you work with photographs? (we're in PA) Contact me off list: seanodotcom -at- yahoo -dot- com Thanks, SEAN Priest, James (NIH/NIEHS) [C] wrote: -Original Message- From: Benjamin Sterling [mailto:[EMAIL PROTECTED] Not sure how to include what they have in the core, but I think it is out of date anyways. I didn't even mess with trying to get whatever is included working - I didn't want to get stuck using an old version, etc. I just dumped jQuery in the root of my site and called it in my template header.php... Shameless plug for my wife's site: http://www.yourdoorandmore.com/ I want to next build a little gallery using the cycle plugin w/pager as well... http://www.malsup.com/jquery/cycle/pager3.html Jim -- View this message in context: http://www.nabble.com/Using-jQuery-in-Wordpress-tp14672948s27240p14674018.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: MooFlow: Carousel of sorts
This is seriously cool! Kind of a Cover Flow-style effect... I wouldn't be surprised if Mike Alsup, the reigning jQuery slideshow master -- see: http://www.malsup.com/jquery/cycle/ has a Cycle plugin option for this soon ;) SlideViewer http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html is also nice. I don't know of any with quite the layout of MooFlow, however. SEAN O ___ www.sean-o.com {js}sTyler wrote: Has anyone seen the MooFlow image gallery: http://www.outcut.de/MooFlow/ It even allows the pictures to be rotated using the mouse wheel. Very cool stuff, I suppose anything could be ported to jquery, or not? Don't have an immediate use for this, but it's cool, I've seen similar things done in flash. -- View this message in context: http://www.nabble.com/MooFlow%3A-Carousel-of-sorts-tp14673694s27240p14674439.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Need
You might better off using CSS instead of the background= for a couple of reasons. td width=90 align=center background=images/rboxbg.jpg becomes td class=col4 red menu td.col4 {width: 90px} td.red {background: #ff url(images/rboxbg.jpg);} Ok, so this would clean up the html ALOT. Now, in regards to the jQuery, what dynamic thing are you looking to do? Glen On Jan 5, 2008 8:50 PM, Raghuveer Rawat [EMAIL PROTECTED] wrote: Hi, I recently started learning about jQuery and I have not worked much on javascript. I am basically a server side java developer. I need some help from experienced jQuery developers for below issue.. I have a table which has 6 menu items (anchor tags)... Selected Menu Item will have black.jpg image in td tag's background while all the other tabs will have red background. There is blackl.jpg and blackr.jpg image in case of first and last selected menu and redl.jpg and redr.jpg in other cases What should I write in my jQuery function? table width=632 border=0 cellspacing=0 cellpadding=0 tr td width=7 height=26 align=rightimg src=images/blackl.jpg width=7 height=26 //td-- td width=70 align=center background=images/blackbg.jpg a href=s:url value=url/ class=menuA/a/td td width=90 align=center background=images/rboxbg.jpg a href=s:url value=url/ class=menuB/a/td td width=90 align=center background=images/rboxbg.jpg class=menua href=s:url value=url/ class=menuC/a/td td width=129 align=center background=images/rboxbg.jpga href=s:url value=url/ class=menuD/a/td td width=100 align=center background=images/rboxbg.jpga href=s:url value=url/ class=menuE/a/td td width=83 align=center background=images/rboxbg.jpga href=s:url value=F/ class=menuF/a/td td width=10 align=leftimg src=images/menur.jpg width=7 height=26 //td /tr /table
[jQuery] jQuery UI resizable
Does anybody know some good tutorials apart from the wiki and examples? I can get the damn divs to resize! LOL! I think I'm going crazy :
[jQuery] jQuery 1.2.2? btw...
I'm using the beta and it's much more performant than the 1.2.1 and I got no bugs so far... some intensive js scripts have decreased my cpu load to even half in some cases, I wonder when it is going to be released I'm curious on what is going to come up other than performance tweaks :D wish you all a happy new year!
[jQuery] Re: Using JQuery with PHP Frameworks
Nope. Just looking some framework that can help me develop faster and better. But I just learned JQuery and the things I can do with it are amazing. I don't want to stop using it just because I can't put it to work with the new framework. :D On Jan 7, 8:08 am, Mike Schinkel [EMAIL PROTECTED] wrote: rics wrote: I wish to start usign some PHP framework soon and was wondering wich one works better with JQuery. I will use Zend Framework or CakePHP. Not decided yet. Are you looking for a framework for creating RESTful web services for use with jQuery, or something else? -Mike
[jQuery] Re: Is it possible to show a specific div on a distant page (same domain) ?
Hi, Thanks for all your answers. I'm going to look at this solutions. I'm not sure I will be able to modify each page ... Thanks again. It will help me. Dominique. On 7 jan, 14:39, aldur [EMAIL PROTECTED] wrote: So what you want is that you have a site map structure and when you mouse over a link it runs off and gets a specific DIV from that page? it should be possible to use ajax to retrieve the page html source and parse it for a specific div. large memory hog. would it be possible for you to add a bit of code to each page that would render just the div that you want as you could pass that as a parameter when calling the ajax function ie http://mysite/mystructure/mypage.php?showID=myID this way would be quicker as you would not be loading all the page content.
[jQuery] Re: [ANNOUNCE] Cornerz - Bullet Proof Curved Corners using Canvas/VML
Very nice! I've been wanting antialiased corners for a while. Any possibility of working with Dave Methvin and merging the two corner plug-ins? I can see this being a source of confusion for other users. Good job! Matt Penner -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of weepy Sent: Monday, January 07, 2008 8:01 AM To: jQuery (English) Subject: [jQuery] [ANNOUNCE] Cornerz - Bullet Proof Curved Corners using Canvas/VML Hi I'd like to announce my latest jQuery plugin. I hope you'll find it useful. FEATURES: # Antialiased # Very Fast # Support for any size radius and border width with minimal performance increase # No excanvas # Current layout is maintained # Works with all tested positions/display/floats # Supports fluid layouts # Original div still shows through, so can easily do hover/background effects # Script is only 4.0k uncompressed Issues # IE6 has some slight problems with the VML in some cases # Mac/Safari doesn't work (Windows Safari is fine) You can see it in action here : http://www.parkerfox.co.uk/cornerz Look forward to your comments Jonah
[jQuery] Consideration for processor-intensive JavaScript jQuery applications
I have a JS app that does a lot of calculations. I'm having trouble keeping the browser responsive. My current solution is to take apart loops that last a long time and make them into functions that call themselves with setTimeout(). (As far as I can tell, you HAVE to do this to keep the browser from alerting the user that a script is unresponsive and perhaps should be shut down). Is that what other people are doing? Trying to have smooth animations and jQuery effects during the processing just doesn't work out. The only thing I can think of is to stop processing, start the effect and use the effect callback to restart the processing. Again, is this what other people are doing? Anyone doing something more clever? I'm assuming there is no priority system that can keep the UI stuff above the processing stuff.
[jQuery] Re: Using jQuery in Wordpress
This page http://scratbycoastalerosion.org.uk/gallery/?photoset_id=72157603031152209view=slideshow from one of my Websites is using enqueued jQuery and the Cycle plugin for a gallery. My own shameless plug. Gerry -- From: Priest, James (NIH/NIEHS) [C] [EMAIL PROTECTED] Sent: Monday, January 07, 2008 7:25 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Using jQuery in Wordpress -Original Message- From: Benjamin Sterling [mailto:[EMAIL PROTECTED] Not sure how to include what they have in the core, but I think it is out of date anyways. I didn't even mess with trying to get whatever is included working - I didn't want to get stuck using an old version, etc. I just dumped jQuery in the root of my site and called it in my template header.php... Shameless plug for my wife's site: http://www.yourdoorandmore.com/ I want to next build a little gallery using the cycle plugin w/pager as well... http://www.malsup.com/jquery/cycle/pager3.html Jim -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.17.13/1212 - Release Date: 06/01/2008 22:55
[jQuery] Re: Using jQuery in Wordpress
Sean, JQuery in WP 2.3.2 is up to version 1.1.4. I imagine at WP 2.5 it will move to v1.2.x. In your header file (header.php) you need to add the following line BEFORE the line that reads ?php wp_head(); ?. ?php wp_enqueue_script('jquery'); ? so that it reads: ?php wp_enqueue_script('jquery'); ? ?php wp_head(); ? Gerry From: Benjamin Sterling Sent: Monday, January 07, 2008 7:01 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Using jQuery in Wordpress Sean O, I just include it in my theme: script type=text/javascript src=?php bloginfo('template_directory');?/common/js/jquery-1.2.1.min.js/script Not sure how to include what they have in the core, but I think it is out of date anyways. On 1/7/08, Sean O [EMAIL PROTECTED] wrote: So I'm trying to use jQuery in Wordpress (2.3.2)... Mostly for site design/effects now, eventually for posts too, if possible. It looks like jQuery is in the WP core now, but when I Firebug a few $() functions, I get errors. Any trick to getting this going? Googling provided sparse / old articles. Thanks, SEAN O ___ www.sean-o.com -- View this message in context: http://www.nabble.com/Using-jQuery-in-Wordpress-tp14672948s27240p14672948.html Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com http://www.benjaminsterling.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.17.13/1212 - Release Date: 06/01/2008 22:55
[jQuery] Re: Cornerz - Bullet Proof Curved Corners using Canvas/VML
Pretty cool. :) Nice work. On Jan 7, 8:01 am, weepy [EMAIL PROTECTED] wrote: Hi I'd like to announce my latest jQuery plugin. I hope you'll find it useful. FEATURES: # Antialiased # Very Fast # Support for any size radius and border width with minimal performance increase # No excanvas # Current layout is maintained # Works with all tested positions/display/floats # Supports fluid layouts # Original div still shows through, so can easily do hover/background effects # Script is only 4.0k uncompressed Issues # IE6 has some slight problems with the VML in some cases # Mac/Safari doesn't work (Windows Safari is fine) You can see it in action here : http://www.parkerfox.co.uk/cornerz Look forward to your comments Jonah
[jQuery] Re: Aspect Oriented Extension for jQuery
Someone else can probably give a better definition of AOP, but a very simplistic view is the ability to add additional functionality (aspects) to your code. This functionality is contained in its own methods and objects, leaving your original code nice and clean. Here's an example I heard/read a while back but I can't remember where. Picture a banking transaction where you transfer money from one account. This is really very simple in theory; you check that the funds are available, debit one account and credit the other. However, in reality you need to do a lot of overhead such as implement transactions, database queries, user permissions, account restrictions, etc. In the end this simple task can be extremely cluttered, confusing and hard to test. If you rather add these additional aspects to the original code then this keeps things clean and organized. I haven't had a chance to play with it but I hesitate to think AOP is as easy as the example above sounds, otherwise it would have caught on much quicker, but I have heard of great uses, such as an easy way to add logging to your functions. Here's an interesting article on dynamic library loading in JavaScript. http://www.ddj.com/linux-open-source/202401087?pgno=1 If you have a large app using a lot of JavaScript, it goes to say that hardly any of the users will use every single function you wrote. So, if you organize your JavaScript into logical separate files you can dynamically load libraries as their needed rather than loading all your code at once. Using the jQuery plug-in you found this would probably be a little easier and cleaner. The ideas put forth in the article are interesting but need a little more work. While calling a function only loads that library once, calling several similar functions that require the same library will cause the presence of the library to be checked over and over again. What they need to add is a table listing all the dependencies on a particular library. Once the library is loaded the aspects can be removed from all remaining dependent methods. Maybe I'll work on something like this someday when I have time. :) Matt Penner -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of PragueExpat Sent: Monday, January 07, 2008 3:26 AM To: jQuery (English) Subject: [jQuery] Aspect Oriented Extension for jQuery Surfing dzone.com this morning, I came across this plugin for jQ: http://code.google.com/p/jquery-aop/wiki/Reference. Being unfamiliar with aspect oriented programming, I did a quick wikipedia lookup and quickly realized that this could be a great way to keep code clean. My question is this: who among us can better explain aspect oriented programming or provide some examples of how to use it effectively? What types of functions are best applied via this methodology? Any known drawbacks? Thanks for any info on this subject.
[jQuery] Help With Odd ID Search
I'm updating some of the legacy software we have at my company and changing much of the JavaScript to jQuery. I'm having a bit of trouble with a few particular id's however. I'm trying to access the last select element of a block of code and retrieve the id like this: $(#itemForm:standards select:last).attr(id); itemForm:standards is the id of the block I'm attempting to access, and I'm using select:last to get the last select element. This doesn't work however. I tried the same method, but used the class name rather than the id and the function worked fine. $(.standardsBlock select:last).attr(id); I may be mistaken, but I think jQuery thinks I'm attempting to apply a selector to the id name because of the colon in the name. How would I go about searching for an id like that? Has anyone had any trouble with this before? Any help would be much appreciated. -- npetcu
[jQuery] Loading animation when waiting JQuery.post() to return
Hello, How can I set an animation to play when the page is waiting for a return from ajax function such as .get() or .post()??? Didn't find examples in docs. Thanks, rics
[jQuery] Re: jqForm: Need help with basic validation...
Doh! So simple. Thanks! :) On Jan 6, 6:15 pm, Mike Alsup [EMAIL PROTECTED] wrote: function validate(formData, jqForm, options) { var x = jqForm[0]; var valid = x.required.value.split(,); // This works. for(var i=0; i valid.length; i++) { // This works. var z = valid[i]; // This works. if (!x.z.value) { alert('no'); } // This fails. } return false; // Remove when done testing. } Do this instead: if (!x[z].value) { alert('no'); }
[jQuery] Re: Using jQuery in Wordpress
Sean, JQuery in WP 2.3.2 is up to version 1.1.4. I imagine at WP 2.5 it will move to v1.2.x. In your header file (header.php) you need to add the following line BEFORE the line that reads ?php wp_head(); ?. ?php wp_enqueue_script('jquery'); ? so that it reads: ?php wp_enqueue_script('jquery'); ? ?php wp_head(); ? This page http://scratbycoastalerosion.org.uk/gallery/?photoset_id=72157603031152209view=slideshow from one of my Websites is using enqueued jQuery and the Cycle plugin for a gallery. My own shameless plug. Gerry On Jan 7, 7:42 pm, Sean O [EMAIL PROTECTED] wrote: Ben, Jim, thanks for the replies. I was ready to just hack it in myself, but I haven't worked with Wordpress in quite some time and remember it being fairly fragile. I'll give your code a shot, Benjamin. Shameless plug for my wife's site: http://www.yourdoorandmore.com/ @Jim: my wife is looking for this very thing - a pen ink drawing of her childhood home. Can you work with photographs? (we're in PA) Contact me off list: seanodotcom -at- yahoo -dot- com Thanks, SEAN Priest, James (NIH/NIEHS) [C] wrote: -Original Message- From: Benjamin Sterling [mailto:[EMAIL PROTECTED] Not sure how to include what they have in the core, but I think it is out of date anyways. I didn't even mess with trying to get whatever is included working - I didn't want to get stuck using an old version, etc. I just dumped jQuery in the root of my site and called it in my template header.php... Shameless plug for my wife's site: http://www.yourdoorandmore.com/ I want to next build a little gallery using the cycle plugin w/pager as well... http://www.malsup.com/jquery/cycle/pager3.html Jim -- View this message in context:http://www.nabble.com/Using-jQuery-in-Wordpress-tp14672948s27240p1467... Sent from the jQuery General Discussion mailing list archive at Nabble.com.- Hide quoted text - - Show quoted text -
[jQuery] Re: Processor-intensive JavaScript considerations
Somehow I missed you reply and started another similar thread today. Sorry. I'm still getting used to Google Groups.
[jQuery] Fw: [jQuery] Using jQuery in Wordpress
Sean, In your header file (header.php) you need to add the following line BEFORE the line that reads ?php wp_head(); ?. ?php wp_enqueue_script('jquery'); ? so that it reads: ?php wp_enqueue_script('jquery'); ? ?php wp_head(); ? Gerry -- From: Sean O [EMAIL PROTECTED] Sent: Monday, January 07, 2008 6:49 PM To: jquery-en@googlegroups.com Subject: [jQuery] Using jQuery in Wordpress So I'm trying to use jQuery in Wordpress (2.3.2)... Mostly for site design/effects now, eventually for posts too, if possible. It looks like jQuery is in the WP core now, but when I Firebug a few $() functions, I get errors. Any trick to getting this going? Googling provided sparse / old articles. Thanks, SEAN O ___ www.sean-o.com -- View this message in context: http://www.nabble.com/Using-jQuery-in-Wordpress-tp14672948s27240p14672948.html Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.17.13/1212 - Release Date: 06/01/2008 22:55
[jQuery] Re: Manipulating elements with a click
Hi, Thanks! It worked after I changed this to $(this). Other than that, it was perfect. :) -yaz On Jan 5, 5:43 pm, Hamish Campbell [EMAIL PROTECTED] wrote: Theres lots of ways to do it, eg: $(document).ready(function() { $('ul#content li a').click(function() { // binds a function to every link in every list object in the ul called content. $('ul#content li').removeClass('active').addClass('inactive'); // removes the class 'active' and adds the class 'inactive' to all the li elements in the ul call content this.parent().removeClass('inactive').addClass('active'); // removes the class 'inactive' and adds the class 'active' to the parent li of the clicked link. return false; }); }); Or you could ditch the links and bind it directly to the li elements and do: $(document).ready(function() { $('ul#content li').click(function() { // binds a function to every list object in the ul called content. this.parent().children('.active').removeClass('active').addClass('inactive'); // sets all 'active' li objects to inactive this.removeClass('inactive').addClass('active'); // set current li to active return false; }); }); On Jan 5, 9:45 am, YasmaryMora [EMAIL PROTECTED] wrote: Hi, I'm not really sure how to do traversing and such, or even if that's what I need to do. I have these 3 tabs (in list format). I need to make it so that when clicking on one of them, it changes the style of the li element that contains the link. Here's the code for the tabs: ul id=content li class=inactivea href=# id=btn_oneFirst Tab/a/li li class=activea href=#id=btn_twoSecond Tab/a/li li class=inactivea href=# id=btn_threeThird Tab/a/li /ul Here's the jQuery. $(document).ready(function() { $('a#btn_one').click(function() { // make the li class where this link is, active return false; }); }); Basically, when clicking on btn_xname, the class for the li element should change to active and make the rest, inactive. I had some code, but it wasn't working. Truth is I'm not really sure what I was doing. If anyone can point me in the right direction, or give me some useful samples it would be great. And if anyone wants to help me code it or code the entire thing, I would be eternally grateful, to the point where I would put your name/email/website/whatever in the code to credit you. Thanks. :) -Yaz
[jQuery] Re: LIVE jQuery
Thank you for the explanation! i will do some more research in to that and see how i can get that in to my code :) I might post a question about implementing that in to mine as well. Any demos out there for me to look at? And is this installed on the client side? On Jan 7, 8:07 am, Peter E Higgins [EMAIL PROTECTED] wrote: On Monday 07 January 2008, Ariel Flesler wrote: How is that the client can listen for responses of the server? it's an XHR connection that remains opened ? there are a couple transports availble in the dojox.cometd client, long polling being the default. subscribe() would issue a command to the server (ch: /cometd/meta) to alert the server it wants messages published on some topic. when something comes to the server via someone's publish(), anyone subscribed to that topic() gets that data. for instance, I did a magnet demo, is was basically: connect(onDragStart) - publish(/magnet/moving,{ node: magnetId }); connect(onDragEnd) - publish(/magnet/done,{ coords:$(magnet).dimensions(), magnet: magnetId}); subscribe(/magnet/done,function(o){ var x = o.data.x +px; var y = o.data.x +px; $(o.data.magnet).css({ top: y, left: x }); }); Ariel Flesler On 6 ene, 21:30, Peter E Higgins [EMAIL PROTECTED] wrote: For whatever reason the magnet post didn't get pushed to my client, but I wanted to chime in. fwiw, I have been considering porting the dojox.cometd client to jQuery-plugin-like code. but as far as I know, the only real javascript implementation of comet client is the dojo 1.x one. DWR has a java client as well, which is cool at a glance, but I've not had any chance to play with it. i use twistd comet server and dojox.cometd a lot. It love it. and the API is very simple, the jQuery would look something like: $.cometd.init(url); $.cometd.publish(/some/topic,{ some:object }); $.cometd.subscribe(/some/topic,function(obj){ console.log(obj.data); // [object some:object] }); no ETA, I'm really just playing around with it. Big fan of comet though personally, would love to see it adopted in the various toolkits. Regards, Peter Higgins On Tuesday 01 January 2008, Eridius wrote: This might or might not be what your looking for but if you want to keep pushing new content to a page you could use the JHeartbeat plugin http://www.jasons-toolbox.com/JHeartbeat/ coughlinsmyalias wrote: Hey all, I am wondering is it possible with jQuery or any other plugin to have say real time results on a page. To do say see what other changes are being made as you are on the screen? Or any with a tad bit delay of a couple of seconds? Thanks! Ryan- Ocultar texto de la cita - - Mostrar texto de la cita -
[jQuery] Re: Need
On 7 Jan., 22:40, Glen Lipka [EMAIL PROTECTED] wrote: You might better off using CSS instead of the background= for a couple of reasons. td width=90 align=center background=images/rboxbg.jpg becomes td class=col4 red menu td.col4 {width: 90px} td.red {background: #ff url(images/rboxbg.jpg);} I'd recommend not to use presentational class naming (red). Once you change the color to blue, you need to change the class name as well, at least if you want to make it some sense and not confuse others (co- workers and yourself after 3 month). Naming it red isn't much better than the way it is. Think of the purpose or structural meaning of an element when going for a class name, not of its (current!) presentation. --Klaus
[jQuery] Re: Need
Klaus, Good point. I was just using red for communication/example sake. It should be alert or whatever. Glen On Jan 7, 2008 2:02 PM, Klaus Hartl [EMAIL PROTECTED] wrote: On 7 Jan., 22:40, Glen Lipka [EMAIL PROTECTED] wrote: You might better off using CSS instead of the background= for a couple of reasons. td width=90 align=center background=images/rboxbg.jpg becomes td class=col4 red menu td.col4 {width: 90px} td.red {background: #ff url(images/rboxbg.jpg);} I'd recommend not to use presentational class naming (red). Once you change the color to blue, you need to change the class name as well, at least if you want to make it some sense and not confuse others (co- workers and yourself after 3 month). Naming it red isn't much better than the way it is. Think of the purpose or structural meaning of an element when going for a class name, not of its (current!) presentation. --Klaus
[jQuery] Re: [ANNOUNCE] Cornerz - Bullet Proof Curved Corners using Canvas/VML
Confusion?? One plugin has a z on the end of it. That's totally different. :) -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Penner, Matthew Sent: Monday, January 07, 2008 11:18 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: [ANNOUNCE] Cornerz - Bullet Proof Curved Corners using Canvas/VML Very nice! I've been wanting antialiased corners for a while. Any possibility of working with Dave Methvin and merging the two corner plug-ins? I can see this being a source of confusion for other users. Good job! Matt Penner -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of weepy Sent: Monday, January 07, 2008 8:01 AM To: jQuery (English) Subject: [jQuery] [ANNOUNCE] Cornerz - Bullet Proof Curved Corners using Canvas/VML Hi I'd like to announce my latest jQuery plugin. I hope you'll find it useful. FEATURES: # Antialiased # Very Fast # Support for any size radius and border width with minimal performance increase # No excanvas # Current layout is maintained # Works with all tested positions/display/floats # Supports fluid layouts # Original div still shows through, so can easily do hover/background effects # Script is only 4.0k uncompressed Issues # IE6 has some slight problems with the VML in some cases # Mac/Safari doesn't work (Windows Safari is fine) You can see it in action here : http://www.parkerfox.co.uk/cornerz Look forward to your comments Jonah
[jQuery] Re: Help With Odd ID Search
Try escaping the colon: $(#itemForm\\:standards select:last) Cheers, -Jonathan On 1/7/08, npetcu [EMAIL PROTECTED] wrote: I'm updating some of the legacy software we have at my company and changing much of the JavaScript to jQuery. I'm having a bit of trouble with a few particular id's however. I'm trying to access the last select element of a block of code and retrieve the id like this: $(#itemForm:standards select:last).attr(id); itemForm:standards is the id of the block I'm attempting to access, and I'm using select:last to get the last select element. This doesn't work however. I tried the same method, but used the class name rather than the id and the function worked fine. $(.standardsBlock select:last).attr(id); I may be mistaken, but I think jQuery thinks I'm attempting to apply a selector to the id name because of the colon in the name. How would I go about searching for an id like that? Has anyone had any trouble with this before? Any help would be much appreciated. -- npetcu
[jQuery] Re: Need
Ahh, I see in another post the dynamic part. Changing the subject messes up gmail in keeping the posts together. This is how you put on a click handler as described in the other post. $(td a.menu).click( function() { $(this).parents(td:first).addClass(foo).removeClass(blah); } ); I hope this helps. Glen On Jan 7, 2008 2:04 PM, Glen Lipka [EMAIL PROTECTED] wrote: Klaus, Good point. I was just using red for communication/example sake. It should be alert or whatever. Glen On Jan 7, 2008 2:02 PM, Klaus Hartl [EMAIL PROTECTED] wrote: On 7 Jan., 22:40, Glen Lipka [EMAIL PROTECTED] wrote: You might better off using CSS instead of the background= for a couple of reasons. td width=90 align=center background=images/rboxbg.jpg becomes td class=col4 red menu td.col4 {width: 90px} td.red {background: #ff url(images/rboxbg.jpg);} I'd recommend not to use presentational class naming (red). Once you change the color to blue, you need to change the class name as well, at least if you want to make it some sense and not confuse others (co- workers and yourself after 3 month). Naming it red isn't much better than the way it is. Think of the purpose or structural meaning of an element when going for a class name, not of its (current!) presentation. --Klaus
[jQuery] selecting element question
for instance $('[EMAIL PROTECTED]') would select based on name being gender but is there a way to select based on name being gender and checked being checked in one select of chained select? -- View this message in context: http://www.nabble.com/selecting-element-question-tp14677219s27240p14677219.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: keyboard sortable list
http://rikrikrik.com/jquery/shortkeys/ Does this work? Glen On Jan 7, 2008 2:34 AM, MaSTeRMinD [EMAIL PROTECTED] wrote: Hello, Im building an app that requires keyboard use and im using jquery for some of the things. I was looking for a plugin that can do exactly this on this page. http://www.dhtmlkitchen.com/scripts/draglib/DragModule/demo/dragpane/index.html Any idea which one, because i can't find any.
[jQuery] Re: selecting element question
I think this will work - $(input[name=gender]:checked) The '@' has been deprecated now. -- Josh - Original Message - From: Eridius [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Monday, January 07, 2008 2:09 PM Subject: [jQuery] selecting element question for instance $('[EMAIL PROTECTED]') would select based on name being gender but is there a way to select based on name being gender and checked being checked in one select of chained select? -- View this message in context: http://www.nabble.com/selecting-element-question-tp14677219s27240p14677219.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: [ANNOUNCE] Cornerz - Bullet Proof Curved Corners using Canvas/VML
Jonah, This looks really great! Issues # IE6 has some slight problems with the VML in some cases # Mac/Safari doesn't work (Windows Safari is fine) Hey, what happened to bulletproof?? :-) Mike
[jQuery] Re: Using JQuery with PHP Frameworks
I've successfully used jQuery with Zend Framework and found it a nice fit. I made heavy use of their JSON encoder to get data back and forth between the server and client side. On Jan 7, 3:57 am, rics [EMAIL PROTECTED] wrote: Hello, I wish to start usign some PHP framework soon and was wondering wich one works better with JQuery. I will use Zend Framework or CakePHP. Not decided yet. Do you have any experience with one of them? How can I use JQuery with them? Any article or tutorial I can read? Thanks, rics
[jQuery] Re: LIVE jQuery
On Monday 07 January 2008, coughlinsmyalias wrote: Thank you for the explanation! i will do some more research in to that and see how i can get that in to my code :) I might post a question about implementing that in to mine as well. Any demos out there for me to look at? And is this installed on the client side? cometd is a server, and aims to be client-neutral (as the comet client aims to be server-agnostic) ... more infomation on comet can be found at http://www.cometd.com/ or #cometd on irc.perl.org -- there are several server implementations of varying stability - i use the python/twistd variant, which coincidentally has the magnet demo included, and a few others. Regards, Peter Higgins On Jan 7, 8:07 am, Peter E Higgins [EMAIL PROTECTED] wrote: On Monday 07 January 2008, Ariel Flesler wrote: How is that the client can listen for responses of the server? it's an XHR connection that remains opened ? there are a couple transports availble in the dojox.cometd client, long polling being the default. subscribe() would issue a command to the server (ch: /cometd/meta) to alert the server it wants messages published on some topic. when something comes to the server via someone's publish(), anyone subscribed to that topic() gets that data. for instance, I did a magnet demo, is was basically: connect(onDragStart) - publish(/magnet/moving,{ node: magnetId }); connect(onDragEnd) - publish(/magnet/done,{ coords:$(magnet).dimensions(), magnet: magnetId}); subscribe(/magnet/done,function(o){ var x = o.data.x +px; var y = o.data.x +px; $(o.data.magnet).css({ top: y, left: x }); }); Ariel Flesler On 6 ene, 21:30, Peter E Higgins [EMAIL PROTECTED] wrote: For whatever reason the magnet post didn't get pushed to my client, but I wanted to chime in. fwiw, I have been considering porting the dojox.cometd client to jQuery-plugin-like code. but as far as I know, the only real javascript implementation of comet client is the dojo 1.x one. DWR has a java client as well, which is cool at a glance, but I've not had any chance to play with it. i use twistd comet server and dojox.cometd a lot. It love it. and the API is very simple, the jQuery would look something like: $.cometd.init(url); $.cometd.publish(/some/topic,{ some:object }); $.cometd.subscribe(/some/topic,function(obj){ console.log(obj.data); // [object some:object] }); no ETA, I'm really just playing around with it. Big fan of comet though personally, would love to see it adopted in the various toolkits. Regards, Peter Higgins On Tuesday 01 January 2008, Eridius wrote: This might or might not be what your looking for but if you want to keep pushing new content to a page you could use the JHeartbeat plugin http://www.jasons-toolbox.com/JHeartbeat/ coughlinsmyalias wrote: Hey all, I am wondering is it possible with jQuery or any other plugin to have say real time results on a page. To do say see what other changes are being made as you are on the screen? Or any with a tad bit delay of a couple of seconds? Thanks! Ryan- Ocultar texto de la cita - - Mostrar texto de la cita -
[jQuery] Superfish Menus - Including Dynamic Navigation Arrows
Hi all and Joel. Is there a version of Superfish that uses jquery generated arrows (using dynamically created classes) for submenus that contain further content? (this page would be an example: http://sperling.com/examples/menuh/ ) Thanks!
[jQuery] Re: Help With Odd ID Search
That did it. Thank you so much! I've been trying to escape the colon using one slash :p Thanks again! - Nick On Jan 7, 3:08 pm, Jonathan Sharp [EMAIL PROTECTED] wrote: Try escaping the colon: $(#itemForm\\:standards select:last) Cheers, -Jonathan On 1/7/08, npetcu [EMAIL PROTECTED] wrote: I'm updating some of the legacy software we have at my company and changing much of the JavaScript to jQuery. I'm having a bit of trouble with a few particular id's however. I'm trying to access the last select element of a block of code and retrieve the id like this: $(#itemForm:standards select:last).attr(id); itemForm:standards is the id of the block I'm attempting to access, and I'm using select:last to get the last select element. This doesn't work however. I tried the same method, but used the class name rather than the id and the function worked fine. $(.standardsBlock select:last).attr(id); I may be mistaken, but I think jQuery thinks I'm attempting to apply a selector to the id name because of the colon in the name. How would I go about searching for an id like that? Has anyone had any trouble with this before? Any help would be much appreciated. -- npetcu
[jQuery] Re: LIVE jQuery
Peter..when you say: fwiw, I have been considering porting the dojox.cometd client to jQuery-plugin-like code. Do you mean its not a jQuery plugin yet? Looking more in to that and am still kind of confused how to make the whole say be live would every event have to be wrapped in say a function to do so? Thank you so much, RYan On Jan 6, 7:30 pm, Peter E Higgins [EMAIL PROTECTED] wrote: For whatever reason the magnet post didn't get pushed to my client, but I wanted to chime in. fwiw, I have been considering porting the dojox.cometd client to jQuery-plugin-like code. but as far as I know, the only real javascript implementation of comet client is the dojo 1.x one. DWR has a java client as well, which is cool at a glance, but I've not had any chance to play with it. i use twistd comet server and dojox.cometd a lot. It love it. and the API is very simple, the jQuery would look something like: $.cometd.init(url); $.cometd.publish(/some/topic,{ some:object }); $.cometd.subscribe(/some/topic,function(obj){ console.log(obj.data); // [object some:object] }); no ETA, I'm really just playing around with it. Big fan of comet though personally, would love to see it adopted in the various toolkits. Regards, Peter Higgins On Tuesday 01 January 2008, Eridius wrote: This might or might not be what your looking for but if you want to keep pushing new content to a page you could use the JHeartbeat plugin http://www.jasons-toolbox.com/JHeartbeat/ coughlinsmyalias wrote: Hey all, I am wondering is it possible with jQuery or any other plugin to have say real time results on a page. To do say see what other changes are being made as you are on the screen? Or any with a tad bit delay of a couple of seconds? Thanks! Ryan
[jQuery] Re: [ANNOUNCE] Cornerz - Bullet Proof Curved Corners using Canvas/VML
This is awesome. I think I might replace the curvy corners on my site with this. I think the canvas method is just too cool. Glen On Jan 7, 2008 4:14 PM, weepy [EMAIL PROTECTED] wrote: Hey, what happened to bulletproof?? :-) It will be :) . In fact it now works on Mac/Safari Regarding combining the 2 plugins - I don't think this will be possible, since they both work in entirely different ways. On Jan 7, 11:16 pm, Mike Alsup [EMAIL PROTECTED] wrote: Jonah, This looks really great! Issues # IE6 has some slight problems with the VML in some cases # Mac/Safari doesn't work (Windows Safari is fine) Mike
[jQuery] Re: jQuery 1.2.2? btw...
On Jan 7, 8:27 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm using the beta and it's much more performant than the 1.2.1 and I got no bugs so far... some intensive js scripts have decreased my cpu load to even half in some cases, There are typos in your subject line, it should read: jQuery 1.2.2, ftw!!! ... ;-) Charles
[jQuery] Re: Superfish Menus - Including Dynamic Navigation Arrows
I might be misunderstanding, but the arrows in the example link are not done with javascript - it's just css (from the linked page): #menuh a.top_parent, #menuh a.top_parent:hover /* attaches down-arrow to all top-parents */ { background-image: url(navdown_white.gif); background-position: right center; background-repeat: no-repeat; } #menuh a.parent, #menuh a.parent:hover /* attaches side-arrow to all parents */ { background-image: url(nav_white.gif); background-position: right center; background-repeat: no-repeat; } Basically, you're just setting a background image for 'parent' LI's. Unless you're looking for javascript to determine if an LI contains a UL, and then assign a class? Robin Rowell wrote: Hi all and Joel. Is there a version of Superfish that uses jquery generated arrows (using dynamically created classes) for submenus that contain further content? (this page would be an example: http://sperling.com/examples/menuh/ ) Thanks! -- View this message in context: http://www.nabble.com/Superfish-Menus---Including-Dynamic-Navigation-Arrows-tp14678621s27240p14680109.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Sever Push - live site
I am not sure. It is dependent on how your PHP backend works. Looking at your demo I see that when I move a word, it is POSTed to store.php, is that then entered into a database? stored in a flat file? held in memory with magic? Regardless, the idea is that in words.php (say, words.php?waitForUpdate=true), would loop until either your database; flatfile; or magic storage is updated, then return the results and start a new waiting connection. On Jan 7, 2008 2:10 PM, coughlinsmyalias [EMAIL PROTECTED] wrote: Thank you! After going through your code when I go to: keepLive.php?wait=e I get: 1199743545 And when i load the HTML page, I get no input and no errors, with my code below: html head script src=js/jquery-1.2.1.pack.js type=text/javascript/script script jQuery(function() { $('input#hurumph').click(function() { $.ajax( { url: 'keepLive.php?wait=' + $('#in').val(), success: function(sReturn) { $('span#time').html(sReturn); } }); }); }); /script /head body What time is it in#160;input id=in/ #160;seconds#160;input type=button value=? id=hurumph/ br/ ?:#160;span id=time/ /body /html Here is my new code: http://pastie.caboo.se/136398 that is the code that i am trying to implement it with. To see other peoples action on the site, in that case what would be my PHP be? I have been at many many articles on this and just need some one on one for explanation. Thanks for that demo! On Jan 6, 10:01 pm, Morgan Allen [EMAIL PROTECTED] wrote: A simple way to do this in PHP is using a loop to wait for an event, and return if and when it does. Otherwise the connection times out, and the client (web browser using XMLHttpRequest) reconnects. A really simple demonstration can be seen by just doing an ajax request to a php script that sleep()'s. Here is an example. ?php if($_REQUEST['wait']) { sleep($_REQUEST['wait']); echo time(); die(); } ? html head script src=/js/jquery.js type=text/javascript/script script jQuery(function() { $('input#hurumph').click(function() { $.ajax( { url: 'index.php?wait=' + $('#in').val(), success: function(sReturn) { $('span#time').html(sReturn); } }); }); }); /script /head body What time is it in#160;input id=in/#160;seconds#160;input type=button value=? id=hurumph/ br/ ?:#160;span id=time/ /body /html Just takes a simple input and wait the given amount of time. You can see from this that you could easily wait for any other sort of event. Like another user making and update. At that the point the connection get closed, and the client just restarts it. On Jan 6, 2008 3:56 PM, coughlinsmyalias [EMAIL PROTECTED] wrote: Hey all, i have been researching googling and many other ways to try to find out how to make my site as close to live as I can. I read this by John:http://ejohn.org/blog/streaming-http-server-push/ but am still kind of confused. My site is: http://rksdesignstudios.com/magnet/ - Drag a word - Add a word - Delete And many features to come, etc. I want to make it like you can seeo ther changes being made..stuff being dragged, any idea how to do this? I have been STUMPED on this. Thanks! Ryan --http://morglog.alleycatracing.com Lets make up more accronyms! http://www.alleycatracing.com LTABOTIIOFR! ROFL! ROFL! ROFL! Upcoming alley cats, reviews, touring logs, and a general congregation of bike nerdity. -- http://morglog.alleycatracing.com Lets make up more accronyms! http://www.alleycatracing.com LTABOTIIOFR! ROFL! ROFL! ROFL! Upcoming alley cats, reviews, touring logs, and a general congregation of bike nerdity.
[jQuery] Re: Loading animation when waiting JQuery.post() to return
I think what you might be after are ajaxStart and ajaxStop: http://docs.jquery.com/Ajax/ajaxStart#callback http://docs.jquery.com/Ajax/ajaxStop#callback That could start and then stop something like an animated gif that would overlay the page until the ajax request was finished. Getting the animation, styling it, etc. is all just css and usual hide/show, etc. -jody
[jQuery] Re: $('table tr').hover() not working in IE
$('table tr').hover( function() {$(this).addClass('hover');}, function() {$(this).removeClass('hover'); }); This is my CSS: tr.hover {background-color:#E6;} tr.hover a{color: #4F839F} tr.hover a:hover{background:none; font-weight:bold; color: #4F839F} This works fine in Firefox - it turns the background color light blue and sets the links inside that tablerow to a darkblue. In Internet Explore 7.0 (possibly others, but i havent tested in older ones yet) it only changes the color of the links - it does NOT change the color of the tablerow background-color. Bryan, Based on the snippets you provided this works fine for me in IE6 and IE7 (Firefox and Safari too). Perhaps there is a conflict with other style rules in your stylesheet. --dave
[jQuery] Re: Sever Push - live site
Opps, meant to add more here. Hope this helps you, please ask more detail questions if not, I am doing a lot of work right now with Comet. Server Push methods, and Bayuex, and am currently working to bring Comet to jQuery. So any ideas for usage will help me make my plugin useful to the jQuery masses. On Jan 7, 2008 3:33 PM, Morgan Allen [EMAIL PROTECTED] wrote: I am not sure. It is dependent on how your PHP backend works. Looking at your demo I see that when I move a word, it is POSTed to store.php, is that then entered into a database? stored in a flat file? held in memory with magic? Regardless, the idea is that in words.php (say, words.php?waitForUpdate=true), would loop until either your database; flatfile; or magic storage is updated, then return the results and start a new waiting connection. On Jan 7, 2008 2:10 PM, coughlinsmyalias [EMAIL PROTECTED] wrote: Thank you! After going through your code when I go to: keepLive.php?wait=e I get: 1199743545 And when i load the HTML page, I get no input and no errors, with my code below: html head script src=js/jquery- 1.2.1.pack.js type=text/javascript/script script jQuery(function() { $('input#hurumph').click(function() { $.ajax( { url: 'keepLive.php?wait=' + $('#in').val(), success: function(sReturn) { $('span#time').html(sReturn); } }); }); }); /script /head body What time is it in#160;input id=in/ #160;seconds#160;input type=button value=? id=hurumph/ br/ ?:#160;span id=time/ /body /html Here is my new code: http://pastie.caboo.se/136398 that is the code that i am trying to implement it with. To see other peoples action on the site, in that case what would be my PHP be? I have been at many many articles on this and just need some one on one for explanation. Thanks for that demo! On Jan 6, 10:01 pm, Morgan Allen [EMAIL PROTECTED] wrote: A simple way to do this in PHP is using a loop to wait for an event, and return if and when it does. Otherwise the connection times out, and the client (web browser using XMLHttpRequest) reconnects. A really simple demonstration can be seen by just doing an ajax request to a php script that sleep()'s. Here is an example. ?php if($_REQUEST['wait']) { sleep($_REQUEST['wait']); echo time(); die(); } ? html head script src=/js/jquery.js type=text/javascript/script script jQuery(function() { $('input#hurumph').click(function() { $.ajax( { url: ' index.php?wait=' + $('#in').val(), success: function(sReturn) { $('span#time').html(sReturn); } }); }); }); /script /head body What time is it in#160;input id=in/#160;seconds#160;input type=button value=? id=hurumph/ br/ ?:#160;span id=time/ /body /html Just takes a simple input and wait the given amount of time. You can see from this that you could easily wait for any other sort of event. Like another user making and update. At that the point the connection get closed, and the client just restarts it. On Jan 6, 2008 3:56 PM, coughlinsmyalias [EMAIL PROTECTED] wrote: Hey all, i have been researching googling and many other ways to try to find out how to make my site as close to live as I can. I read this by John: http://ejohn.org/blog/streaming-http-server-push/ but am still kind of confused. My site is: http://rksdesignstudios.com/magnet/ - Drag a word - Add a word - Delete And many features to come, etc. I want to make it like you can seeo ther changes being made..stuff being dragged, any idea how to do this? I have been STUMPED on this. Thanks! Ryan --http://morglog.alleycatracing.com Lets make up more accronyms! http://www.alleycatracing.com LTABOTIIOFR! ROFL! ROFL! ROFL! Upcoming alley cats, reviews, touring logs, and a general congregation of bike nerdity. -- http://morglog.alleycatracing.com Lets make up more accronyms! http://www.alleycatracing.com LTABOTIIOFR! ROFL! ROFL! ROFL! Upcoming alley cats, reviews, touring logs, and a general congregation of bike nerdity. -- http://morglog.alleycatracing.com Lets make up more
[jQuery] Re: Sever Push - live site
Ahh..I see how it works..well a better idea anyway. How that talks with the PHP. At my site that I posted above..how would something like that work? set up an event? Because I want each drag sequence to show on the page and keep it updated along with adding words, etc. Thank you - http://pastie.caboo.se/136398 Seeing that example was a help thank you! Ryan IGNORE THAT LAST MESSAGE, I got it :) On Jan 6, 10:01 pm, Morgan Allen [EMAIL PROTECTED] wrote: A simple way to do this in PHP is using a loop to wait for an event, and return if and when it does. Otherwise the connection times out, and the client (web browser using XMLHttpRequest) reconnects. A really simple demonstration can be seen by just doing an ajax request to a php script that sleep()'s. Here is an example. ?php if($_REQUEST['wait']) { sleep($_REQUEST['wait']); echo time(); die(); } ? html head script src=/js/jquery.js type=text/javascript/script script jQuery(function() { $('input#hurumph').click(function() { $.ajax( { url: 'index.php?wait=' + $('#in').val(), success: function(sReturn) { $('span#time').html(sReturn); } }); }); }); /script /head body What time is it in#160;input id=in/#160;seconds#160;input type=button value=? id=hurumph/ br/ ?:#160;span id=time/ /body /html Just takes a simple input and wait the given amount of time. You can see from this that you could easily wait for any other sort of event. Like another user making and update. At that the point the connection get closed, and the client just restarts it. On Jan 6, 2008 3:56 PM, coughlinsmyalias [EMAIL PROTECTED] wrote: Hey all, i have been researching googling and many other ways to try to find out how to make my site as close to live as I can. I read this by John:http://ejohn.org/blog/streaming-http-server-push/ but am still kind of confused. My site is: http://rksdesignstudios.com/magnet/ - Drag a word - Add a word - Delete And many features to come, etc. I want to make it like you can seeo ther changes being made..stuff being dragged, any idea how to do this? I have been STUMPED on this. Thanks! Ryan --http://morglog.alleycatracing.com Lets make up more accronyms! http://www.alleycatracing.com LTABOTIIOFR! ROFL! ROFL! ROFL! Upcoming alley cats, reviews, touring logs, and a general congregation of bike nerdity.
[jQuery] Re: Persistent menu using cookies based rather than location based
I am having a similar issues and as of yet nobody has been able to give me a solution :( It seems like it should be a pretty straight forward problem, and lot's of people are asking for help with it, so where are the experts (that know how to communicate to us non- experts)??? Still wondering, - Jonny On Jan 5, 7:12 am, Mali [EMAIL PROTECTED] wrote: Hi, I am fairly new to jquery but I have been practicing for a month. I would like to create a jquery persistentmenu. I've been searching for a perfect solution but could not find one. I have start with a basicmenuhttp://www.ecommercewebtemplates.net/test/test.html Themenuis expanded / collapsed when you click on span tag. However, it's collapsed again when you click any link to another page. This is not what I want. So I created another one using location based :http://www.ecommercewebtemplates.net/test/jquery-menu-location-based It's very basic if you click to view the source code . OK the location basedmenuworks but still not perfect for users because div tag is expanded only if user click on the link that belong to it. I want to have a persistentmenuthat remember the last states (expanded or collapsed). If user click to expand both 'Span A' and 'Span B' without collapsing them then it should stay open when the next page is loaded. I have had a look at the example fromhttp://www.dynamicdrive.com/dynamicindex1/slashdot.htm but their cookies is too complex to understand. How do I make a persistent jQuerymenuthat remember the last action? is the cookies based the best solution? Your suggestion/help would be very appreciated. Mali
[jQuery] Re: Loading animation when waiting JQuery.post() to return
I think what you might be after are ajaxStart and ajaxStop: http://docs.jquery.com/Ajax/ajaxStart#callback http://docs.jquery.com/Ajax/ajaxStop#callback That could start and then stop something like an animated gif that would overlay the page until the ajax request was finished. Getting the animation, styling it, etc. is all just css and usual hide/show, etc. There is a plugin called BlockUI that does this very thing quite nicely. -- Josh
[jQuery] Re: Superfish Menus - Including Dynamic Navigation Arrows
This isn't Superfish specifically, though I did write it based very largely on the original Suckerfish, with enhancements. http://beta.ksscholl.com/jquery/suckerfish.html Kevin On Jan 7, 5:04 pm, Robin Rowell [EMAIL PROTECTED] wrote: Hi all and Joel. Is there a version of Superfish that uses jquery generated arrows (using dynamically created classes) for submenus that contain further content? (this page would be an example:http://sperling.com/examples/menuh/ ) Thanks!
[jQuery] Can JQuery support iCab 3 (for legacy Mac OS9)
We have some users still running OS9, I would like to know if any OS9 users here can confirm if JQuery (1.2x) support iCab 3, so we can advise them to use this browser. http://www.icab.de/dl.php Thanks.
[jQuery] Re: Superfish Menus - Including Dynamic Navigation Arrows
Hi Robin, You can always control the Sub Level arrows by a new CSS class. You can get the extra class into your nav via jQuery without needing to edit Joels script, by just adding... $(document).ready(function(){ // normal Superfish Call $(ul.nav).superfish({ hoverClass: sfHover, delay : 750, animation : {opacity:show}, speed : 250 }); // navigation add subfish to indicate more navigation $('.nav li li:has(ul) a').addClass('subfish'); }); Then just edit your CSS by adding... .nav a.subfish {background:url(nav-bg-sub-fish.png) no-repeat;} .nav a.subfish:focus,.nav a.subfish:hover,.nav a.subfish:active {color:#347094;background:url(nav-bg-sub-sub.png) no-repeat 0 -24px;} Obvioulsy changing names and variables as you need. Its all in the CSS not so much the script at all. I have an example http://jquerystuff.net/random/superfish/ if that helps explain. Cheers Stephen