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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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?
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
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"}, {"
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!
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
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
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
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";
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?
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
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 ""
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
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
$.ajax({
type: "GET",
url: prefix+url,
success: script_saved,
custom_property : someVar
});
Is there anything wrong with this?
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
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
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
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.
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
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
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?
.
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
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
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($)
{
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!
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
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
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
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
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:
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
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
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.
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
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]
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
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
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
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
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
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!
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
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
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
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
Hi,
Is it possible to add the string ?mytracker=yes onto the end of all
links on my page using Qjuery?
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
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
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
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'
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
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
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
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
Hi!
To get this right, I'll post the html-part first:
Mister X
Info 1
Info 2
Info 3
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(
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 {
$(
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
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
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
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
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
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!!
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
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
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
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
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
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
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
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
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 - 100 of 112 matches
Mail list logo