[jQuery] adding an active class to nav li tag, based on dir level.

2009-12-17 Thread cadenage
I'm having a problem adding an active class the my navigation . I'm trying to use jquery to add this class based on the dir level and not the file name. Reason being, each dir is going to have sub directories and misc html files that will be linked together within the main dir. I was trying to us

[jQuery] adding event to dynamic element

2009-11-20 Thread tony stamp
Hello I am using ajax in an autocomplete feature, and to resuse the existing templates, i am attempting to dynamically add a close button/link to the autocomplete results. I understand that i cannot add an event listener to newly created elements, so i am creating the element using the live() fu

[jQuery] Adding some buttons and callbacks

2009-11-18 Thread VANJ
This is probably a very basic question and I know how to do it using plain DOM but would like to learn the JQuery way of doing it. After identifying the set of nodes using the appropriate JQuery selector, I would like to append a textarea, Save and Cancel button to each node with appropriate callb

Re: [jQuery] Adding "looping" to existing jquery script?

2009-11-15 Thread Charlie
without spending a lot of time dissecting this code the part you would need to focus on is: //if not at the first or last panel         if((direction && !(curPanel < totalPanels)) || (!direction && (curPanel <= 1))) { return false; } this is telling slider not to do anything if at last panel,

[jQuery] Adding "looping" to existing jquery script?

2009-11-14 Thread RodeoRamsey
I'm using the jquery script "moving boxes" found on CSS-Tricks.com (http://css-tricks.com/moving-boxes/) ... It works great so far except for one thing I need to accomplish. I need to have the script "loop" the content, so that when my images/divs are loaded, once you get to the last one, if you cl

[jQuery] adding class whenwindow is resized below 1000px

2009-10-27 Thread pab
Hi everyone, I'm trying to figure out a way to add a class only if the browser is resized by the user at less then 1000px This is what i have going right now. $(function(){ $(window).width('width','100%'); $('body').css('width','w < 1000px'); $("body").addClass("no_border"); }); as o

[jQuery] Adding a "close" link button button at the end of Autocomplete dropdown

2009-10-15 Thread Thomas
Hi, I am using Jquery autocomplete dropdown, could you please help to add a "close" link button at the end of the dropdown like the google suggest ? I am new to jquery, Thanks in advance Thomas

[jQuery] Adding selectors to $(this)?

2009-10-13 Thread Matt
Hi all, Writing a sortable list function. My elements contain several items (headings, paragraphs etc) and I want to add a class to the headings when they've been sorted. I have this code in my sortable init: receive: function(event, ui) { $(ui.item).addCla

[jQuery] Adding Multi-Tier to Drop Menu?

2009-10-08 Thread ehime
I thought I could get this working with my first UL, doesn't seem to be cooperating very much though. Anyone mind helping me find out how to add the ability to traverse up to four tiers? Much MUCH appreciated! [code] $(document).ready(function(){ $("ul.subnav").parent().append(""); //Onl

[jQuery] adding filters in the middle of a selector brings Firebugs warning

2009-10-07 Thread BaBna
Hi, If I am doing this: alert($(".ivts_thead").find("tr:first").find("td").length); alert($(".ivts_thead tr:first td").length); I get in both cases the same result, the expected elements are in my object, but in the second case, I get a Firebug warning saying "Unknown pseudo-calls or pseudo-el

[jQuery] Adding a new feature to the Reflection.js plugin (Image reflection embedded in a carousel)

2009-09-23 Thread maurizio.fo...@yahoo.it
Hi all, I'm new to this group, nice to meet you everyone. I've been using jQuery for some time, and now I'm trying to create a super-fancy image carousel with a functionality similar to the one of this page: http://www.lafeltrinelli.it/fcom/it/home.html (in the middle of the page, the tabbed caro

[jQuery] adding #current position / #total to jquery cycle paginator?

2009-09-15 Thread Luciano A. Ferrer
Hi! I was looking this jquery cycle plugin option/paginator: http://malsup.com/jquery/cycle/scrollhv.html it will be too complicated to add a current "#currentslide / #totalslides" between previous/next? you know, to have something like: previous 3 of 9 next best regards, and sorry for the

[jQuery] adding extension property to jCarousel

2009-09-10 Thread W. Young
I can add extension methods to the jcarousel add in such as: jQuery.jcarousel.fn.extend({ position: function() { //alert(this.first-1); } }); jQuery.jcarousel.prototype.position = function() { //alert(this.first-1); }; but I want to get access to the "fir

[jQuery] Adding/Removing and Resizing jScrollPane - Reinitializing jScrollPane

2009-09-04 Thread pedalpete
I am building a little widget which is using jScrollPane to add a scrollbar for where the data doesn't fit inside the alloted space. When the user clicks on the data, I hide what they had, and show the clicked data in a different format. Sometimes the data needs a scrollbar, sometimes not, and s

[jQuery] Adding a progress indicator for file download

2009-08-21 Thread bhooper
Users on my site can select items from a form and when they click submit I create a pdf and download it. Now I have the form working, the submit creates the pdf and the result downloads without any issues. The problem is that it can take 5 - 10 seconds to generate the pdf. Is there a way to use j

[jQuery] adding click event

2009-07-23 Thread shaf
Hi Guys I have just inserted some content into my html page and now Im trying to add event listeners for some of the links in the inserted content but nothing happens. Do I need to update something before I can add a click event?

[jQuery] Adding element to an array of object

2009-07-19 Thread FrenchiINLA
I would like to add a key value to an object array. let's say i have 2 arrays: var parArr = new Array('par1', 'par2', 'par3', 'par4'); var valArr = new Array('val1', 'val2', 'val3', 'val4'); I would like to obtain ext={par1:val1, par2:val2,pa3:val3,par4:val4} Any help wou

[jQuery] Adding items to the json result of the autocomplete plugin

2009-07-14 Thread yasmine
I am using the tokenizing autocomplete text entry which expects the search result in json format I want to know if it's possible to add items to the json collection using jquery, if I have for example var results = [{"id":"1","name":"Abb"}, {"id":"2","name":"Abbas"}, {"id":"3","name":"Abd"}, {"

[jQuery] adding rule to selector syntax

2009-07-01 Thread introvert
Hello I have a simple jquery selector: $('[id^=total_item]') I would like to add a rule so that the upper code would match all elements that don't have 'locked' class (so that it wouldnt match those with class='locked'). How should I add this rule to the selector? Many thanks in advance!

[jQuery] adding code force of show effect

2009-06-28 Thread Lopy
Hi, I am trying add code via show effect. E.g. // I need a copy paragraph id="he" via show effect. Is it possible? thanx a lot -- View this message in context: http://www.nabble.com/adding-code-force-of-show-effect-tp24234547s27240p24234547.html Sent from the jQuery General Discussion m

[jQuery] adding code force of show effect

2009-06-28 Thread Lopy
Hi, I am trying add code via show effect. E.g. // I need a copy paragraph id="he" via show effect. Is it possible? thanx

[jQuery] Re: jquery adding and removing row

2009-06-25 Thread Mauricio (Maujor) Samy Silva
should be: .item:last (without a blank space in between) Maurício -Mensagem Original- De: introvert Para: jQuery (English) Enviada em: quinta-feira, 25 de junho de 2009 14:04 Assunto: [jQuery] jquery adding and removing row Hello, I want to be able to add row at the

[jQuery] jquery adding and removing row

2009-06-25 Thread introvert
Hello, I want to be able to add row at the end of the table with a 'remove' link which will remove specific row. The code I've managed to write so far: $(document).ready(function() { $("#add_item").click(function () { var html = "remove";

[jQuery] adding script that uses older jquery

2009-06-08 Thread Lalo
hello! i'm trying to add a script to my page but there seems to be a conflict jquery. is it possible to use two versions of jquery in the same page?

[jQuery] Adding/Removing text on texarea

2009-05-19 Thread Johannes Theile
Hi, I have a list of text-snippets which should be inserted into a textarea, separated by a comma. When I click the same text-snipped again, it should be removed from the textarea. I managed to to implement the "inserting" with the following code, but for the removal I have no idea. $("a.tags2te

[jQuery] adding $("

2009-05-18 Thread Paul Tarjan
If I have a node that isn't in the DOM, and then I add a script to it, then it is actually executed. Example Expected behavior : s variable contains the string "alert('hi') ". Observed behavior : alert box pop up and s contains ""

[jQuery] Adding new table rows on the fly?

2009-05-15 Thread ScottChiefBaker
Do you know if you can clone() and then appendTo() a http://www.perturb.org/tmp/test.html I want to something like $("#second").clone().appendTo('#second'); It works, but it doesn't render like I want it to. I want it to be a NEW row. Any ideas? - Scott

[jQuery] adding fadeIn/fadeOut effect to toggle or toggleclass

2009-05-12 Thread KD
The following works very well to highlight a table cell with a background color when the cell is clicked: Code: jQuery("td").toggle( function () { jQuery(this).addClass("highlight"); }, function () { jQuery(this).removeClass("highlight");}); This also works with toggleClass: Code

[jQuery] Adding properties to $.ajax(options)

2009-04-17 Thread blasto333
$.ajax({ type: "GET", url: prefix+url, success: script_saved, custom_property : someVar }); Is there anything wrong with this?

[jQuery] Adding incremental numbered classes to divs

2009-04-09 Thread Brain Lava
I'm really new to jQuery and have been struggling with a concept that I would think is pretty simple but I can't seem to find anything online that does what I need. I'm using NextGen Gallery for Wordpress and I would like to assign an incremental class to each div that the gallery outputs. For e

[jQuery] adding columns to table row

2009-04-07 Thread skunkwerk
Hi, i'm trying to make a really basic 'tab bar' for a project. i looked at the stuff out there (ui tabs, and flytabs) but wanted something simpler. i basically need to create a bunch of horizontal cells that can be added to, and don't need any div-switching or anything for the content (just l

[jQuery] adding dynamic buttons to code slider

2009-03-29 Thread macsig
Hello guys, I'm trying to make some changes to the "coda slider" created by Remy at jqueryfordesigner.com but I have hard time so figure out that is wrong with my code. I hope someone can help me out with this issue. I want to change dynamically the left and right buttons according to the curren

[jQuery] adding jQuery causes my page to flash/blink on load

2009-03-28 Thread jaybee
Hi when I added jquery-1.3.2 and jquery.ui-1.7.1 to my page here http://ssmedgroup.com/beta/index.html it causes my page to flash/blink as the browser redraws the page on load. (click on the navigation tab; you'll see what I mean.) It happens on safari 4, chrome (though less so), and IE6&8.

[jQuery] Adding images from one div to another (this is pretty simple..)

2009-03-12 Thread bart
Hi all, I've built something with which you can click an image in one div and with the click add it to another. Check an example on; http://www.vliegendepijl.nl/pages/test/pictest.html Adding an image from one div to the other works. But as an additional feature I'd like to also be able to remov

[jQuery] Adding values from a variable number of select drop downs

2009-03-06 Thread shallowman
Hello all, I am trying to add the values from a variable number of select drop downs. I have assigned each select element that I want to add a class of "weight" to make searching for them easier. The goal is to have all of the numeric values from each select element with the class "weight" added

[jQuery] Adding live web chat functionality

2009-03-02 Thread René
I've been asked to add live web chat to a couple sites, in which jQuery will no doubt play a big role. However, I'd rather not re-invent the wheel if there's some free, open source live web chat software worth recommending. Can anyone recommend such a package, or am I better of writing my own? .

[jQuery] Adding additional callbacks to image slides

2009-03-01 Thread HM-User
I have a number of image slides which are fading in and out and I am also using the pager option (jQuery Cycle). What I want to know however is, is it possible to invoke a created headline for the image as well as the image's alt? So: function onAfter() { jQuery('#caption').html(this.alt); } dis

[jQuery] adding html to tab labels

2009-02-24 Thread Paul Georges
i'm trying to add some html to the label area of tabs in order to add an icon and also some divs that i can access at later times to modify easily. any suggestions on how to do this? at the moment i'm doing something like this $("#tabs").tabs('add' , '#' + tag, '' + nick + ''); it does what i

[jQuery] adding more pictures to existing script

2009-02-24 Thread sydmalayalee
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($) {

[jQuery] adding tabs dynamically

2009-02-20 Thread Paul Georges
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] Adding methods to Plugins

2009-02-19 Thread djl
Hi, I'm trying to write my first plugin and so far have managed to get it working fine including passing options in. What I can't seem to find out is how to create plugin methods eg, Using jQuery UI Draggable, passing an option in: $('.selector').draggable({ opaci

[jQuery] Adding an LI element to an OL

2009-02-10 Thread Sam Hastings
Hi everyone, I've got an ordered list (OL) containing several LI items, currently arranged in alphabetical order. How hard would it be to create a new LI element, and put it in the right alphabetical position based on its value? Sam

[jQuery] adding cluetip + ajax to an existing calendar.

2009-01-24 Thread ajcrox
Hi. I've inherited an existing calendar which is a goog old fashioned table of hyperlinks built in a .net user control. My boss has asked me to makes some mods to it and I've added cluetip with the following code: jQuery(document).ready(function() { jQuery('a.popup').cluetip({ cluetip

[jQuery] Adding many elements to a element

2009-01-23 Thread roosteronacid
Consider the following: var i, select = $("select"); for (i = 0; i < 1000; i += 1) { select.append(""); } Performance in Internet Explorer is terrible. So is: var a = [], i, select = $("select"); for (i = 0; i < 1000; i += 1) { a.push(""); } select.append(a.join()); Besides cre

[jQuery] adding a class to an object if the next object has the same attribute value.

2009-01-07 Thread peet
Hello to you all, I have looked in this group and could not find anyone trying the same thing as i am trying to accomplish. I am trying to add a class to an object if the next object has the same attribute. I don't know the name of the attributes value the 2 have in common. the code i have is:

[jQuery] Adding an onClick funtion to existing working menu - need 2 or 3 things to unload/load

2009-01-02 Thread yvonney
Hi All... Really sorry to be going over this again. It's been one solid week all day and night. I know more, though not enough yet. Hope this is easy to understand. I REALLY need help. I've tried 100's of things all thru new years eve and day as well. hehehe WORKING menu must stay working though

[jQuery] Adding to a group of Radio buttons

2009-01-02 Thread carrajo
These are the radio buttons on my form Honda Toyota Mazda Using jquery how can I add another selection to the list? Something like $label.append(' Ford'); ? I can't figure out the syntax. Any help please. Thanks

[jQuery] Adding scope support to .bind()

2008-12-25 Thread Eduardo Lundgren
Hi guys, The .bind() method consider the scope of the handler the element whose the event is assigned - that is the correct as default. I've been playing with the event.js and implemented an alternative to call .bind(), specifying another scope, that looks useful for our api. I've attached the e

[jQuery] Adding carousel to gallery help please

2008-12-17 Thread expat101
Can someone help me with my gallery please why does it stop after the 5th image? all i get is a black/blank container? http://illusionz.x24hr.com/?q=content/welcome and how can i add a carousel to the gallery so it auto starts and loads the images?

[jQuery] Adding IMG attributes

2008-11-28 Thread enchance
I'm trying to add several attributes to all my img tags but I'm not sure if they're both working. Could you verify if these are correct? $(document).ready(function(){ //add the width and height for each image $('img').each(function(){ $(this).attr('width', $(this).width()); $(this).attr('he

[jQuery] Adding AutoHeight for Accordion SideBar

2008-11-18 Thread ehime
Here at work this morning with more complete source code. Here's a better description of what I'm trying to accomplish. The Height variable in my Javascript code is right now static and set at 320px vertical. [b]The problem [/b] is that since my height is predefined, yet my internals are dynamic b

[jQuery] Adding a variable within a function name?

2008-10-29 Thread Nic Hubbard
I am using the jquery each() function to find the id of text areas on my page. Then I need to add that id next to another function, but I am getting syntax errors: $('textarea').each(function() { var textId = $(this).attr('id'); $(this).val(); = eval('editor_' + textId + '.getHTM

[jQuery] Adding a double click event to a form element

2008-10-17 Thread Devin
Hi, I'm new at this and I wasn't able to find what I was looking for by searching. On my form there is a few fields that will be populated when the page is loaded. These are fields that would rarely - if ever - be changed. So I want the user to have to double click the field to enable it. Thus

[jQuery] Adding class to a parent element- traversion help?

2008-09-30 Thread Vinoj
I've got the following as my jquery code: $(document).ready(function() { $(".bc-wrapper:empty").(this).parent().addClass("none"); }); And the html is: The css is as follows: .bottom-content { display: block; width: 215px; border: 1

[jQuery] Adding "Arrows" to a DropDownMenu based on Lists

2008-09-22 Thread Gordon Bergling
Good Morning Everyone, I am struggling a few hours with a problem, which solution isn't that easy as I initial though. The following example list is generated by backend code. Home Folder A Page1 Page2 Folder B Page1 Page2

[jQuery] Adding a new row

2008-09-10 Thread Babu PCA
Hi I need a help I have a table in which some 100 rows are there, each row contain a button, when i click button i want to add a new row below this row only how can i do this ? can any one help me Thanks

[jQuery] Re: jquery - adding flexibility to a function

2008-08-31 Thread Brad
The selector is a string. Therefore with a slight modification you should be able to do this function loadContent(id) { $("#contentArea"+id).load("rpc.php?o="+id+""); } On Aug 31, 6:47 pm, TheOriginalH <[EMAIL PROTECTED]> wrote: > > > funct

[jQuery] jquery - adding flexibility to a function

2008-08-31 Thread TheOriginalH
function loadContent(id) { $("#contentArea").load("rpc.php?o="+id+""); } Works well, but I'd like the function to work for an area with a variable div. So if the function is called with an id of 6, it loads the content to "#contentArea6". Any ideas on h

[jQuery] Adding error message in HTML with form validation

2008-08-30 Thread Wonder95
I'm trying to do some simple form validation, and I can get one response to work but not another one. I have a simple form in a sidebar block (in Drupal) that is an area calculator (user enters length, width, and height, clicks Calculate button, and area field is filled in via jQuery). That part

[jQuery] adding a radio button (Firefox vs. IE)

2008-08-25 Thread Chris Hall
I have a weird issue that only seems to be a problem with Firefox, but works ok in IE. I'm adding a radio button using .appendTo and adding the button works fine, but with Firefox it appears the button is not in the correct group as selecting it will not deselect anything else in the group. Sele

[jQuery] Adding Values (Sum) of TD.

2008-08-23 Thread Scott Phillips
I am trying to do a footer at the bottom of the table, and I would love to use jquery to provide a total in the footer, something like this: 1 | 1 | 3 2 | 1 | 4 -- 2 | 2 | 7 (JQuery added the TDs above) Is it possible? And can anyone point me in the right direction.

[jQuery] Adding Next link and Prev link To the first and last image

2008-08-23 Thread Gabriel
Hi all ! everything is in the title. I would like to Add Next link and Prev link To the first and last image of the thickbox plugin. Any ideas would be helpfull ! Thanks a lot ! Gabriel

[jQuery] Adding text with Images in Jcarousel

2008-08-19 Thread Nizar
I am trying to add text underneath an image so they are both scrollable and was wondering if that is even possible and if so can someone provide help on this. eg. pic pic [txt] [txt]

[jQuery] parsing xml with jquery adding filter

2008-07-25 Thread Anatalsceo
hello, I'm trying to parse some info from an XML file with a filter to get only one part of a the infos. it doesn't seem to work. can someone help. here is my code: function getImageName(marque) { $.get("xml/listeProduits.xml",{},function(xml){ // Build an

[jQuery] Adding click handlers in a loop

2008-07-19 Thread edeology
What I'm trying to achieve is build a table programmatically using DOM like so: var Html = []; Html.push(' . ') . Html.push('') Inside the table I'm adding rows using a for loop like so: for (var index = 0; index < length; index++) { Html.push('..'); .. } And ins

[jQuery] Adding a privileged function to a class in a separate file.

2008-07-01 Thread lrbabe
Hello there, I am building a class in a namespace extending jQuery this way : ;(function($) { $.myNamespace = $.myNamespace || {}; $.extend($.myNamespace, { myClass: function() { this.myPrivilegedFunction = function() { return myVar; } var myVar = 4

[jQuery] adding and chaning delay to effects by extending the core problem

2008-06-30 Thread Ben Novakovic
Hi, I just had a quick question. I'm trying to add a new set of effects functions to jquery (that I hope to release as a plugin), but for some reason I can't get them to work, despite returning the correct element from all my functions. Basically, i have extended the core with a .delay function

[jQuery] Adding namespace to every css class

2008-06-30 Thread albert
Hi, Is there a way to add namespace to every css class? a. Dynamically on the page? b. If it is not possible dynamically, how to do it not dynamically. For example - Original css-- .nav {.some css atribute } .main {.some css atribute } .box {.some css

[jQuery] Adding hover to all table rows (tr) but the first one.

2008-06-26 Thread aldomatic
I'm having a difficult time figuring out how to add a hover effect on all but the first table row (tr). I appreciate anyone's help. Thanks!

[jQuery] Adding the dialog function dynamically to each li element

2008-06-17 Thread Dan
I have a list like: TITLE and I want to add the content "Open" after TITLE in the h3 tags that will open a dialog corresponding to this li, but do this to every other element just like it. $(".editable").each(function(){ //get each editable li element var title = $(this h3).val(); //get

[jQuery] Adding times

2008-06-02 Thread owen
Does anyone know of a good plugin/function/library for adding up times? My primary requirement is to be able to take strings like "9:00 AM" and "5:00 PM" and calculate the hours between. I don't want to reinvent the wheel, especially considering mine will end up being square... Thanks, Owen

[jQuery] adding a callback function?

2008-05-02 Thread Chris Hall
Hello everyone. I am trying to modify the SpinButton code (from here http://www.softwareunity.com/sandbox/jqueryspinbtn/) to include a callback when the value is changed. I'm very new to callback functions and have tried searching the web for how to add them but so far have had no luck. My desi

[jQuery] Adding function argument into jquery

2008-04-29 Thread hubbs
I wrote a small script that brings up a confirm dialog, and if the user clicks ok, it will hide a div, and then post a URL. I am using the assetid argument from my function, and I want to use that with the jquery .hide function, but it does not seem to work. What have I done wrong? It seems lik

[jQuery] Adding a string to the end of links using Jquery?

2008-04-24 Thread denhamd2
Hi, Is it possible to add the string ?mytracker=yes onto the end of all links on my page using Qjuery?

[jQuery] Adding load to ajax POST function

2008-04-20 Thread hubbs
I am using the ajax POST from the examples on the jQuery site. $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(html){ $("#results").append(html); } }); I would like to add the "load" option onto this, so that I filter the server re

[jQuery] Adding class pager slideshow

2008-04-17 Thread IschaGast
Example file: http://ischagast.nl/jquery/carousel.html In the example file you see a slideshow of news items where you can navigate with the arrows. I wanted too add some extra features and that's the pager option on the bottom right. That features works great but now I also want that when news i

[jQuery] adding two functions together

2008-04-01 Thread cmt
I have 2 javascript calls in an tag. Originally I had just used standard javascript and put the 2 functions together like this: click me to execute the 2 javascript functions But it only worked part of the time. I then tried changing it using jQuery like this: $('a#"functionClick"').c

[jQuery] Adding an if(condition) traversal mechanism...

2008-03-25 Thread Guy Fraser
I've been playing with this... $.fn.if = function(flag) { return (flag) ? this.pushStack( this ) : this.pushStack( [] ); }; You can then do stuff like: var addEdges = function(selector,opts) { $('.selector) .addClass('selected') .if(opts.page>1) .addClass('more-left'

[jQuery] adding a loading image to a mouse pointer

2008-03-03 Thread ryszard99
hi there, i've just started doing jquery stuff and am interested in how i can add a loading image that will follow the mouse pointer, pretty much exactly how cluetip does it. actually i'm using cluetip in my site and would like to replicate the loading image functionality.. if someone could poi

[jQuery] Adding more than 3 images with jcarousel

2008-02-21 Thread Richi3f
Hi, I just downloaded the jcarousel and let me say its amazing! I'm going to use for a new site I'm working on, but the problem is that it only shows 3 images! I need it to show about 6 or 7, how can I make it to show more than 3 images? Thanks, Best regards, Richi3f PS: I'm using the thickbox e

[jQuery] Adding events to newly added fields

2008-02-06 Thread bikuta
Hi I am trying to make form which contains a list of items. I have a set of events which need to be bound to each item, at the moment everytime I add a new item, I have to unbind all items and add the event again to all items for the new item to work like the rest of them. This means my applicat

[jQuery] Adding a callback function to a extended jquery function

2008-02-05 Thread Dan Eastwell
Hello, I have the following function: // Show and fade out a feedback message $.fn.addFeedback = function(feedbackMessage){ var offset = $(this).offset(); var feedbackDiv = "" + feedbackMessage + ""; $("body").append(feedbackDiv); $('#feedbackElement').fadeIn('slow

[jQuery] Adding CSS-property & therefore traveling the DOM - Problem.

2008-01-22 Thread Jayzon
Hi! To get this right, I'll post the html-part first: Mister X Info 1 Info 2 Info 3

[jQuery] Adding a table row and a form with jquery?

2008-01-17 Thread dougXN
Anyone have an idea how one might add a row to a table and have the form elements in each column? Something like this: var newRow = document.createElement( 'tr' ); var groupCell = document.createElement( 'td' ); var roleCell= document.createElement(

[jQuery] Adding

2008-01-15 Thread Michael
I have this code so far: http://www.w3.org/TR/html4/loose.dtd";> http://code.jquery.com/jquery-latest.js";> $(document).ready(function(){ $(document.body).click(function () { if ($("div:first").is(":hidden")) { $("div").slideDown("slow"); } else { $(

[jQuery] Adding xhtml+xml capabitlity to ajax load()

2008-01-03 Thread Max_B
Currently, the load() method uses the responseText from the ajax request and innerHTML. If the server send application/xhtml+xml content-type header the responseXML is returned by the ajax/get/post method but is not inserted into the DOM. One needs to manually add it in the callback with a code l

[jQuery] adding conditional to $("x")

2007-12-31 Thread Dug Falby
Hi all, I'd like to do the following: walk through the DOM stopping at: [EMAIL PROTECTED] and conditionally add a class to each input tag: if [EMAIL PROTECTED]() < 5 then .addClass('S') if [EMAIL PROTECTED]() > 10 then .addClass('L') else .addClass('M') Can I still use the lovely $() constru

[jQuery] Adding result to database via php/jQuery - similar to tag feature on flickr

2007-12-25 Thread coughlinsmyalias
Hey all, I have been looking on google and on the jquery site for a function/ plugin that will allow me to do: Have a form with one field that on submit will add the word to the page instantly via ajax/php send the request to the database and post to the table then display a message like "Word h

[jQuery] Adding rounded corners to inline images? (not background)

2007-12-11 Thread Action
The only rounded corners plugin I've found (http://www.methvin.com/ jquery/jq-corner-demo.html) only applies the corners to the background. I need to be able to able to add rounded corners to images inline in the html (anything using an image tag). Is there a plugin for this? Normally I'd use a s

[jQuery] adding a class to the label of a checked radio button

2007-12-03 Thread sperks
I think that this bit of script is adding a class to the for attribute, but I'm wanting to add the class to the element that has that for attribute. Can anyone help me do the targeting better? Thanks $(document).ready(function() { $('div#searchLabels').addClass('active'); // allows me to

[jQuery] Adding jQuery Libary to JSEclipse

2007-11-27 Thread chrismarx
JSEclipse has stated that they don't support jQuery, but with the ability to add your own libraries, I was wondering whether anyone has taken the time to put something together, so we could get jQuery code completion in jseclipse!!

[jQuery] adding parameters to tabsClick()

2007-10-31 Thread SterlingK
Is there a way to pass parameters with the tabsClick function? My basic code looks like this: $('.newslink').click(function() { $('#tab_menu > ul').tabsClick(3); return false; }); That works great for every link with the .newslink c

[jQuery] Re: Fixing divs with jquery (adding )

2007-10-29 Thread Corey Frang
You could simply wrap the php file in another php file that does ob_start() then includes the other php file, ob_get_contents(), edit the code appropriately and then dump it. Would be my suggestion... Broken DOM leads to many problems, one of which is jQuery wont be able to find selectors ve

[jQuery] Re: Fixing divs with jquery (adding )

2007-10-29 Thread Gordon
There is no reliable way of fixing that in JavaScript, which is strongly dependant on having a well-formed DOM structure to work with. Besides, it would be a waste of processor cycles on the client side. Surely it couldn't be difficult for the server side developers to fix the scripts that gener

[jQuery] Re: Fixing divs with jquery (adding )

2007-10-28 Thread polyrhythmic
The only way to attempt to accomplish that would be to read the innerHTML, append the in text, and rewrite the innerHTML for the select_chalet_content divs. However, since the HTML is improper and the divs are not closed, jQuery could potentially grab anything to *everything* after , making an s

[jQuery] Re: Fixing divs with jquery (adding )

2007-10-28 Thread Benjamin Sterling
Maurice, I really would suggest that you get with the booking app developer and have them fix it. This is, assuming you guys made no change to the app, a bug in the app and would/should fall back to them. Did you call them to find out if this is a known issue and if they will send you an updated

[jQuery] Fixing divs with jquery (adding )

2007-10-28 Thread Maurice Kroon
Hi, I've got a friend that bought a booking app a view months back. Now there is something wrong with implementation, because every time a particular (class="select_chalet") div is opened, it won't be closed. So, instead of waiting for the fix & repair bill, i wanted to try something else. This i

[jQuery] Adding extra functions to newsticker plugin

2007-09-21 Thread e2e
Hi, I'm trying to learn jQuery. Plugins are definitely very helpful. But I can't add an extra function to http://www.texotela.co.uk/code/ jquery/newsticker/">newsticker plugin. I want to add "next", "prev" links to make slides more flexifle for users. When a user clicked next button the slide mu

[jQuery] Adding :hover css support to IE6 - ie6HoverFix

2007-09-21 Thread Christian Bach
Hi list, The other day i got feed up with ie6 not having :hover css support so i decided to fix it. Here is a simple script that solves the problem: http://lovepeacenukes.com/jquery/ie6hoverfix/ /christian

[jQuery] adding custom attr on html elements?

2007-09-19 Thread Aljosa Mohorovic
if i have test $("a.test").click(function() { arg1 = $(this).attr('arg1'); arg2 = $(this).attr('arg2'); // code using args }); is this acceptable way of using attr or should i avoid this?

  1   2   >