osdir.com
mailing list archive

Subject: [jQuery] Re: (Validate) multiple groups of checkboxes - msg#02878

List: jQuery

Date: Prev Next Index Thread: Prev Next Index

Hello there..

You can check the num of checked elements

$(":selected").count()
You can do this for every group you have.

Do yo have any working sample to show?

----- Original Message ----- From: "Maged Makled" <almigo10@xxxxxxxxx>
To: "jQuery (English)" <jquery-en@xxxxxxxxxxxxxxxx>
Sent: Monday, June 29, 2009 11:16 AM
Subject: [jQuery] (Validate) multiple groups of checkboxes



Hey All,
I have 30 groups of checkboxes and want to validate that
the user select at least one checkbox from any group meaning if he
selected one checkbox from the first group and nothing from the other
29 the form should be valid. I tried different solutions but none
worked.

Can anybody help

Thanks

-Maged Makled

Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

[jQuery] Re: jquery tabs (ajax tabs with a form submit)

Hi, You are posting to the wrong group. There is a group for jquery.ui where you can get faster answers http://groups.google.com/group/jquery-ui?hl=en Best Regards ----- Original Message ----- From: "psycho_gamer" <aurinoc@xxxxxxxxx> To: "jQuery (English)" <jquery-en@xxxxxxxxxxxxxxxx> Sent: Tuesday, June 23, 2009 5:30 PM Subject: [jQuery] jquery tabs (ajax tabs with a form submit) Hello, I am incredibly new to the world of jquery. What I am trying to do is create tabs (using the tabs plug-in) that load dynamic content via AJAX (so it makes a call to a jsp). What this does is this loads a new part of a form. What I want to do is when the user clicks on a new tab, I also want to submit the data that was in the original form. I wanted to do this with one request (i.e. the request does the save, then loads up the new content). However, I have no idea how to do this. Any help would be greatly appreciated.

Next Message by Date: click to view message preview

[jQuery] Re: .get() failing

Hello, If you want to get files from another domain different than yours, it will fails ever.. Security issue.. ----- Original Message ----- From: "jhm" <jmayall@xxxxxxxxx> To: "jQuery (English)" <jquery-en@xxxxxxxxxxxxxxxx> Sent: Sunday, June 28, 2009 9:42 AM Subject: [jQuery] Re: .get() failing Thank you. That explains it very well, and kind of what I expected. On Jun 26, 12:13 pm, Zbyszek Matuszewski <zbyszek.matuszew...@xxxxxxxxx> wrote: Hi! Try to debug your application with Firebug extension for Firefox. You should probably get "uncaught exception: Access to restricted URI denied" error when trying to access URL that is on other server than the one script is working on (if it's not local file). If that is the case it's security issue - you should receive files from the same server as the script works from. Accessing other server is cross site reference and AJAX doesn't allow cross site references. There can be at least 3 solutions: - you may use wrong address of actual site (for example scripts starts from some.server.com when there iswww.some.server.comdomain), so you should repair this (use relative URLs or make your server side generate actual domain and put into script or make your client side javascript get domain name from the actual URI) - you may use some other server, so to do that you should write server side code (for example with use of sockets in PHP) that will connect, get XML and send it to your script (will work as a proxy, so the AJAX call will be within same domain) - you may try to make an IFRAME dynamically (hidden one) that will load the data and then take the data from that IFRAME (very unclean solution, but it should work, there are some well known scripts that use similar approach to make an AJAX file uploader). On 26 Cze, 20:19,jhm<jmay...@xxxxxxxxx> wrote: > I posted this late last night, but got no responses. I thought maybe > it scrolled off before anyone had a chance to see it, so I'm posting > again. Sorry if this is bad form, I'm new to these groups... > I'm having an issue with the $.get() method. When I request a file > local to my site (with a relative path), everything works fine. When I > request the same file with a full URL, the $.get() isn't successful. I > don't know if its a security issue (requesting data from a 3rd party > site) or maybe a timing issue, or maybe something else. > Here's the essence of the call when it fails: > $.get('http://files.myurl.com/myxml.xml', function > (data) { > alert('got it'); > } > If I call it with just the 'myxml.xml' as the path, it works fine. > Thanks!

Previous Message by Thread: click to view message preview

[jQuery] (Validate) multiple groups of checkboxes

Hey All, I have 30 groups of checkboxes and want to validate that the user select at least one checkbox from any group meaning if he selected one checkbox from the first group and nothing from the other 29 the form should be valid. I tried different solutions but none worked. Can anybody help Thanks -Maged Makled

Next Message by Thread: click to view message preview

[jQuery] jQuery session pre-AJAX experience?

Colleagues, Does anyone know if there is going to be a jQuery workshop the day before AJAX experience in Boston on September 14-16th, 2009? Thank you! Vlad
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by