With all due respect, I think karl's solution is somewhat less than
elegant, and could be improved by refactoring to:
// test for anything but numbers
var isValid = /[^\d]/g.test(textareaValString);
if (isValid) {
// proceed with confidence
} else {
// note to user: no numbers allowed!
How do I setup this validation. Sel1 is always required.
If sel1 == 0, then sel2 must be 0.
If sel1 0, then sel2 can be anything.
select id=sel1 name=sel1 class=required
option value=/option
option value=00/option
option value=11/option
option value=22option
/select
select id=sel2 name=sel2
Any solution?
On Aug 7, 9:36 pm, gray8110 gray8...@gmail.com wrote:
$('li has(a[href$=.xls])').addClass('excel');
Try: $(li:has(...))
Note the : before has
http://docs.jquery.com/Selectors/has#selector
:)
On Aug 9, 5:59 am, bharani kumar bharanikumariyer...@gmail.com
wrote:
Assume if i have around 20 naviation means the i have to write
jquery navigation and sub navigation snippet all pages ?
Every menu has to be populated, and if you've got 20 menus then you've
got to populate 20 menus.
Marquee is of course way different and less flexible, plus it looks ugly. :)
On Wed, Aug 5, 2009 at 9:16 AM, ramachandran
natesanramachandranate...@gmail.com wrote:
You can do this using MARQUEE a simple HTML tag
On Jul 28, 12:59 pm, Andrea - Aosta andreabe...@gmail.com wrote:
I have found
On Aug 8, 11:34 am, V vincenti...@gmail.com wrote:
Wow, that is strange it indeed works :o
The error is;
Object doesn't support this property or method
But i figured what the problem is because I changed the code;
div id=contactform
div
input type=text name=name value= /
suggest putting a test page together on your server or you can use
jsbin.com which has jQuery library available
Denis Abramov wrote:
Any solution?
I am very new to JQuery and to scripting in general so bear with me,
this might be a very easy fix and I dont know it. I believe what Im
trying to do is about as simple as jquery gets...
Im building a simple portfolio site for myself and I am trying to use
the .hide() and .show() methods to
Hi,
I'm trying to write a script to fade in/out some image thumbnails. I'm
trying to achieve the following:
1) Fade in/out individual thumbnails on thumbnail hover
2) Fade in/out all thumbnails of the a class when hovering over a text
link of the same class.
Everything works except that in #2
I'm employing the getJSON call in a site I'm working on, but I'm
having a problem with the response not coming through if it is too
large.
I've read a number of posts talking about the request string being too
large (forcing a user to use POST), but what about the response string
being too
Hi,
I am trying to generate dynamically a table from a csv by using jquery
csv plugin and the jquery tablesorter plugin and tablesorter is giving
me a bizarre error each time I try to click on a header of the table
to sort it. Firebug shows:
parsers is undefined
return parsers[i].type;\n
seems
hi
i need a slieshow effec that i want to create for my personal website.
following is what i need
i want to display an image and below that will be text and this text
should be clickable and open in a new window and this way i want to
show few images and text with a certain duration for each.
I have developed an FF extension that loads a few JavaScript files
(one of which is jQuery) and attaches them to any given page being
viewed by the user.
The loading of the js files can ether happen during or after the web
page had been loaded into the browser.
Obviously, once the js files get
I have developed an FF extension that loads a few JavaScript files
(one of which is jQuery) and attaches them to any given page being
viewed by the user.
The loading of the js files can ether happen during or after the web
page had been loaded into the browser.
Obviously, once the js files get
Where is the best place to insert JQuery code head or body?
I have tried and my code works in either place vut where am I supposed
to put it?
Is there an advantage of putting it one place (head or body) over the
other?
Thanks in advance.
Humour
maybe you could use the rel attribute to set the id of each email
entry in your form (this would be done in php), and then use the value
of rel when sending info back to your ajax script
not sure exactly how your html is constructed, but this is roughly
what i am thinking:
li
I have a JSON dataset structured as follows
{
{
city=value
area=value
}
{
city=value
area=value
}
{
city=value
area=value
}
...
...
...
}
I need two autocomplete inputs,
- one allowing only selections of cities and
- one allowing selection of areas of
Hi everyone,
Yesterday I released the first public release of my
jquery.largephotobox plugin.
I've posted it on the google code page:
http://code.google.com/p/jquery-largephotobox/
Demo page:
http://www.interag.net/largephotobox
I think you need more than just Test in the remote: call. Look at
the jquery validation documentation and the examples he's provided.
For instance, this is my remote:
remote: {
url:
/rtui/codeigniter/index.php/business_form/dupeCheck,
Easy guys,
Just getting started with cookies this afternoon and wondering what
plug-in everyone is using these days?
Thanks,
L
On Aug 8, 7:25 pm, andrew.croce andrew.cr...@gmail.com wrote:
var current_section = $(this).attr(name);
...
$(#+current_section+_tab).addClass(current_tab);
This is wrong. The '#' searches by ID, not by name. Try (untested):
var current_section
OK. the validation plugin is kicking my ass. as does every new thing
I try to learn.
FIRST: I need to clarify that there is a BUG up front so someone
doesn't offer it as a solution.
I am using version 1.5.5. It has a bug in the REMOTE rule/method so
this is not an option to check for duplicate
There is no set limit on the size of a JSON response, any more than there is
on an HTML or XML response. You can have very large JSON responses with no
problem.
GET vs. POST would have nothing to do with this. Those are only different in
the way the request is sent to the server; the response
What I was trying to do with var current_section = $(this).attr
(name); was to create a variable that simply contained the name of
the particular subsection, which I could then attach to _tab to
pinpoint the currently selected tab. I cant use the ID because it has
a different value, used for
That would work for you and for me, but would it work for everyone?
alert( isUpperCase('JÖRN') ? 'good' : 'bad' ); // ;-)
-Mike
_
From: Karl Swedberg
Shouldn't be too much work. Wouldn't this do it?
function isUpperCase( string ) {
return /^[A-Z]+$/.test(string);
}
On
I've used this with success:
http://plugins.jquery.com/project/cookie
- Jack
ldexterldesign wrote:
Easy guys,
Just getting started with cookies this afternoon and wondering what
plug-in everyone is using these days?
Thanks,
L
Hello Friends,
I'm trying to create a dynamic table using jQuery
- Manipulation/appendTo. Here is my code below:
$(#btnAdd).live(click, function()
{
$(trtdinput type='text'//tdtdinput type='text'//
tdtdinput type='text'//td/tr).appendTo(#tblGrid);
});
The above code
Hi,
I wrote this code for a simple hide and show effect and I am looking
for any advice or examples of how I can refactor the code. I tried
using a hash but it didn't work out right and I am thinking that maybe
I should make a object method.
here is the code:
$(document).ready(function() {
ya that is for php not Asp.net MVC.
The url is right, the problem was the bool I was returning. It
returned False or True where jquery.validate needs to have false
or true in lowercase otherwise it ignores it. Once I figured that
out it all worked.
Field wrote:
I think you need more than just
Well, the response actually returns, but the jQuery code doesn't
execute. I've isolated the problem--I have a field in the database
that stores general instructions that can be entered by a user. There
is a carriage return for new-lines in the text that is captured. When
one of these entries
I have some simple tables with multiple tr rows. The td cells
within these rows have tables of their own. I'm trying to target the
tr rows of the first (parent) tables, like so (excuse the spacing):
HTML:
table class=parent
tr -- match with :first
td
table
trtd/td/tr
On Aug 9, 7:38 pm, andrew.croce andrew.cr...@gmail.com wrote:
What I was trying to do with var current_section = $(this).attr
(name); was to create a variable that simply contained the name of
the particular subsection, which I could then attach to _tab to
...
idea, could that be screwing up
Your assumption that the remote method is buggy is not at all
verified, or: wrong. Instead of trying to write your own
remote-method, please provide a testpage to find the actual issue
you're dealing with.
Jörn
On Sun, Aug 9, 2009 at 7:07 PM, Miket3miketro...@gmail.com wrote:
OK. the
Hi KeeganWatkins,
Here is what the OP (nouky) wrote:
I would like to validate a textbox that numbers cannot be entered
into the text input
That sounds to me like he doesn't want any numbers to be allowed
anywhere within the value.
I'm interested to hear why you think /[^\d]/g is more
haha, you got me! so, yeah, it would be a bit more work. point
taken! :-p
--Karl
On Aug 9, 2009, at 1:55 PM, Michael Geary wrote:
That would work for you and for me, but would it work for everyone?
alert( isUpperCase('JÖRN') ? 'good' : 'bad' ); // ;-)
-Mike
From: Karl Swedberg
I used json_encode in php to escape the new-lines and all works great
now!
Thanks for your replies, I appreciate it.
I put the contents of gallery.js inside the click function and it
appears to be working now. I had tried this before, but there must
have been an unrelated syntax error or something that was causing it
to break.
Thanks
Andrew
On Aug 9, 4:45 pm,
I'm using jQuery 1.3.2 and the latest version of the Innerfade plugin:
http://medienfreunde.com/lab/innerfade/ I'm transitioning through 8
large images (1024x368) with the fade option. With Safari 4.0.2 the
transition is very sluggish, making it look like it's running about 5
fps. With Firefox
Michael,
You need to initialize any third party scripts in the SimpleModal
onShow callback. Here's an example of using Datepicker with
SimpleModal:
http://www.ericmmartin.com/code/datepicker/
-Eric
On Aug 7, 2:34 am, Michael Anckaert michael.ancka...@gmail.com
wrote:
Hello everyone,
Using
Doh! That was the one parameter I didn't experiment with to see where
the problem was...
Thank you!
On Aug 7, 5:09 am, Paul Mills paul.f.mi...@gmail.com wrote:
Hi,
Change the sortList definition to
sortList: [[3,0]],
or
sortList: [[3,1]],
depending on what order you want the column sorted
Good job!
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Alexsandro_xpt
Sent: Sunday, August 09, 2009 11:43 AM
To: jQuery (English)
Subject: [jQuery] [ANNOUNCEMENT] jQuery LargePhotobox plugin
Hi everyone,
Yesterday I released the
I have been struggling with the validation plugin for a while. And I
finally got it to work. As a result I created a multi-purpose lookup
script. I hope this comes in handy for someone else. This script can
be used for the validation plugin or for returning field values back
to your jquery
Hello,
First time posting here, so sorry if this has been covered to death,
but I couldn't find anything via searching.
I'm building a gallery page, that's setup like this:
- carousel based horizontal image thumbnail navigation.
- main div that loads, on thumbnail click, a high res version of
Having a bit of an issue with my setup with jQuery + Cycle
http://negativespace.ca/clients/mirrorbuilder/
There are two divs that control the photos, #controller, and #prevNext
which has two href's in it that link to #next and #prev anchors like
in the demos from the Cycle website.
I am using
Hello,
First time posting here, so sorry if this has been covered to death,
but I couldn't find anything via searching.
I'm building a gallery page, that's setup like this:
- carousel based horizontal image thumbnail navigation.
- main div that loads, on thumbnail click, a high res version of
Hello,
I have been searching for a few days a way to have a form element
slide down ONLY IF a certain option in the dropdown is selected. I
have found resources using radio boxes and check boxes, but none with
dropdowns.
Thanks!
url :
datapages/getSummary.php?callback=?
--
Ever
Now
..
-- Original
GET vs. POST would have nothing to do with this
Sure it could.
http://classicasp.aspfaq.com/forms/what-is-the-limit-on-querystring/get/url-parameters.html
Granted i do not know if newer browser versions have raised or removed
that cap, but it's still something to consider
To original
You're giving the right answer to the wrong question. ;-)
Chad's question had nothing to do with limits on GET parameters or the
maximum length of a URL. The parameters were making it to the server just
fine.
The question was about any possible limits on the *response*. This wouldn't
be
When using a number pager with the cycle plugin and somewhere else on
the same page a block which refreshes content with AJAX the number
pager for the cycle block doubles.
On the next Ajax refresh it doubles again.
Anyone a solution to prevent the number pager to double.
When I have the number
Here are the descriptions for the Ajax methods:
load -- Loads HTML from a remote file ...
ajax -- Load a remote page ...
get -- Load a remote page...
getScript -- Load and execute a local javascript file...
post -- Load a remote page...
So, if we want arbitrary HTML we have to use load, but if
I guess the surprise was his alert *appeared* to be dependent on the
response size, and of course he did not get an error message.
anyone? any ideas at all??
On Aug 7, 4:38 pm, Ram yourstruly.vi...@gmail.com wrote:
Hi,
Im using jNice (a jQuery plugin) in rails. I have the following jQuery
function on the head of my page.
script type=text/javascript
jQuery.noConflict();
/* calling
ALL the functions (load, get, post, etc) are wrappers for the $.ajax()
function. I only use $.ajax() now and tweak it to meet my needs...
Makes for less confusion.
Ajax by default will only load files that are in the same domain as the
calling page. This is a browser security feature.
Hi
Is there any jQuery light box plugin by which I can make my flash look
in the overlay window.
I had searched for one named fancyZOOM .js but don't know why it is not working
for multiple flash in a single page.
any body having any idea pls reply .. I am struck here.
thanks
56 matches
Mail list logo