each function with td element
Hi All, I am having list of checkboxes inside to the <td id = "left"> as sample below, <td id = "left"> <div><input id="0" name="0" type="checkbox" value="true" /><input name="0" type="checkbox" /> Self Referral</div> <div><input id="10001" name="10001" type="checkbox" value="true" /><input name="10001" type="checkbox" /> Cheng-Hsung Liao Dental Corporation</div> </td> <input type = "button" id = "btnAssign" value = "Assign" /> Now In button
I give up! How do I get the text that is inside a <P>
I have tried everything. How do I get the text that is within a <P>...</P>? I also want to put text into that same paragraph. It will have an ID. TIA
[jQuery] Problem controlling links of appended html
<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi there, I'm appending some divs with a thumbnail to an existing div called "main_area" and i would like to take controll of the appended links, but I can't. I have tried this: $("#main_area").append("<div class="pics"><a href="pics/1.jpg"><img src="pics/1_thumb.jpg" width="100px" height="100px"></a></div>", function(){ $(".pics a").click(function(event){ return null; }) }); I have also tried to add a
jquery: length is null or not an object
The function below results in this error and I'm not sure how to correct it? The initial value of the field is 0.00, but it doesn't look like it's relevant... That is, even when the value isn't 0, it still results in this error. if($("input[name='b2h']")) { $("input[name='b1']").bind("keyup", b2); b2(); } function b2() { $("[id=b2]").calc( "b2h + b1", { b1:
Wait until animation completed - callback?
Hi there, I am building huge list with subcategories in each category that fade out once the mouse is placed over the category. It works great, BUT the problem is, if your mouse goes down the list vertically and the subcategories are fiew, then the obove subcategories fade out and your mouse is over the next category which is causing the next menu to fade in. I would need a way to make jquery wait to fade out the next menü until the last one has disapeared. An area would be good, if the mouse leaves
help with jqueryui dialogs please
hi please i need help i have 2 dialogs in my page and i open them with 2 links everything working fine the only problem is sometime one dialog submit fine and the other don't submit here is my code: $(document).ready(function(){ ('#dialog1').dialog({ autoOpen: false, width: 400 }); $('#dialog2').dialog({ autoOpen: false, width: 400 }); $('#dialog1_link').click(function(){ $('#dialog1').dialog('open'); return
[jQuery] [autocomplete] How do I keep the result box on top and not fill the inputbox
Hey guys, After a bit of struggle I have the autocomplete function working for me yay :) Now there are 2 more things I want it to do but can't seem to find it. 1. How do I keep the result box on top so I can click more than 1 value (each click adds a result to an option box) 2. How do I prevent autocomplete from filling the input box with the clicked value? Thanks for your feedback.
one function for a range of forms
Hello, I have the following code which just submits my login form via AJAX. It works fine. But I am wondering if I can adjust this to work for pretty much every form on my website, rather then copy paste this code over and over and only changing the values to match the form respectively. $('#login').livequery('click', function() { $("#contentmain").slideUp(); var username = $("input#username").val(); var password = $("input#password").val(); var dataString = 'username='+
[jQuery] [autocomplete] a few improvements to autocomplete
hello friends, i have done a few improvements to the autocomplete module, to fix problems and improve functionality: added selectOnly option to autoselect a result if there's only one. this may save you a click. moved the loading indicator to the left side, in case the field is rtl. requires a small plugin i made, attached here. a css entry is being added to this effect. the included css file has this, but as oposed to the main autocomplete.css, colors are given as names. it's nice, but i'm open
[jQuery] Fade effect
hey y'all, I've created an animation that simply fades in a "cloud-like" bar that will be my search bar. This is supposed to happen when i click the search Icon. When I click the icon again, I want the search bar to disappear by fading out. I got it to work great once. The problem is, the second time that I click the icon, the bar fades in and then immediately fades out again, ignoring the second click function. any idea what I'm doing wrong? why does it work the first time I click it and not the
[jQuery] been asked 1000 times?
Hiya, I'm really new at jquery, but not programming. I'd like to display some items dynmically from a DB, and have them call a common jquery function onclick, passing some params. this is a snippet of my Client side code >> $('#open-frame').click(function() { url = $(this).attr("url"); h = $(this).attr("h"); w = $(this).attr("w"); $("#dialog").dialog.height=parseInt(h)+40; $("#dialog").data("width.dialog", parseInt(w)+35); var
[jQuery] Update Text or HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=us-ascii" http-equiv=Content-Type> <META name=GENERATOR content="MSHTML 8.00.6001.18813"></HEAD> <BODY> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=463151223-26092009>I have a div inside a div:</SPAN></FONT></DIV> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=463151223-26092009></SPAN></FONT> </DIV> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=463151223-26092009><div class="heading"
[jQuery] jquery.media.js modification
Hi there, I am using the media plugin and it works fine and is a lovely plugin to have but i encountered a few problems where i needed to alter the js so i could be able to play certain file flv, mp4, mp3 as it could not be played. It looks like using my flash player it could not play flv and mp3 and my quicktime could not play my mp4. I Had to change them and make them play via win media player. Does anybody have had those problems?? or is it bad to change it as some users dont have codecs to play
[jQuery] ANNOUNCE: jQuery plugin to measure image dimensions
Here's a little plugin to measure the original width and height of an image. http://blog.softwareunity.com/2009/09/measure-raw-image-dimensions-using.html It has to pass the measurements to a callback so you use it like this: $("IMG").imgSize(function(size){ alert(size.width + "x" + size.height + "px " + size.fileSize + " bytes"); }); If anyone can think of a way to make it work without using a callback then let me know! George
[jQuery] $() and Object doens't support error
Hi, Following some tutorials to include field validation in a WordPress form. When I have the following in the js file for my form, I get the "Object doesn't support..." error. $().ready(function() {... If I change it to: jQuery().ready(function() {... then the code works as expected. I'm using WordPress version 2.8.4 which includes jQuery version 1.3.2 Any ideas what I'm doing wrong? Thanks
[jQuery] about jquery?
hello what is better to start learning first? \ the JQuery /\ ASP.net /\ or PHP?
[jQuery] how to serialize an array?
Hi I have an array in a Javascript/jQuery code, and I want to pass it to a php file. It has an arbitrary number of elements in it. So I figured I would use $.post, HOWEVER, I'm sure how I would convert my array into a suitable data-string? $.post("test.php", data); << what should data be when I want to pass an entire array? I looked around a bit on Google and I found the function serialize which seems to do what I want. But it only works on forms and not on arrays... thx
Getting SRC from clicked image
I've done this before but the whole idea of it is completely escaping me right now. Here's what I'm after. $("img").click(function() { var source = (the image's src) }); Thanks so much.
[jQuery] Wait until animation completed - callback?
Hi there, I am building huge list with subcategories in each category that fade out once the mouse is placed over the category. It works great, BUT the problem is, if your mouse goes down the list vertically and the subcategories are fiew, then the obove subcategories fade out and your mouse is over the next category which is causing the next menu to fade in. I would need a way to make jquery wait to fade out the next menü until the last one has disapeared. An area would be good, if the mouse leaves
[jQuery] Superfish bug report
For the author of Superfish: I just found a small bug in Superfish that leaves a submenu open in special circumstances. Steps to reproduce the bug - the description would be easier if the example menu items were all named differently :-) 1) go to http://users.tpg.com.au/j_birch/plugins/superfish/#examples - basic style; 2) mouse over the second sub-item of the first menu item, so a second sub-menu opens up; 3) tricky part: leave the second sub-item of the first menu item from the left, and from the
[jQuery] permission to redistribute Superfish
Attention: Joel Birch Hello Joel, thank you for your work with Superfish! I'd like to integrate Superfish into Menubar (http://wordpress.org/ extend/plugins/menubar), a WordPress plugin I wrote which simplifies menu creation and management in WordPress. I won't modify Superfish, but I'd like to distribute a copy of the script bundled with Menubar, for users convenience. Of course full credit will be given to you as the script author. Is that ok with you? I'm looking forward to receiving your permission.
[jQuery] Breadcumb, error in for-loop
Hi! I'm not an expert in js, maybe you can help me with this one: var BrCu = here.parents('li').find("a:first"); for (i=3; i=0; i--){ if (BrCU[i] != undefined){ $('#breadcumb span.ins').html('>' + BrCu[i]); } }; BrCu gives me what I want. But the for-loop is not writing anything to the page. Have I misunderstood something? var here is current location in a navigation-menu (ul li a ul li a ..) Thanks!
[jQuery] Affecting last link in *top level* of unordered list
Hi, I'm trying this: $(document).ready(function() { // Hide first list item $("#header ul li:first").addClass("first"); // Hide last list item $("#header ul li:last").addClass("last"); }); On the following unordered list (below), but the class is appearing on the last *nested* list item, not the last item I want (link P7). Does anyone know how I can target this with my selector? Thanks, osu <ul class="nav"> <li class="nav-path-selected FIRST"> <a href="/" class="nav-path-selected">P1</a> </li> <li>
[jQuery] Superfish menu height
Hi all. I am attempting to use a Superfish horizontal menu for a cascading nav on a site, but i would like to make the list items taller than the default Superfish height. I have modified the default skin like so: .sf-menu a { padding: 1.5em 2em; } a > .sf-sub-indicator { top: 1.55em; } and.. .sf-sub-indicator { top: 1.95; } That has put the text and the arrow where I want it to be.. but the list items of the "child" lists apprear directly under the linked text, not under the container element
[jQuery] Convert MooTools to jQuery
I know this is sloppy code, I'm more of a HTML and CSS person than JavaScript person. The thing is this code does exactly what I need it to do. This is done with mootools and it conflicts with some other jQuery things going on, on the page. I would REALLY appreciate any help anyone could give me. This isn't the finished code implemented but if there core details of this code could be re-written as jQuery I can probably tailor it for the purpose I'm using it for. window.addEvent('domready', function()
[jQuery] a plugin for extending .keypress to two keypresses
Hi, I'm writing a plugin for jQuery for catching 2 succesive keypresses. I'll paste the plugin I wrote below . It doesn't work on Opera . The Developer tools of Opera gave no errors and I can't find any problems, it just doesn't work. (I've used Opera 10.0). So it only works on Firefox (tested on 3.0.14). I'm curious if there is a way to find out why it's not working on Opera and to fix it. Here's the code: 26 /* 27 * this is a plugin for binding double key combinations to some callback 28 * it works
[jQuery] jQuery Validations
Hi Any One Please Send jQuery PassWord Validation Examples.
Jquery accordion question
Hello I have acorrdion with 5 panes. all working ok I need to disable specific pane if a flag set to false i have a changestart event and i thought that when i click that specific pane I can cancel the opening in that event, but i don't if its possible. moreovre if that can't be done, is there is a way to disable a specific pane ? before i click on the pane ? I hope that there is a way to disable the pane with option one i described TIA
[jQuery] jQuery plugin help
Hello All, I'm trying to create a plugin that I want to be able to call like $.pluginname(...) where currently I have to call the plugin like this $ (...).pluginname. Any help would be greatly appreciated. Nalum
[jQuery] Elements with similar names
I have in one form, many, many text fields with similar names such as: tx_qtde1 tx_qtde2 tx_qtde3 how i can select all this text fields without using a class, something like: $("tx_qtde * ") where the * is the numbers. Thanks for your time. Carlos Santos
[jQuery] marking a link as visited
I'm using jquery.embedquicktime.js to play an mp3. Sometimes I have a dozen different mp3s on a page. When a user clicks on the graphical play button, the button is replaced with the Quicktime controller bar. This is all expected behavior. Since the link doesn't actually go anywhere, the link doesn't ever get "visited" and so when a user comes back to the page, they have no visual clues as to what mp3s they have already listed to. I'm very familiar with controlling this behavior with the css pseudo
Keypress case number?
Hey Guys, I am trying to make a keypress website, but I need a case number for keys, such as // user presses the "a" case 97: showViaKeypress("#home"); break; Where can I find the "case" numbers for letters? I have searched all over and I have not found anything, I need the case numbers for "D", "F", "G", and "H". Thank You!!!
[jQuery] getJSON callback not firing?
Hey all: I've read the docs and googled the heck out of this, but not seeing what the problem is. I'm trying to get some data from the server via the getJSON() method. I do see a response in firebug and I've validated the response data at JSONLint.com. However, the callback function simply will not fire. I've tried to simplify things as much as possible. The CFC returning the data is in the same directory as the calling page. The callback function, for now, should only alert a simple text string
[jQuery] Trying to use fadein and fade out with mouseover and mouseout functions.
Hi, I am using the fade in and fade out and mouse over and mouse out. What I am doing is creating a menu that fades in when the mouse if over the users image. The problem I run into is that when the background of the menu fades in with the buttons which are links. I notice that if you move the mouse over the buttons/links the menu and buttons fade out. I have 2 elements one is the menus background and the other element is the buttons/links on top of the background. I have a fade out command when
fade question
I'm really really new to jquery and ever to javascript. so I have this piece of code: //fade thumb images $('#inspiration_index img').hover(function() { $(this).stop().fadeTo("slow", 0.5); }, function() { $(this).stop().fadeTo("slow", 1); }); Ok so basically what happens is, when you roll over a image within the #inspiration_index container, it'll fade and the others won't. but that's not what I want, I want the rolled over image to stay normal, and the other images within the
[jQuery] Ajax load function - different php each time?
I am developing a webpage that is jquery powered. Many div-hotspots in the page is ajax powered and they should update dynamically. For example number of ratings average rating number that a video is favoured Now i am doing this: $("#DIV1...").load(some1.php); $("#DIV2...").load(some2.php); $("#DIV3...").load(some3.php); But the number of .php files are increasing too much. Is there another idea except to have one .php with many IF ELSE inside? thanks
[jQuery] How to rename cloned element id (increase by one)?
Hello. I have following code: function addElement(id) { $(document).ready(function(){ if ( $("#span1") ) { $(id).clone().prependTo("#span1"); } }); } How can I rename cloned element? Should be fine to increase its name by one, e.g.: original id1 into cloned id2 and so on. -- View this message in context: http://www.nabble.com/How-to-rename-cloned-element-id-%28increase-by-one%29--tp25620242s27240p25620242.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
$ does not work in IE; must use jQuery instead
hi, I'm pretty sure this is a simple thing and probably already has posts about it but with google it's hard to look for $ . If I use following in my html: $(document).ready(function()... it works fine in firefox and chrome but in IE I get a javascript error (property not supported...). If I however put: jQuery(document).ready(function()... then it also works fine in IE. Could someone tell me how to solve this IE problem? thanks, Stijn
Refreshing div contents
I am trying to refresh the contents of a division without refreshing the entire page when a button is clicked. I have tried $("#close_add_event").click(function(html){ $("#add_event_div").fadeOut(600); $("#contents_inner").html(html); }); I have also tried $("#close_add_event").click(function(html){ $("#add_event_div").fadeOut(600); $("#contents_inner").replaceWith($('#contents_inner', $(html))); }); But all this does is clear the contents of the div. Can anyone show me where I am going wrong. Most
fadeIn and fadeOut divs
Please help... What I need to do is simple. When I click on .log or .tweets it fades out a div and fades in another div. The problem I have though is that it fades in/fades out at the same time causing a 'bump' in the animation effect. I need the first div to fade out first, and only when that has faded out completely can the second div fade in. Here's my script. Thanks in advance C $(document).ready(function(){ $("#weight_log").hide(); $("#selector").show(); $(".log").click(function
Next Page