try it this way:
script type=text/javascript
$(function(){
$('[EMAIL PROTECTED]http://;]').attr('target', '_blank');
$('[EMAIL PROTECTED]https://;]').attr('target', '_blank');
$(.stripes dd).hide();
$(.stripes dt).click(function(){$
Karl Swedberg schrieb:
Please take a look at this post, which provides links to a number of
alternative resources for jQuery documentation, including an Adobe Air
app for offline browsing:
http://www.learningjquery.com/2008/07/jquery-documentation-alternatives
Sorry, i missed that
This worked perfectly! I thought it was probably something using
'next.' Thanks for the help!
On Sep 19, 4:58 am, tobaco [EMAIL PROTECTED] wrote:
try it this way:
script type=text/javascript
$(function(){
$('[EMAIL PROTECTED]http://;]').attr('target', '_blank');
$('[EMAIL
thank you so much. i guess an exception should be thrown---some
obvious action taken. sometimes you do something wrong, and all you
get is a pointer to an non-obvious location with your minified
jquery.js. a message would be so much more helpful. and this
particular case is much worse as
Thanks for your help!
jQuery UI is a separate plugin ?
On Sep 19, 6:24 am, Richard D. Worth [EMAIL PROTECTED] wrote:
See the jQuery UI Slide Effect:
http://docs.jquery.com/UI/Effects/Slide
With effects.core.js and effects.slide.js included, you can do
$(img).hide(slide, { direction:down
Are there alternatives to innerhtml method to get the html of a div?
Maybe i can use an dom object to read the html content?
On 17 sep, 14:57, Paul [EMAIL PROTECTED] wrote:
Hi All,
I'm trying to replace all linebreaks with html br /, but due
htmlnormalizationwith the innerHTML propery in
JQuery code:
script type=text/Javascript language=Javascript
var Toggled=false;
$(document).ready(function() {
$('#toggle-content').click(function(){
if(Toggled==false){$('#toggle-content').html('read less
#171;'); Toggled=true;}
Just download those library files(jquery.js, jqueryui.js) in ur
project folder and see to it that these library files are in the
topmost side of javascript includes block.
Im working on jQuery from past 1year and completed 3 projects on it.
If u have any queries on jQuery then please visit
Hi Aaron,
The following code should help:
$(document).ready(function(){
$('area').each(function(){
$(this).attr(href, #);
$(this).click(function(){
$('#ajaxresult').load('map.php', {'state':$(this).attr('alt')});
return false;
});
});
});
$(.stripes dt).click(function(){
$(this).find(dd).toggle(slow);
});
On 19 Sep., 05:24, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
This is probably a noob question but...
I have a bunch of definition lists on a page with the same class so
that I can stripe every other dd in the list. What I
If you've used jQuery on other pages, then it's very likely that the
js has been cached in the user's browser anyway. Loading it again
should not affect load times in most cases.
Matt Kruse
On Sep 18, 3:50 pm, Alex Weber [EMAIL PROTECTED] wrote:
That's possibly the smartest thing I've heard
On Fri, Sep 19, 2008 at 5:43 AM, yo2lux [EMAIL PROTECTED] wrote:
Thanks for your help!
jQuery UI is a separate plugin ?
jQuery UI is a sister project of jQuery. It's focused on providing a
cohesive set of high quality RIA (Rich Internet Application) plugins.
Interaction, Widgets, and
I got it to work.
script type=text/javascript
$(function()
{
$(#stateHolder div).hide();
$(#stateList).change( function(){ $(# + $
(this).val() ).show() } );
});
/script
Now I need to figure out how to hide the other divs before loading the
new one.
I like this one:
http://www.ericmmartin.com/projects/simplemodal/
2008/9/18 crypto5 [EMAIL PROTECTED]
Hi All,
what is the best JQuery pop-up window plugin in your opinion?
I am not strong experienced in JQuery and looking for such plugin but don't
want test everything. So lloking for
Sorry, I forgot to mention I'm using the JQuery/Validation plugin.
Also, here is a working example of what I tried:
http://www.centralwow.com/validate/validate.html
SimpleModal is great
http://code.google.com/p/simplemodal/
And also Thickbox
best afaik
On Sep 18, 5:30 pm, Chris Jordan [EMAIL PROTECTED] wrote:
Um... jQueryUI's dialog widget is good... and super easy to use. I'm just
sayin'... ;o)
Chris
On Thu, Sep 18, 2008 at 11:51 AM, crypto5
Hi,
I've been work working jQuery for more than 4 month, and really love
it. There are still a lot thing I need to learn, here is one:
I like to create a function, Get_MyData. test_ajax() alway return
undefine. what's wrong in my code, what's the proper way to do
this?
Thank you very much
hi,
i´ve this:
---
$().ajaxStop($.unblockUI);
function test() {
$.ajax({ url: 'process.php?' + new Date().getTime() });
}
$(document).ready(function() {
$('#Submit').click(function() {
Hi,
I asked a bunch of questions in one post and perhaps that wasn't the
best idea. I hope its ok to post one again, one of the more pertinent
ones.
My menu will ways have 7 submenus (each of those will have a varying
number of children and grand-children, etc)
Each main menu item of the 7
I can't get the MultiFile plugin to work at all for me. I have a
dropdown list of real estate properties and use ajax to bring up the
correct data and all that works. They need the capabilty to add
multiple photos to a property. Ive tried all combinations of things
to get this to work and
I have been trying to figure it out in Jquery, despite being new and
quite un-experienced with Javascript.
Here are a few bits of what i have so far.
I know that i need to hide all of the child divs (the ones that will
show and hide) on load..
Then as for my event...I need to grab the value out
True enough but the whole point is that since the main concern is
requiring jquery simply for loading a simplemodal from a banner
outside our website, there is no guarantee that people will have
jquery cached beforehand
But as far as out own internal use goes then yeah you're totally right
Hello,
does somebody know if it is possible to build scrolling tabs with
jquery?
I don't know if you understand what I mean with scrolling tabs. I
don't want to have a animation. I want to have tabs in a web page
(like them which are used in most modern browsers) in one row. If I
have more
Hi all,
I'm trying to make a jEditable element part of an duplicateable group
of elements so that users can create as many elements as they want.
What I'm running into is that, while the new elements take on the
properties of the original counterparts, the jEditable elements that
are newly
Hello!
I am looking for a lightweight jquery datagrid which also supports
ahorizontal scrollbar.
I would like to hear if there's any plugin with that functionality and
if this plugin lives up to your satisfaction.
Hope to hear
A.Consten
jqgrid
-Messaggio originale-
Da: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] Per conto
di Arnold
Inviato: venerdì 19 settembre 2008 17.36
A: jQuery (English)
Oggetto: [jQuery] datagrid with horizontal scrollbar
Hello!
I am looking for a lightweight jquery datagrid which also
I have a simple AJAX call:
$.ajax({
url: setBMBJSONString.php,
data: stringJSON.toString(),
success: function(rdata) {
//var resp = eval('(' + rdata + ')');
Wow!
Thanks Karl.
If anyone is interested the quick fix using Karl's suggestion is to
edit the xpath plugin - look for this line:
// Naively convert [elem] into :has(elem)
selector = selector.replace(/\[([EMAIL PROTECTED])\]/g, function(m, selector){
return :has( + selector + );
});
Hi,
In thickbox.cfm, I'm using the following code to create a thickbox
login popup:
a href=login.cfm?height=400width=600 class=thickbox
title=Please Sign InLogin/a. This is the parent page.
In login.cfm, I have a form.
After clicking on the link to login a thickbox pops up with the form.
I'm a bit confused. In the autocomplete plugin source I see these
lines:
$.ajax({
// try to leverage ajaxQueue plugin to abort
previous requests
mode: abort,
The ajaxqueue plugin that Jorn links to here
have you tried:
data: stringJSON
(without the toString() ?)
Yes, same result. I added the toString() just in case. I've
discovered more. Here is the code right before it that makes the
variable:
var OBJ = {};
$(:input).each( function () {
OBJ[$(this).attr(name)] = $(this).val();
});
On Thu, Sep 18, 2008 at 7:54 PM, Kelly [EMAIL PROTECTED] wrote:
This is what I was
saying to Jose...which one you should use ought to be based on which
one does what you want it to do better, and then think about things
like ease-of-implementation. In my view, the spectre of bandwidth or
try this:
script type=text/javascript
$( function() {
$(#stateHolder div).hide();
$(#stateList).change( function() {
$(#stateHolder div).hide();
$(# + $(this).val() ).show();
});
});
/script
--
Viele Grüße, Olaf
---
[EMAIL
Which is weird because with a .NET backend, it HAS to be a string
Which is totally not true .NET can handle JSON in (via
Request.Params) and JSON out (using the excellent JSON.net class by
James Newton King)
anyways, If you have
var OBJ = {};
$(:input).each( function () {
Feel free to add the link to the Wiki/help page. It's a wiki, after
all. :)
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 19, 2008, at 6:23 AM, Michael Stuhr wrote:
Karl Swedberg schrieb:
Please take a look at this post, which provides links to
I have recently had a problem with a web application that I'm doing
modifications to. I tracked it down to a few JavaScript AJAX
functions that were pulling options from a MySQL table and then
populating option values within a select form attribute. It turns
out that one of the table's fields
For the YAV plugin, can you use the option 'inputclasserror' by
itself?
$(#form1).yav({
inputclasserror : fieldError
});
Do you need the 'errorMessage' option work this to work?
$(#form1).yav({
errorMessage : Errors are found
},{
inputclasserror : fieldError
});
I ended up with this..
script type=text/javascript
$(function()
{
$(#stateHolder div).hide();
$(#stateList).change( function(){
var $el= $('#' + $(this).val() );
if ( $(#stateHolder div:visible).length == 0) {
What does 'return false' do? I make an AJAX request from an HREF,
which works. But the resulting page needs Javascript to run on it. I
think 'return false' is preventing it. How do I fix that?
Here's what I've read so far from the Chaffer / Swedberg book: If we
wish to halt both, we can return
This is my first jquery function, and im trying to handle rollovers
and click. The behavior i want is to toggle a class on hover for each
li element, and then disable the hover on the one that is clicked and
selected.
Right now im using three separate handlers; click, mouseover, and
mouseout,
You'll need to call your addClickHandlers function after the template
is rendered, not before. Similar to how I call the UpdatePaging
function.
Ishamel,
Thanks so much for responding to my post:
I am having trouble getting your solution to work - I included a sample of
the code I am using.
Just an FYI I am using ColdFusion's new ajaxproxy
Whatever insights you have would be appreciated.
code below:
I believe this happens for windows users as well, 'enter' always
submits the form except inside textareas. Or maybe I have a very bad
memory.
naumanp wrote:
I'm using Autocomplete 1.0.2 (5747 2008-06-25 18:30:55Z
joern.zaefferer).
This happens in Firefox 2.0.0.16 on OS X (I'm running
Inline scripts loaded with AJAX are not run unless appended to the
document's head element. A quick search on this group or google will
show you lots of alternatives to do that!
On Sep 18, 9:00 pm, light-blue [EMAIL PROTECTED] wrote:
This is simple, but I'm lost. I click a link, and jquery
How about showing the non elegant code first?
Hi..am trying to accomplish the following:
I have several input elements on my page...there are a few that I want
to alter and their id's follow a similar pattern from a naming
convention:
id=SOMETHING-fieldname
Is there a way to select / filter all of the input elements on the
page to only
$(input[name^='SOMETHING'])
http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue
I have an effect where I cycle through images with the default slow
fade speed, and when a user mouses over a link, I jump to a specific
image via:
$('#myPics').cycle(3);
The problem is, I want to change the fade options to fast just
before I jump to that image. How would this be done?
preventDefault() was working for everything but FF2 on Mac. I just
came up with a solution that works, but perhaps Jörn could provide
some input whether this is the best way to handle it.
In jquery.autocomplete.js, in addition to the existing check for
Opera, I added a check for Firefox 2:
//
It really depends on what you are using it for as well as your
personal preferences. I tried BlockUI and jqModal before I finally
decided to write my own (SimpleModal). Each one has its strengths and
weaknesses, plus there are a lot more out there that aren't even
mentioned.
Perhaps you can tell
that page isn't available
David Loera Valverde
(662) 155-02-20
On Fri, Sep 19, 2008 at 11:50 AM, MorningZ [EMAIL PROTECTED] wrote:
$(input[name^='SOMETHING'])
http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue
This is correct. However, beware of this bug:
http://dev.jquery.com/ticket/3167
I have seen it manifest with ^= in addition to *=
On Sep 19, 1:50 pm, MorningZ [EMAIL PROTECTED] wrote:
$(input[name^='SOMETHING'])
http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue
You're right, the values transferred fine without doing anything to
them.
Could you show me a method that will accept Request.Params just like
I'm trying to get this data?
On Sep 19, 12:51 pm, MorningZ [EMAIL PROTECTED] wrote:
Which is weird because with a .NET backend, it HAS to be a string
Why does this line of code not work for the radio button?
if ($(this).attr(type) == radio) alert($(this).checked);
I get 6 alert boxes (I have 6 Radio Buttons) and the alert says
undefined every time. But half of them should be true and half should
be false. Am I doing something wrong?
here
Well I fixed it, I had to use:
$(this).attr(checked)
to get the value. Should I have known this?
On Sep 19, 2:48 pm, Namlet [EMAIL PROTECTED] wrote:
Why does this line of code not work for the radio button?
if ($(this).attr(type) == radio) alert($(this).checked);
I get 6 alert boxes (I
Thanks everybody for responses. Ok, my requirements are:
- modal pop-up
- easy to control life cycle(open, close, handle events).
- easy to customize look and feel
- good documentation. Don't like look at spaghetti code to figure out how it
works
- existing themes are big plus
Currently I
For jQuery UI Dialog themes, take a look at ThemeRoller:
http://themeroller.com/ - http://ui.jquery.com/themeroller
There are ready-made themes in the Theme Gallery or you can Roll Your Own
(modifying an existing one, or starting from scratch).
- Richard
On Fri, Sep 19, 2008 at 3:38 PM,
Given your requirements, you can't go wrong with using jQueryUI. - modal
pop-up (check)
- easy to control life cycle (check)
- good documentation (check) -- http://docs.jquery.com/UI/Dialog
- easy to customize look and feel ( same link as above, see Theming, also
check out the theme roller, very
I agree that theme roller is one of the coolest things since sliced bread...
:o)
On Fri, Sep 19, 2008 at 3:24 PM, Richard D. Worth [EMAIL PROTECTED] wrote:
For jQuery UI Dialog themes, take a look at ThemeRoller:
http://themeroller.com/ - http://ui.jquery.com/themeroller
There are
SimpleModal:
- modal pop-up (yes)
- easy to control life cycle(open, close, handle events). (yes -
onOpen, onShow, onClose callbacks)
- easy to customize look and feel (yes)
- good documentation. (yes - at least I hope so ;) )
- existing themes are big plus (no - the current version doesn't use
You could use either this.checked or $(this).attr(checked).
this refers to the dom node, so if you want to use the attr method on
this you have to jQuery-ize it.
this.checked would be more performant, since you are not executing the
jQuery function in that case.
-- Josh
- Original
html:
table
trtd/tdtd/td/tr
tr class=oddtd/tdtd/td/tr
/table
css:
.odd {
background-color: red;
}
.dead {
background-color: yellow;
}
javascript:
$(td).hover(
function()
{
$(this).addClass(dead);
},
function()
{
$(this).removeClass(dead);
}
);
this won't work on .odd rows for me... dunno
Great explanation Josh, thanks!
On Sep 19, 3:46 pm, Josh Nathanson [EMAIL PROTECTED] wrote:
You could use either this.checked or $(this).attr(checked).
this refers to the dom node, so if you want to use the attr method on
this you have to jQuery-ize it.
this.checked would be more
it's not a bug, it's your code, as this works just fine
http://paste.pocoo.org/show/85736/
I don't know PHP at all, but it appears $_GET[prefix] is the syntax
Got that from:
http://drupal.org/node/120723
ok a little more complicated version is not working
div class=tick
table width=100% cols=7 id=hostingtable
tr align=center
th width=22%t/th
th width=13%t/th
th width=13%t/th
th width=13%t/th
th width=13%t/th
it affects the NON .odd rows only for me...
On Sep 19, 11:18 pm, Equand [EMAIL PROTECTED] wrote:
ok a little more complicated version is not working
div class=tick
table width=100% cols=7 id=hostingtable
tr align=center
th width=22%t/th
th
I can't see why this wouldn't
work:
$('h1:contains(test)').parents('body').addClass(test_class);
The problem isn't with jQuery, it's with your CSS
fire up that example page in Firefox with Firebug's Inspect tab open
and you'll see dblred get applied and removed just fine
but you'll also see in the style pane that this dblred class is
getting superceeded by the mess of other classes
Works fine for me (Firefox 3 on Mac OS X). What browser gave you that error?
On Fri, Sep 19, 2008 at 4:13 PM, switch13 [EMAIL PROTECTED] wrote:
I can't see why this wouldn't
work:
$('h1:contains(test)').parents('body').addClass(test_class);
--
Aaron Heimlich
Web Developer
[EMAIL
unfortunately i can't clean up the css, because i need this to work
without js and on all major browsers...
On Sep 19, 11:33 pm, MorningZ [EMAIL PROTECTED] wrote:
The problem isn't with jQuery, it's with your CSS
fire up that example page in Firefox with Firebug's Inspect tab open
and you'll
thanks this works...
i forgot to mention that background-color change works...
On Sep 19, 11:33 pm, MorningZ [EMAIL PROTECTED] wrote:
The problem isn't with jQuery, it's with your CSS
fire up that example page in Firefox with Firebug's Inspect tab open
and you'll see dblred get applied and
FF2 and I also tried IE6. The class is not getting added. That error
is appearing in FireBug. Funny thing is, when I test it in the script
window under the watch tab in firebug it works fine.
On Sep 19, 5:35 pm, Aaron Heimlich [EMAIL PROTECTED] wrote:
Works fine for me (Firefox 3 on Mac OS X).
That's because the inline style declaration has a higher priority than
and CSS class :-)
Glad you got it working code on!
On this demo:
http://jquery.bassistance.de/validate/demo/milk/
I cant get the email validation to work on the second try locally. The
above link works fine. If you submit an invalid email address it asks
you to reenter it. Great. So I try to move it locally.
I downloaded jQuery and the
Hi all,
I'm frustrated because this does not work:
var pageName = foobar.html;
var link = $(a[href$=pageName]);
link.addClass('selected');
The problem lies within the fact that it seems the jQuery selector I
use in the second line does not allow variables. It only works with a
hard-coded string
var pageName = foobar.html;
var link = $(a[href$=' + pageName + ']);
link.addClass('selected');
return false will stop the even from bubbling up to other elements and
it will prevent the default action from occurring. When you click on a
link, the default action is to follow the link to the new href. Using
return false prevents that from occurring.
Not sure what you mean by resulting
Someone else may explain this better than me but...
jQuery is attaching an event to your anchors tags (this may be a plugin or a
custom script that attaches the events - and it may attach to selected tags)
the normal operation of the anchor is to redirect the browser to that
location.
Sine your
My 2 cents... I'm very new to jQuery and I was able to take the
jQueryUI dialog plugin and customize it so it's shadowed and theme it
to look like Mac OS X windows so it's easily theme-able in my
opinion. The documentation on the jQuery site was very helpful in
theme-ing. One of the best
Dear all,
We need a solution how to handle special character issue in our
application. We integrated a multiple selection id from the
autocomplete (as like facebook autocomplete search) library (which
developed in prototype).
The following is our need,
When we enter normal characters (a to z),
I am trying to merge vaues from three different input fields into one
resulting when submitting a form. I just acn't get my head around.
This the last code that does not work for me.
function friends() {
var friend1 = $(input#friend_1).val();
83 matches
Mail list logo