[jQuery] Object as Function argument
I have used an object in the past as a function argument, but this was for a plugin that I wrote. Using it in the architecture of a plugin it worked. BUT, this time, I just want to write a normal function, but still use an object to set defaults and pass in changes to those defaults through as a param. Is this possible, or do I have to make this a jQuery function like $.myfunction() ? I am trying: function test(defaults) { var defaults = { test: '' }; alert(defaults.test); } test({test: 'It works!'}); The above does not seem to work, and replace the default with that was passed in the function. What am I doing wrong here?
[jQuery] khaled abbad wants to chat
I've been using Google Talk and thought you might like to try it out. We can use it to call each other for free over the internet. Here's an invitation to download Google Talk. Give it a try! --- khaled abbad wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-bb8813cc43-04f8227c83-6ca579e4053799ba You'll need to click this link to be able to chat with khaled abbad. To get Gmail - a free email account from Google with over 2,800 megabytes of storage - and chat with khaled abbad, visit: http://mail.google.com/mail/a-bb8813cc43-04f8227c83-6ca579e4053799ba Gmail offers: - Instant messaging right inside Gmail - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into conversations - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages All this, and its yours for free. But wait, there's more! By opening a Gmail account, you also get access to Google Talk, Google's instant messaging service: http://www.google.com/talk/ Google Talk offers: - Web-based chat that you can use anywhere, without a download - A contact list that's synchronized with your Gmail account - Free, high quality PC-to-PC voice calls when you download the Google Talk client Gmail and Google Talk are still in beta. We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser).
[jQuery] Re: Internet Explorer and the html method??
James thanks a ton for answering, but no changes with your suggestion: Internet Explorer 6 won't show a thing, but Firefox and Safari will show thumbnails and link without any problems. I'm sure this is a stupid tiny issue but I cannot detect what it is. Here is the code I'm using (29 Kb): http://www.vivocom.tv/test/IEandJQUERY.rar Please have a look at it, you'll save another human being dealing with IE from suicide =8-O ;) Many, many thanks once again! Ara James escribi: In here: div class=thumb"+nu+" you're trying to set the variable "nu", yet, "nu" is also a part of the variable you're trying to set. You should add ending semi-colons ( ; ) to properly end your code, which will reduce errors. I think you want: var nu = $(this).find('nu').text(); var html = "div class=thumb"+nu+"a href='' img src='' alt='"+alt+"' name='image"+nu+"' width=82 height=62 border=0/a/div"; $("#content").append(html); On Jun 22, 9:50pm, Lleoun adoming...@vivocom.es wrote: Dear all, The following code is working great for all browsers except for Internet Explorer .. I've been investigating and the problem seems to be the html method. How can I change the script for it to work in Internet Explorer also? Thanks in advance! script src="" type="text/_javascript_"/ script script type="application/_javascript_" $(function() { $.ajax({ type: "GET", url: "myxml.xml", dataType: "xml", success: function(xml) { $(xml).find('item').each(function(){ var thumb = $(this).find('thumb').text() var ids = $(this).find('ids').text() var alt = $(this).find('alt').text() var nu = $(this).find('nu').text() .html("div class=thumb"+nu+"a href=''img src='' alt='"+alt+"' name='image"+nu+"' width=82 height=62 border=0/a/div") .appendTo('#content'); }); //close each( } }); //close $.ajax( }); //close $ /script div id="content"/div
[jQuery] Problem with double submit of and form
Hello, the code bellow shows my problem. I have a link, when i click on this link the DIV with the Form slide in. This works. But when I submit the form the result was executed twice. And I Don't know why. When I leave the code for slide in the form, the form was submited only once. Why jQuery submited this form twice??? Any idea? a href=javascript:void(0) id=testlinkShow Test/a div id=tpanlegen style=width: 100%; display: none; form id=teilprojekt_create action=/test.action method=post select name=test id=test class=textfeld style=width: 100%; option value=1950Test 1/option option value=2000Test 2/option /select input id=tpcsubmit value=Submit type=submit script type=text/javascript $(document).ready(function () { var optionstpcsubmit = { beforeSubmit: before_tpcsubmit, success: complete_tpcsubmit, timeout: 3000, target:'#target' }; $('#tpcsubmit').closest(form).submit(function() { $(this).ajaxSubmit(optionstpcsubmit); return false; }); function before_tpcsubmit() { $('#inicator').show(); } function complete_tpcsubmit() { $('#inicator').hide(); $(#target).effect(slide,{ },2000); } }); /script /form /div script type=text/javascript $(document).ready(function () { $('#testlink').bind( 'click', function(e){ $(#tpanlegen).effect(slide,{ },2000 ); }); }); /script Best Regards Johannes Geppert - web: http://www.jgeppert.com twitter: http://twitter.com/jogep
[jQuery] Need help in Login
Hi , Am very much confusion in php login session tracking , This is my requirement , Am doing travel booking portal , Before submit checkout , i have the radio option , that is existing user Yes No for new new user , If user clicks yes , then am showing the login form , Here i am entering the username and password , if i submit the button , I don't want to refresh the page or no changes in URL , After submitted , then i want to track the user details with as usual login functionlaity , that is need to track that user details and all , If possible without page refresh , Thanks B.S.Bharanikumar
[jQuery] Re: Ajax tooltips using jQuery?
Cluetip works well for me. Bharat
[jQuery] Re: Using slideDown in a slideUp callback
One should not prevent the other. It's probably some conflict, do you have any other scripts besides jQuery in your page? On Jun 23, 3:52 pm, Matthew mvbo...@gmail.com wrote: Hi all, I am trying to slideUp a container Div and using the slideUp's callback parameter call slideDown on a different element that is not inside the slideUp container Div: $(#pageWrap).slideUp(1000, function(){ $(#externalform).slideDown(500); $(#btn_uopBack).fadeIn(250); }); One again all the elements being used with the effects are not children or parents of each other. The problem seems to be that when you call a slideDown or slideUp inside a slideUp or slideDown callback the intial effect does not work. So in my above example the $(#pageWrap).slideUp just jumps up without a slide. I need the callback so I can have the effects happen after the initial slideUp. Since I'm calling effects on different elements I can't do the dot chain. Any other way to make this happen? I'd like to avoid settimeout() if possible. ~ Matthew
[jQuery] Re: slide a div open and closed
Maurício Beautiful! Maujor wrote: I've hosted a live example for the effect at: http://jsbin.com/irera/ Edit it at: http://jsbin.com/irera/edit Maurício -Mensagem Original- De: webguy262 Para: jquery-en@googlegroups.com Enviada em: terça-feira, 23 de junho de 2009 09:37 Assunto: [jQuery] slide a div open and closed I need to create and effect just like what happens when you mouse over the Check Availability link on this site: http://www.claridges.co.uk/ - Maurício Samy Silva -- View this message in context: http://www.nabble.com/slide-a-div-open-and-closed-tp24165182s27240p24182673.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Hiding the cancel button in Ratings plugin, v.3.12
Hi Right to the point: I don't want to use the cancel button functionality of the ratings plugin (version 3.12) so I don't want it showing in front of the stars. I was expecting to find a configuration setting for this, but didn't (did I miss it)? I added a line [control.cancel.hide()] to the draw() function in the source code on line 256 which did the trick, but I was wondering if there is a better way to do this (preferably through configuration)? My source code now looks like this: 251 252 else 253 $(control.inputs).removeAttr('checked'); 254 // Show/hide 'cancel' button 255 control.cancel[control.readOnly || control.required?'hide':'show'] (); 256 control.cancel.hide(); 257 // Add/remove read-only classes to remove hand pointer 258 this.siblings()[control.readOnly?'addClass':'removeClass']('star- rating-readonly'); 259 }, // $.fn.rating.draw 257 ... Anyone? Regards Lee Francis
[jQuery] jquery ajax
Hi, Is it possible to call a http url for ajax query i.e. $(document).ready(function(){ $.ajax({ type: GET, url: http://www.domain.com/mypage.php;, data: site_id= + site_id, success: function(tags){ $(div id=\popdiv\ + tags + /div).appendTo(body); } }); }); Seems like url: http://www.domain.com/mypage.php;, is not allowed coz it doesnt echo/display any coming from http://www.domain.com/mypage.php Thanks in advance, Mike
[jQuery] Re: jQuery Tooltip Plug-in 1.3 Update
http://kitfoxink.com/www/library/jquery-autocomplete/demo/ The demo of the dropdown list is working on the server, but not working on the page.
[jQuery] Conflict jquery
I am trying to use more than one script in my page (lightbox is added) If one or the other is removed all works fine. I found - script jQuery.noConflict(); // Use jQuery via jQuery(...) jQuery(document).ready(function(){ jQuery(div).hide(); }); // Use Prototype with $(...), etc. $('someid').hide(); /script --- But I have no idea what of the parts of the script to put where in the code above. Can anybody help me to get the scripts underneath to get to work next to eachother? --- script type=text/javascript src=http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js/script script type=text/javascript src=http://css-template- layout.googlecode.com/files/jquery.tpl_layout1.1.1.js/script script type=text/javascript jQuery(document).ready(function() { jQuery.setTemplateLayout() }); /script !-- Arquivos utilizados pelo jQuery lightBox plugin -- script type=text/javascript src=js/jquery.js/script script type=text/javascript src=js/jquery.lightbox-0.5.js/ script !-- Ativando o jQuery lightBox plugin -- script type=text/javascript $(function() { $('#gallery a').lightBox(); }); /script Thanx!
[jQuery] Re: Using slideDown in a slideUp callback
If there's some kinda conflict test to make an extra callback call, ie. function doSlideDown(){ $(#externalform).slideDown(500); } $(#pageWrap).slideUp(1000, function(){ doSlideDown(); $(#btn_uopBack).fadeIn(250); }) ..fredrik On Jun 23, 8:52 pm, Matthew mvbo...@gmail.com wrote: Hi all, I am trying to slideUp a container Div and using the slideUp's callback parameter call slideDown on a different element that is not inside the slideUp container Div: $(#pageWrap).slideUp(1000, function(){ $(#externalform).slideDown(500); $(#btn_uopBack).fadeIn(250); }); One again all the elements being used with the effects are not children or parents of each other. The problem seems to be that when you call a slideDown or slideUp inside a slideUp or slideDown callback the intial effect does not work. So in my above example the $(#pageWrap).slideUp just jumps up without a slide. I need the callback so I can have the effects happen after the initial slideUp. Since I'm calling effects on different elements I can't do the dot chain. Any other way to make this happen? I'd like to avoid settimeout() if possible. ~ Matthew
[jQuery] Re: Problem with double submit of and form
You have to prevent the form it self from posting. I think when you return false, you return it to the jQuery event, not the post event. Try this: $('#tpcsubmit').closest(form).submit(function(e) { e.preventDefault(); $(this).ajaxSubmit(optionstpcsubmit); }); ..fredrik On Jun 24, 10:41 am, jogep joh...@googlemail.com wrote: Hello, the code bellow shows my problem. I have a link, when i click on this link the DIV with the Form slide in. This works. But when I submit the form the result was executed twice. And I Don't know why. When I leave the code for slide in the form, the form was submited only once. Why jQuery submited this form twice??? Any idea? a href=javascript:void(0) id=testlinkShow Test/a div id=tpanlegen style=width: 100%; display: none; form id=teilprojekt_create action=/test.action method=post select name=test id=test class=textfeld style=width: 100%; option value=1950Test 1/option option value=2000Test 2/option /select input id=tpcsubmit value=Submit type=submit script type=text/javascript $(document).ready(function () { var optionstpcsubmit = { beforeSubmit: before_tpcsubmit, success: complete_tpcsubmit, timeout: 3000, target: '#target' }; $('#tpcsubmit').closest(form).submit(function() { $(this).ajaxSubmit(optionstpcsubmit); return false; }); function before_tpcsubmit() { $('#inicator').show(); } function complete_tpcsubmit() { $('#inicator').hide(); $(#target).effect(slide,{ },2000); } }); /script /form /div script type=text/javascript $(document).ready(function () { $('#testlink').bind( 'click', function(e){ $(#tpanlegen).effect(slide,{ },2000 ); });}); /script Best Regards Johannes Geppert - web:http://www.jgeppert.com twitter:http://twitter.com/jogep
[jQuery] Selecting children of this ?
Hello, I'm just starting with jQuery and would like to know the best way to identify children elements of this to perform animation on. Some Googling brought me this seemingly useful code snippet: jQuery (img, this); But I don't know the correct syntax for this. Here's my newbie shot-in-the-dark code: $(jQuery(li, this)).animate({ top : 60px }, 3000 );
[jQuery] onBlur event problem with Safari, works in FF IE
Hi, I'm trying to get a onBlur event working in Safari. The problem lies in getting the triggering element. I have no idea what the problem is. Using this to get a triggering element: var _trigger = e.originalEvent.explicitOriginalTarget || e.relatedTarget || document.activeElement; For some reason e.relatedTarget is always undefined (in Safari and FF anyway). Does anyone knows if there's a workaround? Is this a bug in webkit/ safari or jQuery? What I'm want to do is to find if the element that triggered the onBlur is inside my div class=/div using this code: $('.search_field').blur(function(e) { var _trigger = e.originalEvent.explicitOriginalTarget || e.relatedTarget || document.activeElement; /** Check if _trigger is really an element **/ _trigger = _trigger.nodeType == 1 ? _trigger : _trigger.parentNode; var isChild = false; $('.search_box').find('*').each(function(index, elem) { if (_trigger === elem) { isChild = true; } }); if (!isChild) { $('.search_results_box').hide(); }; }); Also, if anyone got a hit if there's a better way to write this, fell free. ..fredrik
[jQuery] Jquery slider within Jquery Gallerific
Hey everyone, I've only been into Jquery for a few months so I haven't mastered the code yet, was hoping someone could help me. I'm set up using Gallerific just like this - http://www.twospy.com/galleriffic/advanced.html I am using it to show a portfolio of clients work. However, for each tumbnail, the client has requested a slide show of images (basic PREV / NEXT). Easy enough, I found a script that runs on the latest version of jquery (as I was having problems with others). I am using Easy Slider for this --- http://cssglobe.com/lab/easyslider1.5/01.html The slider works fine on its own, but when I try put the slider within the comments section of Gallerific, the slider breaks and just shows all images in a vertical line. So my basic code is div class=caption (the caption for Gallerific goes here) div id=slider (this is the slider plugin) ul lia href=http://templatica.com/preview/30;img src=images/ 01.jpg alt=Css Template Preview //a/li lia href=http://templatica.com/preview/7;img src=images/ 02.jpg alt=Css Template Preview //a/li lia href=http://templatica.com/preview/25;img src=images/ 03.jpg alt=Css Template Preview //a/li lia href=http://templatica.com/preview/26;img src=images/ 04.jpg alt=Css Template Preview //a/li lia href=http://templatica.com/preview/27;img src=images/ 05.jpg alt=Css Template Preview //a/li /ul /div I've spent a whole day on this and I am completly stumped! Willing to paypal some beer money to anyone that can help me!
[jQuery] jQuery works fine on localhost but doesn't work on external server.
I've got jQuery and 2 plugin libraries running on my website. One runs the navigation and the other runs a dropdown search box. Everything works great on my localhost, but when I copied the directory to the external server none of the jQuery worked. I'm not getting any Errors in my error log, and the directory has been copied exactly. Can anyone help me? http://www.kitfoxink.com/www/index.php
[jQuery] Re: Object as Function argument
Not really sure what you are after. But I think you need to make an new instance of test first: var test = function (defaults){ this.defaults = defaults || this.defaults; alert(this.defaults.test); } test.prototype = { defaults : { test : 'nothing' } }; new test(); new test({test: 'hello world'}); On Jun 24, 8:07 am, Nic Hubbard nnhubb...@gmail.com wrote: I have used an object in the past as a function argument, but this was for a plugin that I wrote. Using it in the architecture of a plugin it worked. BUT, this time, I just want to write a normal function, but still use an object to set defaults and pass in changes to those defaults through as a param. Is this possible, or do I have to make this a jQuery function like $.myfunction() ? I am trying: function test(defaults) { var defaults = { test: '' }; alert(defaults.test); } test({test: 'It works!'}); The above does not seem to work, and replace the default with that was passed in the function. What am I doing wrong here?
[jQuery] jquery .noconflict
Hi Guys, I am using .noconflict in my Jquery script on a page with another library. The problem I am facing is that the other library is still producing an error even WITH .noconflict being used. I think its because the other library is being called first - as when I put the jquery library above the other script - it seems to resolve the problems. Does anyone know the reason for this ? You can try the script for yourself with jquery - http://www.internetmarketingmonitor.org/word-press-plugins/imm-glossary-wordpress-plugin When I use this and my jquery script -even with .noconflict - i get errors ? Thanks
[jQuery] Treeview 1.4 (jQuery plugin), question about cookie path
Hello! How can I force this plugin to set path in cookie to /? 'Cause I have this plugin as navigation menu on my site, and when I go to another page, it creates new cookie for this new page (for example, on the main page the cookie path is /, and when I go to /photo/theme/ nature the cookie path is /photo/theme/nature). So the position of menu is not saved, for each page of site I have different positions (states) of menu.
[jQuery] jquery tabs (ajax tabs with a form submit)
Hello, I am incredibly new to the world of jquery. What I am trying to do is create tabs (using the tabs plug-in) that load dynamic content via AJAX (so it makes a call to a jsp). What this does is this loads a new part of a form. What I want to do is when the user clicks on a new tab, I also want to submit the data that was in the original form. I wanted to do this with one request (i.e. the request does the save, then loads up the new content). However, I have no idea how to do this. Any help would be greatly appreciated.
[jQuery] datepicker UI select multiple date
I use datepicker UI. Is it possible to be selected multiple events, dates taken from a mysql with PHP? can you give me links to similar developments
[jQuery] Accessing window DOM through jQuery Core - can't get it to work
Goal: From window A, I want to manipulate the DOM of window B, where window B is the result of calling window.open(). My attempts are shown below, but Window B is never updated. winRef = window.open(,Window B); Try 1: $(winRef).find(body).append(div id=containermr container/div); Try 2: $(winRef).find(body).html(div id=containermr container/div); Try 3: $(winRef.document.body).append(div id=containermr container/ div); Try 4: $(winRef.document.body).html(div id=containermr container/div); The jQuery Core doc (http://docs.jquery.com/Core/jQuery#elements) claims that it can wrap a window object. Browser is FF2.0 Any tip is greatly appreciated, even if that's impossible.
[jQuery] jquery tabs
Hi, I am new to jquery but am quite familiar with JavaScript. What I am trying to do is create tabs (using the tabs plug-in) that load dynamic content via AJAX (so it makes a call to a jsp). What this does is this loads a new part of a form. What I want to do is when the user clicks on a new tab, I also want to submit the data that was in the original form. I wanted to do this with one request (i.e. the request does the save, then loads up the new content). I am stuck as how to do this. Any ideas? -- View this message in context: http://www.nabble.com/jquery-tabs-tp24176366s27240p24176366.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] REMOVE
[jQuery] UNSUBSCRIBE
[jQuery] Re: Internet Explorer and the html method??
I'm with James. Make a var html that you append to content. But for your problem, IE6 is something that should never been invented !! Try some somtehing like: var html = 'div class=thumb'+nu+'a href=http://mylink.com;img src=images/'+thumb+'.jpg alt='+alt+' name=image'+nu+' style=border:3px solid red;height:62px;width:82px //a/div'; $('#content').append(html); Just to see if the element even pops up. I know that IE6 sometimes have problems reading xml attributes, so it could be something wrong with the value of the img src you trying to add. ..fredrik On Jun 24, 10:04 am, Araceli Domínguez adoming...@vivocom.es wrote: James thanks a ton for answering, but no changes with your suggestion: Internet Explorer 6 won't show a thing, but Firefox and Safari will show thumbnails and link without any problems. I'm sure this is a stupid tiny issue but I cannot detect what it is. Here is the code I'm using (29 Kb):http://www.vivocom.tv/test/IEandJQUERY.rar Please have a look at it, you'll save another human being dealing with IE from suicide =8-O ;) Many, many thanks once again! Ara James escribió:In here: div class=thumb+nu+ you're trying to set the variable nu, yet, nu is also a part of the variable you're trying to set. You should add ending semi-colons ( ; ) to properly end your code, which will reduce errors. I think you want: var nu = $(this).find('nu').text(); var html = div class=thumb+nu+a href='http://mylink.com'imgsrc='images/+thumb+.jpg' alt='+alt+' name='image+nu+' width=82 height=62 border=0/a/div; $(#content).append(html); On Jun 22, 9:50 pm, Lleounadoming...@vivocom.eswrote:Dear all, The following code is working great for all browsers except for Internet Explorer .. I've been investigating and the problem seems to be the html method. How can I change the script for it to work in Internet Explorer also? Thanks in advance! script src=scripts/jquery-1.3.2.min.js type=text/javascript/ script script type=application/javascript $(function() { $.ajax({ type: GET, url: myxml.xml, dataType: xml, success: function(xml) { $(xml).find('item').each(function(){ var thumb = $(this).find('thumb').text() var ids = $(this).find('ids').text() var alt = $(this).find('alt').text() var nu = $(this).find('nu').text() .html(div class=thumb+nu+a href='http://mylink.com'img src='images/+thumb+.jpg' alt='+alt+' name='image+nu+' width=82 height=62 border=0/a/div) .appendTo('#content'); }); //close each( } }); //close $.ajax( }); //close $ /script div id=content/div
[jQuery] jquery tabs (loading remote content and form submit)
Hello, I am incredibly new to the world of jquery. What I am trying to do is create tabs (using the tabs plug-in) that load dynamic content via AJAX (so it makes a call to a jsp). What this does is this loads a new part of a form. What I want to do is when the user clicks on a new tab, I also want to submit the data that was in the original form. I wanted to do this with one request (i.e. the request does the save, then loads up the new content). However, I have no idea how to do this. Please help!
[jQuery] Re: Problem with loading SELECT on change of other select
here i've been working with this for the past few days. it should do the trick http://remysharp.com/2007/01/20/auto-populating-select-boxes-using-jquery-ajax/ On Jun 23, 2:44 pm, Paul paulverh...@gmail.com wrote: Hi there, This is what I'm trying to do: When a user selects a group in the first SELECT box, another SELECT box should be loaded from an external PHP-file (using MySQL), based on the group-id of the first SELECT box. I use this code: $('#kiesgroep').change(function(){ $.post(?php echo base_url();?php/kies_speltak.php, { groepid: $('#kiesgroep').val() }, function(response){ $('#kiesspeltakveld').fadeOut(); setTimeout(finishAjax('kiesspeltakveld', '+escape(response) +'), 200); }); return false; }).change(); function finishAjax(id, response) { $('#'+id).html(unescape(response)); $('#'+id).fadeIn(); } //finishAjax where #kiesspeltakveld is the field where the second SELECT box should be loaded, and #kiesgroep is the id of the first SELECT box. But now the problem is that the second SELECT box gets loaded when the page loads, NOT when the first SELECT box gets changed. Does anyone know why?
[jQuery] Re: Selecting children of this ?
When using jQuery.js "$" is shorthand for "jQuery". It can also be used as shorthand in other script libraries so you will find examples using the longhand. For simplicity assume you are only using jquery and jquery plugins The following are the same: jQuery("div").hide(); $("div").hide(); The search field on jquery.com can be your best friend when learning. Enter "children" in search , click on the Traversing/children() link and there are examples for all the main element uses of jquery. Great help for learning syntax and new tricks To fix your shot in dark remove the redundant "jQuery" and brackets: $("li", this).animate({ top : "60px" }, 3000 ); You won't find the syntax ("li" , this).. used much in most examples even though it is valid Without knowing that syntax, using the syntax found all through majority of examples on jquery.com you would come up with: $(this).children("li").animate.(...) It's probably easiest to use the latter syntax to learn at first. Just reading these 2 it is more obvious to beginner what latter version means, and therefore easier to troubleshoot september wrote: Hello, I'm just starting with jQuery and would like to know the best way to identify children elements of "this" to perform animation on. Some Googling brought me this seemingly useful code snippet: jQuery ("img", this); But I don't know the correct syntax for this. Here's my newbie shot-in-the-dark code: $(jQuery("li", this)).animate({ top : "60px" }, 3000 );
[jQuery] jCarousel advance issue - final item only shows half
http://deweyresearch.oclc.org/pages/035262491.html On the above page, we have two jCarousels that are advancing one-at-a- time until you get to the final item. (22 clicks for carousel at top of page, 16 clicks for the Related Works carousel half way down the page. Try this one, it's easier to see the problem.) The final item in the list is only half shown or less. From there, all things only advance or go back a-half-at-a time. (Or less and yes, I know a good deal of the images are blanks, that is another issue :) We've been working with this for some time and I honestly have no idea why it's happening. You can get to the JS at: http://deweyresearch.oclc.org/pages/js/pages.js I can tell you the problem is less consistent with the top carousel, where only an image is displayed and only one-at-at-time. If the list is small, like on this page (http://deweyresearch.oclc.org/pages/ 029791864.html) the top carousel forwards and advances fine. Any ideas? Any one have the same issue? I can confirm the issue in FF3, IE7, Chrome, Opera and Safari on Windows XP. So it's a pretty consistent problem. Please help. Thanks JD
[jQuery] Re: How to make jQuery work in IE 5.5
jQuery only support IE6+ On Tue, Jun 23, 2009 at 09:49, pHoEniX phoenix1m...@gmail.com wrote: Hi. Recently I had to make a project in IE 5.5 too. IE 5.5 throw almost instantly error. I have downloaded the developer version and try to figure out what could cause the errors. By commenting out line 2167: div.appendChild( document.createComment() ); and removing select/select from line 3122 jquery works perfect. But I am not sure these changes are safe. I need sy comment. Thanks in advance.
[jQuery] [validate] Custom function when error field
Hi, im using the 'success' param to add some extra step when validating: i change the background color of the parent div to green. Also, if there is an error i want to change the background color of the parent div to orange, but i cant found a function/callbackMethod/propiertie like 'error' or something. is there a way to do it?
[jQuery] Validate textbox (required=true) on combobox selected value
Hi all, I have to validate a textbox if the user select a particular value in a combobox. For example, if the user select the Specify new color in the following combobox: select id=color name=color option value=-1Specify new color/option option value=1Red/option option value=2Green/option option value=3Blue/option option value=4White/option option value=5Black/option /select I have to validate the following textbox: input id=newColor name=newColor type=text / with the Validate Plugin: rules: { newColor: { required: ?? }, How can I accomplish this? Thanks in advance. Luis.
[jQuery] Re: [validate] Custom function when error field
Use the highlight and unhighlight options for that. Jörn On Wed, Jun 24, 2009 at 2:34 PM, Manolet Gmailmano...@gmail.com wrote: Hi, im using the 'success' param to add some extra step when validating: i change the background color of the parent div to green. Also, if there is an error i want to change the background color of the parent div to orange, but i cant found a function/callbackMethod/propiertie like 'error' or something. is there a way to do it?
[jQuery] Re: superfish horizontal navbar with a third level
Hi Charlie, You're right. I'm working on a wordpress theme. 'current-cat-parent' is a class created by WP. So here is a part of the code generated: superfish.js: sf.c = { bcClass : 'sf-breadcrumb', menuClass : 'sf-js-enabled', anchorClass : 'sf-with-ul', arrowClass : 'sf-sub-indicator', shadowClass : 'sf-shadow' }; sf.defaults = { hoverClass : 'sfHover', pathClass : 'current', pathLevels : 2, delay : 100, animation : {opacity:'show'}, speed : 'normal', autoArrows : false, dropShadows : false, disableHI : true, // true disables hoverIntent detection onInit : function(){}, // callback functions onBeforeShow: function(){}, onShow : function(){}, onHide : function(){} }; menu source: ul class=sf-menu sf-navbar li class=cat-item cat-item-20a href=/expomidia/ category/servicos/ title=serviços/a // THIS ITEM LOSES HIGHLIGHT (sfHover sf-breadcrumb) WHEN I CLICK THE SECOND SUB-LEVEL CAUSING... ul class='children' li class=cat-item cat-item-6a href=/ expomidia/category/servicos/feiras/ title=feiras comerciais/a/ li li class=cat-item cat-item-5 current-cat- parent sfHover sf-breadcrumba href=/expomidia/category/servicos/ eventos-comerciais/ title=eventos comerciais/a // ... THIS ITEM AND ... ul class='children' li class=cat-item cat- item-21a href=/expomidia/category/servicos/eventos-comerciais/ lancamento/ title=lançamento de produtos/a/li li class=cat-item cat-item-11 current-cat current sfHover sf-breadcrumba href=/expomidia/ category/servicos/eventos-comerciais/relacionamento/ title=eventos de relacionamento/a/li ... THIS ITEM TO DISAPPEAR. /ul /li /ul /li /ul I've tried changing pathLevels to 1, 2, 3 to no avail. I think it's something in the core of superfish.js. What intrigues me is that clicking the first sub-level does exactly what I need. It's only when I click the second one that it messes it up. Could a parameter be changed in superfish.js to allow this second sub-level to remain visible? Thank you in advance for your help. On Jun 23, 9:34 pm, Charlie charlie...@gmail.com wrote: 'current-cat-parent' isn't a class used in originalsuperfish. Is this a CMS installation(joomla or other?) You either have a modified version, or this class comes from your template. Sounds like you have other css and/or scripts affecting menu. No way to tell without link or code Roberto da Costa wrote:Hi, I'm in trouble implementingsuperfishin a website project. My problem is: I have a category based menu item that has two sub-levels set to display horizontally. I hover the first menu item and the first sub- level shows. Then I click the first sub-level and both it and its parent-item get highlighted and stay visible. Then I do the same to the sub-level below these but it doesn't work. This second sub-level gets the right class ('current') but the first level loses its 'current-cat-parent sfHover sf-breadcrumb' classes causing all levels to disappear. Can someone help me please?
[jQuery] jquery more than one script gives conflict what to do?
I am trying to use more than one script in my page (lightbox is added) If one or the other is removed all works fine. I found - script jQuery.noConflict(); // Use jQuery via jQuery(...) jQuery(document).ready(function(){ jQuery(div).hide(); }); // Use Prototype with $(...), etc. $('someid').hide(); /script --- But I have no idea what of the parts of the script to put where in the code above. Can anybody help me to get the scripts underneath to get to work next to eachother? --- script type=text/javascript src=http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js/script script type=text/javascript src=http://css-template- layout.googlecode.com/files/jquery.tpl_layout1.1.1.js/script script type=text/javascript jQuery(document).ready(function() { jQuery.setTemplateLayout() }); /script !-- Arquivos utilizados pelo jQuery lightBox plugin -- script type=text/javascript src=js/jquery.js/script script type=text/javascript src=js/jquery.lightbox-0.5.js/ script !-- Ativando o jQuery lightBox plugin -- script type=text/javascript $(function() { $('#gallery a').lightBox(); }); /script Thanx!
[jQuery] autocomplete
autocomplete border for suggestion list is not showing properly when i am changing it's width. please help. Thanks in advance.
[jQuery] Tree View
Hi , i am newbie to Jquery and Dynatree also. I want to Load my tree dynamically and need to get the tree data from db. For that I am using initajax() like this $(function(){ $(#myTree).dynatree({ initAjax: { url: http://localhost:8080/TreeSample/pages/ test.jsp, dataType: json, data: { key: key, mode: baseFolders } } }); }); I for Load Error message in my tree. Instead of JSON I want to use XML . how can I achieve this? Kindly help me out on this.. Thanks... By s...@mbps
[jQuery] Superfish - Expand and close Accordion List by choice without hover
hi, i would like to ask what must i change and in which file / line so i can have instead of on hover and closing automatically the ability to expand by myself and close myself the menu with accordion list choise...the site preview is: http://preview.nosmoke.gr ty in advanced for your help
[jQuery] Re: autocomplete
How about some code, or what it's doing / not doing? We can't help you unless you help us. andy -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of smiling_face Sent: Wednesday, June 24, 2009 8:22 AM To: jQuery (English) Subject: [jQuery] autocomplete autocomplete border for suggestion list is not showing properly when i am changing it's width. please help. Thanks in advance.
[jQuery] Re: Problem with double submit of and form
thanks for fast response. Sorry but the form was still executed twice. Best Regards Johannes Geppert - web: http://www.jgeppert.com twitter: http://twitter.com/jogep On 24 Jun., 11:42, fredrik carl.fredrik.bonan...@gmail.com wrote: You have to prevent the form it self from posting. I think when you return false, you return it to the jQuery event, not the post event. Try this: $('#tpcsubmit').closest(form).submit(function(e) { e.preventDefault(); $(this).ajaxSubmit(optionstpcsubmit); });
[jQuery] Re: Problem with double submit of and form
What happens when you tie the event to the form instead of the submit button: $('#teilprojekt_create').submit(function(e) { e.preventDefault(); $(this).ajaxSubmit(optionstpcsubmit); }); If that doesn't work, see what the length of $('#tpcsubmit').closest (form) is. console.log($('#tpcsubmit').closest(form).length)) or alert($('#tpcsubmit').closest(form).length) ..fredrik On Jun 24, 3:47 pm, jogep joh...@googlemail.com wrote: thanks for fast response. Sorry but the form was still executed twice. Best Regards Johannes Geppert - web:http://www.jgeppert.com twitter:http://twitter.com/jogep On 24 Jun., 11:42, fredrik carl.fredrik.bonan...@gmail.com wrote: You have to prevent the form it self from posting. I think when you return false, you return it to the jQuery event, not the post event. Try this: $('#tpcsubmit').closest(form).submit(function(e) { e.preventDefault(); $(this).ajaxSubmit(optionstpcsubmit); });
[jQuery] Re: jquery more than one script gives conflict what to do?
jQuery.noConflict() is used for using jQuery framework with other framework. I think you problem is that you load jQuery framework twice: script type=text/javascript src=http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js/script and: script type=text/javascript src=js/jquery.js/script Just load it one time and see if it works: script type=text/javascript src=http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js/script script type=text/javascript src=http://css-template- layout.googlecode.com/files/jquery.tpl_layout1.1.1.js/script script type=text/javascript src=js/jquery.lightbox-0.5.js/ script script type=text/javascript jQuery(document).ready(function() { jQuery.setTemplateLayout() }); $(function() { $('#gallery a').lightBox(); }); /script ..fredrik On Jun 24, 3:07 pm, Jabu Niobe rrfot...@gmail.com wrote: I am trying to use more than one script in my page (lightbox is added) If one or the other is removed all works fine. I found - script jQuery.noConflict(); // Use jQuery via jQuery(...) jQuery(document).ready(function(){ jQuery(div).hide(); }); // Use Prototype with $(...), etc. $('someid').hide(); /script --- But I have no idea what of the parts of the script to put where in the code above. Can anybody help me to get the scripts underneath to get to work next to eachother? --- script type=text/javascript src=http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js/script script type=text/javascript src=http://css-template- layout.googlecode.com/files/jquery.tpl_layout1.1.1.js/script script type=text/javascript jQuery(document).ready(function() { jQuery.setTemplateLayout()}); /script !-- Arquivos utilizados pelo jQuery lightBox plugin -- script type=text/javascript src=js/jquery.js/script script type=text/javascript src=js/jquery.lightbox-0.5.js/ script !-- Ativando o jQuery lightBox plugin -- script type=text/javascript $(function() { $('#gallery a').lightBox(); }); /script Thanx!
[jQuery] Re: Internet Explorer and the html method??
Thanks a ton! Worked!! And totally agreed, IE6 should be out of way for (mental) security reasons :D Thanks again! fredrik escribi: I'm with James. Make a var html that you append to content. But for your problem, IE6 is something that should never been invented !! Try some somtehing like: var html = 'div class="thumb'+nu+'"a href="" class="moz-txt-link-rfc2396E" href="http://mylink.com">"http://mylink.com"img src="" alt="'+alt+'" name="image'+nu+'" style="border:3px solid red;height:62px;width:82px" //a/div'; $('#content').append(html); Just to see if the element even pops up. I know that IE6 sometimes have problems reading xml attributes, so it could be something wrong with the value of the img src you trying to add. ..fredrik On Jun 24, 10:04am, Araceli Domnguez adoming...@vivocom.es wrote: James thanks a ton for answering, but no changes with your suggestion: Internet Explorer 6 won't show a thing, but Firefox and Safari will show thumbnails and link without any problems. I'm sure this is a stupid tiny issue but I cannot detect what it is. Here is the code I'm using (29 Kb):http://www.vivocom.tv/test/IEandJQUERY.rar Please have a look at it, you'll save another human being dealing with IE from suicide =8-O ;) Many, many thanks once again! Ara James escribi:In here: div class=thumb"+nu+" you're trying to set the variable "nu", yet, "nu" is also a part of the variable you're trying to set. You should add ending semi-colons ( ; ) to properly end your code, which will reduce errors. I think you want: var nu = $(this).find('nu').text(); var html = "div class=thumb"+nu+"a href=''imgsrc='images/"+thumb+".jpg' alt='"+alt+"' name='image"+nu+"' width=82 height=62 border=0/a/div"; $("#content").append(html); On Jun 22, 9:50pm, Lleounadoming...@vivocom.eswrote:Dear all, The following code is working great for all browsers except for Internet Explorer .. I've been investigating and the problem seems to be the html method. How can I change the script for it to work in Internet Explorer also? Thanks in advance! t;script src="" type="text/_javascript_"/ script script type="application/_javascript_" $(function() { $.ajax({ type: "GET", url: "myxml.xml", dataType: "xml", success: function(xml) { $(xml).find('item').each(function(){ var thumb = $(this).find('thumb').text() var ids = $(this).find('ids').text() var alt = $(this).find('alt').text() var nu = $(this).find('nu').text() .html("div class=thumb"+nu+"a href=''img src='' alt='"+alt+"' name='image"+nu+"' width=82 height=62 border=0/a/div") .appendTo('#content'); }); //close each( } }); //close $.ajax( }); //close $ /script div id="content"/div -- Araceli Domnguez Desarrollo de Producto vivocom T.(34) 91 542 8424 F.(34) 91 542 8445 www.vivocom.es www.vivocom.tv www.negopolis.tv www.cruzroja.tv **VivoCom Confidentiality and Security Notice** This e-mail message is CONFIDENTIAL and may contain legally privileged information. If you are not the intended recipient you should not read, copy, distribute or disclose this e-mail or otherwise use the information in this e-mail. Please telephone, e-mail or fax us immediately and delete the message from your system. The addressee cannot use or quote this e-mail other than for the referenced matter. Security Warning: e-mail is susceptible to delivery failures which may result in non-delivery or delayed delivery, and is also susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any of the above or the consequences thereof. Viruses: Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. Este e-mail es CONFIDENCIAL y puede contener informacin legalmente privilegiada. Si usted no es el destinatario al que va dirigido, no debe leer, copiar, distribuir o comunicar este mensaje, ni hacer uso de la informacin que contiene. Por favor, llmenos o mndenos un fax o un e-mail y borre este mensaje de su sistema. El destinatario slo puede usar o citar este e-mail para el asunto mencionado en la referencia. Advertencia de seguridad: los e-mail estn expuestos a fallos de envo que pueden dar lugar a que no lleguen a su destinatario o lo hagan con retraso; tambin estn expuestos a corrupciones de su contenido, y pueden ser interceptados o modificados por terceros no autorizados; esta Firma no se hace responsable de ninguno de dichos problemas, ni de las consecuencias que puedan causar. Virus: aunque hemos tomado medidas para asegurarnos de que este correo electrnico y los archivos adjuntos estn libres de virus, recomendamos que, de acuerdo con las buenas prcticas informticas, el receptor se asegure de que realmente estn libres de virus.
[jQuery] Re: Validate textbox (required=true) on combobox selected value
Don't really understand the Validate Plugin, but you can use this to validate if user selected newcolor or any other: if(parseInt($('#color').val) === -1 $('#newColor').val().length === 0){ /** user hasn't filled out a new color in #newColor when choose to Specify new color **/ }else{ /** uses has selected other color **/ } ..fredrik On Jun 24, 2:52 pm, ciupaz luigi.zambe...@gmail.com wrote: Hi all, I have to validate a textbox if the user select a particular value in a combobox. For example, if the user select the Specify new color in the following combobox: select id=color name=color option value=-1Specify new color/option option value=1Red/option option value=2Green/option option value=3Blue/option option value=4White/option option value=5Black/option /select I have to validate the following textbox: input id=newColor name=newColor type=text / with the Validate Plugin: rules: { newColor: { required: ?? }, How can I accomplish this? Thanks in advance. Luis.
[jQuery] how can i set the attribute of an item in a select box to selected?
how can i set the attribute of an item in a select box to selected?
[jQuery] Re: jquery more than one script gives conflict what to do?
Still no luck :( With your code: http://christien.info/tijdelijk/edge/test.php The original layout without the lightbox code: http://christien.info/tijdelijk/edge/aboutus.php 2009/6/24 fredrik carl.fredrik.bonan...@gmail.com jQuery.noConflict() is used for using jQuery framework with other framework. I think you problem is that you load jQuery framework twice: script type=text/javascript src=http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.jshttp://ajax.googleapis.com/ajax/%0Alibs/jquery/1.3.2/jquery.min.js /script and: script type=text/javascript src=js/jquery.js/script Just load it one time and see if it works: script type=text/javascript src=http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.jshttp://ajax.googleapis.com/ajax/%0Alibs/jquery/1.3.2/jquery.min.js /script script type=text/javascript src=http://css-template- layout.googlecode.com/files/jquery.tpl_layout1.1.1.js/script script type=text/javascript src=js/jquery.lightbox-0.5.js/ script script type=text/javascript jQuery(document).ready(function() { jQuery.setTemplateLayout() }); $(function() { $('#gallery a').lightBox(); }); /script ..fredrik On Jun 24, 3:07 pm, Jabu Niobe rrfot...@gmail.com wrote: I am trying to use more than one script in my page (lightbox is added) If one or the other is removed all works fine. I found - script jQuery.noConflict(); // Use jQuery via jQuery(...) jQuery(document).ready(function(){ jQuery(div).hide(); }); // Use Prototype with $(...), etc. $('someid').hide(); /script --- But I have no idea what of the parts of the script to put where in the code above. Can anybody help me to get the scripts underneath to get to work next to eachother? --- script type=text/javascript src=http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js/script script type=text/javascript src=http://css-template- layout.googlecode.com/files/jquery.tpl_layout1.1.1.js/script script type=text/javascript jQuery(document).ready(function() { jQuery.setTemplateLayout()}); /script !-- Arquivos utilizados pelo jQuery lightBox plugin -- script type=text/javascript src=js/jquery.js/script script type=text/javascript src=js/jquery.lightbox-0.5.js/ script !-- Ativando o jQuery lightBox plugin -- script type=text/javascript $(function() { $('#gallery a').lightBox(); }); /script Thanx!
[jQuery] namespace
How do I create a namespace within jQuery ? (function($) { var myNS = {}; })(jQuery); (function($) { $.fn.myNS.foo_1 = function(){ }; })(jQuery); (function($) { $.fn.myNS.foo_2 = function(){ }; })(jQuery); $(#id1, id2).myNS.foo_1(); $(.cls1, .cls2).myNS.foo_2();
[jQuery] only one allowed at a time
I'm creating a photo gallery admin section. I'm allowing the user to decide which single image they would like to be the gallery image (the image that displays on the list of galleries page). I am using a green box to show which image is currently set as the gallery image, and a red box to show which one's are not selected. The green box is set as just the image, whereas the red box is a link to select that image. The code I currently have seems to turn all the images into red boxes, but does not turn the currently clicked item green. Here is what I have: [code] $(.main_image).live('click',function(){ var href = $(this).attr('href'); $.get(href); var $rows = $('#main_table tr'); $rows.each(function(){ var $id = $(this).attr('id'); $id = $id.split(_); $id = $id[1]; $(this).find('.gallery_image').html('a class=main_image href=/ admin/galleries/p_makemain/' + $id + '.phpimg alt= title=Main style=border: 0pt none; src=/admin/images/redbox.png //a'); }); $(this).parent().html=(img src='/admin/images/greenbox.png' alt='' / ); return false; }); [/code] The table that the html is in is setup as: [code] table width=95% id=main_table cellpadding=0 cellspacing=0 border=0 tr th colspan=2 align=leftMove/th th/th th align=leftName and Description/th th/th th colspan=2 align=leftOptions/th th/th th align=leftShow/Hide/th th/th th align=leftGallerynbsp;Image/th /tr tr id=photo_1 class=photo td valign=top a href=http://www.hypertextwebdesign.com/admin/galleries/p_moveup/ 1.php class=moveup style=display:none;img src='/admin/images/ up.gif' style='border:0;margin:0' title='Move Up' alt='' //a /td td valign=top a href=http://www.hypertextwebdesign.com/admin/galleries/p_movedown/ 1.php class=movedownimg src='/admin/images/down.gif' style='border:0;margin:0' title='Move Down' alt='' //a /td tdnbsp;nbsp;nbsp;nbsp;/td td valign=topa href=http://www.hypertextwebdesign.com/admin/ galleries/p_view/1.php class=image_popuptest photo/abr /this is a test photo entry. No photo actually exists for this record./td tdnbsp;nbsp;nbsp;nbsp;/td td valign=topa href=http://www.hypertextwebdesign.com/admin/ galleries/p_edit/1.phpimg src='/admin/images/edit.gif' style='border:0;margin:0' title='Edit Photo Info' alt='' //a/td td valign=topa href=http://www.hypertextwebdesign.com/admin/ galleries/p_delete/1.php class=deleteimg src='/admin/images/ delete.gif' style='border:0;margin:0' title='Delete Photo' alt='' // a/td tdnbsp;nbsp;nbsp;nbsp;/td td valign=top style=text-align:center; a href=http://www.hypertextwebdesign.com/admin/galleries/ p_deactivate/1.php class=activeimg src='/admin/images/ greenbox.png' style='border:0' title='Active' alt='' //a /td tdnbsp;nbsp;nbsp;nbsp;/td td valign=top style=text-align:center; class=gallery_image img src=http://www.hypertextwebdesign.com/admin/images/ greenbox.png / /td /tr tr td colspan=11hr //td /tr tr id=photo_2 class=photo td valign=top a href=http://www.hypertextwebdesign.com/admin/galleries/p_moveup/ 2.php class=moveupimg src='/admin/images/up.gif' style='border: 0;margin:0' title='Move Up' alt='' //a /td td valign=top a href=http://www.hypertextwebdesign.com/admin/galleries/p_movedown/ 2.php class=movedown style=display:noneimg src='/admin/images/ down.gif' style='border:0;margin:0' title='Move Down' alt='' //a /td tdnbsp;nbsp;nbsp;nbsp;/td td valign=topa href=http://www.hypertextwebdesign.com/admin/ galleries/p_view/2.php class=image_popuptest photo/abr /this is a test photo entry. No photo actually exists for this record./td tdnbsp;nbsp;nbsp;nbsp;/td td valign=topa href=http://www.hypertextwebdesign.com/admin/ galleries/p_edit/2.phpimg src='/admin/images/edit.gif' style='border:0;margin:0' title='Edit Photo Info' alt='' //a/td td valign=topa href=http://www.hypertextwebdesign.com/admin/ galleries/p_delete/2.php class=deleteimg src='/admin/images/ delete.gif' style='border:0;margin:0' title='Delete Photo' alt='' // a/td tdnbsp;nbsp;nbsp;nbsp;/td td valign=top style=text-align:center; a href=http://www.hypertextwebdesign.com/admin/galleries/ p_deactivate/2.php class=activeimg src='/admin/images/ greenbox.png' style='border:0' title='Active' alt='' //a /td tdnbsp;nbsp;nbsp;nbsp;/td td valign=top style=text-align:center; class=gallery_image a href=http://www.hypertextwebdesign.com/admin/galleries/p_makemain/ 2.php class=main_imageimg src='/admin/images/redbox.png' style='border:0' title='Main' alt='' //a /td /tr tr td colspan=11hr //td /tr /table [/code] Please help. I appreciate any and all help
[jQuery] Re: how can i set the attribute of an item in a select box to selected?
ok , ive posted about 6 questions in this group since i joined and not one has answered. not even an attempt. I've seen question, both easier and more difficult that mine being answered. Am i asking in the wrong way? Is there something im forgetting to include? what can i do to make my question more likely to be answered?
[jQuery] how to ask questions
ok , ive posted about 6 questions in this group since i joined and not one has answered. not even an attempt. I've seen question, both easier and more difficult that mine being answered. Am i asking in the wrong way? Is there something im forgetting to include? what can i do to make my question more likely to be answered?
[jQuery] Re: how to ask questions
Looking through the archives to this group I can see that at least two of your questions have been answered: http://groups.google.com/group/jquery-en/browse_thread/thread/63045dd1dd66ee81/9910e8ed72d0c764?lnk=gstq=shaded#9910e8ed72d0c764 http://groups.google.com/group/jquery-en/browse_thread/thread/443972f8052ad397/40b430bdff4abff7?lnk=gstq=shaded#40b430bdff4abff7 Generally speaking I think that the more detail one can give in a question, and in particular a link to an example, the more likely one is to get a helpful response. Michael On Wed, Jun 24, 2009 at 4:10 PM, shadeddar...@eztransition.com wrote: ok , ive posted about 6 questions in this group since i joined and not one has answered. not even an attempt. I've seen question, both easier and more difficult that mine being answered. Am i asking in the wrong way? Is there something im forgetting to include? what can i do to make my question more likely to be answered?
[jQuery] Re: how can i set the attribute of an item in a select box to selected?
On Jun 24, 2009, at 11:10 AM, shaded wrote: ok , ive posted about 6 questions in this group since i joined and not one has answered. not even an attempt. I've seen question, both easier and more difficult that mine being answered. Am i asking in the wrong way? Is there something im forgetting to include? what can i do to make my question more likely to be answered? It's just the sheer volume of the list that is an issue, perhaps. But in this particular case, you ask a question that is very easily answered by the Googles as well as the list archives. The answer is, I think, to use val(): $(...whatever-identifies-your- select...).val(...the-value-you-want-selected...); For multiple select values, you may need to use, for each of those options, the attr() function to set selected to selected (or true). I am a bit of a newbie myself, so I am offering the above more as clues, than as exact answers. If they do not lead you to a solution, ping us again, and I will actually test with code and give you a working example. --ravi
[jQuery] Re: jQuery works fine on localhost but doesn't work on external server.
On Tue, Jun 23, 2009 at 7:13 PM, Kittrickkit.macallis...@gmail.com wrote: I've got jQuery and 2 plugin libraries running on my website. One runs the navigation and the other runs a dropdown search box. Everything works great on my localhost, but when I copied the directory to the external server none of the jQuery worked. I'm not getting any Errors in my error log, and the directory has been copied exactly. Can anyone help me? http://www.kitfoxink.com/www/index.php I can't say what the problem is but it might be related to the fact that this file: http://www.kitfoxink.com/www/library/jquery-autocomplete/searchdata.php ... seems not to be working properly: bWarning/b: Cannot modify header information - headers already sent by (output started at /home/kitfoxin/public_html/www/library/jquery-autocomplete/searchdata.php:1) in b/home/kitfoxin/public_html/www/library/jquery-autocomplete/searchdata.php/b on line b41/b
[jQuery] Re: how to ask questions
Take it easy man... We all read all the posts, maybe no one knows what you are asking for. But, tell me what is your question, maybe I can study it a little further.. Regards - Original Message - From: shaded dar...@eztransition.com To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, June 24, 2009 9:10 AM Subject: [jQuery] how to ask questions ok , ive posted about 6 questions in this group since i joined and not one has answered. not even an attempt. I've seen question, both easier and more difficult that mine being answered. Am i asking in the wrong way? Is there something im forgetting to include? what can i do to make my question more likely to be answered?
[jQuery] Re: how to ask questions
thanks for the replies, @cesar, i'm not mad or anything, i just figure i was asking in the wrong way and wanted to find out what im doing wrong. @michael, thanks for pointing out that 2 questions were answered. This is my first google group and i figured that replies to my post would be emailed to me. maybe i can set that up in settings or something.
[jQuery] Re: select all values of a multiple select list
thanks, charlie, jquery feels like such a puzzle, and i get bits and pieces from everywhere. Can we take this to another level? what if i want to have a first element in the list, example --select all--, how do i set it so when this is selected, all values get selected. On Jun 23, 11:55 am, Charlie charlie...@gmail.com wrote: $(#yourSelect option).attr(selected,selected);shadedwrote:is there a way to select all values of a multiple select list by default?
[jQuery] Treeview - Set branch to remain permanently open
Hello Joern and group members, I am using the TreeView plugin and have come across a situation where I need to set one of the top level branches to remain open. Using the example below, if I remove the span tag from my To Always Remain Open list item, it removes the ability to 'click/trigger' the expand/collapse event. The issue I am having is that the TreeView plugin is still assigning a 'collapsible' class to the li tag, so when I click on the Can Open or Close list item, then it opens and in turn closes my To Always Remain Open item. Is there a way for instance for me to modify the script to 'NOT' add the collapsible class to list items that have the 'open' class applied to them? ul id=menu_treeview class=filetree treeview li class=open collapsableTo Always Remain Open ul lia class= href=mypage1.htmlAlways Visible Link 1/a/li li class=lasta class= href=mypage2.htmlAlways Visible Link 2/a/li /ul /li li class=expandablespan class=headingCan Open or Close/ span ul lia class= href=mypage3.htmlchild link 1/a/ li li class=lasta class= href=mypage4.htmlchild link 2/a/li /ul /li /ul I know I can simply build my own items outside of the treeview UL, but my menu is being created dynamically through a back end menu builder. I have a flag they can set called always expanded that I am trying to integrate with this. Any help is much appreciated.
[jQuery] cluetip issue firefox/safari local content w/link
Cluetip works fine in IE But in Firefox/Safari I am displaying multiple cluetips(7). Each cluetip corresponds to a different event on our calendar, in theory and for discussion purposes, one for each day of the week. Hovering over the first link (sunday) yields a cluetip with a title and content, however, the content corresponds to the last link (saturday). In safari - it is displaying content from the third link. Hovering over any subsequent link shows only a title and no content. I have moved the link around within the content - to no avail. So, ie, it does not matter if the link is within the rel class or within it. (see the difference between Sunday and Monday below) If I remove the links from the content, everything works fine. My goal is to have my content sticky and clickable/linkable. Right now, I am relying soley on the initial link portion for linking. On hover, I would like the cluetip to cover up the original link and that the cluetip popup be clickable to the relevant page. html notes example cluetip link a href='/Store/select.aspx?sid=15454' class=cell_link rel=.nxt_billing title=SUNDAY the static content is contained within the hd and ft divs - the popup/ cluetip content is within the bd div **note I have also tried linking the rel to bd - but this created even more issues as I have other bd divs within the page html code(jquery call is below) div class=container table border=0 cellpadding=0 cellspacing=0 tr td a href='/Store/select.aspx?sid=15454' class=cell_link rel=.nxt_billing title=SUNDAY div class=evt_dialog div class=content div class=hd Wed 06/24/div div class=ftimg onclick='javascript: redirect(http://localhost/Store/select.aspx?sid=15454;);' border=0 src=/Resources/Images/Venues/thumbsm/newbordergray.png //div div class=bd a class=linktip href='/Store/ select.aspx?sid=15454' div class=nxt_billing img border=0 src=/ Resources/Images/Venues/thumbsm/newbordergray.png align=right class=imagetip / dldtTHE SWARGEddEGGO amp; STACY/Doors: 8:30 / Show: 09:00 PM/$8 ADV / $12 DOS/All Ages/dd/dt/dl /div /a /div /div div class=bdiv/div/div /div /a /td td a href='/Store/select.aspx?sid=15452' class=cell_link rel=.nxt_billing title=MONDAY div class=evt_dialog div class=content div class=hd Thu 06/25/div div class=ftimg onclick='javascript: redirect(http://localhost/Store/select.aspx?sid=15452;);' border=0 src=/Resources/Images/Acts/thumbsm/Dynamo.jpg //div div class=bd div class=nxt_billing a class=linktip href='/Store/ select.aspx?sid=15452' img border=0 src=/ Resources/Images/Acts/thumbsm/Dynamo.jpg align=right class=imagetip / dldtTHE DYNAMOddSPECIAL GUEST/Doors: 8:30 / Show: 09:00 PM/$10 ADV / $15 DOS/ 21+/dd/dt/dl /a /div /div /div div class=bdiv/div/div /div /a /td td a href='/Store/select.aspx?sid=15430' class=cell_link rel=.nxt_billing title=TUESDAY div class=evt_dialog div class=content div class=hd Fri 06/26/div div class=ftimg onclick='javascript: redirect(http://localhost/Store/select.aspx?sid=15430;);' border=0 src=/Resources/Images/Acts/thumbsm/livecrow.jpg //div div class=bd a class=linktip href='/Store/ select.aspx?sid=15430' div class=nxt_billing img border=0 src=/ Resources/Images/Acts/thumbsm/livecrow.jpg align=right class=imagetip / dldtLIVE CROW amp; FRIENDSddSPECIAL GUEST/Doors: 8:30 / Show: 09:00 PM/ $16.75 ADV / $22 DOS/21+/dd/dt/dl /div /a /div /div div class=bdiv/div/div /div
[jQuery] Please unsubscribe me
Im not sure how to not get these emails anymore
[jQuery] Re: Please unsubscribe me
On Wed, Jun 24, 2009 at 9:23 AM, BlueOysterCult st...@michaelsondesign.comwrote: Im not sure how to not get these emails anymore http://groups.google.com/group/jquery-en click edit my membership -- I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.
[jQuery] Re: Using slideDown in a slideUp callback
I think I figured out the problem. @Ricardo - yeah I agree there shouldn't be a conflict. I'm not using any other scripts. @fredrik - I had tried having the callback call a separate function, didn't work. What seemed to be the issue was that I was doing the effect animations on an iframe load: $(iframe).load(function(){ $(element).slideUp(500, function(){ $(element).slideDown(500); }); }); The time it took the iframe to load seemed to dictate whether the animation would slide or jump. I ended up taking out the load() and just using setTimeout(). Thanks for the responses. On Jun 24, 3:48 am, fredrik carl.fredrik.bonan...@gmail.com wrote: If there's some kinda conflict test to make an extracallbackcall, ie. function doSlideDown(){ $(#externalform).slideDown(500); } $(#pageWrap).slideUp(1000, function(){ doSlideDown(); $(#btn_uopBack).fadeIn(250); }) ..fredrik On Jun 23, 8:52 pm, Matthew mvbo...@gmail.com wrote: Hi all, I am trying toslideUpa container Div and using theslideUp's callbackparameter call slideDown on a different element that is not inside theslideUpcontainer Div: $(#pageWrap).slideUp(1000, function(){ $(#externalform).slideDown(500); $(#btn_uopBack).fadeIn(250); }); One again all the elements being used with the effects are not children or parents of each other. The problem seems to be that when you call a slideDown orslideUp inside aslideUpor slideDowncallbackthe intial effect does not work. So in my above example the $(#pageWrap).slideUpjust jumps up without a slide. I need thecallbackso I can have the effects happen after the initialslideUp. Since I'm calling effects on different elements I can't do the dot chain. Any other way to make this happen? I'd like to avoid settimeout() if possible. ~ Matthew
[jQuery] Re: Please unsubscribe me
Are you just asking in general or have you started receiving every message posted to the group lately (for no reason like I have!) ? On Jun 24, 9:23 am, BlueOysterCult st...@michaelsondesign.com wrote: Im not sure how to not get these emails anymore
[jQuery] Re: Problem with double submit of and form
when I try your code the form will still executed twice. The Alert tells me 1 closest form . Any other Idea? Thank You Johannes - web:http://www.jgeppert.com twitter:http://twitter.com/jogep On 24 Jun., 16:01, fredrik carl.fredrik.bonan...@gmail.com wrote: What happens when you tie the event to the form instead of the submit button: $('#teilprojekt_create').submit(function(e) { e.preventDefault(); $(this).ajaxSubmit(optionstpcsubmit); }); If that doesn't work, see what the length of $('#tpcsubmit').closest (form) is. console.log($('#tpcsubmit').closest(form).length)) or alert($('#tpcsubmit').closest(form).length) ..fredrik On Jun 24, 3:47 pm, jogep joh...@googlemail.com wrote: thanks for fast response. Sorry but the form was still executed twice. Best Regards Johannes Geppert - web:http://www.jgeppert.com twitter:http://twitter.com/jogep
[jQuery] Re: how can i set the attribute of an item in a select box to selected?
$(select option).attr(selected,selected); if your option or select tag has an id use that: $(#select #option).attr(selected,selected); now depending on what you are trying to do there are different ways to get an array of all the options in a select tag and to determine what option should be selected. Let me know if you need clarification, I may ask for you to be more specific. On Jun 24, 7:24 am, shaded dar...@eztransition.com wrote: how can i set the attribute of an item in a select box to selected?
[jQuery] Re: cluetip issue firefox/safari local content w/link
Also - multiple cluetips are not working in google chrome v2.0.172.33 Only the first one (Sunday) is working
[jQuery] show/hide positioned to its trigger
i am trying to learn how to position a show/hide module to the a that triggers it, instead of a literal positioning through css this is a sample of the module i am trying to position. http://www.roxstyle.com/projects/blssi/cms/de-tool/proj-distribution.html instead of setting the css margins and paddings to the doc space, i would like to set the object relative to the cell where the trigger exists. can anyone point me in the direction of tutorials or samples of this behavior?
[jQuery] Selecting the first of two td's in a tr
Hi All, I'd like to set the align attribute of only the first TD in a TR for an entire table but am not sure how to address them all in one go. Probably an Nth child thing or similar but not sure! Thx, Mike
[jQuery] Re: Selecting the first of two td's in a tr
when you use this code $(tr td) it would create an array of all those td's in the tr. So then we just need to cycle through the first two and set the attribute then break the cycle. var counter = 0; $(tr td).each(function(){ $(this).attr(attribute,value); counter++; if(counter 1) { break; } // after the first two td's stop the iteration through all the td's. }); You can be more specific with what tr you use or you could use a table with a certain class or id: $(table.class tr td).each( hope this helps. On Jun 24, 10:26 am, MikeyJ m.en...@gmail.com wrote: Hi All, I'd like to set the align attribute of only the first TD in a TR for an entire table but am not sure how to address them all in one go. Probably an Nth child thing or similar but not sure! Thx, Mike
[jQuery] ajaxify: load link in same div?
I click an ajaxified link in the left column div, and it loads content in the right column div. All is good! Now, tho, I want to click a link in that right hand content, and replace it with new content. Targeting the right column div name does not work; the content loads in a new window. What am I missing? -- View this message in context: http://www.nabble.com/ajaxify%3A-load-link-in-same-div--tp24189573s27240p24189573.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: show/hide positioned to its trigger
$('tr td:first-child').attr('align', 'value_here'); Maurício -Mensagem Original- De: roxstyle Para: jQuery (English) Enviada em: quarta-feira, 24 de junho de 2009 14:17 Assunto: [jQuery] show/hide positioned to its trigger i am trying to learn how to position a show/hide module to the a that triggers it, instead of a literal positioning through css this is a sample of the module i am trying to position. http://www.roxstyle.com/projects/blssi/cms/de-tool/proj-distribution.html instead of setting the css margins and paddings to the doc space, i would like to set the object relative to the cell where the trigger exists. can anyone point me in the direction of tutorials or samples of this behavior?
[jQuery] Re: Selecting the first of two td's in a tr
actually now that I thought about it my first post may not work... because you'd have to first get all the tr's then take each tr and find the first two td's. You can try my first response, if not try this: $(table tr).each(function(){ var counter = 0; $(this).children().each(function(){ $(this).attr(attribute,value); counter++; if(counter 1) { break; } }); }); this will iterate through the tr's one at a time while only accessing the first two td's for each tr. On Jun 24, 10:43 am, Matthew mvbo...@gmail.com wrote: when you use this code $(tr td) it would create an array of all those td's in the tr. So then we just need to cycle through the first two and set the attribute then break the cycle. var counter = 0; $(tr td).each(function(){ $(this).attr(attribute,value); counter++; if(counter 1) { break; } // after the first two td's stop the iteration through all the td's. }); You can be more specific with what tr you use or you could use a table with a certain class or id: $(table.class tr td).each( hope this helps. On Jun 24, 10:26 am, MikeyJ m.en...@gmail.com wrote: Hi All, I'd like to set the align attribute of only the first TD in a TR for an entire table but am not sure how to address them all in one go. Probably an Nth child thing or similar but not sure! Thx, Mike
[jQuery] Re: Selecting the first of two td's in a tr
Thx Matthew! Great explanation. I probably should have worded one thing a bit differently...I'd like to set this attribute for the first TD in each TR for EVERY TR in an entire table. I'm sure this changes things a tiny bit? Mike On Jun 24, 10:43 am, Matthew mvbo...@gmail.com wrote: when you use this code $(tr td) it would create an array of all those td's in the tr. So then we just need to cycle through the first two and set the attribute then break the cycle. var counter = 0; $(tr td).each(function(){ $(this).attr(attribute,value); counter++; if(counter 1) { break; } // after the first two td's stop the iteration through all the td's. }); You can be more specific with what tr you use or you could use a table with a certain class or id: $(table.class tr td).each( hope this helps. On Jun 24, 10:26 am, MikeyJ m.en...@gmail.com wrote: Hi All, I'd like to set the align attribute of only the first TD in a TR for an entire table but am not sure how to address them all in one go. Probably an Nth child thing or similar but not sure! Thx, Mike
[jQuery] Re: Selecting the first of two td's in a tr
Didn't see your latest post before I posted! I'll give it a spin. Thx! On Jun 24, 10:48 am, Matthew mvbo...@gmail.com wrote: actually now that I thought about it my first post may not work... because you'd have to first get all the tr's then take each tr and find the first two td's. You can try my first response, if not try this: $(table tr).each(function(){ var counter = 0; $(this).children().each(function(){ $(this).attr(attribute,value); counter++; if(counter 1) { break; } }); }); this will iterate through the tr's one at a time while only accessing the first two td's for each tr. On Jun 24, 10:43 am, Matthew mvbo...@gmail.com wrote: when you use this code $(tr td) it would create an array of all those td's in the tr. So then we just need to cycle through the first two and set the attribute then break the cycle. var counter = 0; $(tr td).each(function(){ $(this).attr(attribute,value); counter++; if(counter 1) { break; } // after the first two td's stop the iteration through all the td's. }); You can be more specific with what tr you use or you could use a table with a certain class or id: $(table.class tr td).each( hope this helps. On Jun 24, 10:26 am, MikeyJ m.en...@gmail.com wrote: Hi All, I'd like to set the align attribute of only the first TD in a TR for an entire table but am not sure how to address them all in one go. Probably an Nth child thing or similar but not sure! Thx, Mike
[jQuery] Re: Selecting the first of two td's in a tr
yeah haha let me re-do: $(table#id tr:first-child).each(function(){ $(this).attr(attribute,value); }); try that. I am thinking that the tr:first-child should return the TD for every TR in the table. Im not sure how this will work if you have nested tables. I'm at work so I cant spend the time to test the code before hand. On Jun 24, 10:50 am, MikeyJ m.en...@gmail.com wrote: Thx Matthew! Great explanation. I probably should have worded one thing a bit differently...I'd like to set this attribute for the first TD in each TR for EVERY TR in an entire table. I'm sure this changes things a tiny bit? Mike On Jun 24, 10:43 am, Matthew mvbo...@gmail.com wrote: when you use this code $(tr td) it would create an array of all those td's in the tr. So then we just need to cycle through the first two and set the attribute then break the cycle. var counter = 0; $(tr td).each(function(){ $(this).attr(attribute,value); counter++; if(counter 1) { break; } // after the first two td's stop the iteration through all the td's. }); You can be more specific with what tr you use or you could use a table with a certain class or id: $(table.class tr td).each( hope this helps. On Jun 24, 10:26 am, MikeyJ m.en...@gmail.com wrote: Hi All, I'd like to set the align attribute of only the first TD in a TR for an entire table but am not sure how to address them all in one go. Probably an Nth child thing or similar but not sure! Thx, Mike
[jQuery] Re: how can i set the attribute of an item in a select box to selected?
ravi, matthew, thanks for the responses, and i totally agree that this group is huge. Google could have added a few more features to their groips app. this is very barebones:( here is what im doing, i've been using this (http://remysharp.com/2007/09/18/auto-populate- multiple-select-boxes/) plugin to chain several multiple select boxes where the input from the previous populates values in the next. so far with lots of tweaks and additions it seems to be doing what i want. i have it selecting all values from the next box each time one or more values from the current box is selected. I'd like to add a select all option to the head of each list that would automatically select all options when selected. sounds trivial, but this is my first jquery/ajax project
[jQuery] Re: how can i set the attribute of an item in a select box to selected?
if you are using unique id's on each multiple select you could have a check box that calls a function when checked that will iterate through all of the options in the select and add the selected attribute. You should look into JQuery's each()... it easily iterates through an array where $(#select option).each(function(){}); will iterate through each option in a select. Inside function(){} you would then set the attribute. On Jun 24, 11:08 am, shaded dar...@eztransition.com wrote: ravi, matthew, thanks for the responses, and i totally agree that this group is huge. Google could have added a few more features to their groips app. this is very barebones:( here is what im doing, i've been using this (http://remysharp.com/2007/09/18/auto-populate- multiple-select-boxes/) plugin to chain several multiple select boxes where the input from the previous populates values in the next. so far with lots of tweaks and additions it seems to be doing what i want. i have it selecting all values from the next box each time one or more values from the current box is selected. I'd like to add a select all option to the head of each list that would automatically select all options when selected. sounds trivial, but this is my first jquery/ajax project
[jQuery] Re: Selecting the first of two td's in a tr
Looks like your first two offerings throw this error in Firebug: unlabeled break must be inside loop or switch Your last example works but it only works on the first TR and it affects both TD's in that TR. ?? On Jun 24, 10:59 am, Matthew mvbo...@gmail.com wrote: yeah haha let me re-do: $(table#id tr:first-child).each(function(){ $(this).attr(attribute,value); }); try that. I am thinking that the tr:first-child should return the TD for every TR in the table. Im not sure how this will work if you have nested tables. I'm at work so I cant spend the time to test the code before hand. On Jun 24, 10:50 am, MikeyJ m.en...@gmail.com wrote: Thx Matthew! Great explanation. I probably should have worded one thing a bit differently...I'd like to set this attribute for the first TD in each TR for EVERY TR in an entire table. I'm sure this changes things a tiny bit? Mike On Jun 24, 10:43 am, Matthew mvbo...@gmail.com wrote: when you use this code $(tr td) it would create an array of all those td's in the tr. So then we just need to cycle through the first two and set the attribute then break the cycle. var counter = 0; $(tr td).each(function(){ $(this).attr(attribute,value); counter++; if(counter 1) { break; } // after the first two td's stop the iteration through all the td's. }); You can be more specific with what tr you use or you could use a table with a certain class or id: $(table.class tr td).each( hope this helps. On Jun 24, 10:26 am, MikeyJ m.en...@gmail.com wrote: Hi All, I'd like to set the align attribute of only the first TD in a TR for an entire table but am not sure how to address them all in one go. Probably an Nth child thing or similar but not sure! Thx, Mike
[jQuery] Re: Selecting the first of two td's in a tr
this works and is far shorter and sweeter: $("tr ").each(function() { $("td:first",this).css("color","red"); }); MikeyJ wrote: Looks like your first two offerings throw this error in Firebug: "unlabeled break must be inside loop or switch" Your last example works but it only works on the first TR and it affects both TD's in that TR. ?? On Jun 24, 10:59am, Matthew mvbo...@gmail.com wrote: yeah haha let me re-do: $("table#id tr:first-child").each(function(){ $(this).attr("attribute","value"); }); try that. I am thinking that the tr:first-child should return the TD for every TR in the table. Im not sure how this will work if you have nested tables. I'm at work so I cant spend the time to test the code before hand. On Jun 24, 10:50am, MikeyJ m.en...@gmail.com wrote: Thx Matthew! Great explanation. I probably should have worded one thing a bit differently...I'd like to set this attribute for "the first TD in each TR for EVERY TR in an entire table". I'm sure this changes things a tiny bit? Mike On Jun 24, 10:43am, Matthew mvbo...@gmail.com wrote: when you use this code $("tr td") it would create an array of all those td's in the tr. So then we just need to cycle through the first two and set the attribute then break the cycle. var counter = 0; $("tr td").each(function(){ $(this).attr("attribute","value"); counter++; if(counter 1) { break; } // after the first two td's stop the iteration through all the td's. }); You can be more specific with what tr you use or you could use a table with a certain class or id: $("table.class tr td").each( hope this helps. On Jun 24, 10:26am, MikeyJ m.en...@gmail.com wrote: Hi All, I'd like to set the align attribute of only the first TD in a TR for an entire table but am not sure how to address them all in one go. Probably an Nth child thing or similar but not sure! Thx, Mike
[jQuery] Re: how to ask questions
I've found the best way to get an answer is to make your question concise. Don't make a one sentence post. Put it in detail and separate paragraphs if you have to. If you have code to show and it's only a few lines, post your code. Otherwise, post a link to your code, or better yet, a demo page demonstrating the issue. Code does not show up formatted very well on Google groups and the emails it send, so keep it short if you post code here. Posting a huge block of un-formatted code is a huge turn off and I don't bother looking through it. Same with posts with too much text. I look at those with little text, but having not enough information also makes it difficult to understand what you want. On Jun 24, 5:56 am, shaded dar...@eztransition.com wrote: thanks for the replies, @cesar, i'm not mad or anything, i just figure i was asking in the wrong way and wanted to find out what im doing wrong. @michael, thanks for pointing out that 2 questions were answered. This is my first google group and i figured that replies to my post would be emailed to me. maybe i can set that up in settings or something.
[jQuery] Re: Selecting the first of two td's in a tr
This worked great. Thx to both of you guys!!! On Jun 24, 11:25 am, Charlie charlie...@gmail.com wrote: this works and is far shorter and sweeter: $(tr ).each(function() { $(td:first,this).css(color,red); }); MikeyJ wrote:Looks like your first two offerings throw this error in Firebug: unlabeled break must be inside loop or switch Your last example works but it only works on the first TR and it affects both TD's in that TR. ?? On Jun 24, 10:59 am, Matthewmvbo...@gmail.comwrote:yeah haha let me re-do: $(table#id tr:first-child).each(function(){ $(this).attr(attribute,value); }); try that. I am thinking that the tr:first-child should return the TD for every TR in the table. Im not sure how this will work if you have nested tables. I'm at work so I cant spend the time to test the code before hand. On Jun 24, 10:50 am, MikeyJm.en...@gmail.comwrote:Thx Matthew! Great explanation.I probably should have worded one thing a bit differently...I'd like to set this attribute for the first TD in each TR for EVERY TR in an entire table. I'm sure this changes things a tiny bit?MikeOn Jun 24, 10:43 am, Matthewmvbo...@gmail.comwrote:when you use this code $(tr td) it would create an array of all those td's in the tr. So then we just need to cycle through the first two and set the attribute then break the cycle.var counter = 0; $(tr td).each(function(){ $(this).attr(attribute,value); counter++; if(counter 1) { break; } // after the first two td's stop the iteration through all the td's.});You can be more specific with what tr you use or you could use a table with a certain class or id:$(table.class tr td).each(hope this helps.On Jun 24, 10:26 am, MikeyJm.en...@gmail.comwrote:Hi All,I'd like to set the align attribute of only the first TD in a TR for an entire table but am not sure how to address them all in one go. Probably an Nth child thing or similar but not sure!Thx, Mike
[jQuery] Re: Selecting the first of two td's in a tr
sorry about the error, replace break; with return false; Yeah, ignore the last code then. Try this, I'm trying to find a way of doing this cleanly so I guess we are both learning together haha $(table tr).each(function(){ $(this).children(:first).attr(attribute,value); }); On Jun 24, 11:14 am, MikeyJ m.en...@gmail.com wrote: Looks like your first two offerings throw this error in Firebug: unlabeled break must be inside loop or switch Your last example works but it only works on the first TR and it affects both TD's in that TR. ?? On Jun 24, 10:59 am, Matthew mvbo...@gmail.com wrote: yeah haha let me re-do: $(table#id tr:first-child).each(function(){ $(this).attr(attribute,value); }); try that. I am thinking that the tr:first-child should return the TD for every TR in the table. Im not sure how this will work if you have nested tables. I'm at work so I cant spend the time to test the code before hand. On Jun 24, 10:50 am, MikeyJ m.en...@gmail.com wrote: Thx Matthew! Great explanation. I probably should have worded one thing a bit differently...I'd like to set this attribute for the first TD in each TR for EVERY TR in an entire table. I'm sure this changes things a tiny bit? Mike On Jun 24, 10:43 am, Matthew mvbo...@gmail.com wrote: when you use this code $(tr td) it would create an array of all those td's in the tr. So then we just need to cycle through the first two and set the attribute then break the cycle. var counter = 0; $(tr td).each(function(){ $(this).attr(attribute,value); counter++; if(counter 1) { break; } // after the first two td's stop the iteration through all the td's. }); You can be more specific with what tr you use or you could use a table with a certain class or id: $(table.class tr td).each( hope this helps. On Jun 24, 10:26 am, MikeyJ m.en...@gmail.com wrote: Hi All, I'd like to set the align attribute of only the first TD in a TR for an entire table but am not sure how to address them all in one go. Probably an Nth child thing or similar but not sure! Thx, Mike
[jQuery] Re: Selecting the first of two td's in a tr
No prob! Looks like you are real close to what Charlie just posted that works great, except that it applies to every table on the page. Once I added the table id it was perfect! $(table#mytableid tr).each(function() { $(td:first,this).attr(align,right); }); On Jun 24, 11:31 am, Matthew mvbo...@gmail.com wrote: sorry about the error, replace break; with return false; Yeah, ignore the last code then. Try this, I'm trying to find a way of doing this cleanly so I guess we are both learning together haha $(table tr).each(function(){ $(this).children(:first).attr(attribute,value); }); On Jun 24, 11:14 am, MikeyJ m.en...@gmail.com wrote: Looks like your first two offerings throw this error in Firebug: unlabeled break must be inside loop or switch Your last example works but it only works on the first TR and it affects both TD's in that TR. ?? On Jun 24, 10:59 am, Matthew mvbo...@gmail.com wrote: yeah haha let me re-do: $(table#id tr:first-child).each(function(){ $(this).attr(attribute,value); }); try that. I am thinking that the tr:first-child should return the TD for every TR in the table. Im not sure how this will work if you have nested tables. I'm at work so I cant spend the time to test the code before hand. On Jun 24, 10:50 am, MikeyJ m.en...@gmail.com wrote: Thx Matthew! Great explanation. I probably should have worded one thing a bit differently...I'd like to set this attribute for the first TD in each TR for EVERY TR in an entire table. I'm sure this changes things a tiny bit? Mike On Jun 24, 10:43 am, Matthew mvbo...@gmail.com wrote: when you use this code $(tr td) it would create an array of all those td's in the tr. So then we just need to cycle through the first two and set the attribute then break the cycle. var counter = 0; $(tr td).each(function(){ $(this).attr(attribute,value); counter++; if(counter 1) { break; } // after the first two td's stop the iteration through all the td's. }); You can be more specific with what tr you use or you could use a table with a certain class or id: $(table.class tr td).each( hope this helps. On Jun 24, 10:26 am, MikeyJ m.en...@gmail.com wrote: Hi All, I'd like to set the align attribute of only the first TD in a TR for an entire table but am not sure how to address them all in one go. Probably an Nth child thing or similar but not sure! Thx, Mike
[jQuery] Re: select all values of a multiple select list
actually I'm not really sure of *best* way on this one but can help steer you. I've only ever needed to use change() on selects without selecting all.Thre might be better suggesstions like blur or if "select all" is first there won't be a change, and it seems IE doesn't like $("option").click() so here goes: $("#yourSelect".change( function() { var selectedValue= $(this).val(); if (selectedValue== "all") { $(this).children("option").attr("selected","selected");// may not need this but it's here if you do //do something here if all selected } ///do something here for values other than "all" }); select id="yourSelect" option Select from list/option option value="all"Select All/option ./select In this case a little snippet of your select would help ( saves time for somone to have to create some markup to aid your situation), as well as more about what you want to accomplish when you do get "select all" shaded wrote: thanks, charlie, jquery feels like such a puzzle, and i get bits and pieces from everywhere. Can we take this to another level? what if i want to have a first element in the list, example --select all--, how do i set it so when this is selected, all values get selected. On Jun 23, 11:55am, Charlie charlie...@gmail.com wrote: $("#yourSelect option").attr("selected","selected");shadedwrote:is there a way to select all values of a multiple select list by default?
[jQuery] Re: Selecting the first of two td's in a tr
Sweet, thanks Charlie... Charlie, how did you find out about: $(td:first,this)? In the jquery docs i havent seen the ,this I'm assuming that adding that filters out the first td of each tr, I'd be interesting in knowing more about how to filter things. Looks like I could make most of my code way more efficient. On Jun 24, 11:35 am, MikeyJ m.en...@gmail.com wrote: No prob! Looks like you are real close to what Charlie just posted that works great, except that it applies to every table on the page. Once I added the table id it was perfect! $(table#mytableid tr).each(function() { $(td:first,this).attr(align,right); }); On Jun 24, 11:31 am, Matthew mvbo...@gmail.com wrote: sorry about the error, replace break; with return false; Yeah, ignore the last code then. Try this, I'm trying to find a way of doing this cleanly so I guess we are both learning together haha $(table tr).each(function(){ $(this).children(:first).attr(attribute,value); }); On Jun 24, 11:14 am, MikeyJ m.en...@gmail.com wrote: Looks like your first two offerings throw this error in Firebug: unlabeled break must be inside loop or switch Your last example works but it only works on the first TR and it affects both TD's in that TR. ?? On Jun 24, 10:59 am, Matthew mvbo...@gmail.com wrote: yeah haha let me re-do: $(table#id tr:first-child).each(function(){ $(this).attr(attribute,value); }); try that. I am thinking that the tr:first-child should return the TD for every TR in the table. Im not sure how this will work if you have nested tables. I'm at work so I cant spend the time to test the code before hand. On Jun 24, 10:50 am, MikeyJ m.en...@gmail.com wrote: Thx Matthew! Great explanation. I probably should have worded one thing a bit differently...I'd like to set this attribute for the first TD in each TR for EVERY TR in an entire table. I'm sure this changes things a tiny bit? Mike On Jun 24, 10:43 am, Matthew mvbo...@gmail.com wrote: when you use this code $(tr td) it would create an array of all those td's in the tr. So then we just need to cycle through the first two and set the attribute then break the cycle. var counter = 0; $(tr td).each(function(){ $(this).attr(attribute,value); counter++; if(counter 1) { break; } // after the first two td's stop the iteration through all the td's. }); You can be more specific with what tr you use or you could use a table with a certain class or id: $(table.class tr td).each( hope this helps. On Jun 24, 10:26 am, MikeyJ m.en...@gmail.com wrote: Hi All, I'd like to set the align attribute of only the first TD in a TR for an entire table but am not sure how to address them all in one go. Probably an Nth child thing or similar but not sure! Thx, Mike
[jQuery] filtering a multiple select box
i would like to filter out option on an select box as i type my value in a textbox. I would work sorf of like autocomplete without the autocompleting part. Its implemented here but the code seems is very complex as there are many other things going on. http://www.headcircus.com/uiguy/selectboxfactory/selectboxfactory.html I just want it on a plain select box. does this sound easy or would it require several lines of code?
[jQuery] Protect images
Hi. I want to know if there is a way to protect images that are styled with an overflow auto. I found a lot of tutorials, scripts and plugins for that with static images. The big issue here is that the image can (and is usual) to be resized (two buttons are added for that + and -). Any ideas? Will be vary good recieved. Thanks. -- Mario Soto marios...@cancuen.net ..._
[jQuery] Re: Protect images
can you add more specifics? how are you increasing size? Are you using new resized images or just changing the dimensions using javascript? If you are changing dimensions, have you tried the tutorials you found or do they not work after you change dimensions? On Jun 24, 11:49 am, Mario Soto canc...@gmail.com wrote: Hi. I want to know if there is a way to protect images that are styled with an overflow auto. I found a lot of tutorials, scripts and plugins for that with static images. The big issue here is that the image can (and is usual) to be resized (two buttons are added for that + and -). Any ideas? Will be vary good recieved. Thanks. -- Mario Soto marios...@cancuen.net ..._
[jQuery] Re: datepicker UI select multiple date
Hi, Datepicker does not currently support multiple selected days. If you're looking to load event dates into datepicker you could take a look at beforeShowDay event. Here's an example: http://jsbin.com/idubu On Wed, Jun 24, 2009 at 3:03 PM, bumbar bum...@abv.bg wrote: I use datepicker UI. Is it possible to be selected multiple events, dates taken from a mysql with PHP? can you give me links to similar developments -- Ca-Phun Ung + http://yelotofu.com + hongkong, zce, jquery, jqueryui, php, css, html
[jQuery] Re: how to ask questions
regarding email settings: in the post title bar, click Options on the far right. then click Email updates to me On Jun 24, 2:25 pm, James james.gp@gmail.com wrote: I've found the best way to get an answer is to make your question concise. Don't make a one sentence post. Put it in detail and separate paragraphs if you have to. If you have code to show and it's only a few lines, post your code. Otherwise, post a link to your code, or better yet, a demo page demonstrating the issue. Code does not show up formatted very well on Google groups and the emails it send, so keep it short if you post code here. Posting a huge block of un-formatted code is a huge turn off and I don't bother looking through it. Same with posts with too much text. I look at those with little text, but having not enough information also makes it difficult to understand what you want. On Jun 24, 5:56 am, shaded dar...@eztransition.com wrote: thanks for the replies, @cesar, i'm not mad or anything, i just figure i was asking in the wrong way and wanted to find out what im doing wrong. @michael, thanks for pointing out that 2 questions were answered. This is my first google group and i figured that replies to my post would be emailed to me. maybe i can set that up in settings or something.
[jQuery] Re: how to ask questions
@michael, thanks for pointing out that 2 questions were answered. This is my first google group and i figured that replies to my post would be emailed to me. maybe i can set that up in settings or something. The answers can be emailed to you. Remember that this is a group and we all respond to the group so everyone knows and our answers can help each other. Select (sorry I have it in spanish) Edit my subscription or something like that on the right side pannel. There you can change the way that all messages from the group will be sended to you.
[jQuery] Re: Selecting the first of two td's in a tr
actually i learned how to add the (..., this) from another post on this list i struggeled at first learning how to use "THIS" when creating a selector I always wanted it to work like a parent child regular selector and kept trying a lot of things like: $(this "li").hide(); or $((this)."li").hide() or $("(this) li").hide() of course none of the variations worked. Finally when find(), or children() sunk in it was far more intuitive. Then recently when $("selector",this) came up I realized it saved a bit more virtual ink. >From a chaining perspective it's easier to read the extra step of find() or children() and that is likely why don't see it in docs much Matthew wrote: Sweet, thanks Charlie... Charlie, how did you find out about: $("td:first",this)? In the jquery docs i havent seen the ",this" I'm assuming that adding that filters out the first td of each tr, I'd be interesting in knowing more about how to filter things. Looks like I could make most of my code way more efficient. On Jun 24, 11:35am, MikeyJ m.en...@gmail.com wrote: No prob! Looks like you are real close to what Charlie just posted that works great, except that it applies to every table on the page. Once I added the table id it was perfect! $("table#mytableid tr").each(function() { $("td:first",this).attr("align","right"); }); On Jun 24, 11:31am, Matthew mvbo...@gmail.com wrote: sorry about the error, replace "break;" with "return false;" Yeah, ignore the last code then. Try this, I'm trying to find a way of doing this cleanly so I guess we are both learning together haha $("table tr").each(function(){ $(this).children(":first").attr("attribute","value"); }); On Jun 24, 11:14am, MikeyJ m.en...@gmail.com wrote: Looks like your first two offerings throw this error in Firebug: "unlabeled break must be inside loop or switch" Your last example works but it only works on the first TR and it affects both TD's in that TR. ?? On Jun 24, 10:59am, Matthew mvbo...@gmail.com wrote: yeah haha let me re-do: $("table#id tr:first-child").each(function(){ $(this).attr("attribute","value"); }); try that. I am thinking that the tr:first-child should return the TD for every TR in the table. Im not sure how this will work if you have nested tables. I'm at work so I cant spend the time to test the code before hand. On Jun 24, 10:50am, MikeyJ m.en...@gmail.com wrote: Thx Matthew! Great explanation. I probably should have worded one thing a bit differently...I'd like to set this attribute for "the first TD in each TR for EVERY TR in an entire table". I'm sure this changes things a tiny bit? Mike On Jun 24, 10:43am, Matthew mvbo...@gmail.com wrote: when you use this code $("tr td") it would create an array of all those td's in the tr. So then we just need to cycle through the first two and set the attribute then break the cycle. var counter = 0; $("tr td").each(function(){ $(this).attr("attribute","value"); counter++; if(counter 1) { break; } // after the first two td's stop the iteration through all the td's. }); You can be more specific with what tr you use or you could use a table with a certain class or id: $("table.class tr td").each( hope this helps. On Jun 24, 10:26am, MikeyJ m.en...@gmail.com wrote:
[jQuery] Re: Protect images
Thanks for your response. Details below. The immage is loaded via ajax, so I create the img tag every time, and empty de div that contains the image. This is the css for the div that contains the immage: .ifDiv { border:1px solid #00; height:500px; overflow:auto; width:775px; } And this is the zoom function that I use to resize the immage. Is simple, just change the values for the img tag: zoom : function(type){ w = $('#imagen1').width(); h = $('#imagen1').height(); if(type == 'plus'){ h = parseInt(h * 1.125); w = parseInt(w * 1.125); }else{ h = parseInt(h / 1.125); w = parseInt(w / 1.125); } if(((w minZoom)(h minZoom))((w maxZoom) (h maxZoom))) { $('#imagen1').width(w); $('#imagen1').height(h); } } minZoom and maxZoom are defined elsewhere with integer values.
[jQuery] Re: ajaxify: load link in same div?
content loaded after document.ready isn't bound to jquery functions. If the right div is already in page however it should work. "ajaxified link" does that mean it's been loaded by ajax or it is bound to load function? not much to work with here without some code, a link or more details does aja webguy262 wrote: I click an ajaxified link in the left column div, and it loads content in the right column div. All is good! Now, tho, I want to click a link in that right hand content, and replace it with new content. Targeting the "right column" div name does not work; the content loads in a new window. What am I missing?
[jQuery] Re: jquery-ui dialog and ajax issues updating from 1.2.6 to 1.3.2
Right. Removing all the unecessary did helped as you pointed out. Anyways, I think there's a fix which resolves this issue permanently. I added a patch in attachment. Problem was due to the fact that I never specified that xhr option in my $.ajaxSettings and made the s.xhr object to return a false value. Since I'm rather lazy and prefer not specifying a custom xhr option, I took the old default xhr transport from jQuery 1.2.6 and tried to use that as a fallback method. demo page: http://gthc.org/tm_api-2.0/demo.html Thanks for your help! Etienne James wrote: It's most likely the other code in your script that's causing it. Try removing all of your scripts on you page except for the jQuery library and the jQuery UI library. There should be no errors. (If there is, then something is wrong with the libraries you have.) Then one by one add the other scripts in and check whether there are errors. This will closer pinpoint the cause of the issue. On Jun 23, 4:35 am, Etienne Robillard robillard.etie...@gmail.com wrote: I retried and it's still grokking loudly: http://gthc.org/tm_api-2.0/demo.html the most irritating part is: [e] message = [string] s.xhr is not a function Exception ``TypeError: s.xhr is not a function'' thrown from function anonymous(event=Object:{38}) in http://gthc.org/media/js/jquery-ui-1.7.2-custom/development-bundle/jq... line 2693. How is that happening ? Does it need any extra options in $.ajaxSettings for making it compatible with 1.3.X ? My $.ajaxSettings looks like this, at least in the 1.2.6 series:http://gthc.org/tm_api-2.0/src/ajax.js I have find no use yet for the 'xhr' param, is this now required in jquery 1.3.X ? Best regards, Etienne Etienne Robillard wrote: Thanks! I'll upgrade to jQuery UI 1.7+ and retry.. :D Best regards, Etienne Cesar Sanz wrote: I had the problem too.. You must to update jquery and ui too - Original Message - From: James james.gp@gmail.com To: jQuery (English) jquery-en@googlegroups.com Sent: Monday, June 22, 2009 12:18 PM Subject: [jQuery] Re: jquery-ui dialog and ajax issues updating from 1.2.6 to 1.3.2 When you update jQuery to 1.3+ from an older version, you also have to update your UI library to 1.7+ because jQuery 1.3+ is not compatible with older versions of jQuery UI. On Jun 22, 5:25 am, Etienne Robillard robillard.etie...@gmail.com wrote: Hi, I'm using jquery-ui 1.6 custom build with jquery 1.2.6 trying to set up a dialog window. Unfortunately I can't update to 1.3.2 since this would trigger some unexpected XHR-related bugs like the following: Exception ``TypeError: M.xhr is not a function'' thrown from function anonymous(M=Object:{12}) in http://localhost/media/js/jquery/jquery-1.3.2.min.js So I'm sticking with the 1.2.6 build, which works fine despite a minor/not-critical XHR issue: Exception ``TypeError: s.accepts is undefined'' thrown from function anonymous(s=Object:{12}) in http://localhost/media/js/jquery/jquery-1.2.6.pack.js Notice that this error is reported in FireBug/Venkman, however Firefox doesn't seem to care and let the XMLHTTPRequest to execute successfully. The code for the dialog window is given below. I don't seem to understand why posted data cannot be shown on the dialog box twice. Moreover, it will display it as I want on the first $.post request but any additional requests triggered with a click event don't show any updated data on the dialog box. Venkman reports that the anonymous callback function manages to obtain the updated data, but still nothing get shown on the dialog, just an empty div... ;-) Any help or advices for debugging this issue? Best regards, Etienne This is the script that gets evaluated by jQuery (using $.get(...)). A json object is returned by the server either containing form validation errors or a result object that contains simple strings. script type=text/javascript $(function(){ $('#'+'formControlBtn').bind('click', function(){ //send the form with a ajax request. on success, //return a comment preview. var formData = $('#'+'commentform').serialize(); //one-liner to remove old error messages before posting a new comment $('p.error').each(function(){$(this).remove()}); $.post('comment', formData, function(json) { var result = json.errordict || json.comment; if (result == json.comment) { // Look for the comment preview.. // Display a pop-up window (dialog) with the comment preview // in HTML. By clicking on OK or Save the user has no more // undo chances and the comment will be made. var commentHTMLDialog = $('div id=commentDialog class=ui-dialog ui-widget ui-content\/div'); // Set a title $(commentHTMLDialog).attr('title', 'Preview comment'); // Setup default dialog constructor options $(commentHTMLDialog).dialog({ autoOpen: true, bgiframe: false, // must keep this for IE6? default = 'dont care' width: 500, modal: true, // prevent reposting while the dialog is enabled
[jQuery] Re: superfish horizontal navbar with a third level
this sort of thing happens all the time in Joomla, not so sure about how often in Wordpress in Joomla it's usually left over css from template menu that causes the problem there is likely some css( possibly script??) affecting some of the template classes that aren't part of superfish css or markup if there are any hover instances in the css for these classes they could be over riding the superfish classes would have to see page to narrow it down but sounds like you may understand what to look for, if not post a link. Script and markup is pretty standard and won't really help Roberto da Costa wrote: Hi Charlie, You're right. I'm working on a wordpress theme. 'current-cat-parent' is a class created by WP. So here is a part of the code generated: superfish.js: sf.c = { bcClass : 'sf-breadcrumb', menuClass : 'sf-js-enabled', anchorClass : 'sf-with-ul', arrowClass : 'sf-sub-indicator', shadowClass : 'sf-shadow' }; sf.defaults = { hoverClass : 'sfHover', pathClass : 'current', pathLevels : 2, delay : 100, animation : {opacity:'show'}, speed : 'normal', autoArrows : false, dropShadows : false, disableHI : true, // true disables hoverIntent detection onInit : function(){}, // callback functions onBeforeShow: function(){}, onShow : function(){}, onHide : function(){} }; menu source: ul class="sf-menu sf-navbar" li class="cat-item cat-item-20"a href="" title=""servios/a // THIS ITEM LOSES HIGHLIGHT (sfHover sf-breadcrumb) WHEN I CLICK THE SECOND SUB-LEVEL CAUSING... ul class='children' li class="cat-item cat-item-6"a href="" title=""feiras comerciais/a/ li li class="cat-item cat-item-5 current-cat- parent sfHover sf-breadcrumb"a href="" title=""eventos comerciais/a // ... THIS ITEM AND ... ul class='children' li class="cat-item cat- item-21"a href="" title=""lanamento de produtos/a/li li class="cat-item cat-item-11 current-cat current sfHover sf-breadcrumb"a href="" title=""eventos de relacionamento/a/li ... THIS ITEM TO DISAPPEAR. /ul /li /ul /li /ul I've tried changing pathLevels to 1, 2, 3 to no avail. I think it's something in the core of superfish.js. What intrigues me is that clicking the first sub-level does exactly what I need. It's only when I click the second one that it messes it up. Could a parameter be changed in superfish.js to allow this second sub-level to remain visible? Thank you in advance for your help. On Jun 23, 9:34pm, Charlie charlie...@gmail.com wrote: 'current-cat-parent' isn't a class used in originalsuperfish. Is this a CMS installation(joomla or other?) You either have a modified version, or this class comes from your template. Sounds like you have other css and/or scripts affecting menu. No way to tell without link or code Roberto da Costa wrote:Hi, I'm in trouble implementingsuperfishin a website project. My problem is: I have a category based menu item that has two sub-levels set to display horizontally. I hover the first menu item and the first sub- level shows. Then I click the first sub-level and both it and its parent-item get highlighted and stay visible. Then I do the same to the sub-level below these but it doesn't work. This second sub-level gets the right class ('current') but the first level loses its 'current-cat-parent sfHover sf-breadcrumb' classes causing all levels to disappear. Can someone help me please?
[jQuery] Error: Load a jQuery Flot chart inside a jQuery tab
I am trying to load a jquery chart (Flot) inside the second tab of jQuery tabs. It works fine on the opening tab, but if i bury the chart in any tab, it breaks and throws the js error Invalid dimensions for plot... I looked around and the problem might be that because the second tab is hidden at page load, it is breaking something... I dug up a possible jquery fix/plugin called frameReady, which allows for you to load iframes, but I am not sure how to apply it. Example: http://psylicyde.com/misc/tabs-charts Source: http://psylicyde.com/misc/tabs-charts.zip Any clue how I can enable the second tab to show the chart? -- View this message in context: http://www.nabble.com/Error%3A-Load-a-jQuery-Flot-chart-inside-a-jQuery-tab-tp24191645s27240p24191645.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] How to break out of jQuery function?
Hi all, I have a function that will run everytime a link in my menu is clicked. The problem is that one of the links point to an https and appropriately opens in a new window/tab. I want to break out of the function so that my page does not go blank as a result. I tried the .end(); function but it doesn't seem to do what I expected as my page goes blank and the https is opened in two other windows/ tabs. below is my exception as it stands:[not complete code - only for illustration] var href=; if (href == ){ $.end(); - here is where I need to break out. } else { $('#content').html($(href).html()); };