I'm trying to create some horizontal jquery tab sliders, and being
somewhat new to jquery, I'm having a little trouble finishing off the
logic.
My current code snippet is here:
$(document).ready(function(){
$(".trigger").click(function(){
$(this).toggleClass("active");
$(thi
The row coloring is done on client-side (with tablesorter itself). It
works on document load. However, after sorting, all rows become the
same color. Why is row coloring not preserved after sorting? What can
be the reason?
Here is a snippet:
---
I'm just checking if there is any split button plugins/work
already done in jQuery community? Google returns none.
What is split button:
http://vincenthomedev.files.wordpress.com/2008/04/image1.png
Other implementation: Yahoo! email reply button
TIA
--
Email: rrjanbiah-at-Y!comBlog:
Let's say filling a form should add a row to a table.
Responding with the html row is not a problem, but how do you include
the event to add the row and any listeners which might follow after
it?
Thanks
Thanks a lot, that observation did indeed correct the problem...
Much appreciated :)
On Dec 18, 10:08 pm, Joel Birch wrote:
> Hello,
>
> Looking at the source of that page I notice you are initialising
> Superfish twice. If you delete the first block (the one without the
> pathClass option) I
Just bumping in hopes of any fresh ideas on this.
It's always true, because it's always returning an object, albeit an
empty one. You need to use the length property. Please take a look at
the solution I offered to your other post.
Also, I know that sometimes posts can take a while before they appear,
but please be patient and try not to a
Hi,
The selector is choking on the prev() filter. You can't start
traversing down within the method that is only looking for a previous
sibling. Also, you can simplify things quite a bit by using the
":checked" selector and the .length property.
Try this:
$('a.quiz-next').bind('c
http://paste.pocoo.org/show/95986/
simple quiz function if the radio in li.correct is checked, then the
user has selected the correct answer from a multiple choice set.
right now i am getting a true no matter which radio is selected in the
group
thanks for any help in advance thhis one has been
Folks,
Looking for pointers to convert form data into xml. please help.
Thanks all
hi i am attempting to make a small quiz and am having a setback... i
was hoping someone could provide a hint or solution.
heres the html:
What is apple in french?
Pomme de
I am using simplemodal perfectly fine everywhere but on one page it
loads the content off to the right side of the screen on subsequent
clicks.
The first time the modal loads perfectly centered as it should but the
second time it is on the right side of the screen and further towards
the bottom a
ptoly...
try making the 's position:relative;
this helps me out of a few of ie6 link bugs
j
On Dec 18, 8:48 pm, ptoly wrote:
> Hello All,
> Very odd behavior in IE6 that is driving me crazy.
>
> http://ymf.org
>
> Take a look at the drop down menus in IE6 (work fine in FF, Safari,
> IE7). Can
If you are still seeing this problem, please reply with a test case:
http://dev.jquery.com/ticket/3707
Hello,
Looking at the source of that page I notice you are initialising
Superfish twice. If you delete the first block (the one without the
pathClass option) I think that should fix your problem.
Joel Birch.
Thanks a lot ! I missed you answer !
Ced
On 21 oct, 16:27, ricardobeat wrote:
> You should wrap all your HTML for a single 'hit' inside a tag so you
> can refer to it easily, like:
>
> Hit
> 484
>
>
> Then your script could look like this (you can assign click handlers
> to multiple e
I'm not 100% clear on what you are trying to accomplish
but you can select items by what an attribute "starts with"
http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue
so
$("input[id^='item']")
would get all your items regardless of how many there are
On Dec 18, 5:21 pm
Hello All,
Very odd behavior in IE6 that is driving me crazy.
http://ymf.org
Take a look at the drop down menus in IE6 (work fine in FF, Safari,
IE7). Can't get the links to work at all in the drop down, except for
the last link in the Programs section - Wells Fargo. I've tried
removing the vari
Hi Daniel
Sorry I did not reply sooner with a thanks.
I just found your email today in my inbox.
I was wondering, where would I enter the info your provided?
> $(".selector").datepicker({ beforeShowDay: $.datepicker.noWeekends })
>
Yes, I do want to disable all weekends.
Thank you again for you
> OK, I think I got it (it was more code than I had thought it would
> be). This does seem to be working.
>
> On initial load, I get a status 200, then wait a while and it cycles
> through 304s (nothing new to fetch). Cause a change to my test.txt
> file on the server and the next time it fetche
jQuery("#results").html(data);
or:
jQuery("#results").append(data);
On Fri, Dec 19, 2008 at 10:56 AM, evanbu...@gmail.com
wrote:
>
> Hi
>
> I've been using jQuery all of about 12 hrs now. I want to place the
> results I get back from results.aspx into the div "results" rather
> than alert it o
New jQuery/clueTip user here. I am trying to use clueTip with Perl to
create tooltips with previews of specific sections from the middle of
their pages. I'm coding the rel attribute of the links to point to a
Perl script plus parameters, like this:
Extract.pl is supposed to take the parameters,
I am having the same problem I think (apologies if I accidentally
posted twice). The standard jquery call seems to work fine. I
haven't broken this down into a simple page yet that I could try with
FireFox, but I will do that next. I'm in IE6&7
// This never calls my WebMethod...
$("#
Hi,
I'm trying to create a form with multiple input fields. These fields should
have a button to be able to check its content with .ajax.
I am able to create this function for a single field, but i don't know what
the best way would be to do it for multiple input fields:
input#item0
input#item1
i
Hi
I've been using jQuery all of about 12 hrs now. I want to place the
results I get back from results.aspx into the div "results" rather
than alert it out. Thanks.
function addNumbers() {
var number1 = $('#number1').attr('value');
var number2 = $('#number2').at
I also have not been able to get the async portion of jquery TreeView
plug in working in ASP.NET. My WebMethod is returning data just
fine. Not sure what I'm doing wrong. I can call my WebMethod just
fine outside of the treeview...
//var x = $.ajax({type:"POST",
//url:
Try this instead:
$('a', data).click(function(){
var href = $(this).attr('href');
[etc...]
});
When using $('a', data).attr('onclick', 'javascript:your code goes
here'); the 2nd parameter should be a string, as if you were doing foo
On Dec 18, 12:55 pm, Namotco wrote:
> Here is what I'm trying
thanks Dave and Ricardo!
On Dec 18, 12:00 am, Ricardo Tomasi wrote:
> var $check = $(':checkbox');
> $check.change(function(){
> $('#special')[ $check.attr('checked') ? 'show' : 'hide' ]('slow');
>
> });
>
> that's essentially the same as
>
> $check.attr('checked') ? $('special').show('slow')
use .text() if you're looking to return a string of text only rather
than html. And by value of a label, you do mean what goes in
here right?
On Dec 18, 5:41 pm, "graphic...@googlemail.com"
wrote:
> Hi,
>
> I use the .html() function to get the value of a label, but when it
> contains an ampersa
I have written a code ( => just for myself usage) that makes links
bookmarks like this example:
you are on : "http://www.mysite.com/index.php";
you click a link like "sitemap.php"
it will be load and you will see "http://www.mysite.com/
index.php#sitemap"
or if you click "myfile.php?id=3&p=test"
Hi,
I use the .html() function to get the value of a label, but when it
contains an ampersand (&) it is converted to & amp ;
How can I prevent that or is there another way of getting the value of
the label ?
Thanks
Hello,
Thanks for you help. I did this and it does work in ie6 and 7, however, now
when I close the modal box in any browser, it shifts...
view it here: http://www.zero1productions.com/inacronym/preview/profile.php
How do I fix this?
MorningZ wrote:
>
>
> Try using the "topTop" Parameter
Ah, i wasn't sure that you tried FF using Studio's web server, that
wasn't clear
Not sure what else to offer except that in studio, the web server (and
the application) "run as" your logged in account where IIS is not
doing so unless setup that way.. so i'd take a guess that it was
a fi
As i mentioned the Mozilla Firefox browser runs the page perfectly (i
have firebug too). But the exact same page does not work in IE 7 or IE
6 and when i say doesn't work it doesn't load the treeview using the
JSON data. A normal treeview does work. However on the same page as
this test i load the
How do I disable reading/eval script tags in a request?
FYI, my if statement was actually doing exactly what it was supposed
to. The bug was inside the body of the if (I didn't post that :-().
Long story short, I was confused. Basically prev and next are smarter
than I thought they were :-). For what it's worth, my updated code is
below. Basically
I need to implement this myself. I noticed today that there is a
jQuery UI history planned:
http://docs.jquery.com/UI/Roadmap
Does anyone know if work has started on this?
I love this menu system... but now I have a project that I need to
set
the menu at the bottom... so the dropdowns no need to be dropUps... I
have be working at this with no luck. Any one know how to have the
menu drop upwards? Thanks for the help...
Odd this appended to NOX post lol... I'll repost correctly
On Dec 18, 12:53 pm, jeremyBass wrote:
> I love this menu system... but now I have a project that I need to set
> the menu at the bottom... so the dropdowns no need to be dropUps... I
> have be working at this with no luck. Any one know
Thanks Jörn I'll give it a try!
On Dec 18, 12:17 pm, "Jörn Zaefferer"
wrote:
> You could generate the rules object.
>
> var rules = {};
> $(":input[name*=date-start"]).each(function() {
> rules[this.name] = { ... }});
>
> $("...").validate({options:rules});
>
> Jörn
>
> On Thu, Dec 18, 2008 at
I am new to jquery, but am really excited about it. I have managed to
hack together several scripts to accomplish what my designers want but
have hit a wall.
I have an Image Gallery that also uses Shadowbox.js by Michael
Jackson. Basically there are thumbnail which change a main image and
the m
I love this menu system... but now I have a project that I need to set
the menu at the bottom... so the dropdowns no need to be dropUps... I
have be working at this with no luck. Any one know how to have the
menu drop upwards? Thanks for the help...
jeremyBass
In the Makefile, I noticed a with_plugins target. However, the
command:
make with_plugins
results in the following error:
make: *** No rule to make target `../plugins/button/*', needed by
`with_plugins'. Stop.
What's the appropriate way to use with_plugins?
I'd like to build jquery with some o
OK, so I'm nearing the final stages with this project. Here's what I
have, and what I need. Hopefully someone can help me here because I'm
at a point where I can't test certain things.
When an image is selected from the thumbnails, I have a script that
resizes the image to 50% viewport size and
It seems the overhead of hide/show() is too great for that situation.
$allRows.css('display','none') gives good performance from the start.
On Dec 18, 4:28 pm, RickyBerg wrote:
> I've been converting a legacy web app to use JQuery. I've now cleaned
> it up so that my HTML validates and I have i
Hello, I was wondering if anyone has successfully combined jQuery ajax
calls with a browser history plugin. I have seen lots of older posts,
and lots of older libraries, but not many examples for a current,
cross-browser solution. I have tried using Really Simple History
(http://code.google.com/
In the Makefile for jquery, I noticed there's a "with_plugins" target.
Does anyone know what this is for?
When I try building with the command:
make with_plugins
I get the error:
make: *** No rule to make target `../plugins/button/*', needed by
`with_plugins'. Stop.
I need quite a few of the p
Hi All,
First of thanks for this awesome script...
I am have a bit of a difficulty witht he nav-bar confgiuration;
On the examples page (http://users.tpg.com.au/j_birch/plugins/
superfish/#sample4), the nav-bar example automatically shows the
"current" sub menu items on page load. However whe
I have created a toggle menu using this jQuery code.
$(document).ready(function(){
var subs = $('.menu > ul ul');
subs.hide();
$('.menu > ul > li a').click(function(){
$(this).next('.menu > ul > li a').toggle();
});
});
big doh @ me, didn't notice t'was php.
seems you already solved it anyway!
On Dec 18, 5:49 pm, Ricardo Tomasi wrote:
> If you have SSI enabled on your server the Last-modified header won't
> be sent, it should be sent for all static pages.
>
> On Dec 18, 5:15 pm, Magnificent
>
> wrote:
> > I'm
If you have SSI enabled on your server the Last-modified header won't
be sent, it should be sent for all static pages.
On Dec 18, 5:15 pm, Magnificent
wrote:
> I'm making some progress, if I include the following:
>
> $last_modified = filemtime("test.txt");
> header("Last-Modified: " . $last_mo
I have written a code ( => just for myself usage) that makes links
bookmarks like this example:
you are on : "http://www.mysite.com/index.php";
you click a link like "sitemap.php"
it will be load and you will see "http://www.mysite.com/
index.php#sitemap"
or if you click "myfile.php?id=3&p=test"
OK, I think I got it (it was more code than I had thought it would
be). This does seem to be working.
On initial load, I get a status 200, then wait a while and it cycles
through 304s (nothing new to fetch). Cause a change to my test.txt
file on the server and the next time it fetches the new v
Hi, Is following psuedo syntax valid in jQuery? It is causing an error
in ie6(invalid arg line 1121 in ie6):
$(window).bind('load', function() {
...
$('#headerNavLeft .special').each(function() {
$('li:first', $('ul', $(this))).css('padding-left',
(xPo
If you are trying to hide allrows would it be possible to hide either the
table or the tbody?
On Fri, Dec 19, 2008 at 7:28 AM, RickyBerg wrote:
>
> I've been converting a legacy web app to use JQuery. I've now cleaned
> it up so that my HTML validates and I have instrumented the code with
> cla
I mean the the getter/setter functions are the ones that doesn't get
immediately executed.
But if you're really new to this maybe you could start with something
that's easier to digest, like Douglas Crockford's videos on YDN. I
only say this because I also started to read this book (or was it the
hi2all
how can we have an eye on scrollbar ?
I want an event that will run on scrollbar changed !
have i to use "setTimeout" function to findout that scrollbar position
has changed?!
thanks before
How about using Firefox (and more importantly Firebug) from Studio
(right click on aspx file, choose "Browse With"), to make sure all
libraries are getting loaded
On Dec 18, 1:28 pm, paulcurtis wrote:
> Hi,
>
> I really can't work this out. Im testing the async version of
> treeview, just ret
I'm making some progress, if I include the following:
I get a response header with:
Last-Modified 1229624249
If I then wait a bit and make a change to cause test.txt to be
updated, I get:
Last-Modified 1229627412
So I'm definitely getting the Last-Modified header sent but all the
respons
> I saw the demos where div sizes were animated. Can this be done with an
> image? I have some button(image) links on my site. I would like to make
> each image a little bigger when you hover over it. Anyone know the best way
> to do this?Thanks
Yes, you can certainly animate images. And you
> I take it back, my livedata_fetch.php is coming back with a 200
> status, but I want it coming back with a 304 not modified, right?
> That means it'll only fetch the file if it's been updated since the
> last time it was fetched?
Right. The server needs to set the Last-Modified header for this
you may first need to specify the positioning of the elements as
absolute or relative. The top style property won't effect the element
unless the position is first defined.
On Dec 18, 1:24 pm, nachocab wrote:
> Hi guys,
> I was testing out animate using firebug and as an example, I'm able to
> m
I saw the demos where div sizes were animated. Can this be done with an
image? I have some button(image) links on my site. I would like to make
each image a little bigger when you hover over it. Anyone know the best way
to do this?Thanks
Mike
I've been converting a legacy web app to use JQuery. I've now cleaned
it up so that my HTML validates and I have instrumented the code with
classes and id's as appropriate. This app is essentially a table that
displays the status of jobs for Autosys.
The problem that I'm having is that when I h
Did you ever get anywhere with this? I just stumbled upon a similar
requirement.
On Dec 8, 5:50 am, mikael wrote:
> Hi
>
> I have aflash(swf) file that needs rather extensive input in form
> offlash-vars. Myflashcolleague would like to recieve theflash-vars as
> an object (JSON). Have any of
Hi,
I really can't work this out. Im testing the async version of
treeview, just retrieving JSON from a static file for the time being.
I have it set up in visual studio, running on the in built development
server. I have an aspx file and a plain htm file containing the JSON.
(I've deconstructed
Hi, Is following psuedo syntax valid in jQuery? It is causing an error
in ie6(invalid arg line 1121 in ie6):
$(window).bind('load', function() {
...
$('#headerNavLeft .special').each(function() {
$('li:first', $('ul', $(this))).css('padding-left',
(xPo
I'm no jquery expert, but something like this might work
$('a').each(function(){
if(this.parent() != $('#x'))
{
this.click(function(){
//do stuff here
});
});
I haven't tested this but it may do the trick
Yeah it sounds complicated... I'm kinda newbe to this, I hope you
don't mind if I ask these silly questions
I thought the anonymous function got executed on this line
for ( var i in properties ) {
(function(){
this[ "get" + i ] = function() {
return properties[i];
};
this[ "set"
this[ "set" + i ] = function(val) {
properties[i] = val;
};
This code only defines a function but doesn't execute its contents
right now, and as functions "capture" the variables defined outside of
them if you change the value of i then it will "change" in properties
[i] too. In other words t
$ is a global object that calls find(), not a method of jQuery
objects. Use the find() method directly:
$(response).find('a').each(function(i){...
- ricardo
On Dec 18, 3:25 pm, Namotco wrote:
> $('#divid').load(url, function( response ){
> $(response).$('a').each(function(i){
> // do
Try binding the handler to the .change() event in the select instead.
On Dec 18, 1:51 pm, Ray Myers wrote:
> I'm working on this interface where there are three select elements.
> When an option in the first menu is clicked this code executes
>
> ==
>
> $('.state_select OPTION').livequer
I fixed it, never mind.
Ray
On Dec 18, 10:51 am, Ray Myers wrote:
> I'm working on this interface where there are three select elements.
> When an option in the first menu is clicked this code executes
>
> ==
>
> $('.state_select OPTION').livequery('click', function() {
> var el
In $('body').not('#x') you are asking for all 'body' tags which don't
have the 'x' ID. That gives you zero elements. The second example is
closer, but .not() doesn't support complex selectors.
$('a').filter(function(){
return !$(this).parents('#x').length;
});
docs.jquery.com/Traversing/filte
Anyone? I mean i have the code for the mouse up/down working and it
repositions the element on mouse up(and this is only about 400 bytes of
code) but i can get it to resize as the mouse moves. It seems like i would
not have to have 24K on minjs code just to havet he ability to resize an
element
Hi guys,
I was testing out animate using firebug and as an example, I'm able to
move every anchor in the www.jquery.com page by typing this in the
console:
$("a").animate( { "top": "-=10px"}, "slow" );
But if I go to this other page: http://flowplayer.org/tools/scrollable.html
which has jQuery in
I take it back, my livedata_fetch.php is coming back with a 200
status, but I want it coming back with a 304 not modified, right?
That means it'll only fetch the file if it's been updated since the
last time it was fetched?
Yes, there is. There is a technique called event delegation which
consists of exactly that.
the Delegate plugin does it:
http://www.danwebb.net/2008/2/8/event-delegation-made-easy-in-jquery
as does LiveQuery in its own way: http://brandonaaron.net/docs/livequery/
google 'event delegation' and y
For the Last-Modified header, do I need to do something like this in
my file that gets fetched every X seconds (livedata_fetch.php in my
case):
header('Last-Modified: '.gmdate('D, d M Y H:i:s') . ' GMT');
On Dec 18, 9:57 am, Magnificent
wrote:
> Does not look to have a Last-Modified header and
Does not look to have a Last-Modified header and I'm not seeing the
xhr.status code (but I'm obviously getting something in the 200 range
back as I'm receiving the data?) This comes via Firebug:
Response Headers
DateThu, 18 Dec 2008 17:48:49 GMT
Server Apache/2.0.52 (CentOS)
X-Powered-By
Thanks for trying this for me...
I have two users that are having problems and have given me detailed
specs - and one did a fairly extensive test for me:
All experience the slow 45-60sec render:
G4 Tower unit / OS X 10.2.8 / Safari 1.0.3 (v85.8.1) / Mozilla 5.0
(Macintosh; U; PPC Mac OS X Mach
Here is what I'm trying to do:
$("#MTB").load(url +" #content", function(data) {
$("a", data).attr("onclick",function (arr) {
var href=this.attr('href');
if (h
Could you provide a complete example, eg. a testpage? See also
http://docs.jquery.com/Discussion#Support_Questions
Jörn
On Thu, Dec 18, 2008 at 6:37 PM, SeanthePaddy wrote:
>
> hi there,
>
> i have a quick question about the validation plugin - i have a big
> form working perfectly except for a
$('#divid').load(url, function( response ){
$(response).$('a').each(function(i){
// do stuff
});
});
Unfortunately, that doesn't work, what's the correct syntax for that?
hi there,
i have a quick question about the validation plugin - i have a big
form working perfectly except for a select that will for some reason
not show the error message:
can anyone spot anything wrong below please :
tnx
sean
===
Did you get yours to work? I have not. Looks like it could be a really
great plugin but I think I am going to do this the old fashion
way...images. I can't wait any longer.
On Dec 17, 8:24 am, A Wood wrote:
> I am having the same problem. Got the sIfr to work but can't get the
> font size right
hi,
i have a function who displayed alternate content from 3 DIVs with a
fadeIn
Now i want to try, that the display rotation stoped if my mousepointer
goes in the DIV but i doesnt work.
whats my misstake?
http://www.w3.org/1999/xhtml";>
http://code.jquery.com/jquery-latest.
On Thu, Dec 18, 2008 at 4:49 AM, alpha tester wrote:
>
>
> Hmmm... struggling to read from this new dataset using the code provided -
> can someone point out the stupidity in the following code:
>
>
>
>
> var myData =
> { records : [
> { CATEGORY : "Sport", TITLE : "The world of sport", LINK:
You could generate the rules object.
var rules = {};
$(":input[name*=date-start"]).each(function() {
rules[this.name] = { ... }
});
$("...").validate({options:rules});
Jörn
On Thu, Dec 18, 2008 at 3:01 PM, dfiguero wrote:
>
> Hi,
>
> I'm trying to validate a form with a dynamic date fields. S
Yes, I'm using Firebug on Firefox, but the Problem only shows up in
Safari / IE.
Here is an example page: http://dev.rocho.org/nico-jquery
You can click on the menu (Arbeiten, Vita, Kontakt) and the menu will
expand. It should work in FF, but not in Safari / IE - why? It also
works in Safari/IE
I'm working on this interface where there are three select elements.
When an option in the first menu is clicked this code executes
==
$('.state_select OPTION').livequery('click', function() {
var el = $(this).parent();
if ( $(el).val() != 'all' ) {
$.post('includ
Hello,
i m real desperate about this.
with my function i displayed the content of my 3 DIV elements in a
interval. it works fine.
since a long time im trying to prog a feature wich make a displayStop
by a mouseover. i need this to listen the long content in a div. after
i moved out of the div th
Our friends at Microsoft have a lot of work to do until their new born
browser IE8 (Still in Beta 2) actually works the way it should.
It seems that there is a major event triggering issue. Lots of jQuery
core functionalities depends of events.
For the ones interested to see some upcoming bugs,
What you want in full jQuery is:
$("#foo").empty().append('');
which is the exact equivalent of
$("#foo").html(''); // html() does call
this.empty().append()
It is very different from the browser innerHtml since your HTML will
first be parsed by jQuery into a DOM tree while innerHtml just inse
Hi,
I'm trying to validate a form with a dynamic date fields. Something
like:
...
I got my validation rules working but only if I hardcode each of the
input's names:
$("form").validate({
rules: {
"date-1-start": compare ["#date
Hi I'm using suckerfish on my site at http://www.sthig.com/unisource
and all works well except in IE6. I can't seem to get the menus to
drop down. here is my css: http://www.sthig.com/unisource/style.css
Also, everything is floated to the right thus breaking the site in
IE6. Any fix to this?
you
Hi All,
Is there some kind of performance cost in setting up lots of event
listeners?
For example, rather than setting up lots of click event listeners,
would it be better to set up a single one which then uses if/else to
decide how to process it? Obviously, it might not always be practical,
but
Our friends at Microsoft have a lot of work to do until their new born
browser IE8 (Still in Beta 2) actually works the way it should.
It seems that there is a major event triggering issue. Lots of jQuery
core functionalities depends of events.
For the ones interested to see some upcoming bugs,
How do i select all of the anchor links that are NOT in the div x?
outide div 1
inside div 1
inside div 2
inside div 3
outide div 2
outide div 3
// this doesn't work
$('body').not('#x').find('a').click(...
// this doesn't work
$('a').not('#x a').click(...
Hi I'm using suckerfish on my site at http://www.sthig.com/unisource
and all works well except in IE6. I can't seem to get the menus to
drop down. here is my css: http://www.sthig.com/unisource/style.css
Also, everything is floated to the right thus breaking the site in
IE6. Any fix to this?
you
1 - 100 of 156 matches
Mail list logo