[jQuery] Re: Open by URL?
Oops, you're right. I answered waseem's message without looking at the OP. On Jun 10, 6:00 pm, mkmanning wrote: > I think the answers, though informative, have gotten off track. If you > want to open a specific DIV based on the hash in the URL, just use: > > var div = window.location.hash; > > $(div).show(); > > You should put the necessary checks to make sure there is in fact a > hash in the url, etc. > > On Jun 10, 3:24 am, Bennobo wrote: > > > > > Can I teach jquery to open a specific by URL? > > > Example:http://www.domain.com/help/faq#107 > > > The FAQ Entry with ID 107 should open immediatly when I go to this > > URL. (show/hide) > > > Have a nice day! > > Bennobo
[jQuery] Re: Using each() for multiple $('table') elements
There must be an error somewhere else, your code works fine: http://jsbin.com/uyiba On Jun 10, 4:49 pm, Panman wrote: > I know this is a easy fix, I'm doing something wrong... > > I've selected multiple tables and tried to use each for applying > cornering to each table. Inside the callback function, I try to find > the first/last table cells to apply cornering for each corner. > However, when there are multiple tables it looks at _all_ the tr > elements for the first/last rows. See example code: > > // Add cornering to tables > $('table.corner-me').addClass('ui-corner-all').each(function(){ > var $table = $(this); > $table.find('tr:first :first-child').addClass('ui-corner-tl'); > $table.find('tr:first :last-child').addClass('ui-corner-tr'); > $table.find('tr:last :first-child').addClass('ui-corner-bl'); > $table.find('tr:last :last-child').addClass('ui-corner-br'); > > }); > > > > Header 1 > Header 2 > > > Data A1 > Data B1 > > > Data A2 > Data B2 > > > > > > Data A1 > Data B1 > > > Data A2 > Data B2 > > > Data A3 > Data B3 > >
[jQuery] Re: Get var $_FILES with jquery
The IFrame method seems to be very popular. On Wed, Jun 10, 2009 at 9:46 PM, Boldewyn wrote: > > Hi, > > it's a security feature, that Javascript is not allowed to access > local files let alone upload them to a server. That is, with > Javascript you can't even access the value of an > field. > > But if you make up a form with an field, where > the user can choose a file, you can at least submit it via JS, and, > embedded in an you could perhaps be lucky and need no > complete page reload (I think, that is the mentioned iframe solution). > > Cheers, > Boldy > > On 10 Jun., 15:11, animafac wrote: > > Hy, > > > > Sorry for my english but i'm frensh. > > > > I have a question and is it possible to get the value of upload file > > in a form with the $_FILES in php because in jquery we get the POST > > value. > > > > $.post("test.php", > >{ name: "John", time: "2pm" }, > >function(data){ > > alert(data); > >} > > ); > > > > Thank for help >
[jQuery] Re: Chained Autocomplete selects
I'd look at the autocomplete plugin here http://github.com/ReinH/jquery-autocomplete/tree/master and a decent write up here : http://www.bigredswitch.com/blog/2008/11/jquery-autocomplete-plugin/ I used this tiny plugin as a kind of prototype when I wrote cascade. Incidentally, I have a few fixes to cascade to push out (dynamic ajax, etc) if you need it. Personally, I wouldn't use a select tag for that many options, but would opt for autocomplete. You can use the same datasource (JSON) and bind similar behavior on the autocomplete box. mike On Jun 10, 9:45 pm, netcomp wrote: > Hi there. I have a page that loads two other pages in with load. In > one of the files there are two select lists, chained together using > the Cascade plugin. I have embedded the Cascade plugin in the page > that gets loaded. This works fine. > > However, the first list contains upwards of 2200 items and people are > having trouble finding the proper choice. So now I need to add a > filter or auto complete functionality. > > I'm having a problem getting the wheels rolling on this one...anyone > have an example or suggestion of how I can accomplish both tasks? The > current lists are fed by a JSON file I generate dynamically. > > TIA
[jQuery] Chained Autocomplete selects
Hi there. I have a page that loads two other pages in with load. In one of the files there are two select lists, chained together using the Cascade plugin. I have embedded the Cascade plugin in the page that gets loaded. This works fine. However, the first list contains upwards of 2200 items and people are having trouble finding the proper choice. So now I need to add a filter or auto complete functionality. I'm having a problem getting the wheels rolling on this one...anyone have an example or suggestion of how I can accomplish both tasks? The current lists are fed by a JSON file I generate dynamically. TIA
[jQuery] codes between head section.
I was asked to add gallery plugin to an existing website. I followed every instruction in gallery plugin's website but I am confused at one point. There are some codes, I need to add between . There problem is, there are some codes there for other plugins already. Can you please tell me where to add new codes in here. Existing codes: var query = new Object(); window.location.search.replace( new RegExp( "([^?=&]+)(=([^&]*))?", 'g' ), function( $0, $1, $2, $3 ){ query[ $1 ] = $3; } ); easing = query['e'] || 'Expo'; function loadEasing(e) { location.href = location.pathname+'?e='+e; } function setEasing(e) { loadLamps(e); } // for dynamic easing changes function loadLamps(easing) { $('#lavaLampBorderOnly').lavaLamp({ fx: 'easeInOutExpo'+easing, speed: 1000, autoReturn: false }); } $(function() { //OVERLAY IMAGES // setup triggers $("a[rel]").each(function(i) { $(this).overlay({ // common configuration for each overlay oneInstance: false, closeOnClick: true, expose: '#00', finish: {top: 'center'}, }); }); }); New codes that I need to add: ///GALLERY // We only want these styles applied when javascript is enabled // $('div.navigation').css({'width' : '300px', 'float' : 'left'}); // $('div.content').css('display', 'block'); // Initially set opacity on thumbs and add // additional styling for hover effect on thumbs var onMouseOutOpacity = 0.67; $('#thumbs ul.thumbs li').css('opacity', onMouseOutOpacity) .hover( function () { $(this).not('.selected').fadeTo('fast', 1.0); }, function () { $(this).not('.selected').fadeTo('fast', onMouseOutOpacity); } ); $(document).ready(function() { // Initialize Advanced Galleriffic Gallery var galleryAdv = $('#gallery').galleriffic('#thumbs', { delay: 2000, numThumbs: 3, preloadAhead: -1, enableTopPager: false, enableBottomPager: false, imageContainerSel: '#slideshow', controlsContainerSel: '#controls', captionContainerSel:'#caption', loadingContainerSel:'#loading', renderSSControls: false, renderNavControls: true, playLinkText: 'Play Slideshow', pauseLinkText: 'Pause Slideshow', prevLinkText: '', nextLinkText: '', nextPageLinkText: 'Next ›', prevPageLinkText: '‹ Prev', enableHistory: false, autoStart: false, onChange: function(prevIndex, nextIndex) { $('#thumbs ul.thumbs').children() .eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end() .eq(nextIndex).fadeTo('fast', 1.0); }, onTransitionOut: function(callback) { $('#cap
[jQuery] Re: Find text (nodes) within an element?
quick note of caution about this one: $('label').text().substr(-1) === "F"; .substr() won't work with a negative index in IE6 and 7 (maybe 8, too?). It'll return the full string. Use .slice(-1) instead. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 10, 2009, at 7:23 PM, mkmanning wrote: Here's a couple other ways: /F$/.test($('label').text()); or $('label').text().substr(-1) === "F"; On Jun 10, 3:24 pm, ldexterldesign wrote: Easy guys, A B C D E F Anyone got any tips on how to find out if the last letter of my label is 'F'? Cheers, L
[jQuery] Re: Sortable Gallery?
Maybe this is the tutorial: http://nettuts.com/tutorials/javascript-ajax/creating-a-filterable-portfolio-with-jquery/ - Jack James wrote: Hey all, I am new to jquery. Managed so far to get a carousel up and going, some tabbed interfaces etc. Nothing spectacular. A week or so ago, I found a tutorial on how to build something like this (http://jasonsantamaria.com/portfolio/) in jquery. Basically a group of thumbnails, each given a category id, that corresponds to the right nav, that then sorts and displays the thumbnails according to user selection. Anyone know of an existing tute out there for something like that? or know what current jquery library item I should look at to build something similar? Appreciate any assistance. Thanks James
[jQuery] Eclipse 3.4 w/ jQuery 1.6 - $ cannot be resolved - Why?
For the life of me I cannot figure out why $ can't be resolved. Wel, yaeh I can, I did search the jQuery files and I could not find a definition for $. I found _$ and _jQuery, but not the symbol "$" without the "_". I shouldn't have to define this myself... what gives? cb
[jQuery] ajaxForm strangeness
I have been using the ajaxForm plugin successfully for several months and love it! I have a very strange situation. I am submitting the form and the beforeSubmit and success callback functions are both firing, however the form is not being submitted. I am watching for the submit php file to come up in firebug but it never does, however the calls in the success section are being fired.
[jQuery] Re: Safari and Chrome code execution problem
I'm also looking for a solution to a similar problem I'm having. I'm using Facebox to load modal popups. Then, using jquery, I'm swaping before/after images when you hover over the image which is loaded in the modal popup. Everything works fine except for the before/ after hover effect. This works in all tested browsers except Safari and Chrome. It looks like Safari may not even be executing the code. I did a try/catch with a simple jquery line, and I don't get the error, but I also don't get the effect. Anyone know what to do?
[jQuery] Sortable Gallery?
Hey all, I am new to jquery. Managed so far to get a carousel up and going, some tabbed interfaces etc. Nothing spectacular. A week or so ago, I found a tutorial on how to build something like this (http://jasonsantamaria.com/portfolio/) in jquery. Basically a group of thumbnails, each given a category id, that corresponds to the right nav, that then sorts and displays the thumbnails according to user selection. Anyone know of an existing tute out there for something like that? or know what current jquery library item I should look at to build something similar? Appreciate any assistance. Thanks James
[jQuery] Refreshing .load with .fadeIn (php/jQuery chatt)
Hello jQuery people! I just started with jQuery and it's awesome. But im having some trouble while building this php/jQuery chat. Thought you might be able to help. So, my idea was to build a chatt with php and jQuery, and guess what? It works perfectly! But after hours of watching diffrent jQuery effects i wanted to add these to my chat. The setup is as follows jQuery code var refreshId = setInterval(function() { $('.chattFonster').load('mainChatt.php'); }, 1000); --- html code --- mainChatt.php - $(document).ready(function() { $(".chatt").fadeIn(); }); "; ?> : ". $db['meddelande'] .""; ?> -- Forgive me for the messy-ness, but when testing out new stuff it easily tend to be quite messy >:) Anyhow, you can see my failed attemp here. But this actually somewhat works. When a new message is entered, it starts to fadeIn. Though... it keeps fadeing in everytime my .load is refreshed. What i want is that the latest message only fades in once. Any help? :)
[jQuery] Ajax Failing in Firefox 3.0.10
I have the following code (actually, this is stripped down for clarity though the functionality is the same): delete $("#delete_item_2").click(function(e){ alert("before post"); $.post("/items/delete/2/"); alert("after post"); }); This works in IE and Safari but bombs in Firefox (though both alerts are triggered). However, it works OK in Firefox to just enter the post url in the browser (i.e., www.example.com/items/delete/2/). Further, this works locally on my dev server but not on my production host; I am running under Apache with jQuery 1.3.2. Just on the off chance that someone else has noticed this, I am running under Django on a Webfaction shared host. Any thoughts? - Tim
[jQuery] Re: Find text (nodes) within an element?
Awesome, thanks guys. I haven't tested it yet, but a Twitter follower of mine added this earlier, just for everyone's reference: $('label').text().slice(-1)=="F" Cheers again, I'll check all your examples out tomorrow. L On Jun 11, 12:23 am, mkmanning wrote: > Here's a couple other ways: > > /F$/.test($('label').text()); > > or > > $('label').text().substr(-1) === "F"; > > On Jun 10, 3:24 pm, ldexterldesign wrote: > > > Easy guys, > > > A B C D E F > > > Anyone got any tips on how to find out if the last letter of my label > > is 'F'? > > > Cheers, > > L
[jQuery] Re: Superfish: 3rd submenu
this response refers to a specific use in a CMS, in this case Joomla. Admin of a menu in a CMS has nothing to do with extensibility of the markup or script functionality. you can extend the markup virtually indefinitely without any css or script mods by continuous nesting of UL's. Of course there are limits on viewport and reasonable user experience that would come in to play after a while Rafael Vargas wrote: Hello Jeremy, I don't know the limit, but the levels are created on the "menu item manager". I just created a chain of menu and submenu items just by assigning the "parent item". This is done in Joomla : - Under Menu, select your menu. "Top menu" for example. The "menu item manager" opens. - There should be at least two items; lets imagine there is a "home", an "intro" and a "board" item. Click on the "intro" item and the "menu item edit" opens. - On the "menu item details" section, go to the box that says "parent item" and select "home". Save, and this will return you to "menu item manager". You should see that "intro" is now an item under "home". If you repeat the process for "board" and assign "intro" as the parent, then the "menu item manager" will show "board" under "intro", under "home". This is now the "Top menu". Now go to "module manager" and click on the "Superfish menu". On "Module parameters"->"Menu name", select the ID that identifies the top menu (in my case is the word "topmenu"). Apply or save, then preview. Best regards. rafa. On Wed, Jun 10, 2009 at 2:55 PM, Jeremywrote: I see a few post about this, but how does one extend Superfish to accept a third level? In my experience it cuts is limited to two submenus.
[jQuery] Re: Superfish: 3rd submenu
Hello Jeremy, I don't know the limit, but the levels are created on the "menu item manager". I just created a chain of menu and submenu items just by assigning the "parent item". This is done in Joomla : - Under Menu, select your menu. "Top menu" for example. The "menu item manager" opens. - There should be at least two items; lets imagine there is a "home", an "intro" and a "board" item. Click on the "intro" item and the "menu item edit" opens. - On the "menu item details" section, go to the box that says "parent item" and select "home". Save, and this will return you to "menu item manager". You should see that "intro" is now an item under "home". If you repeat the process for "board" and assign "intro" as the parent, then the "menu item manager" will show "board" under "intro", under "home". This is now the "Top menu". Now go to "module manager" and click on the "Superfish menu". On "Module parameters"->"Menu name", select the ID that identifies the top menu (in my case is the word "topmenu"). Apply or save, then preview. Best regards. rafa. On Wed, Jun 10, 2009 at 2:55 PM, Jeremy wrote: > > I see a few post about this, but how does one extend Superfish to > accept a third level? In my experience it cuts is limited to two > submenus. >
[jQuery] Re: Find text (nodes) within an element?
Here's a couple other ways: /F$/.test($('label').text()); or $('label').text().substr(-1) === "F"; On Jun 10, 3:24 pm, ldexterldesign wrote: > Easy guys, > > A B C D E F > > Anyone got any tips on how to find out if the last letter of my label > is 'F'? > > Cheers, > L
[jQuery] Re: Find text (nodes) within an element?
$(document).ready(function(){ var string = $.trim( $('label').text() ) var lastIndex = string.length - 1 if ( string.charAt(lastIndex) == "F" ) { alert('BINGO!') } else { alert('FAIL!') } }); Maurício -Mensagem Original- De: ldexterldesign Para: jQuery (English) Enviada em: quarta-feira, 10 de junho de 2009 19:24 Assunto: [jQuery] Find text (nodes) within an element? Easy guys, A B C D E F Anyone got any tips on how to find out if the last letter of my label is 'F'? Cheers, L
[jQuery] Update html attribute listener?
I apologize ahead of time, im new to jQuery so please bear with me... What im trying to do is print a link with a html relationship property that would be generated dynamically. var relvar = $('p.active').attr('rel'); $("div.test").html("hello"); $("p").click(function () { $(this).toggleClass("active"); }); When the page loads, the paragraph does not currently have the class "active" assigned to it, therefore the link that is bring printed in the div.test does not print the relationship property. Im assuming I have to use some type of event listener? How do I make it to where when you click the paragraph, and it inherits the class "active" that the link in the div.test prints its rel tag correctly? Thanks, Anthony
[jQuery] Re: Fairly new to animation. Hold my hand please, hehe?
Cheers Liam. That makes sense, yea. L On May 19, 2:51 pm, Liam Byrne wrote: > Browser can only do what they're told when combined with some basic > facts and inbuilt assumptions. > > This was done in one of the jQuery libraries to recalculate the RGB > colours from starting-colour to finishing-colour, so it can be done; but > in that case each in-between colour already existed. > > If you (or someone else) defined and inbuilt the "tweens" from "block" > to "inline", and there was a standards-compliant application for each of > these, then maybe. > > But let's say the "tween" involved changing a letter at a time; > display:inline .. display:bnline .. display:blline display:block > > There is no defintion for "bnline", so it won't work. > > L > > ldexterldesign wrote: > > Browsers are clever these days - that's my answer, but yea, thanks for > > the clarification. I'll bear this in mind in the future. > > > Ended up with this page in the end:http://is.gd/ARvj > > >> Hit a service on the left, then; > >> Hit the 'Get a quote' button > >> I wanted the contact form to animate in, but it's OK how it is. Don't > >> suppose I have a choice > > > Thanks, > > L > > > On May 15, 2:00 pm, Liam Byrne wrote: > > >> Think of it logically. > > >> To animate a property, the computer needs to work out the in-between > >> stages (tweening) to show: > > >> e.g animate width from 10 to 20 = 11,12,13,14, etc > >> to animate opacity from 40% to 100% = 41%, 42%, 43%, etc > > >> You can also animate colours*, because behind-the-scenes they go from > >> #00 to #FF = 00, 01, 02..09, 0A, 0B..0F, 10, 11, etc > > >> What would you reckon the "tweens" from "inline" to "block" were ? > > >> L > > >> ldexterldesign wrote: > > >>> Hey Ricardo, > > >>> I thought this might be the case. Nothing to clarify on the jQuery > >>> website that I could find. Thanks for the tip - I'll bear that in mind > >>> for the future. > > >>> Cheers, > >>> L > > >>> On May 14, 11:25 pm, Ricardo wrote: > > dude, you can't animate from inline to block. For any width/height > animation to work correctly the element needs display:block from the > start. > > On May 14, 10:08 am, ldexterldesign wrote: > > > Hey guys, > > > Got a little script I've written. Would like to animate the appearance > > of the #sidebar2 to it's new block element state if possible ($ > > ('#sidebar2').css('display', 'block');). > > > // 'get a quote!' button is clicked > > $('.contactQuote').click(function(){ > > $('#content').css('width', '33%'); > > > > $('#sidebar2').css('display', 'block'); > > > $('.wpcf7').css('border', '3px solid #6ABC00'); > > return false; > > }); > > $('.wpcf7 input').focus(function(){ > > $('.wpcf7').css('border', 'none'); > > }); > > }); > > > What I've been experimenting with isn't working unfortunately :[ > > > // 'get a quote!' button is clicked > > $('.contactQuote').click(function(){ > > $('#content').css('width', '33%'); > > > > $('#sidebar2').animate({display: "block"}, 1000); > > > $('.wpcf7').css('border', '3px solid #6ABC00'); > > return false; > > }); > > $('.wpcf7 input').focus(function(){ > > $('.wpcf7').css('border', 'none'); > > }); > > }); > > > Any tips? > > > Cheers dudes, > > L > > > > > No virus found in this incoming message. > > Checked by AVG -www.avg.com > > Version: 8.5.329 / Virus Database: 270.12.31/2116 - Release Date: > > 05/15/09 06:16:00 > > > > > No virus found in this incoming message. > > Checked by AVG -www.avg.com > > Version: 8.5.339 / Virus Database: 270.12.34/2122 - Release Date: > > 05/19/09 06:21:00
[jQuery] Find text (nodes) within an element?
Easy guys, A B C D E F Anyone got any tips on how to find out if the last letter of my label is 'F'? Cheers, L
[jQuery] Re: jQuery Form Plugin with a submit button outside of the form
Yes valid markup rocks! I never thought of moving my form elements around like I did so I thought posting my temporary solution might be helpful to some. As I said temporary solution is the key phrase there. I was able to get one of my buttons working as needed but am having issues with my other button that has a showRequest and showResponse function associated with it. Below is the working code for my button when the button is placed inside the form element. What I want to do is move my submit button outside the form and have the form submitted via a click action. I tried moving my submit button outside the form and it still works just fine and dreamweaver is saying my code is valid. Also this seems to work in IE 7, FF, Safari and Chrome on my PC. If I was not working locally I would be more then happy enough to post my code for additional help/comments. My working code is below. $(document).ready(function() { var options = { beforeSubmit: showRequest, success: showResponse } $('#addNewTasks').ajaxForm(options); });// end document ready // pre-submitcallback function showRequest(formData, jqForm, options) { //alert('About to submit'); var formElement = jqForm[0]; return true; } // post-submitcallback function showResponse(responseText, statusText) { //alert('Submitted and will now show up once this alert is closed.'); $.get('includes/tasks.cfm',{},function(data){ $('#newTasks').html(data); $('ul:last').fadeIn("slow"); }) } Any help with it would be great! Thanx in advance. John
[jQuery] Superfish question about the code
I just installed Superfish on my Joomla site but I don't understand how to modify the code. I read the FAQ page: http://users.tpg.com.au/j_birch/plugins/superfish/#faq and it recommends all these javascript things to download, they are script/code/whatever you call it. I'm a total novice. I don't understand how to use the code to make the menus look nice on my site.
[jQuery] Superfish: 3rd submenu
I see a few post about this, but how does one extend Superfish to accept a third level? In my experience it cuts is limited to two submenus.
[jQuery] Re: Can Jquery parse an xml file?
This is of course dependant on whether or not you can read in the xml file via AJAX or some other means cheers Michael Lawson Development Lead, Global Solutions, ibm.com Phone: 1-276-206-8393 E-mail: mjlaw...@us.ibm.com 'Examine my teachings critically, as a gold assayer would test gold. If you find they make sense, conform to your experience, and don't harm yourself or others, only then should you accept them.' From: zweb To: "jQuery (English)" Date: 06/10/2009 05:18 PM Subject:[jQuery] Can Jquery parse an xml file? Can jquery be used to read/traverse a xml file? <><>
[jQuery] Re: Can Jquery parse an xml file?
Absolutely! The one area you can run into issues is with namespace prefixs, other than that though you should be good to go. Just use selectors as you would normally data > to grab the data text from this you would say $("node > book > author").text(); or you could just use $("author").text(); cheers Michael Lawson Development Lead, Global Solutions, ibm.com Phone: 1-276-206-8393 E-mail: mjlaw...@us.ibm.com 'Examine my teachings critically, as a gold assayer would test gold. If you find they make sense, conform to your experience, and don't harm yourself or others, only then should you accept them.' From: zweb To: "jQuery (English)" Date: 06/10/2009 05:18 PM Subject:[jQuery] Can Jquery parse an xml file? Can jquery be used to read/traverse a xml file? <><>
[jQuery] Can Jquery parse an xml file?
Can jquery be used to read/traverse a xml file?
[jQuery] Re: Open by URL?
I think the answers, though informative, have gotten off track. If you want to open a specific DIV based on the hash in the URL, just use: var div = window.location.hash; $(div).show(); You should put the necessary checks to make sure there is in fact a hash in the url, etc. On Jun 10, 3:24 am, Bennobo wrote: > Can I teach jquery to open a specific by URL? > > Example:http://www.domain.com/help/faq#107 > > The FAQ Entry with ID 107 should open immediatly when I go to this > URL. (show/hide) > > Have a nice day! > Bennobo
[jQuery] selector strangeness -- is this a bug or am I doing it wrong?
Hello, I'm getting inconsistant results across browsers with the following test: test.html === http://www.w3.org/TR/html4/strict.dtd";> http://ajax.googleapis.com/ ajax/libs/jquery/1.3/jquery.min.js"> var xml; $.ajax({ type: "GET", url: "data.xml", success: function(data){ var node = $("CI:first", data); var query1 = $("T TX", node).length; var query2 = $("T", node).find("TX").length; var msg = '$("T TX", node).length: ' + query1; msg += "\n"; msg += '$("T", node).find("TX").length: ' + query2; alert(msg); } }); data.xml === What should happen is this: - Load xml via ajax call - select an xml node: $("CI:first", data); - select a node within that node: $("T TX", node) - second selection should only come up with one "TX" tag However, in IE6 and IE8 (haven't tried IE7), the second selection seems to ignor the "node" context, and search the entire xml document. The test runs as expected in FireFox and Safari. Doing it this way works in IE $("T", node).find("TX"). Any explanations of why $("T TX", node) doesn't work in IE? thanks, -Morgan
[jQuery] Re: tabs and ajax
jquer - 1.3.2 jqueryui - 1.7.1 On May 30, 3:01 am, Klaus Hartl wrote: > Which version are you using? I've fixed a similiar bug (if not the > same) bug a while ago... > > --Klaus > > On 28 Mai, 19:30, nextpulse wrote: > > > I have 3 tabs that each loads using ajax (via href). > > The problem i am having is that while a tab is loading - the user can > > click on another tab (as they should). > > But the tab panel rendering then gets confused - depending how long > > the ajax takes or how quickly the tabs are clicked - the results can > > (and do) come back on a different panel. > > > Is this a bug or another way around this? > > > I don't want to disable the tab - as it is very reasonable for a user > > to click on the another tab while one is loading. > > > My current workaround is to avoid the ajax in the tab and make a call > > via the the 'select'. This works good - but then I lose all the nice > > features of the loader info on the tab display (and the cache).
[jQuery] Delay submenu from hidding
What I would like to have, is that once you have taken your mouse off the sub menu that it remains visible for a couple of second before disappearing. I got it to work, but there's still an issues that I would fix. You can see an example here -> [url]http://tijmensmit.com/dev/jquery/ menu.html[/url] It will only work for the about item. If the active-subnav class is present on the ul for the sub nav you will see a nice pink border. The problem is that once you have taken your mouse off the subnav and quickly go back again, it still removes the class from the UL. You can hover over the ul all you want, but it won't put the class back on the ul, unless you actually hover over the li in the subnav. So why would hovering over the li in the subnav make jquery place the active-subnav class back on to the ul, while hovering over the ul itself without moving over the li's has no effect? The first line of code cleary says if you hover over the li.test, ul.second-nav, ul.second-nav li add the class. But the hovering over the ul.second-nav doesn't seem to have any effect? Or am I doing this completely the wrong way? [code] $(document).ready(function() { $('#navigatie li.test, ul.second-nav, ul.second-nav li').hover (function() { $('ul.second-nav').addClass('active-subnav'); }, function() { var elem = $('ul.second-nav'); setTimeout( function() { $(elem).removeClass("active-subnav"); }, 3000); }); }); [/code]
[jQuery] Re: Open by URL?
There is a method in jQuery made specifically for that: $('#content').load("/help/faq #107"); That's all. Notice the white space between the hash. It's not a location hash anymore, but a selector that will filter the output. And the URL has to be in your own site, ajax doesn't work cross-domain. Docs: http://docs.jquery.com/Ajax/load#urldatacallback On Jun 10, 1:42 pm, waseem sabjee wrote: > do you mean extract a specific div from an external URL ? > if so this will work. > > $.ajax({ > URL : "http://www.domain.com/help/faq#107";, > success: function(html) { > var thediviwant = $("#topnav", html).html(); > $("body").prepend(thediviwant); > > > > } > }); > On Wed, Jun 10, 2009 at 4:43 PM, deltaf wrote: > > > Can you check the url during the ready() on the FAQ page and various > > click() events within the page to create this effect? > > > On Jun 10, 6:24 am, Bennobo wrote: > > > Can I teach jquery to open a specific by URL? > > > > Example:http://www.domain.com/help/faq#107 > > > > The FAQ Entry with ID 107 should open immediatly when I go to this > > > URL. (show/hide) > > > > Have a nice day! > > > Bennobo
[jQuery] Re: Cycle plugin help
> Hi! I found this wonderfull > plugin,http://www.malsup.com/jquery/cycle/int2.html > I want to built something like "pager", in the link. > I built it, but now I'd like to change something: i don't want a > progressive numeration, but Id' like to define a different text or > image customized, and not the "1" "2" "3"..ecc..of the example. You can customize the text however you like using the pagerAnchorBuilder option. Here's an example: http://www.malsup.com/jquery/cycle/pager14.html
[jQuery] Re: New Plugin: jQuery Finder (Mac-style 'Treeview' with Columns)
Has anyone tried to include a multi-select option with jQuery Finder? I'm thinking of trying checkboxes and adding a method that returns the selected items.
[jQuery] Re: Get var $_FILES with jquery
Hi, it's a security feature, that Javascript is not allowed to access local files let alone upload them to a server. That is, with Javascript you can't even access the value of an field. But if you make up a form with an field, where the user can choose a file, you can at least submit it via JS, and, embedded in an you could perhaps be lucky and need no complete page reload (I think, that is the mentioned iframe solution). Cheers, Boldy On 10 Jun., 15:11, animafac wrote: > Hy, > > Sorry for my english but i'm frensh. > > I have a question and is it possible to get the value of upload file > in a form with the $_FILES in php because in jquery we get the POST > value. > > $.post("test.php", > { name: "John", time: "2pm" }, > function(data){ > alert(data); > } > ); > > Thank for help
[jQuery] Using each() for multiple $('table') elements
I know this is a easy fix, I'm doing something wrong... I've selected multiple tables and tried to use each for applying cornering to each table. Inside the callback function, I try to find the first/last table cells to apply cornering for each corner. However, when there are multiple tables it looks at _all_ the tr elements for the first/last rows. See example code: // Add cornering to tables $('table.corner-me').addClass('ui-corner-all').each(function(){ var $table = $(this); $table.find('tr:first :first-child').addClass('ui-corner-tl'); $table.find('tr:first :last-child').addClass('ui-corner-tr'); $table.find('tr:last :first-child').addClass('ui-corner-bl'); $table.find('tr:last :last-child').addClass('ui-corner-br'); }); Header 1 Header 2 Data A1 Data B1 Data A2 Data B2 Data A1 Data B1 Data A2 Data B2 Data A3 Data B3
[jQuery] Re: Cycle plugin help
have you looked at the "even more advanced demos" on cycle site? If ever there was a plugin with a large variety of examples Cycle is it! You could at least find some examples that come close to what you want and be more specific about what it is you are trying to do by referencing them. Look at source code of examples also for the " how to..." ivanisevic82 wrote: Hi! I found this wonderfull plugin, http://www.malsup.com/jquery/cycle/int2.html I want to built something like "pager", in the link. I built it, but now I'd like to change something: i don't want a progressive numeration, but Id' like to define a different text or image customized, and not the "1" "2" "3"..ecc..of the example. How is possible to do this? Thank you!
[jQuery] Re: Get var $_FILES with jquery
They all still rely on server side scripts though On Wed, Jun 10, 2009 at 8:19 PM, James wrote: > > You can't upload files using AJAX (XHR), so using $.post cannot upload > a file for you. > There are workarounds to uploading files in an AJAX fashion mainly > using Flash or hidden IFRAME. > Just do a search on it and you'll find plenty of articles and scripts > for it. > > On Jun 10, 3:11 am, animafac wrote: > > Hy, > > > > Sorry for my english but i'm frensh. > > > > I have a question and is it possible to get the value of upload file > > in a form with the $_FILES in php because in jquery we get the POST > > value. > > > > $.post("test.php", > >{ name: "John", time: "2pm" }, > >function(data){ > > alert(data); > >} > > ); > > > > Thank for help >
[jQuery] Re: Get var $_FILES with jquery
You can't upload files using AJAX (XHR), so using $.post cannot upload a file for you. There are workarounds to uploading files in an AJAX fashion mainly using Flash or hidden IFRAME. Just do a search on it and you'll find plenty of articles and scripts for it. On Jun 10, 3:11 am, animafac wrote: > Hy, > > Sorry for my english but i'm frensh. > > I have a question and is it possible to get the value of upload file > in a form with the $_FILES in php because in jquery we get the POST > value. > > $.post("test.php", > { name: "John", time: "2pm" }, > function(data){ > alert(data); > } > ); > > Thank for help
[jQuery] Re: Need to move selection from one box to another box
Nowadays, the web is "2.0", so you can use a drag and drop system, which is more ergonomic for your users. Check the jquery-ui project ( http://jqueryui.com/ ), there are some example that correspond exactly to your problem. Pierre 2009/6/10 webspee...@gmail.com > > Hey all. > > I'm looking to create a screen where there's a box on the left and a > box on the right. The left box contains names which can be moved to > the box on the right. > > Between the two boxes will be two buttons, one labeled ">>" to move > from left to right and the other labeled "<<" to move from the right > to the left. > > I've seen this many times but need to create one myself. > > At first I was thinking of using selection lists with a size of 20 to > give it height and also set the width. Then, when a selection is > highlighted, the user can click the buttons in the middle to move the > selection from one box to the other. Using a selection list gives me > access to each individual selection and on the click of the button, I > can remove that selection from one list and append it to the other. > > The problem with this approach is that the grayed out scrollbar is > visible. So, I was thinking of using a textarea and that is what > brought me here. Does anyone know of such a tool before I try > reinventing it?
[jQuery] Need to move selection from one box to another box
Hey all. I'm looking to create a screen where there's a box on the left and a box on the right. The left box contains names which can be moved to the box on the right. Between the two boxes will be two buttons, one labeled ">>" to move from left to right and the other labeled "<<" to move from the right to the left. I've seen this many times but need to create one myself. At first I was thinking of using selection lists with a size of 20 to give it height and also set the width. Then, when a selection is highlighted, the user can click the buttons in the middle to move the selection from one box to the other. Using a selection list gives me access to each individual selection and on the click of the button, I can remove that selection from one list and append it to the other. The problem with this approach is that the grayed out scrollbar is visible. So, I was thinking of using a textarea and that is what brought me here. Does anyone know of such a tool before I try reinventing it?
[jQuery] [validate] errorContainer lists all error labels, but only highlights fields that are actual errors
I've got a form using the jquery Validation plugin ( jQuery validation plug-in 1.5.2) What seems to be happening is that when the form hits a validation error, the errorContainer seems to be listing all error messages/ labels, but it only highlights the Actual erring fields. Say I have a required text input field. I type something in, tab out of it, then go back in it and delete its contents (as soon as I delete it) it shows the errorContainer div with ALL error lables showing, but only highlights the single input field that is now blank. 1.) Why is it throwing the error message when i clear its contents? I'd prefer it to ignore empty fields, UNTIL the actual submit button is pressed. it there a way to turn off validation until the submit button is pressed? 2.) even if I did want it to validate onblur/onchange, or whatever, it shouldn't be showing ALL error labels within the errorContainer, but instead only the Actual invalid field error labels (like it is doing properly when highlighting the fields). any ideas? thanks.
[jQuery] treeview
Hi All, I want to Display a Tree using Rails. i want to know is it possible to display a data in Tree form using a jquery and Rails Regards, Salil
[jQuery] treeview
Hi All, I want to Display a Tree using Rails. earlier i diplay tree using rails & Dojo which works fine but as it takes too much time to load. Now i want to create a Tree using pure rails or Rails and Javascript libraries other than Dojo say jQuery Tree. I would also like to see any links where i can see a live demo of the Tree using Rails. Regards, Salil
[jQuery] cycle and jcarousel issues....
Hi, I have done a fair bit of searching and can't quite find anything that suits my issue :( I have been trying to make a gallery using the cycle plugin's pager function within a jcarousel. I have managed to get it working, without too much of a problem, except that the images are pretty large, which meant there was a flicker of the slides before the cycle started working. I tried to overcome this problem by absolutely placing the slides which seems to have worked, but there is now a mad flicker of the images all in place. My thoughts on this are to try and preload the images for the slides, or at least dynamically load them, but this obviously seriously hinders the jcarousel part of the gallery, as all the thumbs (or pager elements) need to be loaded at the start, hence my problem. I have also tried preloading the images into the cache on the home page, in the hope that this would speed up load time of the cycle, but to no avail. I am really really stuck and would be very grateful if anybody has any ideas?!? for reference the gallery is here... http://www.rsbproperty.co.uk/gallery/ and my code /** * assign functionality to the external controls */ function mycarousel_initCallback(carousel) { jQuery('#mycarousel-next').bind('click', function() { carousel.next(); return false; }); jQuery('#mycarousel-prev').bind('click', function() { carousel.prev(); return false; }); }; // Ride the carousel... jQuery(document).ready(function() { // homepage cycles $('#main_image').cycle({ fx:'fade', timeout:0, slideExpr: '.bigimg', pager: '#gallery_pager', pagerAnchorBuilder: function(idx, slide) { return ''; } }); jQuery("#mycarousel").jcarousel({ scroll: 7, initCallback: mycarousel_initCallback, // This tells jCarousel NOT to autobuild prev/next buttons buttonNextHTML: null, buttonPrevHTML: null }); }); Thank you very much in advance for any ideas!! Cheers Marc
[jQuery] Cycle Plugin not working in Chrome & Safari - Tests fine in IE 6, 7, and FF.
Hi, I'm using the Cycle plugin to rotate four images inside of a div. It works beautifully in IE6, IE7, and Firefox. However, in Chrome and Safari, none of the images rotate or hide themselves as they should - all four of them can be seen stacked atop each other. http://www.helpcomingyourway.org/index.php - Cycle in action (open in Chrome or Safari to see bug). Any ideas? If I can't get this fixed, I may have to apply a clipping declaration to the div and go without, but I'd rather not do that. Ashley
[jQuery] How to test/filter for all divs being hidden ?
Hello I am a beginner to jquery/javascript and I am trying to use a script I saw online to replace the content of a div. However I would like to have the script start with none of the target content showing. So far it starts correctly however I am not sure how to test/filter for ALL the divs in #content being hidden which would be the begging state of the page. Here is a link to what it is doing now. http://noworriestech.com/jquery/indext2.html Here is the code $(function(){ $("#home-button").css({ opacity: 0.3 }); $("#about-button").css({ opacity: 0.3 }); $("#contact-button").css({ opacity: 0.3 }); $("#page-wrap div.button").click(function(){ $clicked = $(this); // if the button is not already "transformed" AND is not animated if ($clicked.css("opacity") != "1" && $clicked.is(":not (animated)")) { $clicked.animate({ opacity: 1, borderWidth: 5 }, 600 ); // each button div MUST have a "xx-button" and the target div must have an id "xx" var idToLoad = $clicked.attr("id").split('-'); if ($("#content > div").is(":hidden")) { $("#content").find("#"+idToLoad[0]).fadeIn(); } else { //we search trough the content for the visible div and we fade it out $("#content").find("div:visible").fadeOut("fast", function(){ //once the fade out is completed, we start to fade in the right div $(this).parent().find("#"+idToLoad[0]).fadeIn(); })} } //we reset the other buttons to default style $clicked.siblings(".button").animate({ opacity: 0.5, borderWidth: 1 }, 600 ); }); }); Thank you for you assitance in advance.
[jQuery] jcarousel broken in Safari 3
In Safari 3. Jcarousel seems to be creating an inline style for the width of the that is not wide enough for the items contained in the . This is causing the final to render below the other s, and it is not showing up in the carousel. Has anyone run into this bug? Is there a workaround or a patch? Thank you.
[jQuery] Autocomplete Behavior clarification
I have an Autocomplete on a form that uses local data. However, the input allows users to enter values that are not in the local data array. If the user enters and selects matching data the .result callback function sets a corresponding key value that is submitted with the form. The intent is to help enter known values, but others are allowed. What I'm observing is that if a match is entered, the corresponding key will be set. But if the user further edits the matched value the autocomplete doesn't fire again. This creates a problem because the key never changes. Is that expected autocomplete behavior? If so, is there a workaround? Here's the code: $("#calibration_location_name").autocomplete( locations, { minChars: 0, width: 310, selectFirst: false, scroll: true, matchContains: "word", mustMatch: false, autoFill: false, formatItem: function(row, i, max) { return row.name; }, formatMatch: function(row, i, max) { return row.name; }, formatResult: function(row) { return row.name; } }) .result(LocationAutoCompleteCallback) .blur( function(){ if($(this).val() === '') { $("#calibration_locationkey").val(0); } }); Thanks
[jQuery] Re: Ajax Kill switch?
// sample of using a variable as a switch var preventEvent = 0; $.ajax({ url: "heavyAJAXCall.php", success:function(html) { preventEvent = 1; } }); if(preventEvent == 0) { // do ajax } else { // do nothing ] On Wed, Jun 10, 2009 at 6:53 PM, bob.nel...@gmail.com wrote: > > Hey All, > > So I have a site that utilizes Ajax (via Jquery) alot with timed > interval events, etc. There are certain sections in the application > that pull in a LOT of data. Sometimes, if the user starts one of these > ajax heavy tasks, one (or more) of these timed ajax events might get > called. > > I'd like to be able to disable any other ajax requests when the user > starts one of these heavy tasks. Anyone have any ideas on how to > accomplish this?
[jQuery] Ajax Kill switch?
Hey All, So I have a site that utilizes Ajax (via Jquery) alot with timed interval events, etc. There are certain sections in the application that pull in a LOT of data. Sometimes, if the user starts one of these ajax heavy tasks, one (or more) of these timed ajax events might get called. I'd like to be able to disable any other ajax requests when the user starts one of these heavy tasks. Anyone have any ideas on how to accomplish this?
[jQuery] galleria + nyroModal in safari 4- issue
Ive been trying to troubleshoot this issue for a while to no avail. Hoping one of the JQ ninja-angels can uncover the culprit. What steps will reproduce the problem? 1. Use Safari (v4) - look at the file that is loaded into the iframe via nyroModal, and it functions correctly: http://www.viewwestaspen.com.asp1-10.websitetestlink.com/property_detail.aspx?id=108530 2. Now take a look at the whole search page, and click a thumbnail at the bottom to bring up the nyroModal window. Note that upon loading and fading in, the main image is immediately removed. Firebug confirms that this isnt a css effect, but the element is actually being removed. I have been at this for a while, does anyone see why this is happening (safari only, FF is fine)? http://www.viewwestaspen.com.asp1-10.websitetestlink.com/ What version of the product are you using? On what operating system? using v1.0 of the galleria js on mac osx (latest)
[jQuery] Re: iframe and xml
Yes I have done that too. This is one of those "because it's there" things. Also when I load the iframe via the src= the browser interprets the xml (or at least Firefox does). To see the xml you have to "View|Page Source". Also, the behavior of src="atom.xml" and src="data:text/ xml;base64," (where is the base64 encoded atom.xml) is different. The latter does show the xml not the html rendering of it. I am just curious why? Why can't I load the xml via "load" or some other ajax function into an iframe and replace the all together. Is an iframe inherently an html container? If I do $("body", doc).load("atom.xml") the xml is loaded like this: http://purl.org/atom/ns#"; version="0.3"> and that is OK. Inquiring minds want to know:) On Jun 10, 5:55 am, Paul Mills wrote: > Hi, > I'm confused as to why you are trying to load XML into an iframe using > AJAX. > Why not just set src="atom.xml" and load the feed directly into the > iframe? > > Paul > > On Jun 9, 9:13 pm, barton wrote: > > > I have been trying to insert xml into an iframe. I can do it kinda. > > The problem is the iframe has tags and if the xml has > > items that look like tags like etc they end up in the > > head. For example I have a atom file that looks like this: > > > > > http://purl.org/atom/ns#";> > > Gmail - Inbox for bartonphill...@gmail.com > > New messages in your Gmail Inbox > > 4 > > http://mail.google.com/mail"; type="text/ > > html" /> > > 2009-06-07T22:20:48Z > > > > TORNADO WARNING from 9News CustomCast > > Severe Weather Bulletin Click here to get additional current > > severe weather information This is ... > > http://mail.google.com/mail? > > account_id=bartonphillips > > %40gmail.com&message_id=121bc3ef3abda1f1&view=conv&extsrc=atom" > > type="text/html" /> > > 2009-06-07T19:43:10Z > > 2009-06-07T19:43:10Z > > tag:gmail.google.com,2004:1304851949303996913 > > > > 9News-CustomCast > > 9news-customc...@subs.myweather.net > > > > > > . > > When I do this: > > var iframe = $("#frame")[0]; > > var doc = iframe.contentDocument; > > if(!doc) doc = iframe.contentWindow.document; > > $("html", doc).load("atom.xml"); > > > The html head tag gets the titles rather than the > > http://purl.org/atom/ns#";> in the body? > > > Is there a way to make the iframe look like an xml document instead of > > an html doc?
[jQuery] Re: Get var $_FILES with jquery
I think that area is reserved for server side requests...not entirely sure. On Wed, Jun 10, 2009 at 3:11 PM, animafac wrote: > > Hy, > > Sorry for my english but i'm frensh. > > I have a question and is it possible to get the value of upload file > in a form with the $_FILES in php because in jquery we get the POST > value. > > > $.post("test.php", > { name: "John", time: "2pm" }, > function(data){ > alert(data); > } > ); > > Thank for help >
[jQuery] Re: Open by URL?
do you mean extract a specific div from an external URL ? if so this will work. $.ajax({ URL : "http://www.domain.com/help/faq#107";, success: function(html) { var thediviwant = $("#topnav", html).html(); $("body").prepend(thediviwant); } }); On Wed, Jun 10, 2009 at 4:43 PM, deltaf wrote: > > Can you check the url during the ready() on the FAQ page and various > click() events within the page to create this effect? > > On Jun 10, 6:24 am, Bennobo wrote: > > Can I teach jquery to open a specific by URL? > > > > Example:http://www.domain.com/help/faq#107 > > > > The FAQ Entry with ID 107 should open immediatly when I go to this > > URL. (show/hide) > > > > Have a nice day! > > Bennobo >
[jQuery] Re: document.body is null or is not an object
Up ! I really need some help... Am I the only one experiencing such a problem ? I can't use IE6 for now... It's really paralyzing me because I work in a professional environment. Thank you all for your help ! On Jun 8, 12:18 pm, Lideln wrote: > Hi, > > Thank you for that long answer ! > > The problem is that on my computer and that of my colleague where it > bugs, we are automatically redirected to the login page. So it'll be > hard to compare the two versions of HTML. > > I also tried to deactivate debugging in IE6 (the two checkboxes in the > options), but nothing new... > > We are two developers, dev_A (me) and dev_B (the one who tests only > with IE7, and where everything works), we have the same SVN up to date > code. > There are 2 colleagues who will test the issue : test_C and test_D. > > If it comes from an IE6 configuration error, why does it work for > test_C when he points to the dev_B machine, and not when it points to > the dev_A (my) machine ? > > If it comes from an apache configuration error, why does it work for > test_D when he points to the dev_A (my) machine ? > > It's really disappointing... I decided ealier (as you advise me now) > to move on, because I can't find a way to correct it, and as it seems > to work for everyone when pointing to the dev_B machine, and because > it only bugs on my machine, only sometimes, and only with IE6. > > On Jun 8, 11:45 am, kranthi wrote: > > > there is one more thing which i forgot to mention earlier... > > > if i encounter an IE specific error the first thing i do is disable > > all debugging addons in IE, restore all the advanced options to > > default. > > > open the source code in IE of your colleague(on whose computer it is > > working fine). > > open the source code in IE of your computer. > > compare that line by line (use tortoise merge or kdiff) > > > if they dont match... probably u'll be able to find the error. > > if they do match .. that is a configuration prob in your IE(if this is > > the case i recommend you to forget the error and move on) > > > and finally .. > > as far as i know both web developer console and firebug console show > > the same (javascript) errors as that of inbuilt firefox console. they > > only differ when ter is a page refresh. firebug console does not > > "remember" javascript errors of previous pages opened in that browser. > > while web developer console shows "all" javascript errors occoured > > till then.
[jQuery] Re: :eq versus eq()
Good point Pierre! Well noted. TKS. Any others possible differences? Maurício -Mensagem Original- De: Pierre Bellan Para: jquery-en@googlegroups.com Enviada em: quarta-feira, 10 de junho de 2009 13:25 Assunto: [jQuery] Re: :eq versus eq() With the traversing method, you can match a set of elements then select, for example, the third one $('.myclass,#myid').eq(2) I didn't use the traversing method but i think that is one of possible usage Pierre 2009/6/10 Maujor According jQuery documentation [1][2] :eq returns Array and eq() returns one jQuery object. What does means "Array "? It is a single element? By the other hand eq() => "Reduce the set of matched elements to a single element." So, both returns a single element and it seems to me that there isn't any difference between :eq and eq(). Is one faster than the other? Why are there two sintaxes to achieve the same task? Or am I missing sometghing? [1] http://docs.jquery.com/Selectors [2] http://docs.jquery.com/Traversing - Maurício Samy Silva -- View this message in context: http://www.nabble.com/%3Aeq-versus-eq%28%29-tp23962849s27240p23962849.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Event Listeners
heres aplugin called JQuery logging http://ajaxian.com/archives/jquery-logging here is a link to JQuery console http://code.google.com/p/jquery-console/ try this. add a hyperlink with the class mylink give it a click event like so $("a.mylink").click(function() { alert("random"); }); now remove the hyperlink with remove() then prepend or append another hyperlink if the hyperlink works. then the item was not removed from memory as you need to use live() or bind() for created links right ? or did i get something wrong... On Wed, Jun 10, 2009 at 9:30 AM, Biznatch wrote: > > I know this may be a stupid question but I am still unsure of the > answer - > Once you remove() a DOM element, are its event listeners still in > memory ? > Also, is there a way to monitor which event listeners have been added, > on the page? >
[jQuery] Re: claering feilds in div
$("input").attr({ value:"" }); On Wed, Jun 10, 2009 at 5:17 AM, naz wrote: > > how can i clear the feilds in using jquery just like reset form in > html.if anybody had any idea of that plz tel me >
[jQuery] help me forToop tip
hello dears , how can i create tooltip or information ballon , and i controll it by set html links and data when user click on icon for example (?) will show this information ballon and user can close this informaiont ballon plz help me its urgent !! -- Eng. Nader Dasuqi Project Manager +9665339217533
[jQuery] Re: :eq versus eq()
With the traversing method, you can match a set of elements then select, for example, the third one $('.myclass,#myid').eq(2) I didn't use the traversing method but i think that is one of possible usage Pierre 2009/6/10 Maujor > > > According jQuery documentation [1][2] > :eq returns Array and eq() returns one jQuery object. > What does means "Array "? It is a single element? > By the other hand eq() => "Reduce the set of matched elements to a single > element." > So, both returns a single element and it seems to me that there isn't any > difference between :eq and eq(). > Is one faster than the other? > Why are there two sintaxes to achieve the same task? Or am I missing > sometghing? > > [1] http://docs.jquery.com/Selectors > [2] http://docs.jquery.com/Traversing > > - > Maurício Samy Silva > -- > View this message in context: > http://www.nabble.com/%3Aeq-versus-eq%28%29-tp23962849s27240p23962849.html > Sent from the jQuery General Discussion mailing list archive at Nabble.com. > >
[jQuery] How to exit from a div?
Hello, I have an ajax call that I display dynamically in a div ($content). $content The results of $contents display in divisions Feeds Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit BUT they display inside the first div. I'd like after I drag and drop the $content info to be able to call another ajax to display in the same original div. But once I drag and drop the new div it also moves the contentinfo div. Is there a way to get the $contents div only and keep contentinfo div in it's place? Thanks. -- View this message in context: http://www.nabble.com/How-to-exit-from-a-div--tp23965806s27240p23965806.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: jcarousel with ajax and hyperlinks
I actually managed to solve no.2. Probably not the best or most efficient way, but i concatenated a string from the imagename, imageurl and link url separated by a pipe & double pipe. I then sliced the returned string and stores the slices as the appropriate variables. I used these to show image, image title and link. Appreciate help on number 1 if anyone knows
[jQuery] Re: jQuery broken in FF3.5b99 (Preview)
Well, it's good to know it wasn't just me. And glad to see that it's been fixed. On Jun 10, 2:02 pm, Chris Scott wrote: > On Jun 9, 9:10 pm, John Resig wrote: > > > It looks like it may have already been > > fixed:https://bugzilla.mozilla.org/show_bug.cgi?id=496790 > > I had the same problem (coincidentally, about the same time Benjam > posted his message) and can confirm that the latest nightly > (20090610032606) fixes this. > > -- > Chris Scott > > > > > > > Thanks for the heads-up, though! > > > --John > > > On Tue, Jun 9, 2009 at 6:09 PM, benjam wrote: > > > > I'm sure support for a beta release is a bad thing to be asking for, > > > but I mostly just want to make sure I'm not going crazy (and to inform > > > the devs of a possible issue). > > > > I have the current FF 3.5b99 (Preview Release) and am playing around > > > on a WordPress (v2.7.1) installation on my dev box, and it seems that > > > when I try to open the media library while editing a page, it opens in > > > a new window (which it should open in a shadowbox type modal window). > > > > I've also noticed that some of the menu fly outs and some other > > > various JS things aren't working right. > > > > It all works in Google Chrome just fine. So I'm sure it's a FF issue, > > > but just wanted the devs to be aware of this before FF 3.5 and it's > > > new JavaScript engine were released and broke lots of stuff all over > > > the place. > > > > Here is the error I get in FireBug when I load the page: > > > cannot access optimized closure - /wordpress/wp-includes/js/jquery/ > > > ui.core.js?ver=1.5.2 > > > > I am not 100% sure this is a jQuery bug, it may be one of the plugins > > > I'm using, but the fact that it works in Chrome makes me wonder. > > > > Anywho... if anybody else wants to confirm this issue and inform the > > > devs, it would help to ease my current state of confusion. > > > > If any more detail is required, please let me know and I'll try and > > > get it.
[jQuery] Re: Confusing and probably inaccurate documentation for noConflict()
Okay, so it's simple, and it's not advised to mix libraries. However, the documentation is still confusing as heck - just thought I'd like someone know. On Jun 5, 2:29 pm, Ricardo wrote: > jQuery saves the '$' object on init, if it exists. noConflict() > 'returns' it to the old owner. Passing true the 'jQuery' object is > also freed. There's not much to it: > > jQuery.extend({ > noConflict: function( deep ) { > window.$ = _$; > if ( deep ) > window.jQuery = _jQuery; > return jQuery; > }, > > On Jun 5, 12:06 pm, Alex Ehlke wrote: > > > The online documentation for jQuery.noConflict() seems to be > > incorrect, or ambiguous at best. Here is the text I'm referring to, > > fromhttp://docs.jquery.com/Core/jQuery.noConflict: > > > NOTE: This function must be called after including the jQuery > > javascript file, but before including any other conflicting library, > > and also before actually that other conflicting library gets used, in > > case jQuery is included last. > > > There are several problems here. The second "and also" clause seems to > > actually be an alternative, not an additional requirement. This needs > > rewording, since it seems to imply it's also a requirement -- but it's > > impossible to include jQuery last, yet call jQuery.noConflict() before > > including other libraries, so clearly this needs to be rewritten. > > > Also, there is a link on that page > > tohttp://docs.jquery.com/Using_jQuery_with_Other_Libraries > > which says that if jQuery is included last, noConflict() is > > unnecessary (again, despite what the noConflict() documentation says).
[jQuery] Frames with jQuery 1.3.2 and Opera
This week I updated my product to use jQuery 1.3.2 and I gave beta testers a version to test. A couple Opera users reported that a frame- related feature doesn't work in Opera 9.64 and Opera 10. The bug described in ticket #3993 (http://dev.jquery.com/ticket/3993) seems to explain the problem. Has anyone else encountered this problem? Does anyone know a way to avoid it? A workaround suggested in the ticket suggests a change to jQuery and I'm going to stay away from that. Without a workaround I'll have to revert to 1.2.6, and I'd rather not do that if I can avoid it. There's nothing particularly wrong with 1.2.6 in my application, but if I don't upgrade now, the next release of my product could be 6 months or more down the road and that means I'll have to re-do the integration work for jQuery, plugins, etc.
[jQuery] Cycle plugin help
Hi! I found this wonderfull plugin, http://www.malsup.com/jquery/cycle/int2.html I want to built something like "pager", in the link. I built it, but now I'd like to change something: i don't want a progressive numeration, but Id' like to define a different text or image customized, and not the "1" "2" "3"..ecc..of the example. How is possible to do this? Thank you!
[jQuery] Re: Open by URL?
Can you check the url during the ready() on the FAQ page and various click() events within the page to create this effect? On Jun 10, 6:24 am, Bennobo wrote: > Can I teach jquery to open a specific by URL? > > Example:http://www.domain.com/help/faq#107 > > The FAQ Entry with ID 107 should open immediatly when I go to this > URL. (show/hide) > > Have a nice day! > Bennobo
[jQuery] Re: How to get event handler function?
How's about: var foo = $('#mylabel').attr('onclick'); On Jun 10, 4:32 am, "chudin...@gmail.com" wrote: > My Label > > How to get the "myOnclickFunction()" _string_ with jQuery? > > JavaScript getAttribute("onclick") works fine, but I want to do it > through jQuery.
[jQuery] :eq versus eq()
According jQuery documentation [1][2] :eq returns Array and eq() returns one jQuery object. What does means "Array "? It is a single element? By the other hand eq() => "Reduce the set of matched elements to a single element." So, both returns a single element and it seems to me that there isn't any difference between :eq and eq(). Is one faster than the other? Why are there two sintaxes to achieve the same task? Or am I missing sometghing? [1] http://docs.jquery.com/Selectors [2] http://docs.jquery.com/Traversing - Maurício Samy Silva -- View this message in context: http://www.nabble.com/%3Aeq-versus-eq%28%29-tp23962849s27240p23962849.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] keep an object "active"
Hi boys! Sorry for my english, I hope you understand me! I have a gallery built using a mix of jquery and normal javascript here: http://www.ivanisevic82.com/pages/modding.php So, as you can see, when I'm hover a thumbinal imag (on the right) it became "clear". I'd like to keep it "clear" (=active) for all the time the big image relative to the thumbinal is selected. How can I do? This is the code I use for a single image: Nome: Dreaming Stars Software: Samurize Sfondo: Star Icone: Neon Thank you! Bye!
[jQuery] Re: Handling key event in Chrome or Safari during a popup
Apparently it's the keypress event which is not registered through Firefox, using keyup works well across all browsers, thanks for the sample code. The fixed version is: $(document).keyup(function(e) { if (e.keyCode == 27 && popupStatus == 1) { disablePopup(); } }); On Jun 9, 5:10 pm, waseem sabjee wrote: > check this link > > $("#mytextbox").keyup(function(event){ > if (event.keyCode == 27) { > $(this).attr({ value:"Escape" }); > } > > > > }); > On Tue, Jun 9, 2009 at 8:59 PM, Thierry wrote: > > > I am currently following the image popup example from: > > >http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-pop... > > > The demo is at: > >http://yensdesign.com/tutorials/popupjquery/ > > > If I run the demo on Windows XP on Chrome or Safari, the escape key > > doesn't close the popup window. How do I handle this in jQuery for > > those two browsers?
[jQuery] Re: jQuery broken in FF3.5b99 (Preview)
On Jun 9, 9:10 pm, John Resig wrote: > It looks like it may have already been > fixed:https://bugzilla.mozilla.org/show_bug.cgi?id=496790 I had the same problem (coincidentally, about the same time Benjam posted his message) and can confirm that the latest nightly (20090610032606) fixes this. -- Chris Scott > > Thanks for the heads-up, though! > > --John > > On Tue, Jun 9, 2009 at 6:09 PM, benjam wrote: > > > I'm sure support for a beta release is a bad thing to be asking for, > > but I mostly just want to make sure I'm not going crazy (and to inform > > the devs of a possible issue). > > > I have the current FF 3.5b99 (Preview Release) and am playing around > > on a WordPress (v2.7.1) installation on my dev box, and it seems that > > when I try to open the media library while editing a page, it opens in > > a new window (which it should open in a shadowbox type modal window). > > > I've also noticed that some of the menu fly outs and some other > > various JS things aren't working right. > > > It all works in Google Chrome just fine. So I'm sure it's a FF issue, > > but just wanted the devs to be aware of this before FF 3.5 and it's > > new JavaScript engine were released and broke lots of stuff all over > > the place. > > > Here is the error I get in FireBug when I load the page: > > cannot access optimized closure - /wordpress/wp-includes/js/jquery/ > > ui.core.js?ver=1.5.2 > > > I am not 100% sure this is a jQuery bug, it may be one of the plugins > > I'm using, but the fact that it works in Chrome makes me wonder. > > > Anywho... if anybody else wants to confirm this issue and inform the > > devs, it would help to ease my current state of confusion. > > > If any more detail is required, please let me know and I'll try and > > get it. > >
[jQuery] jcarousel with ajax and hyperlinks
I have spent the last few hours playing with jCarousel and it looks really impressive. My javascript is still basic, but my php is ok. Using the example dynamic_ajax_php.php as a guide, i created an array from my recordset and generated a new xml file so that i can now browse my own images dynamically. This works fine. I have 2 questions which I hope someone can help me with... 1. Is it possible to adopt the same functionality as the circular carousel example? 2. Is it possible for each image to be associated with a hyperlink, (url from the xml ?). Regards
[jQuery] Get var $_FILES with jquery
Hy, Sorry for my english but i'm frensh. I have a question and is it possible to get the value of upload file in a form with the $_FILES in php because in jquery we get the POST value. $.post("test.php", { name: "John", time: "2pm" }, function(data){ alert(data); } ); Thank for help
[jQuery] Form submit using http://www.malsup.com/jquery/form/
Hi, I've bee trying to understand the differences btwn the ajaxSubmit and ajaxForm. I understand what the difference is but I cant write the code to do what I want. It's fairly simple. I want: A layer, where I have a log in form, to submit to file (user_admin.php) page and, without refreshing the entire page, show the returned content to the same layer. I got that to work. However, I cant get the code right with ajaxForm and ajaxSubmit. I understand I need the ajaxForm otherwise wont the button names be submitted but I cant seem to get it to be submitted without ajaxSubmit but then it get submitted twice. Pls help :-) How do I write this code? I have been using the examples from http://www.malsup.com/jquery/form/#code-samples/jquery/form/ Best regards .JON
[jQuery] Re: New plugin announcement and review request - bullsEye
Great plugin! It would be nice if the plugin was functional at least in IE7 On Tue, Jun 9, 2009 at 22:48, Tony Landis wrote: > > I wrote a jQuery plugin "bullsEye" for that provides some > visualization effects for large data tables, and would like any > usability suggestions or bug reports. So far I have tested it in the > latest version Firefox, Safari, and Opera. > > Description, download, live examples, and screenshots of the plugin in > action are located here: > > > http://tonylandis.com/uncategorized/bullseye-jquery-plugin-to-add-interactive-and-visualization-features-to-tables/ > > If anyone finds this useful I would like to know. > > Thanks, > Tony Landis >
[jQuery] How to flip the image?
Can I make image vertical or horizontal flip by jQuery?
[jQuery] Re: iframe and xml
Hi, I'm confused as to why you are trying to load XML into an iframe using AJAX. Why not just set src="atom.xml" and load the feed directly into the iframe? Paul On Jun 9, 9:13 pm, barton wrote: > I have been trying to insert xml into an iframe. I can do it kinda. > The problem is the iframe has tags and if the xml has > items that look like tags like etc they end up in the > head. For example I have a atom file that looks like this: > > > http://purl.org/atom/ns#";> > Gmail - Inbox for bartonphill...@gmail.com > New messages in your Gmail Inbox > 4 > http://mail.google.com/mail"; type="text/ > html" /> > 2009-06-07T22:20:48Z > > TORNADO WARNING from 9News CustomCast > Severe Weather Bulletin Click here to get additional current > severe weather information This is ... > http://mail.google.com/mail? > account_id=bartonphillips > %40gmail.com&message_id=121bc3ef3abda1f1&view=conv&extsrc=atom" > type="text/html" /> > 2009-06-07T19:43:10Z > 2009-06-07T19:43:10Z > tag:gmail.google.com,2004:1304851949303996913 > > 9News-CustomCast > 9news-customc...@subs.myweather.net > > > . > When I do this: > var iframe = $("#frame")[0]; > var doc = iframe.contentDocument; > if(!doc) doc = iframe.contentWindow.document; > $("html", doc).load("atom.xml"); > > The html head tag gets the titles rather than the > http://purl.org/atom/ns#";> in the body? > > Is there a way to make the iframe look like an xml document instead of > an html doc?
[jQuery] Open by URL?
Can I teach jquery to open a specific by URL? Example: http://www.domain.com/help/faq#107 The FAQ Entry with ID 107 should open immediatly when I go to this URL. (show/hide) Have a nice day! Bennobo
[jQuery] Re: jQuery Star Rating Plugin
Hi, The API documentation shows how to select values - http://www.fyneworks.com/jquery/star-rating/#tab-API If you leave the value blank then the rating is cancelled. $("[name='star1']").rating('select','') It looks like you can also use the 'drain' command - but it's not documented in the API. $("[name='star1']").rating('drain') Paul On Jun 9, 7:54 am, "karimmta...@gmail.com" wrote: > Hi guys, > > how can I reset the stars without clicking on the cancel button, like > on any other event on the page? is it possible? > > thank you > Karim
[jQuery] New plugin announcement and review request - bullsEye
I wrote a jQuery plugin "bullsEye" for that provides some visualization effects for large data tables, and would like any usability suggestions or bug reports. So far I have tested it in the latest version Firefox, Safari, and Opera. Description, download, live examples, and screenshots of the plugin in action are located here: http://tonylandis.com/uncategorized/bullseye-jquery-plugin-to-add-interactive-and-visualization-features-to-tables/ If anyone finds this useful I would like to know. Thanks, Tony Landis
[jQuery] Event Listeners
I know this may be a stupid question but I am still unsure of the answer - Once you remove() a DOM element, are its event listeners still in memory ? Also, is there a way to monitor which event listeners have been added, on the page?
[jQuery] where to place prompt msgs
i m creating a site and i want to include some prompt msgs.any one can help me where should i place them?
[jQuery] Re: Ajax.load doesn't work for element?
I found the answer. The docs specify that 'Default selector "body>*" always applies.', is outside of that. On Jun 9, 6:57 pm, hannes wrote: > Greetings, > > I'm trying to replace the of a page with the of another > page. > > For example, inhttp://docs.jquery.com/Main_Page, I call > > $("head").load("/About head") > > expecting to replace the section of the current page with that > ofhttp://docs.jquery.com/About. > However, the function seems to insert an empty string into my > tag. > > Any idea why that might be? > > Hannes
[jQuery] [treeview] persistence in async tree
It's possible that you'll add an persistence feature to the async tree in the nearest future?
[jQuery] autocomplete
first of all thanks for your gr8 plugins to add autocomplete feature using jquery. but I am facing a problem to implement this in my application. As in error console it is showing syntext error .ac_results { and showing the list of probables as simple ul viwe (with bullets) plz suggest me further. I am using Revision: $Id: jquery.autocomplete.js 5747 2008-06-25 18:30:55Z
[jQuery] Superfish with ie6 problem,need help.
Hello, i have a problem with the superfish, the problem appeared when viewing in internet explorer 6, the submenu seems to display at the back layer if it go through the button or textfield. how can i fix this? http://i6.photobucket.com/albums/y221/curseshadow/32.jpg
[jQuery] How to get event handler function?
My Label How to get the "myOnclickFunction()" _string_ with jQuery? JavaScript getAttribute("onclick") works fine, but I want to do it through jQuery.
[jQuery] claering feilds in div
how can i clear the feilds in using jquery just like reset form in html.if anybody had any idea of that plz tel me
[jQuery] Re: Loop only handling last item in the array
Thanks for the replies all. I ended up just having phpscript.php return data like so: response_currententry Then javascript does another split on this returned data by an underscore. It then checks item 0 of the new array (the response) and depending upon what that response is, it will then take item 1 (the currententry) and insert it accordingly into the document. I did some tests and it seems to work well.. so I'm happy. Probably not the most efficient/best way, but scripting is more of a hobby than anything... so I will do more reading and learn better methods in the future :P/procrastinate Take care
[jQuery] Re: Safari and Chrome code execution problem
Anyone knows an answer? :) On Jun 9, 2:21 pm, "r1u0...@gmail.com" wrote: > Hi, > > I'm developing with jQuery quite long right now, but recently I > spotted one big problem with execution of jQuery code in Safari and > Chrome. So everything is working fine in these browsers until jQuery > code is placed in one page. > > But when using for example tabs plug-in loaded with ajax and on this > loaded page exists some extra jQuery code it isn't executed. Co page > is loaded but nothing is happening with code which was included. > > This problem doesn't exists in IE, FF or Opera. It appears only in > Safari and Chrome. The same problem is when I'm loading page with > $.get, $.post or $.ajax query. So it doesn't affect tabs plug-in but > overall functionality. > > I was checking that with latest versions of jQuery and UI today. > > Does anyone know solution for this problem? > > Cheers > Radek
[jQuery] How to go about writing a plugin that extends a core plugin like sortable
Hi I would like to turn my code for http://www.2dnn.com/DragnDrop.aspx into a plugin. Right now its just standard coding and .sortable. So lets say i would like my plugin to have the name of igoogle and extend sortable Is there a good example somewhere or can someone paste some code here so I can go from there thanks in advance Armand
[jQuery] Re: jQuery problem
Thanks, that was the problem. :) On Tue, Jun 9, 2009 at 7:40 PM, GaVrA wrote: > > You need to put jquery.js above all other .js's. > > On Jun 9, 2:58 pm, Masinov wrote: > > I'm trying to use the autocomplete plugin for jQuery. I include all > > the nessesart .js libraries such as bgiframe.js, > > jquery.autocomplete.js and jqury.js (version 1.3.2). I'm attaching the > > autocomplete on my textbox and I'm getting the error "jQuery is > > undefined". The autocomplete uses (function ($) { ... })(jQuery). > > > > Does anybody know what is the problem? > > > > Thanks. >