[jQuery] Where is the best place to insert JQuery code <head> or <body>
Where is the best place to insert JQuery code <head> or <body>? I have tried and my code works in either place vut where am I supposed to put it? Is there an advantage of putting it one place (head or body) over the other? Thanks in advance. Humour
[jQuery] slideshow efect
hi i need a slieshow effec that i want to create for my personal website. following is what i need i want to display an image and below that will be text and this text should be clickable and open in a new window and this way i want to show few images and text with a certain duration for each. there should be no left arrow and right arrow, instead each picture along with the text should move from the right to left or from left to right and stay for few seconds and the next one should appear and the
[jQuery] (validate) min. value based on another form element?
How do I setup this validation. Sel1 is always required. If sel1 == 0, then sel2 must be > 0. If sel1 > 0, then sel2 can be anything. <select id="sel1" name="sel1" class="required"> <option value="></option> <option value="0">0</option> <option value="1">1</option> <option value="2">2<option> </select> <select id="sel2" name="sel2"> <option value="0" selected>0</option> <option value="1">1<option> <option value="2">2<option> </select>
[jQuery] Question regarding jQuery.ready method
I have developed an FF extension that loads a few JavaScript files (one of which is jQuery) and attaches them to any given page being viewed by the user. The loading of the js files can ether happen during or after the web page had been loaded into the browser. Obviously, once the js files get loaded, I want to start doing some stuff and I wanted to use the jQuery.ready method to determine when the js code can start performing whatever needs to be done. However, it does not seem to get fired if the
[jQuery] Get success respose in ajaxSuccess?
I am using $.ajax in jQuery and I have some thing running in $ ().ajaxSuccess(function(event, request, settings) {}); However I don't know how to get the html as in response of the success callback below: success: function(html) {}); How to pass html over to ajaxSuccess? I know I can insert a line to assign html var to another global variable but is there a different way? Thanks.
[jQuery] demo: hooking jQuery.ajax() in to Firebug Lite
Hi, all! A few days ago i came across: http://getfirebug.com/lite.html which is every bit as cool as jQuery itself (which places it in the top 5 bits of JS code on the planet). On their site they have a link which embeds firebug lite into the current web page. i had to hack on it a bit to make it work for me, and i wanted to share the results in case anyone else out there can get some use out of it: There's a demo of it here: http://wanderinghorse.net/computing/javascript/jquery/jqapp/demo.html See
[jQuery] jQuery.ajax(): reasons to prefer GET over POST?
Hi, all! i'm working on a JSON-based request/response dispatcher system and i've got a small question about jQuery.ajax(): Are there good reasons to prefer GET over POST, or vice versa? In case it makes a difference, my target uses are somewhere in the single- digit KB range (and normally very small requests, under 500 bytes). Here's the relevant demo, in case it matters: http://wanderinghorse.net/computing/javascript/jquery/jqapp/demo.html :-?
Multiple Countdown Timers.
I currently have a table with the following code <table id="timers"> <tr> <th>#</th> <th>Time Left</th> <th>Unix End Time</th> </tr> <tr> <tr>1</tr> <tr>0:00</tr> <tr>1249779818</tr> </tr> <tr> <tr>2</tr> <tr>0:00</tr> <tr>1249779818</tr> </tr> </table> I need to use jquery to create a way to count down from the current time stamp, until the end time stamp. So pretty much a jquery javascript class that takes a parameter for the end unix time stamp. And each time I create an object of it, it needs
[jQuery] Questions on animate's callback
I have two questions about animate. 1) Animate's callback is called once for every element matched against. What's the proper way to handle a situation where you want some code to run only once when all matched elements' animations have finished? In pseduocode: $("this matches 4 elements").animate({ opacity: 0 }, "slow", function() { // run this code only one time after all 4 matched elements have finished fading out }); 2) In what situations would you use animate's callback vs. queue/ dequeue and
[jQuery] Multiple Image Fade
Hi, I'm trying to write a script to fade in/out some image thumbnails. I'm trying to achieve the following: 1) Fade in/out individual thumbnails on thumbnail hover 2) Fade in/out all thumbnails of the a class when hovering over a text link of the same class. Everything works except that in #2 the images don't return to 0.5 opacity when the mouse leaves the text link. I'm pretty new to jQuery, can anyone help me out? Here's my code: <script type="text/javascript"> $(document).ready(function(){ $("img.thumb").fadeTo(1,
Firefox Problem
When you click on the login or register button on my website on firefox and microsoft internet explorer that shows [object Object] Try it: http://www.moorepaul.com/ If you can help it would be greatly appreciated. Works perfectly fine in google chrome for myself.
[jQuery] Superfish Menu - Different Flyout Styles
Hi, I really like this Superfish menu (http://users.tpg.com.au/j_birch/ plugins/superfish/#sample3) built with Jquery. But, I need to style it very differently. Does anyone know how to style the sub-menus that fly-out on hover differently? Thanks, -Roman
Reordering Options in a Select Box
Is it possible to reorder the options in a form select box with jQuery, either by drag and drop or by up and down arrows/controls? I have a form select field that users use to choose an item to edit. I'd like users to also be able to reorder items in the select box to change their display order. In the end, I'll likely send order changes to the server via AJAX. Thanks for the help. A long search was unsuccessful. Cheers!
Jquery/CSS problem with my gallery.
First of all I'd like to say hi, I'm a newbie jQuery user, and I've been tying to follow a tutorial which creates an image gallery, with two arrows each end of the actual gallery. The problem is when I try and view the gallery, the two controls appear above and below the gallery itself. And to the left of the page, as if they were on a new line. I was wondering if anything was wrong with the jQuery script or the CSS? Any help would be greatly appreciated. The code: HTML: <div id = "slideshow"> <div
[jQuery] Error thrown - object is undefined
FireBug is reporting this error. Any insight would be appreciated. jquery.js (line 3633) object is undefined [Break on this error] var name, i = 0, length = object.length;\n I am using jQuery 1.3.2 var that=this; jQuery.ajax({ type : "POST", dataType : "json", url : "js/tsbtw-object.js", success : function(data, statusText){ var verbArray = data.verbs; var adjArray = data.adjectives; var subjArray = data.subjects; for(var i = 0; i<verbArray.length;
Relative and absolute Pathes with load()...
Hey Guys, I just began using jQuery and it's awesome. But i have a big Problem changing my existing Site from IFrame to dynamic DIV usind load() function. The "Home" page is in "/index.html". [1. Problem] Now changing my inner DIV to a page located in "/frames/something.html". Something.html is loading a new css "/css/iframes.css" Don't makes a problem in FF3 or IE, but CHROME won't load that css. Any suggestions? [2. Problem] Loaded "/frames/something.html" succesfully, but there are links to a
[jQuery] fadeOut in Opera& IE
Hi (-: I can't understand how fadeout works in Opera and IE )))-: Two pieces of code: $("p").live("click", function(){ $(this).fadeOut("slow"); }); $("tr").live("click", function(){ $(this).fadeOut("slow"); }); The first works well in all browsers, but the second in the opera and IE rows just disappear momentaly! This is a bug or a feature? (-: How to make work properly???? Thnx!!
[jQuery] Checkbox behaviour
Hi, This is my first little foray into JQuery, so far i'm impressed, having had very little JS experience, I was able to create the result I wanted very qucikly and easily! However, I'm having one little niggle... Here's my code: [code] $(document).ready(function(){ $(".submit_problem_form_right").css("visibility","hidden"); $("#left_submit").css("visibility","visible"); $("#show_resolve").click(function () { if
Cross-browser problem with script
Hello everyone! I wrote this script and it doesn't work in IE6 & IE7 and Chrome, but works in last Firefox and last Opera. In IE it only shows first select options and doesn't react on click event. In Chrome If i set all "current" variables to 0, it shows all data, but doesn't react on <option> click event. Firebug doesn't show any problems, tried to check all values with - console.log(); and they all contain proper values as it seems. Please help me to find a problem. console.log(current_cat1,current_cat2,current_cat3);
my Ajax works in Firefox and IE,but fails in Safari & Ch
Hello, i have weird problem... i made a site using jquery and it works on Firefox and IE, but it doesn't work with safari & chrome... could you check this site.. and give me idea why ? http://www.isic.co.id/index.php?mod=isic.discounts click on "Discount Category" Greatly appriciate
[jQuery] parsers is undefined in tablesorter?
Hi, I am trying to generate dynamically a table from a csv by using jquery csv plugin and the jquery tablesorter plugin and tablesorter is giving me a bizarre error each time I try to click on a header of the table to sort it. Firebug shows: parsers is undefined return parsers[i].type;\n seems to be in line 483 of the tablesorter.js I found this post on this issue: http://groups.google.com/group/jquery-en/browse_thread/thread/a22dcbf8c5d69202 but neither of those suggestions worked. initially i thought
[jQuery] Cross-browser problem
Hello everyone! I wrote this script and it doesn't work in IE6 & IE7 and Chrome, but works in last Firefox and last Opera. In IE it simply doesn't list <option></option> at all and doesn't react on current_cat variables at all. If i set all "current" variables to 0 it shows all data, but doesn't react on <option> click event. Firebug doesn't show any problems, tried to check all values with - console.log(); and they all contain proper values as it seems. Please help me to find a problem. console.log(current_cat1,current_cat2,current_cat3);
[jQuery] [autocomplete] Missing space character in request
Hi, Using the autocomplete plugin works fine. But submitted values are trimmed. Is it possible to send data with ending space characters like the escape function in JavaScript? Thanks.
[jQuery] Create a Treeview with a checkbox
Hi guys I am using this plugin (http://bassistance.de/jquery-plugins/jquery- plugin-treeview/) to create a treeview in async mode with Country-
[jQuery] jquery(VALIDATE)
I need a way to debug what is being returned when I use the REMOTE option. I cant get the validation to give me an error class when a duplicate is found. here is my lookup.php which works perfectly fine when I use jquery $get to call it. Lookup.php <? $noheaders = "true"; //prevents config.php from loading any header data such a scripts and styles. include("config.php"); $table = $_GET["table"]; $key = $_REQUEST["key"]; $value = $_REQUEST["value"]; $failmsg = (isset($_GET["failmsg"]) ? $_GET["failmsg"]
[jQuery] disable column from sorting in tablesorter
I have a table in which the first column is the row number (always from 1 at the top to 100 at the bottom) so no matter how the other columns are sorted that first column should be the 'rank' for that particular sort. Is it possible to do this with tablesorter? Could I change the values in the first column after tablesorter did it's work? I see how to disable sorting on the first column but that is not what I want. Could someone suggest another way to achieve what I want? -- "Everything that you
[jQuery] Detect key event when using Chinese input method
Hi there, I am using JQuery to detect "key down" event, like j.input.bind("keydown", function(e)..... But when I use Chinese input method, the detection often failed. Can some help?
clearing text box value
i want to clear the default value of textbox, i wrote this code, please tell me whats wrong with this? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Untitled 1</title> <script type="text/javascript" src="jquery-1.3.min.js"></script> <script type="text/javascript"> $(document).ready(function(){
JQuery UI Sortable - Need Help
Hello, I m new to JQuery. My problem is like this. I have 3 UL element, one of the UL element have 8 LI element that can be drag n drop on to any of the other 2 UL element. I can do it by setting the code below $("ul.droptrue").sortable({ connectWith: 'ul' }); $("#sortable1, #sortable2, #sortable3").disableSelection(); my problem is that i want to limit the LI element that the other 2 UL element can accept. each of the other 2 UL element can only accept 4 LI element. when
some Option-click dont work in IE8 and Opera.
Hi, i created a jquery-script for controlling something with click in an select-list-form-element. It works super in Firefox 3. But not so in Internet Explorer 8 and Opera. In IE8, the complete click-functions are not in use and in opera it works "half-way", means that an hidden div is faded in as i said it in the script, but some Options in another selectlist are not hidden. $(document).ready(function(){ //Verstecken der Felder beim Seitenaufruf in Abhängigkeit zur Auswahl bei Type //Auswahl
[jQuery] jQuery conflicts
I would like to use several jQuery effects through a website that I am developing; a login popup, a drop down contact form, coda content scroller, and tabbed content. However, these implementations keep interfering with each other. Is there any way to get around this? I seems as though there must be a way to use multiple jQuery functions. The page is here: http://atlanta.scadswap.com/points-of-interest/clubs/opera/ Implementing the Login Popup (which doesn't have a login form inside it yet) broke
[jQuery] Sortables and helper appending
Does anyone know how I can make the draggable helper the last container in my sortables? I've been messing with the appendTo option, but I haven't a clue how to get it to work. thx
[jQuery] Jquery Animate Issue
Hi Guys Iam having an issue with the JQuery animate function. Iam not sure if its because iam potentially mis-using the animate function or if its a genuine issue so I thought I would seek some adivce here before looking into it any further :-). I have posted up an example of the bug on Jsbin with the following URL: http://jsbin.com/iquzo There is an expand arrow on the left hand side >>> that when clicked will make the left panel slide out. The arrow then turns the other way <<< so you can click
[jQuery] jQuery Superfish Joomla issue for IE6
Hi! Oddly enough, I have no problems with my IE7 version of my superfish menu is Joomla, but in IE6 it does not work properly. It does work, thank God, but not like in the other browsers. Two things occur. 1) The menu is not resized all the way over to the width of the screen. 2) The buttons do not work for the entire span, but only work when you rollover the actual link. This does not behave this way in IE7 or 8. Does anyone have any idea how to fix this? Here is my site: http://www.looledo.com
[jQuery] count checkboxes selected
I have a script where a user can select any 10 out of 20 CD's. I am using the jQuery Field Plug-in to limit the users selections to 10. My question is, how can I display the number of checkboxes selected, and remaining? I want to say: You have 3 CD's selected. You have 7 selections left. Here is a live example: http://psylicyde.com/misc/checkbox/ -- View this message in context: http://www.nabble.com/count-checkboxes-selected-tp24871849s27240p24871849.html Sent from the jQuery General Discussion
[jQuery] jqGrid fully working package
Hey guys In celebration of the release of jQGrid 3.5, I've made available a fully working downloadable package that contains everything you need to get started. There's a demo online available at http://www.jqgrid.com http://www.jqgrid.com It contains, in addition to jQuery and jQGrid and the jQuery UI theme, a sample JSON and XML script, two PHP scripts that generates both, even a sample SQL statement that will populate a table for you. I hope it helps! -- View this message in context: http://www.nabble.com/jqGrid-fully-working-package-tp24872492s27240p24872492.html
[jQuery] How to maintain data "Yes" or "No" in output...
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
auto load on toggling :)
Hi there, I like http://jquery.andreaseberhard.de/toggleElements/ plugin. but is there any option not to load all content with togglers, just load content of toggler when it's activated ? is it difficult? how to do it aproximately? ideas? thanks
[jQuery] Make event happen after a certain amount of time has passed.
Hey, After a user hasn't triggered an event for a given amount of purple, would it be possible to trigger that event anyway? I have no idea how to even start looking for this. Thanks for any hints/ideas/whatever you can throw my way. Simon
picture fade with tiles
I am looking for an extension to the innerfade plug in, where I can display small versions of the 4 rotating pictures under the main picture, so that the smaller pic is highlighted when the main one shows - similar to that on http://www.tottenhamhotspur.com. Is there anything out there that would do this?
Next Page