[jQuery] JQuery Events
Hello, I have the following: $('#Professor').click(function(){ if ( this.checked ) { $('#ProfessorField').show(); $('#SubscriptionsField').show(); } else { $('#ProfessorField').hide(); $('#SubscriptionsField').hide(); } }) Basically on a form I am hiding/showing a few fieldsets when a checkbox is selected or unselected. However, when I submit the form and there are errors, the page is displayed again with the error messages. The problem is that the fields get visible independently of the checkbox
[jQuery] CheckBox - Select and Deselect
Hello, I have 8 inputs of type checkbox. On 4 of them (A, B, C and D) I want to deselect the other three when one is selected. For example, if I select A I want B, C and D to be deselected. If I select C I want A, B and D to be deselected. Is it possible to create this functionality? Thanks, Miguel
[jQuery] Ajax post in firefox doesn't work
Hello everyone, Recently I have just created a site using CodeIgniter with JQuery. And in the past, it worked just fine. But recently I don't know why I got error message in FireFox(3.0.6) through firebug and there is no result displayed in my site. However, it works just fine in IE. Are there any suggestions or solutions? The site is http://guessword.dictionary2gether.com/ Thanks, Makara Kao
[jQuery] Horizontal animation works on F.F. IE7. Fails on IE6
Hi, Horizontal animation of an element works on F.F. IE7. It fails to work on IE6? Example: From: http://codesolv.net/se-update/library-slide.html Click on any radio button under Form factors heading. An element slides open. This can be closed by the top right close button. Works on F.F./IE7. Any suggegstions for a fix for IE6? Thankyou, ab2qik
[jQuery] jquery.listnav
I have an index page with 1270 list items being processed by listnav, and loading the page takes about 15 seconds. Without listnav turned on, the page loads in less than a second. Is there a way to speed up the indexing through caching? Or a setting that would use pre-populated LI classes?
[jQuery] Changing Background Image on A tag when clicked not working
Basically all I am doing is on click I am changing the class of the a tag to have a different background image then the class that is applied on load. I remove the initial class and replace it with the new one. Both have different background images but for some it isn't working. The class changes and everything in firebug shows the correct class and background image but the image is still the old one. But for some reason if I double click the a tag it works. Here is the code, there is a bit more
[jQuery] IE6 - what's the absolute fastest way to append DOM nodes?
Hello, I'm trying to squeeze out every last bit of performance I can from IE6, and want to make sure there isn't a faster way than what I'm doing. I'm doing about 180 iterations of somethig like the following parentElem = $("parentTable"); for(var i = 0; i<400; i++){ $(tableRowHTML[i]).appendTo(parentElem) } There's an acceptable delay in FF and IE7 (no more than one second), but up to 3.5 seconds in IE. Is there any way to do this faster? thanks, -Morgan
[jQuery] jQuery AJAX File Upload
I know, not possible to do without hidden iframe hacks and such and there already exists a couple of extensions which add this functionality by abstracting these hacks out of our sight... however, I ran across this article here: http://igstan.blogspot.com/2009/01/pure-javascript-file-upload.html Which talks about doing it in pure AJAX only in FF3, he gives source code to do this, however I was wondering if this sort of functionality was already possible or could be mimicked using the jQuery.ajax
[jQuery] improper function
I posted this earlier today, but couldnt find it when I chacked back again, I guess it didnt go through all the way. I got this code that worked great by itself, but in my site it doesnt work, says its an improper function. Does any one have any idea as to how to solve this? jQuery(function($) { $("#carousel").html( $("#holder_images").html()).carousel3d({ control: 'continuous', radiusY: 0, speed: 1, radiusX: 250, fadeEffect: 1, centerX: $ ('#carousel').offset().left + $('#carousel').width()/2
[jQuery] basic news ticker
Hi there, I'm trying to write a news ticker script that horizontally slides 1 item from right to left in a box. Most news ticker scripts use multiple items for this, but my needs are somewhat different. Well I've kinda got it working, except for when I hover over it. Then when the cursor goes away, the speed's been affected as well as the item stops ticking by. Here is my code: $(document).ready(function() { function scroller() { $('#newsticker ul li').animate(
[jQuery] basic news ticker
Hi there, I'm trying to write a news ticker script that horizontally slides 1 item from right to left in a box. Most news ticker scripts use multiple items for this, but my needs are somewhat different. Well I've kinda got it working, except for when I hover over it. Then when the cursor goes away, the speed's been affected as well as the item stops ticking by. Here is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <head>
[jQuery] jQuery Cycle, multi-effects
Hi Mike, Loving the multi-effect. Would it be possible to use them in this way...? In the same slideshow: left/right arrows make the slides slide left/right up/down arrows make the slide slide up/down Thanks Andrej
[jQuery] adding tabs dynamically
hey guys and gals, http://docs.jquery.com/UI/Tabs followed the above docs but couldn't quite add tabs correctly yet. i can add a tab, yes, but then i can't change it's label or innerHTML. how can i do this? cheers! Paul!
[jQuery] Event Problem
Dear folk , I have a Link and it makes ajax call , so the problem is ,whenever somebody clicks tons of time inn the Link it crashes and the AJax it will not work , so I solved this Problem with using of the Boolean variable and make it True and then the event is trigered cahnge it to false so it makes it work , but I was wondering if I can Prevent it with the JQuery event Object . this is the Sample var status=ture; $("a").click(function(){ status=false; $.ajax({ .. .. success: function(){ status=true;
[jQuery] invalid array length wit jquery.extend
Hello, It seems that it's not safe to use "length" as a nested object property if I want to use jquery.extend. Is this a know issue? $.extend(true, {},{"prop":{"length":"-1"}}); thanks, -Morgan
[jQuery] jQuery and IE
So im stumped..I have my jquery file in the headers, and it works in Opera, Safari, FF on mac, and FF on Windows, but i get nothing in IE..its there, its just broken. i recently added the validation plugin? could there be something im missing?
[jQuery] $.ajax POST single quote issues...
Alright, so here's the code I'm using (minus all the fluff): $.ajax({ type: 'POST', url: 'add-item.php', data: 'desc='+ $('#description').val() }); return false; With #description being the id of my input field on the form. Everything works properly except when I throw in a single quote it kills the js. I know why it does, but I haven't been able to find how to fix it. I've search for a few hours now with no luck... any ideas? Thanks in advance for any help.
[jQuery] Superfish menu opacity issue
Hi Joel, First up, great plugin - it's the best I've found. I have a problem though. For some reason my menu appears transparent and no amount of hacking and fixing seemed to do the job. Would you mind telling me how I can make the menu opaque? The transparency of the menu causes it to get in the way of the text beneath it and is causing annoyance with my site's members. The web site is http://www.sydneydragonblades.com if you'd like to see what I'm talking about. Worse still, in my latest re-installation
[jQuery] please support :target
http://www.w3.org/TR/css3-selectors/#target-pseudo :target makes it very easy to style a part of a page that has been scrolled to. It is not supported by all browsers but the css rules are easy to write. I wish something similar would be possible in jquery. :target { background: url(fade-yellow.gif) font-weight: bold; } MAybe it is possible. I can't find it though.
[jQuery] My published plugins are not appearing in the jQuery Plugin list
I've had two of my jQuery plugins published for a while now (more than a year) on teh jQuery site, with backup doumentation and demoes on my own site. http://plugins.jquery.com/project/form-highlight http://plugins.jquery.com/project/Populate However - they don't appear to show up in the plugins lists: http://plugins.jquery.com/project/Plugins/category/20?page=1 (Form Highlight should be here) http://plugins.jquery.com/project/Plugins/category/20?page=2 (Populate should be here) Any ideas? Thanks,
[jQuery] Plugin hosting?
Hi, I'm really glad it's possible to use the Google hosted jQuery library, however, I see myself using the same plugins over and over again on many different project. Is there any place I can "leech" these plugins like the library? I could put them all up on my own site but I'd prefer something more like the Google hosting.
[jQuery] Stopping emails
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2900.3395" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=390351018-23022009><FONT face=Arial size=2>Hi</FONT></SPAN></DIV> <DIV><SPAN class=390351018-23022009><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=390351018-23022009><FONT face=Arial size=2>I currently get all the posts to this group sent to me by email,
[jQuery] Weird problem with slideToggle() in Firefox
I am making a form with optional fieldsets. The idea is to dynamically apply a style to the headings above only the optional fieldsets and allow this "controller" style to expand and contract the "optional" div below it on click. Here is a snippet of my markup: **begin markup snippet** ... <fieldset id="keyinfo"> <h2>Key Project Information</h2> <label>Your Name</label><input /> <label>Project Name</label><input /> <label>Deadline Date</label><input /> <!-- end of keyinfo --></fieldset>
[jQuery] Animate Delay Issue
I have a strange delay issue. I'm working on a menu animation. When a user moves their mouse to the top, it will move the menu up and when they move their mouse to the bottom, it moves it down. When I first move the mouse over the menu, the animation fires. But there is a big delay (maybe 2 seconds) before it will fire again, after I move my mouse back on it. However, if I change the animation speed from 2000 milliseconds to 10 milliseconds, it will fire right away. Any Suggestions? Thx. Here is
[jQuery] validation rules("remove") doesn't seem to work
I am trying to use the validation plugin to validate a set of checkboxes which are created by my CMS (drupal) so are not changeable - and which look like this: <code> <div class="form-item" id="edit-pollutants-storage-tanks-wrapper"> <label class="option"><input type="checkbox" name="pollutants [tanks]" id="edit-pollutants-storage-tanks" value="tanks" class="form-checkbox" /> a. Tanks (Oil, fuel chemicals)</label> </div> <div class="form-item" id="edit-pollutants-rubbish-wrapper"> <label class="option"><input
[jQuery] Superfish Submenus Appear Under Slideshow Pro
We have a page on our site using a Slideshow Pro flash gallery. The main part of the navigation is perfecto but the submenus appear under or behind Slideshow Pro in all browsers. Here is a link to the page that I am having problems with: http://realcoolstore.com/site/work/ I have tried "z-index" on different elements of the page (navigation, submenus, content, embed and object) with no luck. I have also tried to wmode="transparent" and wmode="opaque". Alas, I have failed and turn to some guru's help.
[jQuery] Problems with alphanumeric plugin
Hi! i need some help with alphanumeric plugin. I have a couple of inputs that i want to only permit numbers to be write there, so i´m using this plugin, but the problem is that i can only prevent user from enetering characters non numeric in the first input, but nothing happens with the others... i am using something like this: $("#TestcollectorUrl").numeric(); $("#TestTestInterval").numeric(); $("#TestcollectorTimeout").numeric(); . . . . any ideas are welcome! thanks!
[jQuery] Json help adding into Object
I have some code that I need help with. I have a database with a list of abbreviations with is encoded into JSON in a PHP script, the script below pulls in that data and stores the data as objects (or thats how I want it to be). $("#load_abbr_data").click(function() { var abbrs = {} $.getJSON("jsondata.php",function(data) { $.each(data.abbr_data, function(i,get_abbr_data) { var abbr = get_abbr_data.ABBR; var desc = get_abbr_data.DESCRIPTION;
[jQuery] Expander Plugin and z-index ie7 Issues
Hello JQuery Geniuses I am using Karl Swedberg's expander plugin as a expand/collapse for a contact form. However, it is expanding UNDER my slideshow in ie7. I know there may be positioning or z-index issues at play, and somewhere I read that using bgiframe may help. But I am not savvy enough to make any of this work. http://iconwebsitedesign.com/test-sites/Applied/ (top right blue phone number, click contact us for the expander) My code is a mess right now since I have tried so many techniques,
[jQuery] preventing redirection when opening modal dialog box
hi, I have this snippet which works fine in Firefox but not in IE6/7. Somehow in IE instead of opening the modal dialog box, it gets posted to the submit page when the button with "btnAddSession" Id gets clicked. $("#btnAddSession").click(function(){ $("#addproductsForm").dialog("open"); return false; }); FYI: I also tried converting from button to link. It works in IE but it throws a javascript error on click. Thanks in advance.
[jQuery] Problem with facebox within Internet explorer
Hello Everyone, I am using facebox to show a popup window. This all works fine in FF (3.0.6). BUT In Internet Explorer it doesn't work at all. This is the jquery: $(".smaakselector").click(function() { $.facebox({div:'#smaken'}); }); And here is the html <div id="menu"> <ul> <li class="menustreep"><a href="/">HOME</a></li> <li class="menustreep"><a href="/actueel">ACTUEEL</a></li> <li class="menustreep"><a
[jQuery] Safari says "Invalid Date" object from dpGetSelected() in datePicker v2
Hi All, I'm using Kelvin Luck's brilliant datepicker plugin (http:// www.kelvinluck.com/assets/jquery/datePicker/v2/demo/index.html) and am having a strange issue in Safari Version 3.2.1 (5525.27.1). I'm running a couple simple lines of my own code that are bound to the calendar's "dateSelected" event that fires any time a date is clicked on the calendar. The first line below simply captures the currently selected date from the calendar as a standard JavaScript Date object using the datePicker plugin's
[jQuery] Css inject webkit
Hi guys, I'm searching one solution about css codes with google chrome and safari browser. Any peoples suggest me put all css codes in one css file, but this is my last option.. I'm try inject css codes from others pages I'm try the following function $.ajax({ type: "GET", cache: false, dataType: "html", url: "mypage.html", success: function(data){ var x = $(data).find("style").html(); alert(x); $("head").append("<style type='text/css'/>").find ("style:last").append(x); $('#Content').empty().html(data);
[jQuery] Need a help to manipulate table that multiple rowspan
Hi All, How can I find rowspan attribute of parent TR when I am clicking on last indexed tr. <table> <tr> <td rowspan="4"><div style="text-align: left; width: 180px;">DG 1</ div></td> <td><div style="text-align: left; width: 180px;"> M1</div></td> </tr> <tr class="erow"> <td><div style="text-align: left; width: 180px;">M3</div></td> </tr> <tr> <td><div style="text-align: left; width: 180px;">M4</div></td> </tr> <tr class="erow trSelected"> <td><div style="text-align: left; width: 180px;"> M5 </div></td>
[jQuery] Need help with checking checkboxes
Hi, I have a list of search results. Each result has its own checkbox to select a product. Each checked product ID gets saved to the session via Ajax. Fine so far, it works already. But I also have a "check / uncheck all" checkbox. That means, when I check all, I need to send all displayed (not all results in general, just the displayed products (5 per page)) product id's to the session. And there my problem starts. How can I get all checkboxes on the current page? And how can I exclude the "check
[jQuery] Using livequery
Hi, I have a problem, i want to use prettyPhoto to load images from ajax loaded content. Tried to use livequery for this, but this only works when i first click on a image outside the ajax content and after that it works inside the ajax content. (http://gotstyled.com/balotti) Something wrong in my code? can anyone help me plz?:D Help really apreciated.... king regards, Bas
[jQuery] Help with Jcarousel msg.
Hi, I have a message pop-up on AOL web browser that pops up when im on craigslist and says, error: "jCarousel: No width/height set for items. This will cause an infinite loop. Aborting..." This error does not occure when using Internet Explorer web browser or Firefox, only AOL. Now I do not know anything about this kind of stuff so the explanations that I read on google all tell me lines of code to change to but none of the answers tell me where to put the code. Is there some file I have to open
[jQuery] Changing colour of table rows
Hi, on a table list of results (amount of rows = unknown) I want to change the row colour by adding / removing the class name (class="highlighttr"). As my list is already 2 coloured (class="row1" and class="row2"), I am checking the current, prev and next class name of the parent tr element to set back the correct class name. Now I am on the case, if all rows are checked - I cannot proof the next and prev element, as all elements having the same "highlight" class name. I thought, if I would be able
[jQuery] adding more pictures to existing script
Hi i am in the middle of a project, i got a script for slideshow. i would like to add more pictures (minimum 6) . The existing script got only 3 images, can someone help me to add more pics to that script please. i have attached the script here. var Site = { start : function($) { // Popup Links jQuery("a.popup").click( function(event) { event.preventDefault(); window.open($(this).attr("href")); } ); //
[jQuery] Trying to copy img src attr to another img
See http://dev.slyd.us/drupal/foundation/node/59 I want to have a mouseover of one of the small images make it replace the larger one. This is what I'm trying: '$(document).ready(function() { var source2 = $("div.listingimagetwo img").attr("src"); var source1 = $("div.listingimageone img").attr("src"); $(".listingimagetwo").hover( function () { $("div.listingimage img").attr("src", source2); }, function(){ $("div.listingimage img").attr("src", source1); ); } }); I also tried using div.listingimagetwo[img]
Next Page