[jQuery] Dojo -> jQuery
I've looked around for a good information source on converting from Dojo to jQuery. Specifically, something that might details things to look for when converting, gotchas, things to be careful about, analogous packages (e.g., if you are using the subpackage X in dojo, you should think about using subpackage Y in jQuery), etc. Does anyone know of something like this? thnx, Christoph
[jQuery] [autocomplete] custom parse function
Hi, still using the autocomplete script from http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ Currently the script expects by default that the response contains the data as "visible text|other data" with one item per line (at least this is what I figured out from reading the source, I did not find any documentation about this - maybe I'm wrong!). I have an application which returns HTML because this was the preferred format for another autocompletion script which uses a different
[jQuery] [autocomplete] Display a busy indicator?
Hi, I use the autocomplete script from http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ There is something I could not figure out: Is it possible to show an busy indicator while the results are fetched from a remote server? thanks, fs
[jQuery] jquery + tinymce
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.6000.16674" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi all,</FONT></DIV> <DIV><FONT face=Arial size=2>i'm using jquery library in my projects, and it works fine.</FONT></DIV> <DIV><FONT face=Arial size=2>in my last app, i've to implement a page taht acts as an html editor, so
[jQuery] Drag Scroll
How can I setup a jquery like this... http://jdsharp.us/jQuery/plugins/AutoScroll/ but with no modifier key, just purely scrolls on mouse moving to edge any takers?
2 slide viewers in 2 tabs
I'm making a personal portfolio that is heavy jQuery driven. Thing is, it's the first time I use jQuery. Things were going fine until I tried putting 2 different slideViewer in jTabs. If you look at www.sebastiencouture.com/testsite/ the slideViewer in the Home tab loads fine but the one in Projects does't (yes there is one there). For some reason jQuery gives it a height and width of 0 (if you look at it with Firebug) and therefor doesn't show it. Can anyone help me find out why. Thanks Seb
[jQuery] toggle check box on row click
I have a table and each row has the id of the data element. I put a checkbox in the the first cell of every row with an id of cb+OrderId. I found my answer to click on a row and check the checkbox but I was just wondering if there was a better way. Is there a way to use this to get the checkbox? $(document).ready(function(){ $("#dt tbody tr") .hover( function(e) { $(this).addClass("rowHighlight"); }, function(e) { $(this).removeClass("rowHighlight"); }) .click( function(e) { var id = $(this).attr("id");
[jQuery] Some optimization
Hi everybody. I'm looking to optimize a few lines of code here. Basically, I have a table with sometimes as many as 1600 or more rows. I want to zebra stripe the table, add a clicked class (for batching the rows), and also hovering. $("table.fullWidth tr:odd").filter(":not(.last)").addClass("alt"); $("table.fullWidth tr").filter(":not(.last,.first)").bind("mouseenter mouseleave", function(){ $(this).toggleClass("over"); }); $("table.fullWidth tr").bind("click",function(){ $ (this).toggleClass("clicked");
[jQuery] One button to do two opposite tasks.
HI, I'm using the code below to create a hover effect. When the user puts the mouse over a div "box1" a list of items appear, and when it goes out, the list disappears. I thought it would be interesting to change the hover event for a click event. So that when the user clicked the box for the first time the list would appear, and the second click would make it disappear. Could you guys help me? $(document).ready(function() { $("#box1").click(function() { $(".ul-list").css("display", "block");
[jQuery] noconflict using mootools->slimbox&tooltips
I want to use JQuery beside moootools with 2 plugins: slimbox & tooltips. JQuerys validation is cooler to me! :) My problem is when I use slimbox by calling it with $ mootools is disabled, so I found out the noconflict method. My problem is: It seems doesnt work? http://tableless.vliegervaringen.com/ This: <script type="text/javascript"> jQuery.noConflict(true); jQuery(document).ready(function(){ jQuery("#commentForm").validate({ rules: { norobot: { required: true, number: true, minlength: 4,
[jQuery] [autocomplete] required jquery version
Hi, http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ states that the required version of jquery is 1.2.6. Is there a list why 1.2.6 is necessary? I write a trac plugin and trac 0.11 only ships 1.2.3 but I don't like to/can't insert my own version of jQuery. fs
[jQuery] Dynamic event listener?
I have the following code which is clearing the contents of an input box and modifying its css. $('.untouched') .focus(function(){ $(this).val(''); $(this).removeClass('untouched'); $('.add-msg').css('display','inline'); }) .growfield(); After a user enters a message into this box and submits the information some DOM manipulation occurs and another input box with the class of "untouched" is inserted. However, no onfocus function is tied to this newly inserted node
[jQuery] new plugin: Values
http://plugins.jquery.com/project/Values This plugin adds a values() method that searches descendants of the current selection for those with a "name" attribute and gathers their values into a hash object for you. If you pass a hash object or DOM element into the method, it will reverse the process and set those values. It can also work with single values. This makes it extremely easy to move/set/retrieve values to or from forms or any random collection of elements, allowing you to focus on "business"
[jQuery] NEWBIE: Accessing web control (ascx) of page (aspx)
I am VERY new to this.... as in started digging yesterday. I have a page, "TestPage.aspx" that includes the following javascript in the <head> section. /////////////////////////////////////////////// <script type="text/javascript" src="jquery/jquery-latest.js"></script> <script type="text/javascript" src="jquery/thickbox.js"></script> <style type="text/css" media="all">@import "css/thickbox.css";</style> <script type="text/javascript" language="javascript"> $(document).ready(function() { $('#form1
[jQuery] Sorting a JSON object based on it's keys
I have a JSON object (dynamically created) which is given below: var jsonObj = { 1 : { "Name" : "B", "Position" : "Sr" }, 2 : { "Name" : "S", "Position" : "Sr" }, 3 : { "Name" : "A", "Position" : "Jr" } }; In the above JSON object, keys can be strings also. Is there anyway that I can sort this JSON object based on these keys? The output should be as below: var jsonObj = { 2 : { "Name" : "Sai", "Position" :
[jQuery] Trouble with Ajax Buttons Inside Facebox Lightbox
I'm trying to have a few text fields inside of a lightbox like: Name and Subdomain with an image(submit button) to POST those values back to the server. When they aren't in the lightbox, it works fine but when I pull it into the lightbox, the image isn't able to POST back to the server -- I assume it isn't bound and doesn't register the click. Here is some code to hopefully help show what I mean: (sorry the HTML is actually HAML) HTML -------- %div#company_fields = text_field_tag "name", {}, :id
[jQuery] Getting XMLHttpRequest status
Hey, all. I'm sending an AJAX request, and in addition to executing functions on Success or failure, I want to get the Status of the XMLHttpRequest object (404, 401, etc). It's passed into the functions, but I can't figure out how to retrieve it. $.ajax({ type: "GET", url: "member_check.php", dataType: "xml", error: function(event, XMLHttpRequest, ajaxOptions, thrownError) { alert( XMLHttpRequest.status ) // << ???? } ) Any ideas? Thanks! Corey
[jQuery] select input in td not wokring, and disabled textbox centered
Hi, I have this problem. check the code below when first checkbox unchecked will disable 2nd checkbox and textbox; when 2nd checkbox unchecked will disable textbox. now 2nd checkbox works just fine, but I have problem to make 1st one work. I use $(this).parent().nextAll().attr('disabled', !$ (this).is(':checked')); which will disable 2nd checkbox and textbox, but I still can enter in textbox, I knew it will disable TD instead of the INPUT inside. I also try $(this).parent().find('input').attr('disabled',
[jQuery] [PLUGIN] glowbuttons
Matt Berseth published his first jQuery plugin called glowButtons: http://mattberseth.com/blog/2008/06/glowbuttons_writing_my_first_j.html Rey
[jQuery] jQuery Cycle Plugin Pager mode
Does anyone know how I can change the links to text links rather than continuous numbers? I'm new to all of this and can't seem to find it anywhere? http://www.malsup.com/jquery/cycle/int2.html
[jQuery] Using "this" with jQuery
I have a listing of items, each of which has a transparent "cover" over each item, but when you mouse over the item, the transparency hides, and shows full color item, then on mouseout the "cover" is added again. This works fine if I use IDs, but I want to get away from this, as I am not always sure about how many items I will have, so I don't want to have to keep adding more IDs to my jquery script. How can I use the javascript "this" property, so that I can get away from using IDs, and just have
[jQuery] SUPERFISH problems in IE 6
I'm having problems with the DDNAV in IE 6. First off, I think it's causing my headers width to display smaller. Second, the DDNAV extends the entire width of the browser. This is the first time I have used this style DD menu so any help is appreciated. Thanks site: http://www.goldfishnw.biz/TualatinFoodPantry/ CSS: http://www.goldfishnw.biz/TualatinFoodPantry/MainNav.css CSS: http://www.goldfishnw.biz/TualatinFoodPantry/superfish.css
[jQuery] [validate] automatically clear error messages when pass validation rule?
Hi, How do I clear the error messages when it passes the validation rules? I was hoping it would clear automatically. Is there some value I need to set or some configuration necessary? Thanks, Josh
[jQuery] Problems in beloved IE6
I'm using superfish 1.4.1 and jquery 1.2.6 here: http://www.goldfishnw.biz/TualatinFoodPantry/ CSS: http://www.goldfishnw.biz/TualatinFoodPantry/MainNav.css CSS: http://www.goldfishnw.biz/TualatinFoodPantry/superfish.css This is my first time using superfish and I got it to work in FF and IE7, but IE6 is giving me some problems. Not sure what to do. Any help is appreciated. Thanks
[jQuery] Add class on click, then remove when click another, and add to that.
I have a list of links, and when one is clicked, I would like a class to be added. I understand how to do this, but when you click another link, I would like the class removed from the first click and added to the second click, and so on, so that there is always only one link with the class applied. Thanks!
[jQuery] Show() and Hide() with effects attached question
Hello everyone, I have a very weird problem that I am seeing with JQuery. If I have div which contains <script> tag, when I call show() with an effect like clip. It executes the script inside the div. This is an undesired effect for me. Is it normal?
[jQuery] [ANNOUNCE] jQuery powered Plazes acquired by Nokia
All, I'm happy to announce that jQuery powered service Plazes has been aquired ny Nokia. W00000t!!!1! http://www.techcrunch.com/2008/06/23/breaking-germanys-plazes-acquired-by-nokia/ Cheers, Klaus
[jQuery] [autocomplete] custom parse function
Hi, still using the autocomplete script from http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ Currently the script expects by default that the response contains the data as "visible text|other data" with one item per line (at least this is what I figured out from reading the source, I did not find any documentation about this - maybe I'm wrong!). I have an application which returns HTML because this was the preferred format for another autocompletion script which uses a different
[jQuery] AutoComplete and Validation
Hello, I am using AutoComplete with Validation. Can I create a validation that accepts only values from the autocomplete? For example if the autocomplete list is: "New York, London, Lisbon, Paris" Then the following would be accepted: "New York, London" "New York" "Lisbon, Paris " " London,Paris,Lisbon" But not: "New York, Rome" "Moscow" Is this possible? Thanks, Miguel
[jQuery] td[title=''] vs td:not([title])
Hi I've been playing with jQuery selectors and i found something strange: I have a table like this: <table> <tr> <td title='test'/> <td title=''/> <td/> </tr> </table> Now, when i try to use jQuery to select all TD's that do not have a title attribute: td:not([title]) this selects the last two td's, so the one with title='' is included. if i try td[title=''] it gives me the last two as well if i try td[title] to see the reverse effect, it gives me only the first TD! Is this a bug?? Michaël
[jQuery] Odd image button issue in IE
My client has discovered an interesting issue with the nav on a small site that I built out for him, and it only seems to happen in IE: http://www.sdiarchitects.com/home.php 1) Click on a button, "Clients" for example. 2) Then click on another button, like "Contact Us". 3) If you click your back button, the text is missing from the button. The only thing that I can think of is that it's got to be caching the display property of the button somehow. But I've never seen this happen before. Anyone have
[jQuery] jCarousel problem with IE6: CSS not applied correctly & scroll not activating
Hi, i've set up a jcarousel here: http://www.q2arabia.com/index.php/events The page doesn't seem to be working in IE6, but it does work in IE7 / Firefox / Safari / Opera. Two things are not working: 1. The scrolling doesn't seem to be working 2. The css for hiding the overflow doesn't seem to be working Does anyone have any hints on how to fix this; i'm pretty sure i've just followed the standard example of how to set it up. Any help is appreciated.
[jQuery] MaxLength and Strict sequence validation is not happening
Hello Below is the code snippet i am using in Xml parsing against XSD Parsing is showing succesfull even if i give TransactionRef more than 30 character in xml. Any suggestion what should be wrong.What will be the root cause <xsd:element name="TransactionRef"> <xsd:annotation> <xsd:documentation>Transaction reference for a given transaction. Note: Same reference is sent back in response </xsd:documentation> </xsd:annotation> <xsd:simpleType> <xsd:restriction base="xsd:token"> <xsd:minLength
[jQuery] Trying to use jQuery to do the same effect on multiple links.
I am currently using: jQuery.noConflict(); jQuery(document).ready(function(){ jQuery(\"a:contains('Home')\").click(function(e){ e.preventDefault(); var link = jQuery(this), link = link.attr('href'); jQuery('#loading').fadeIn(200) jQuery('.wrap').slideUp(600, function(){ setTimeout('window.location = link', 500); }); }); Instead of duplicating this for everylink
[jQuery] [Tutorial] Use jQuery and ASP.NET AJAX to build a client side Repeater
From Encosia.com: Use jQuery and ASP.NET AJAX to build a client side Repeater http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/ Rey...
[jQuery] Differnce between JQuery call and Nomal call
Is there anyway to tell the difference between a JQuery call and a Normal? Preferably in PHP? I dont know if that is a detailed enough question but i dont really know how else to ask and I wasnt sure how to search for it in the group either so i just started a new topic.. Thanks!! James
[jQuery] jquery Plugin Validation + jquery Form Plugin
I have a problem using two plugins with Jquery : http://bassistance.de/jquery-plugins/jquery-plugin-validation/ and http://www.malsup.com/jquery/form/#code-samples I have a form where I need to check if fields are wrong or not (with jquery Plugin Validation). When the form is submitted and all fields ok, I need to load a page into a div ('#response) using ajaxSubmit (from http://www.malsup.com/jquery/form/#code-samples). Here is my code : jQuery(function() { $('#response').css({ display: "none"});
how do i select an input name="id[1]"
Hello to all, i love jquery, so thanks to all developers. I stuck because i dont know how to select an input which has only the name tag, like this name="id[1]". Does someone can help me out? thanks
[jQuery] Code not working in IE
I am using this code: jQuery.noConflict(); jQuery(document).ready(function(){ jQuery('#loading').show();jQuery('.wrap').slideDown(1000);jQuery('#loading').fadeOut(1500, setTimeout('showdocs()', 1500)); jQuery(\"a:contains('Home')\").click(function(e) {e.preventDefault();link = jQuery(this).attr('href');jQuery('#loading').fadeIn(200);jQuery('.wrap').slideUp(600, function(){setTimeout('window.location = link', 1000);});}); jQuery(\"a:contains('Pages')\").click(function(e)
[jQuery] submitting a form by pressing enter
Hi, I have a form, with id="myForm", with a number of text fields (input with type="text"). How do I cause a form submission by pressing enter in any of those form fields? Thanks, - Dave
Next Page