Interesting idea Cherry,
Have you noticed whether the imagefree.css starts to load anyway
before the href is changed to gotimages.css? (I'd expect the if-
statement to run before the load() callback function). In IE you
could try the error event as the alternative condition. Can't remember
what
Thanks, exactly what I needed. :-)
On Feb 15, 8:46 am, Michael Price [EMAIL PROTECTED] wrote:
yabadowrote:
div id=section class=section1 Stuff /div
div id=section class=section2 Stuff /div
div id=section class=section3 Stuff /div
div id=section class=section4 Stuff /div
div id=section
Michael,
I had to change some things but this works...
script
$(function(){
$('#switcher .section').click(function() {
$('#switcher .section').removeClass('highlight');
$(this).addClass('highlight');
});
});
/script
On Feb 15, 8:46 am, Michael Price [EMAIL PROTECTED]
Can someone suggest a way to add some keycode events to this?
up-arrow and down-arrow actions?
On Feb 16, 6:31 am, yabado [EMAIL PROTECTED] wrote:
Michael,
I had to change some things but this works...
script
$(function(){
$('#switcher .section').click(function() {
$('#switcher
Just a quick note, jQuery.Accessible's main use is not the validator
shown in the demo, that's just an addition. What I really wished to do
is to actually improve accessibility with slight modifications of the
dom. The plugin doesn't have many of those, 2 or 3. I hoped some
people would
Read the documentation for jQuery.getScript(); it does exactly what
you want.
On Feb 15, 12:12 pm, Nazgulled [EMAIL PROTECTED] wrote:
Hi,
I make good use of various jQuery plugins that are available, however,
I don't like the idea of having the head tag of the page filled with
script tags
Here is what I have, but the key event do not work?
html
head
style
.section {
border:1px solid silver;
background:#EEE;
margin:-5px;
}
.highlight {
border: 1px solid red;
background: #FFCC99;
}
/style
script
$(function(){
// selected Item function
var selectedItem = null;
var
On Feb 15, 2008 6:55 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
I finally finished it
// detect whether images are on
// and change styles accordingly
jQuery.imagesOn = function(){
$('img src=' + '/images/bgimage.jpg' + '#' + Math.random() + '/
' ).load(function() {
Hi,
I find an old post :
http://groups.google.com/group/jquery-en/browse_thread/thread/cf34a35e202d9707/4fb5e88f4c81127a?lnk=gstq=fire+submit#
which use this method to show error only on sbumit :
var validator = $(form).validate(
{
onblur: function(){},
onkeyup: function(el)
it looks like I'm a little late to the game on this thread, but I
found it via google, and you guys seem to know what you're talking
about :-)
I'm trying to get this to work on a WordPress theme that I'm
developing for my site, but for some reason it just won't work. I'm
new to jQuery, but this
I know little about variable scope, have been reading up on OOP, but I
don't understand why this would not work.
I tried inserting return objectArray in various places to no
avail...
$('#button1').click(function(b){
$().loadXML2array('url','var');
alert(objectArray); //
when using sortable with options connectWith, it will have IE z-
index bug.
On Feb 15, 2008 8:47 PM, Chris [EMAIL PROTECTED] wrote:
In a moment of delusion on Feb 15, 11:49 am, I wrote:
if (parseInt($(body).css(fontSize)) 20) { // font-size in pixels
// replace img with higher res source
}
On second thought... what event, exactly, is supposed to trigger
On Thu, Feb 14, 2008 at 01:24:40PM -0800, Ariel Flesler wrote:
The newborn: http://plugins.jquery.com/project/SerialScroll
Very nice, Ariel. This is pretty close to what I'm looking for. Is there
a way to use it with AJAX? I'm trying to build a paginated view where
the user can click on the
Hi,
I have a website with some images.The size of these pictures are ok
for the most of users but some of users, who use higher screen
resolution, complain about the poor quality picture details.
Would it be possible to use jQuery to enlarge pictures depending on
users screen resolution?
Or what
Try this
http://docs.jquery.com/Ajax/jQuery.getScript
I had the same problem. This happens because th cells are assigned as
sorters for columns based on their index in the order they are declared. So
for example, the 5th th is assigned to the 5th column. If you use multiple
header rows, colspans and rowspans then the indexes become misaligned. What
hi everybody
i want to add some html character to end of all links.
i want to add three nbsp; before each link closing tag /a
my links are like this
a href=http://jquery.comjquery /a
i want to change it to
a href=http://jquery.comjquery nbsp;nbsp;nbsp;/a
is it possible to do something like
$('a#addsuggest2').click(function() {
alert('working');
});
$('a#addsuggest').click(function() {
//alert('working');
$('#message').html('a href=# id=addsuggest2add/a');
});
a href=addsuggestAdd/a
div id=#message/div
what is wrong? When I click on second add link
In a moment of delusion on Feb 15, 11:49 am, I wrote:
if (parseInt($(body).css(fontSize)) 20) { // font-size in pixels
// replace img with higher res source
}
On second thought... what event, exactly, is supposed to trigger this?
Where is my onfontsizechange?
--Chris
testing ...
On Jan 25, 6:18 pm, visitorQ [EMAIL PROTECTED] wrote:
thanks mike i'll try that and get back to you guys! you're all
great
On Jan 25, 3:40 pm, Mike Alsup [EMAIL PROTECTED] wrote:
image and have it say 'read article ' and a user could click it. then
when the image
I posed something similar before, and got some good anwers, so I am
trying again because I'm still stuck...
$('#button1').click(function(b){
$().loadXML2array('url','var');
alert(objectArray);
});
it looks like I'm a little late to the game on this thread, but I
found it via google, and you guys seem to know what you're talking
about :-)
I'm trying to get this to work on a WordPress theme that I'm
developing for my site, but for some reason it just won't work. I'm
new to jQuery, but
i was using clueTip to create a tooltip like netflix. i just ClueTip's
ajax based approach to load other html files in tooltip. its working
perfect in FF but not in IE and asked for username/pass in Opera.
please check the link
http://www.unirazz.com/tooltip.html
thnx
learn demos on http://docs.jquery.com/Manipulation
:)
On Feb 16, 9:08 pm, amir abbas [EMAIL PROTECTED] wrote:
hi everybody
i want to add some html character to end of all links.
i want to add three nbsp; before each link closing tag /a
my links are like this
a href=http://jquery.comjquery
jQuery being what it is, there's bound to be a way of doing
this in one line, though :)
$(this).addClass(highlight).siblings().removeClass(highlight)
...that saves a document wide search for $(.section)
Geoge
just as info, I have included all jquery files + jquery code is in
script language=javascript
$(document).ready(function(){
code here...
});
/script
You're absolutely right ... I knew it was going to be something simple
that I'm too dense to catch! :-)
Thanks so much!!!
Nathan
On Feb 16, 8:53 am, Mike Alsup [EMAIL PROTECTED] wrote:
it looks like I'm a little late to the game on this thread, but I
found it via google, and you guys seem
You're right about the imagefree stylesheet trying to load, the hack
helps here! You can set its initial value to 'On' ;)
There is a flash effect if you then switch between images on off.
(Not likely to happen in production, though far from ideal of course).
I absolutley couldn't get this to
That told me. I'll download it this minute! Sorry.
On Feb 16, 12:51 pm, Ariel Flesler [EMAIL PROTECTED] wrote:
Just a quick note, jQuery.Accessible's main use is not the validator
shown in the demo, that's just an addition. What I really wished to do
is to actually improve accessibility
On Feb 16, 8:49 am, Richard D. Worth [EMAIL PROTECTED] wrote:
On Feb 15, 2008 8:47 PM, Chris [EMAIL PROTECTED] wrote:
On second thought... what event, exactly, is supposed to trigger this?
Where is my onfontsizechange?
See http://davecardwell.co.uk/javascript/jquery/plugins/jquery-em/
or does anyone know how to make one? Something that will incrementally
number the tabindexes for all the hrefs on a page? It's a shot in the
dark, but worth trying to save all that effort!
Cherry :)
http://jquery.cherryaustin.com
try this:
$('a').each(function(i,e){
$(this).attr('tabindex', i);
});
dennis.
[EMAIL PROTECTED] wrote:
or does anyone know how to make one? Something that will incrementally
number the tabindexes for all the hrefs on a page? It's a shot in the
dark, but worth trying to save all that
Oops, set typing in motion before engaging brain Setting 'On'
will defeat the object :o Stupid idea!
On Feb 16, 2:04 pm, Richard D. Worth [EMAIL PROTECTED] wrote:
On Feb 15, 2008 6:55 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
I finally finished it
// detect whether
Like magic :)) Thanks, Dennis!
On Feb 16, 4:26 pm, spinnach [EMAIL PROTECTED] wrote:
try this:
$('a').each(function(i,e){
$(this).attr('tabindex', i);
});
dennis.
[EMAIL PROTECTED] wrote:
or does anyone know how to make one? Something that will incrementally
number the
I've created them here...
#1: Ignore fields without a method specified
http://plugins.jquery.com/node/1601
#2: Accept custom messages from rules option
http://plugins.jquery.com/node/1602
...but I wasn't able to assign them to you (no permission I believe).
Thanks,
Diego
On Feb 15, 5:48 pm,
Hi,
Sorry you're having problems with the plugin. I'm wondering if you
could help me troubleshoot a bit. Could you try pulling out the
onActivate and onShow function options and see what happens? Also, I'd
suggest moving some of the arrow background info to the stylesheet.
Unrelated to
Johny, there are some things you can try - see this thread for ideas?
http://groups.google.com/group/jquery-en/browse_frm/thread/5ec2f96cc15f03d4#
On Feb 16, 7:47 am, Johny [EMAIL PROTECTED] wrote:
Hi,
I have a website with some images.The size of these pictures are ok
for the most of users
Oops, set typing in motion before engaging brain Setting 'On'
will defeat the object :o
What I mean to say is, I set the initial css to 'gotimages'. I still
sometimes see a flash of the 'noimages' style (on a slow connection,
with cache disabled) and will certainly be delighted if anyone
Thanks, Klaus. Another 5 star post. -
On Feb 15, 6:20 pm, Klaus Hartl [EMAIL PROTECTED] wrote:
Try:
$('#replaceContent').click(function() {
$('#tabcontent div.ui-tabs-panel:visible').html('hello');
});
--Klaus
On Feb 15, 11:24 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
The problem here is that you are bind the click handler to
#addsuggest2 when the document is first loaded, but that element
doesn't get created until you click on #addsuggest
Unlike with CSS, which allows you to set styles for non-existent
elements that will be automatically applied if
Roy,
Is this a question or a statement? If it's a statement, please provide
an example and better explanation. Also, please post UI issues on the UI
mailing list found here:
http://groups.google.com/group/jquery-ui
Rey
Roy wrote:
when using sortable with options connectWith, it will have
This is a great plugin but dont work with 1.2.1 version of jquery. Are
someone using this plugin?
--
[]´s Jean
www.suissa.info
Ethereal Agency
www.etherealagency.com
That does make sense. Thanks Mike.
However, any idea why it works fine with a regular A link? In the
example link I provided, the link in there also has a TARGET to the
same element and the response from the server is also XML. Yet, that
one works fine...
Peter :)
On Feb 14, 5:43 am, Mike
Hi everyone,
I'm weighing into this thread late, but wanted to make a couple of
quick comments.
I agree with Chris' point that accessibility isn't only for the
benefit of people with disabilities; it provides all kinds of value to
everyone who uses the Web. Perhaps you've heard of the
thanks for reply. I was also able to solve the problem with
livejquery...
On 16 feb., 22:06, Karl Swedberg [EMAIL PROTECTED] wrote:
The problem here is that you are bind the click handler to
#addsuggest2 when the document is first loaded, but that element
doesn't get created until you click
You can try the on-demand plugin:
http://www.creativit.com.br/jquery/ondemand_js/index.htm
--Tony
making a TINY bit of progress on this, but maybe it will lead to the
answer.
I've been putting a few alert statements into the clockpick.js to see
if it would lead to an answer.
It turns out by adding an alert to the end of the 'renderhours()'
function, the hours display and then hide. So
FrEaKmAn escreveu:
$('a#addsuggest2').click(function() {
alert('working');
});
$('a#addsuggest').click(function() {
//alert('working');
$('#message').html('a href=# id=addsuggest2add/a');
});
a href=addsuggestAdd/a
div id=#message/div
what is wrong? When I click on
Hi, I'm having a problem with selectors not affecting things that have
been loaded into the page. Any help or ideas would be gratefully
received. I'm quite new to all this...
See comments in my code below...
$(document).ready(function(){
// loads HTML with form and now there are two
I have some troubles with my project. Here it is the problem:
I have an HTML like this
a href=click/a
div /div
a href=click/a
div /div
When I click on the link i want to change its class and toggle the
div below without using any ID.
I have no problem changing the link, but I
Hey Pete,
It looks like you're still not using the latest release - I can tell because
in the settings object in the source, there is no bgiFrame property. This
was added in the latest release.
Here's the link to that:
Hi Christoph, SerialScroll can be used with AJAX (actually can't now,
but I'll add a release on monday with a small change that will allow
it). Combining that change, with a custom event like the last example
in the demo, you can easily use it for AJAX content.
Just a note, this plugin:
Wow!! What fantastic news :))
Please will you hurry up, so I can get on with using entertaining
jQuery effects?
Cherry ;)
On Feb 16, 4:52 pm, Colin Clark [EMAIL PROTECTED] wrote:
Excitingly, we just
received a grant from the Mozilla Foundation to help the jQuery
community make jQuery more
I'm curious as to why this would need to be done. By default links
on a page have a tabindex based on their position in the HTML so
there's usually no need to set the tabindex.
Interesting article on the subject:
http://www.webaim.org/techniques/keyboard/tabindex.php
Karl Rudd
On Feb 17, 2008
You, Mr. Steve Davis, a newb to javascript? ;-)
Glad you came to be part of the jQuery group. Many of us started going that
direction after I got back from a Lasso conference last year.
One of those, I could have had a V8 moments. I just need to add the tbody
tags to my table. I can get lazy
Hi Daniele,
Try this:
$(a).click(function () {
this.className = 'new-class';
$(this).next('div').toggle();
}
All sorts of DOM traversing methods can be found here:
http://docs.jquery.com/Traversing
--Karl
_
Karl Swedberg
www.englishrules.com
Now you guys got me confused...
Now I have getScript and the On-Demand plugin... which one is better?
Which one suits better what I want to do? (explained on the first
post)
Though, I liked how the On-Demand was capable of loading css on run-
time too and that might prove useful when and if,
Please suggest some way to verify jQuery installation.
I having some difficulty with jQuery installation on a server with
'antiquated' OS (OpenVMS circa 1995). I not sure if my lack of
success is due to the web server software/OS or if I'm doing something
wrong. I've managed to install jQuery
That does make sense. Thanks Mike.
However, any idea why it works fine with a regular A link? In the
example link I provided, the link in there also has a TARGET to the
same element and the response from the server is also XML. Yet, that
one works fine...
The link works because the
What you have coded doesn't work because the $.get call is *asynchronous*.
When you call $.get, $.post, $.ajax or any async function you pass a
callback function. The actual $.get call returns immediately, but the
results from the server aren't passed to your callback method until the
server
Hey, u can use
$(this).next().toggle();
You should read Traversing section of jquery document, it describe
clearly similar methods(next,prev,siblings...)
On 16/02/2008, Daniele [EMAIL PROTECTED] wrote:
I have some troubles with my project. Here it is the problem:
I have an HTML like this
a
Please use the tabs-powered list on the bottom right side of my
homepage:
http://www.fourthavenuechurch.dreamhosters.com
When the secondary tab is selected, the initial div becomes nested
within the newly activated div. What gives? I can't seem to figure it
out.
I'm using:
jquery-1.2.3.pack.js
jquertil, I am the least qualified person to answer you, but am
disappointed that you haven't received any replies to either of your
posts, so am bumping you up!
I have this difficulty all the time -- and you're clearly more
advanced than me. I *think* you need to create a namespace - which I
not sure exactly what's going on there, but one problem is that you
apparently have ID values that start with a number, which is invalid.
Also, do you really want those elements to take 10 seconds to hide?
A demo page would help us see a bit better what's going on.
--Karl
I can't see any problems with the code. What about the HTML? Can you
show us an example page where it's not working?
Karl Rudd
On Feb 17, 2008 1:19 PM, Michael Ray [EMAIL PROTECTED] wrote:
I am trying to define three functions within the $(document).ready()
function. However, each of these
I am trying to define three functions within the $(document).ready()
function. However, each of these functions only work if the other two are
not there. I have to use noConflict mode because I am also using Protype as
well. What is the proper syntax to define more than one function? Here's
what I
Totally fair point, and one that Dennis's snippet doesn't fix
entirely.
I was fretting over http://jquery.cherryaustin.com, which has a nested
div structure. The 'natural' tabs were all over the place - the divs
are all javascript show/hide jobs, and various browsers set various
tabs according
A simple hack to detect if images are enabled:
Include the following in your HTML:
img src=http://microsoft.com/nothing.gif; onerror=alert('hello');
style=position: absolute;top=-100px /
If images are enabled, we waste microsoft's bandwidth for a bit (it
could be any nonexistent image file on
OMG, I can't wait to test this!!!
On Feb 17, 5:12 am, Danny [EMAIL PROTECTED] wrote:
A simple hack to detect if images are enabled:
Include the following in your HTML:
img src=http://microsoft.com/nothing.gif; onerror=alert('hello');
style=position: absolute;top=-100px /
If images are
One thing I realized, is that it will still have a delay from page
load to running the images-enabled function--the browser has to
request the nonexistent image, get the 404 Not Found response, then
execute the onerror. So you may well have a flash of 'noimages.css'
before 'gotimages.css' are
71 matches
Mail list logo