[jQuery] Check function ... Not working in JQuery. Please, is urgent. Thank You.

2010-02-07 Thread shapper
Hello, I am applying a function (tinymce) to some text areas. However I need to check before if this function exists (if its js file was loaded). If I would use JS I would do this: $(document).ready(function() { if (typeof (tinymce) !== "undefined") { $('textarea.Editor-Base').tinymce({

[jQuery] Find text. Is this possible with JQuery?

2010-01-19 Thread shapper
Hello, Is it possible with JQuery to find all words "xyz" in a text and replace it by "xyz"? Thanks, Miguel

[jQuery] Re: Get Value. Please, is kind of urgent. Thanks.

2010-01-12 Thread shapper
And is there a way to check if GBrowserCompatible is valid? When I am not using google maps I don't load the Google maps script. However this code is always present. Thank You, Miguel On Jan 12, 8:13 pm, Nathan Klatt wrote: > Like so? > > if (GBrowserIsCompatible()) { >    var gmapsUrl = "/Goog

[jQuery] Get Value. Please, is kind of urgent. Thanks.

2010-01-12 Thread shapper
Hello, I have the following on my script: $(document).ready(function() { if (GBrowserIsCompatible()) { $.getJSON("/Google/Map", Initialise); } // Initialize Google Map } And in my HTML I have: I want to run the JS code only if GBrowserIsCompatible() is defined. If it is and if Pla

[jQuery] IF. What am I doing wrong?

2009-12-03 Thread shapper
Hello, I have the following code: alert($.cookies.get("WCA.Player")); var cookie = $.cookies.get("WCA.Player"); if (cookie == null || cookie == 'Play') { $("#JPlayer").play(); } The alert gives me the correct value which is null or 'Play' but the if is not working correctly. Am I do

[jQuery] Re: Click Even

2009-12-03 Thread shapper
On Dec 3, 2:52 am, JMcGinnis wrote: > y0, Not really, why do you need to/ or want to? you could do this > > $('#Play').click(function() { $.cookies.set('WCA.Player', 'Play', { path: > '/' }) }) > > ha, j/k same thing, just one line.  Could you just explain why you would > like to do it a different

[jQuery] Click Even

2009-12-02 Thread shapper
Hello, I am using the following to create a cookie and it is working fine: $('#Play').click(function() { $.cookies.set('WCA.Player', 'Play', { path: '/' }); }); Is there another way to do the same code but something like: $('#Play:click').cookies.set('WCA.Player', 'Play', { path: '/' })

[jQuery] IF and NULL. Please, could someone help me out?

2009-12-02 Thread shapper
Hello, I have the following: $("#JPlayer").jPlayer({ ready: function() { $(this).setFile($('#MusicPath').attr("value")).play(); }, swfPath: $('#JPlayerPath').attr("value") }); I would like the play the file: $(this).setFile($('#MusicPath').attr("value")).play(); Only if (

[jQuery] Cookie in JQuery. Create, Update and Get

2009-12-01 Thread shapper
Hello, I need to add a cookie with value "true" or "false". If the cookie does not exist then created. Otherwise change its value to the new value. Later I need to get the cookie value. Can I do this with JQuery? Do I need a plugin? Which one? Thank You, Miguel

[jQuery] Re: Unknown pseudo-class or pseudo-element 'odd'.

2009-12-01 Thread shapper
On Dec 1, 11:33 pm, Karl Swedberg wrote: > Aha! I see it now. It's a warning, not an error, and it's a CSS   > warning. If you're seeing it in Firebug, you can hide it by unchecking   > "Show CSS Errors" in the Console preferences list. Thank You, Miguel

[jQuery] Cookie

2009-12-01 Thread shapper
Hello, I am using JPlayer plugin with 2 buttons. Play and Stop. $("#jquery_jplayer").jPlayer({ ready: function () { $(this).setFile('http://mydomain.com/mymusic.mp3').play(); demoInstanceInfo($(this), $("#jplayer_info"));

[jQuery] JQuery and Maybe IFrame Problem?

2009-11-29 Thread shapper
Hello, I am defuscating my email on the client as follows: $("span,a[href^=mailto:]";).defuscate(); Is is working! So: mailto:info(AT)domain.com" class="Email">info(AT)domain.com Becomes: mailto:i...@domain.com"; class="Email">i...@domain.com However, this is not working when the email is insid

[jQuery] Get value from hidden input and use it in string

2009-11-27 Thread shapper
Hello, I am using JPlayer to play a sound on a page: http://www.happyworm.com/jquery/jplayer/0.2.5/demo-04.htm $(document).ready(function(){ $("#jquery_jplayer").jPlayer({ ready: function () { $("#trackname").text($("#track-01").text()); $(this).setFile('http://www.m

[jQuery] Re: Sound

2009-11-07 Thread shapper
On Nov 5, 11:14 pm, Erik Beeson wrote: > No jQuery necessarily needed for this. Plenty of information here: > http://www.google.com/search?q=html+embed+audio Not if a Play and Stop button is required ... Or maybe even a music list. I found the following: http://www.happyworm.com/jquery/jplayer/

[jQuery] Sound

2009-11-05 Thread shapper
Hello, Is it possible to have a music on a HTML page with two buttons to play/ stop? Can I use JQuery for this? Thanks, Miguel

[jQuery] Add value to Link. How can I do this?

2009-10-16 Thread shapper
Hello, I have the following anchor: http://www.example.com/files/map.pdf"; onClick="javascript: pageTracker._trackPageview('/downloads/map'); "> How can I add onClick="javascript: pageTracker._trackPageview('/downloads/ map');" To all anchors of CSS class "Download" using JQuery? Thanks,

[jQuery] Re: (tooltip) Markup problem

2009-10-14 Thread shapper
On Oct 12, 8:57 pm, Jörn Zaefferer wrote: > That sounds like you validate a page for the sake of validation. I think > thats beneath the point, therefore I don't get your argument. Do you worry > about accessibility? If so, did you test the tooltip with a screenreader? > Afaik thats the best way

[jQuery] Clean code. Could someone, please, help me out?

2009-10-12 Thread shapper
Hello, I am using Bassistance tooltip but I need to simplify the markup. So instead of using: helper.parent = $('') I would like to use: helper.parent = $('') However, when I did this change everything stopped working. I think I need to clean some extra code but all my tries didn't solve the

[jQuery] (tooltip) Markup problem

2009-10-12 Thread shapper
Hello, I have been using Bassistance tooltip but I think the markup is really incorrect. http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ Why forcing an H3 into the tooltip? Did you ever checked a page with it in Opera's table of contents? By imposing H3 you are breaking the semantics

[jQuery] Simple Tooltip

2009-10-11 Thread shapper
Hello, I need a simple tooltip which html markup is only a div. I have the following: this.tooltip = function(){ /* CONFIG */ xOffset = 10; yOffset = 20; // these 2 variable determine popup's distance from the cursor // you

[jQuery] Plugin not working with latest JQuery Plugin

2009-10-09 Thread shapper
Hello, I have been using on my projects the following Email Defuscator: http://www.ia-stud.hiof.no/~joakims/projects/defuscator/ Strangely when using it with the latest JQuery version I get the error: this.each is not a function [Break on this error] jQuery.fn.defuscate=function(settings){s...a

[jQuery] MultiSelect and CheckBoxes. Could someone please help me out?

2009-09-29 Thread shapper
Hello, I am using the following Multiple Select JQuery plugin with ASP.NET MVC. http://abeautifulsite.net/notebook/62 When the form is posted back the values selected before are unselected now ... I have an idea of how to solve this but I don't know how to implement it in JQuery. The plugin is

[jQuery] Re: this.each is not a function

2009-09-13 Thread shapper
On Sep 13, 7:28 pm, Mike McNally wrote: > Have you used a debugging tool to figure out what "this" is?  Also, > your function isn't returning "this", possibly an unrelated problem > but it probably should be fixed. What should I do? Sorry, I am not familiar with JQuery. I am just starting. Thi

[jQuery] this.each is not a function

2009-09-13 Thread shapper
Hello, I am using JQuery 1.3.2 and I get the error "this.each is not a function" when I try to use the following plugin: jQuery.fn.defuscate = function(settings) { settings = jQuery.extend({ link: true }, settings); var regex = /\b([A-Z0-9._%-]+)\([^)]+\)((?:[A-Z0-9-]+\.)+[A-

[jQuery] Unknown pseudo-class or pseudo-element 'odd'.

2009-09-13 Thread shapper
Hello, I am using JQuery 1.3.2 and the following code line: $("table.Engine tbody tr:odd").addClass("Alternate"); I get the following error on firebug: Unknown pseudo-class or pseudo-element 'odd'. What am I doing wrong? Thanks, Miguel

[jQuery] Re: Email obfuscator/defuscator plugin

2009-09-02 Thread shapper
  $regexp = > '^[_a-z0-9-]+(\.[_a-z0-9-]+)*...@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$'; >         $search = Array('@', '.'); >         $replace = Array(' AT ', ' DOT '); >         $class = 'Obfuscated'; > >         if (i

[jQuery] Email obfuscator/defuscator plugin

2009-09-02 Thread shapper
Hello, Could someone recommend me a good email obfuscator/defuscator plugin? Thanks, Miguel

[jQuery] Re: Email obfuscator/defuscator plugin

2009-09-02 Thread shapper
I found the following one: http://plugins.jquery.com/project/RotationalStringObfuscator It seems interesting. How can I apply it to all emails on my web page? Thank You, Miguel

[jQuery] Check if function exists

2009-09-02 Thread shapper
Hello, I am loading TinyMCE using the new JQuery Plugin:

[jQuery] Form Tips

2009-04-28 Thread shapper
Hello, I would like to show a tip or balloon with some info when a user clicks an input to enter a value. Does anyone knows a good plugin that does this? Thank You, Miguel

[jQuery] Re: Find element. How can I do this?

2009-03-18 Thread shapper
ot;legend").click(function(e){ >                 $item.find("ol:first").toggle(); >         }); >         $item.find("ol:first").hide(); >       }); > > If you want to do something else, explain... > > A > > On Mar 18, 8:45 pm, shapper wrote: > > > Sorry, I d

[jQuery] Re: Find element. How can I do this?

2009-03-18 Thread shapper
ateElement('div')); //var body = fieldset.find('ol:first') On Mar 18, 2:12 pm, AnatolyG wrote: > $("fieldset ol:eq(0)").hide() > > shapper wrote: > > Hello, > > > I am trying to find update a plugin to create new functionality. > > On the

[jQuery] Re: Find element. How can I do this?

2009-03-18 Thread shapper
Please, anyone? Thank You, Miguel On Mar 17, 9:46 pm, shapper wrote: > Yes, > > I tried that before but it did not work this is why I asked. > > I placed an example online:http://www.27lamps.com/Beta/Collapse/Form.html > > You can see that each form's fieldset has a

[jQuery] Re: Find element. How can I do this?

2009-03-17 Thread shapper
lease, help me with this? Thanks, Miguel On Mar 17, 6:01 pm, ricardobeat wrote: > Try this: > > var body = fieldset.find('ol:first') > > http://docs.jquery.com/Selectors > > On Mar 17, 12:13 pm, shapper wrote: > > > Hello, > > > I am trying to find u

[jQuery] Find element. How can I do this?

2009-03-17 Thread shapper
Hello, I am trying to find update a plugin to create new functionality. On the current version I have the following: var legend = fieldset.find(':first'); var body = jQuery(document.createElement('div')); - How can I get the first OL element inside fieldset to use it as body instead of

[jQuery] Re: TextArea CountDown

2009-03-15 Thread shapper
ddClass('overlimit'); >            this.value = this.value.substring(0, 100); >       } else { >           $(this).removeClass('overlimit'); >       } >      $('#counter').text(100-this.value.length); > > }); > > On Mar 15, 7:37 am, sh

[jQuery] Find Element. Could someone, please, help me? Thank You

2009-03-15 Thread shapper
Hello, On a plugin I have the following: var legend = fieldset.find(':first'); var body = jQuery(document.createElement('div')); Instead of creating a div for the body I would like to get a existing OL in the fieldset and make it the body. How can I do this? Thanks, Miguel

[jQuery] Bassistance Accordion and Others

2009-03-15 Thread shapper
Hello, I have been trying JQuery's Bassistance Accordion and a few others but until now I wasn't able to make it work with a form ... For example, consider the following form structure: Personal Name: ... City: ... Contacts Email: ... Pho

[jQuery] Show/Hide element

2009-03-15 Thread shapper
Hello, I have a list of fieldsets and each one has a legend. I am thinking in having something like: Personal Data first element second element How can Show/Hide the ul when I click the legend? I would like to have many fielsets on a form and being able to Show/ Hide the cont

[jQuery] TextArea CountDown

2009-03-15 Thread shapper
Hello, Does anyone knows a good JQuery countdown that displays the number of remaining characters on a text box? Thank You, Miguel

[jQuery] Add value to input

2009-03-12 Thread shapper
Hello, In a form I have a select (S), a button (B) and an input (I) among other form elements. I would like to add the value of the select, when the button is clicked, to the end of the text that is currently in the input. How can I do this? Thanks, Miguel

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-25 Thread shapper
e all the data > server-side, just render the page with the themes array already > populated and call the build function > > On Feb 25, 11:55 am, shapper wrote: > > > Hi Michael, > > > It is working fine. Thank You Very Much. > > > Just one final question.

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-25 Thread shapper
now has {} enclosing the > first if statement. You'll see lots of coders not do that, but it's > really a good idea, and not just a style choice: javascript suffers > from automatic semicolon insertion which although not a common problem > to run into, could make things difficult

[jQuery] JQuery Events

2009-02-24 Thread shapper
Hello, I have the following: $('#Professor').click(function(){ if ( this.checked ) { $('#ProfessorField').show(); $('#SubscriptionsField').show(); } else { $('#ProfessorField').hide(); $('#SubscriptionsField').hide(); } }) Basically on a

[jQuery] Re: CheckBox - Select and Deselect

2009-02-24 Thread shapper
D").change(function() { >              var ThisID = this.id; >              $("#A, #B, #C, #D").each(function() { >                    if (this.id != ThisID) { this.checked = false; } >              }) >        }); > > }) > > On Feb 23, 4:18 pm, shapper wrote: >

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-24 Thread shapper
ml string won't solve the current problem; it is > faster, and usually the way I prefer doing it also (see my note > further below though), but as I indicated in a code comment, since > this appears to be based on user input, the list (hopefully) won't be > very big, so the s

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-24 Thread shapper
, > and then >  levels.each(function(){ >                   levelsCsv.push({'text':this.value,'value':$ > (this).next().text()}) >                 }) > > On Feb 23, 9:37 am, shapper wrote: > > > Hello, > > > I tried to make the change: > >      

[jQuery] CheckBox - Select and Deselect

2009-02-23 Thread shapper
Hello, I have 8 inputs of type checkbox. On 4 of them (A, B, C and D) I want to deselect the other three when one is selected. For example, if I select A I want B, C and D to be deselected. If I select C I want A, B and D to be deselected. Is it possible to create this functionality? Thanks,

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-23 Thread shapper
Those don't get you the right values for the levels object, they both > return a jQuery object. > Accessing the levels object as this.value won't work either. > > Try this: > > levels.each(function(){ >   levelsCsv.push({'text':this.value,'value':$(th

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-23 Thread shapper
gt; Accessing the levels object as this.value won't work either. > > Try this: > > levels.each(function(){ >   levelsCsv.push({'text':this.value,'value':$(this).next().text()}) > > }) > > On Feb 20, 5:22 am, shapper wrote: > > > Hi, > > &

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-20 Thread shapper
sh(subject) > > To access it later when rebuilding just get the attributes of the > object: > var li = $('').addClass('Themes').html(t[0].text+'' etc... > for the display > > $('').attr({'type':'hidden','name':

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-19 Thread shapper
e to 1.3 > (and don't include a space in the URI). > > Try your code with the Google js api and it will work (I just did, > even with the duplicate jQuery wrapper functions). > > On Feb 18, 9:28 am, shapper wrote: > > > Yes, > > > I tried that to but the pro

[jQuery] Select Box. Anyone?

2009-02-18 Thread shapper
Hello, I am looking for a Select Box replacement so I can style an HTML Select. I need something that works across browsers. Something like this is very common on other frameworks but I haven't found anything for JQuery. Could someone, please, suggest me one? Thanks, Miguel

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-18 Thread shapper
does not change ... ... But the index input is on the Html code. I just can't find the problem. Thanks, Miguel On Feb 18, 5:21 pm, mkmanning wrote: > if you're using the ready function, remove the inner (function($) > { ... })(jQuery); wrapper > > On Feb 18, 9:13 am, sh

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-18 Thread shapper
ou like, I usually do that; one > consequence of including your scripts at the end of the page is the > DOM has been rendered already--which is why mine works :). > > If you want to keep the script external AND in the head, then you'll > have to wrap the code in a domready functio

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-18 Thread shapper
the original example's UI >                 $('#Index').val(themes.length); >         } > > })(jQuery); > > Also, syntax like  "var valid = new Boolean(true);" can just be var > valid = true; > > Hope this gives you some ideas; I'll leave it to you to o

[jQuery] Hide/Show when Check Box is selected

2009-02-18 Thread shapper
Hello, On a form how can I Show a fieldset when a checkbox is Selected and Hide the same fieldset when the same checkbox is unselected? Thanks, Miguel

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-17 Thread shapper
I added an input which shows the number of items in the list ... The problem is that I am not able to reorder the list so it is 0 based ... Any idea? Thanks, Miguel On Feb 18, 1:48 am, shapper wrote: > I have been trying to make this work but no success ... > ... in fact the inpu

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-17 Thread shapper
Name = $(this).attr('name').replace(/\[\d\]/, '['+index > +']'); >        $(this).attr('name', fixName); >   }); > > }); > > - ricardo > > On Feb 11, 7:19 pm, shapper wrote: > >

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-11 Thread shapper
ted to be used in the ID and NAME types defined in HTML 4. When > defining fragment identifiers to be backward-compatible, only strings > matching the pattern [A-Za-z][A-Za-z0-9:_.-]* should be used. See > Section 6.2 of [HTML4] for more information." > > On Feb 11, 2:09 pm, shapper w

[jQuery] Re: Order Items. Please help me. Thank You.

2009-02-11 Thread shapper
vascript.  Is Themes[0].Subject the actual name, or are you trying > to refer to a javascript object in an array with the attribute > 'Subject' which contains the name you are looking for?  If it is the > latter, this won't work.  you'll need to create the html in javascr

[jQuery] Order Items. Please help me. Thank You.

2009-02-11 Thread shapper
Hello, I am adding and removing a items from a list, using JQuery, which is rendered has follows: Every time I add or remove a Theme I need to be sure that the list is ordered (name) starting with Themes[0]. So basically I need to loo

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-11 Thread shapper
gt; you: > > $index = $('#Index'); > val = $index.val()-1; > > On Feb 11, 2:37 pm, shapper wrote: > > > You mean the following: > > >         $index = $('#Index'); > >         parseInt($index.val())--; > > > This still gives me the sam

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-11 Thread shapper
string first. > > shapper wrote: > > Hello, > > > I have an input on my page as follows: > > >   > > > I am trying to increase and decrease the value of the input as > > follows: > > >         $index = $('#Index'); > >        

[jQuery] Increment Value. What am I doing wrong?

2009-02-10 Thread shapper
Hello, I have an input on my page as follows: I am trying to increase and decrease the value of the input as follows: $index = $('#Index'); $index.val()--; I always get an error: invalid assignment left-hand side What am I doing wrong? Thanks, Miguel

[jQuery] Numbering ... Could someone please help me out with this?

2009-02-08 Thread shapper
Hi, I am adding list items to a list as follows: $('#AddTheme').bind('click', function(){ // Other code $theme = $('').appendTo ('#Themes'); $theme.append(''); $theme.append(''); $theme.append(''); }); Basically, every time I add

[jQuery] Re: Validate does not work in IE7

2008-12-08 Thread shapper
Please, anyone? On Dec 8, 12:42 am, shapper <[EMAIL PROTECTED]> wrote: > Hello, > > I am using JQuery and Validate. It works fine in Firefox 3 but it does > not work in IE7. > > Here is an example:http://www.27lamps.com/Beta/Form/Form.html > > Am I doing som

[jQuery] Validate does not work in IE7

2008-12-07 Thread shapper
Hello, I am using JQuery and Validate. It works fine in Firefox 3 but it does not work in IE7. Here is an example: http://www.27lamps.com/Beta/Form/Form.html Am I doing something wrong or is there a bug? Thanks, Miguel

[jQuery] Validate and Ajax. Could someone, please, help me?

2008-11-22 Thread shapper
Hello, On a form I am remote validation for an email. However, to this validation, I also need to provide the inserted username which is on another text box. I am using the following: $().ajaxSend(function(event, XMLHttpRequest, ajaxOptions) { ajaxOptions.data.username = $("#Username").val();

[jQuery] Re: Remove comma

2008-11-22 Thread shapper
the .join() > yourself - commasAnd() does that for you. > > Also you can simplify your code by doing a single .append() instead of two: > > $theme.append( commasAnd(levels) + '' ); > > -Mike > > > From: shapper > > > Hi, > > > I tried to use

[jQuery] Re: Remove comma

2008-11-22 Thread shapper
"a, b, c, and d" > > I took the liberty of following the English usage that is traditionally > considered correct: "a, b, and c", not "a, b and c". If you prefer "a, b and > c", you can remove the line with the first.length > 1 test. > > -Mike > > &

[jQuery] Remove comma

2008-11-22 Thread shapper
Hello, I have the following code: $levels = $('input[name="Levels"]:checked + label'); levels = $levels.map(function() { return $(this).text(); }).get(); $theme.append(levels.join(", ")).append(''); How can I replace the last comma in levels by " and "? I tried: levels.join(", ").replace(/, $/

[jQuery] Re: Validate. Can I validate using 2 values?

2008-11-21 Thread shapper
meone, please advice me on this ... I really don't know what should I do. Thanks, Miguel On Nov 18, 2:50 pm, shapper <[EMAIL PROTECTED]> wrote: > Hi Miguel, > > Could you, please, show me your JQuery validate code to do that? > > Thanks, > Miguel > > On Nov 18, 6

[jQuery] Selector > a. How can I do this?

2008-11-20 Thread shapper
Hello, Can I select all anchors which link is an email address? For example: mailto:[EMAIL PROTECTED]>bla Is there a way to do this without adding a class to the anchor? Thanks, Miguel

[jQuery] Validate. Only on button click.

2008-11-19 Thread shapper
Hello, Is it possible to validate a form only on button click and not as the user types? Thanks, Miguel

[jQuery] Validate. True and False

2008-11-18 Thread shapper
Hello, On a Register form I am using remote validation to check if the username already exists. But on a RecoverPassword form the error will be if the user is not found. Basically, in both cases the remote method is the same: UserExists returns true if the username exists or false otherwise. B

[jQuery] Re: Validate. Can I validate using 2 values?

2008-11-18 Thread shapper
heckpass&user=userid > > Daniel. > > On Nov 17, 5:07 am, shapper <[EMAIL PROTECTED]> wrote: > > > In this case I have only the validate request for the password field > > that also sends the username for the test ... > > > But if I would have various reques

[jQuery] Re: Validate. CheckBoxes. Is this possible?

2008-11-17 Thread shapper
ped (by specifying the same NAME attribute on each > INPUT) so that only one radio button in a group can be selected at any > time. " > > On Mon, Nov 17, 2008 at 1:59 PM, shapper <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I have a group of 8 CheckBoxes

[jQuery] Validate. CheckBoxes. Is this possible?

2008-11-17 Thread shapper
Hello, I have a group of 8 CheckBoxes and I am validating so the user selects at least on of the CheckBoxes. It is working fine but now I would like a new rule that: - Requires that one of the first 3 checkboxes to be selected ... and only one! Is this possible? Thanks, Miguel

[jQuery] Validate. CheckBoxes

2008-11-16 Thread shapper
Hello, I have a list of CheckBoxes: A, B, C, D and E. A, B and C should obey a relation that only one of this three can be selected. So I select A and D and then C, A will be unchecked. D and E don't have any relation. Does anyone knows a plugin that does this? Thanks, Miguel

[jQuery] Re: Validate. Can I validate using 2 values?

2008-11-16 Thread shapper
16, 6:45 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > This would add the username to all requests: > > $().ajaxSend(function(event, XMLHttpRequest, ajaxOptions) { >   ajaxOptions.data.username = $("#username").val(); > > }); > > Jörn > &g

[jQuery] Re: Validate. Can I validate using 2 values?

2008-11-16 Thread shapper
Sorry, is there any example using validate for this? To be honest I am completely lost on how to do this ... Thank You, Miguel On Nov 16, 10:39 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > I mean > > $().ajaxSend(function() { > > }); > > Jörn > &g

[jQuery] Re: Validate. Can I validate using 2 values?

2008-11-15 Thread shapper
upport that. As a workaround, you can use jQuery's > > ajaxSend callback to add additional data to the > > request:http://docs.jquery.com/Ajax/ajaxSend#callback > > > Jörn > > > On Thu, Nov 13, 2008 at 3:35 PM, shapper <[EMAIL PROTECTED]> wrote: > >

[jQuery] Validate. Can I validate using 2 values?

2008-11-13 Thread shapper
Hello, I am using the following to validate an email field: Email: { email: true, remote: "/Account/FindEmail", required: true } I am checking if there is already an account with that email. In my form I also have an input where the user inserts its username. When validating the email I need t

[jQuery] Show/Hide. Could someone, please, help me with this?

2008-11-04 Thread shapper
Hello, I have a form as following: Personal Data Options I would like to hide/show each fieldset when its legend is clicked ... ... or even better, adding a small icon on legend or somewhere in fieldset to toogle visibility. How can I do this with JQuery

[jQuery] Validate. Check Boxes

2008-11-03 Thread shapper
Hello, I have 5 check boxes all with the same name forming a group. Is it possible to use validate so I require at least one checkbox to be checked? Thanks, Miguel

[jQuery] Re: Validate. Can validate plugin do this?

2008-10-29 Thread shapper
Hi, Does anyone knows if it is possible? I would prefer to use Validate plugin but if not possible I will include the validation in my own code. Thanks, Miguel On Oct 28, 3:00 pm, shapper <[EMAIL PROTECTED]> wrote: > On Oct 28, 8:49 am, "Jörn Zaefferer" <[EMAIL PROTECT

[jQuery] Is array empty?

2008-10-28 Thread shapper
Hello, I have the folllowing: var levels = []; $levels = $('input[name="Levels"]:checked + label'); levels = $levels.map(function() { return $ (this).text(); }).get(); How can I check if levels array is empty? I tried levels, levels.val(), etc but I was not able to make

[jQuery] Re: Validate. Can validate plugin do this?

2008-10-28 Thread shapper
On Oct 28, 8:49 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > No idea, I'd need a testpage to look at. jsbin.com is quite useful for that. > > Jörn Hi Jörn, If you don't mind I prefer to upload an example to my server. It is easier because the code is not so simple. http://www.27lamps.com/B

[jQuery] Exists

2008-10-28 Thread shapper
Hello, I have the following: if (subject == '---') { if(!$('label[for="Subject",class="Error"]').length) { $('#Subject').parent().after('Required field'); } } I need to check if a label with for="Subject" and class="Error" exists: if(!$('label[for="Subject",class="Error"]').l

[jQuery] Empty

2008-10-28 Thread shapper
Hi, I have the following on a JQuery Code: $('').appendTo('#Themes') .append(subject) .append('') .append(levels) .append('') How can I add .append(subject) .append('') only if subject is not empty and .append(levels) .append('') only if levels is not empty? Leve

[jQuery] Re: Selector

2008-10-27 Thread shapper
Thanks! On Oct 27, 11:36 pm, Ryura <[EMAIL PROTECTED]> wrote: > evels = $('input[name="Level"]:checked + label'); > Should do it for you. > > On Oct 27, 7:13 pm, shapper <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I have the followi

[jQuery] Re: Validate. Can validate plugin do this?

2008-10-27 Thread shapper
7;') .append(' Remove') .append(' '); }); I can integrate the validation in my script but since I am using Validate if it would be possible I would handle the validation all in the same way. Thanks, Miguel On Oct 27, 10:11 pm, "Jörn Z

[jQuery] Selector

2008-10-27 Thread shapper
Hello, I have the following: levels = $('input:checked + label'). ... Can I select only the inputs checked but which name is "Level"? Thanks, Miguel

[jQuery] Add label

2008-10-27 Thread shapper
Hello, I need to check if an input, #Message, value is empty. If it is I need to add the following after it: Welcome Text How can I do this? Thanks, Miguel

[jQuery] Validate. Can validate plugin do this?

2008-10-27 Thread shapper
Hello, I have a form with 20 elements a Submit Button and a Validate. It works fine ... Inside this form I added the following: - a select, an input and 3 checkboxes all with same name; - a button named Add; - an ordered list. When the Add button is clicked the values of the select, input

[jQuery] Re: Validate. Not working with Radio input

2008-10-27 Thread shapper
I found it! I had the form inside a div both with same id ... Thanks, Miguel On Oct 27, 8:48 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Can't reproduce the problem:http://jsbin.com/iwofu/edit > > Jörn > > On Sun, Oct 26, 2008 at 6:32 PM, shapper <

[jQuery] Re: Validate. Not working with Radio input

2008-10-26 Thread shapper
Please, anyone? On Oct 24, 6:00 pm, shapper <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to validate a form with radio inputs. I want to the form > to be submitted only if an option was selected: > >   >     >       Do you like to travel? >  

[jQuery] Re: Validate. Password Bug?

2008-10-25 Thread shapper
. Using element.value should fix the issue. > > Jörn > > On Fri, Oct 24, 2008 at 10:50 PM, shapper <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I am validating a password field as follows: > > > $.validator.addMethod('password', function

[jQuery] Validate. Password Bug?

2008-10-24 Thread shapper
Hello, I am validating a password field as follows: $.validator.addMethod('password', function (value, element) { return this.optional(element) || /^([a-zA-Z0-9]{8,24}) $/.test(value); }, 'Use 8 to 24 letters or numbers only'); I write 8 numbers and letters. The message disappears. Fine ...

  1   2   3   >