[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 span class=xyzxyz/span? Thanks, Miguel

[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: input id=Place name=Place type=hidden value=3 / I want to run the JS code only if

[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 n8kl...@gmail.com wrote: Like so? if (GBrowserIsCompatible()) {    var

[jQuery] Re: Click Even

2009-12-03 Thread shapper
On Dec 3, 2:52 am, JMcGinnis justin.mcgin...@gmail.com 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

[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 doing

[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] 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] 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] Re: Unknown pseudo-class or pseudo-element 'odd'.

2009-12-01 Thread shapper
On Dec 1, 11:33 pm, Karl Swedberg k...@englishrules.com 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 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] 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: a href=mailto:info(AT)domain.com class=Emailinfo(AT)domain.com/ a Becomes: a href=mailto:i...@domain.com; class=Emaili...@domain.com/a However, this is not working when the

[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());

[jQuery] Re: Sound

2009-11-07 Thread shapper
On Nov 5, 11:14 pm, Erik Beeson erik.bee...@gmail.com 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:

[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: a href=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 joern.zaeffe...@googlemail.com 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?

[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

[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 = $('div id=' + settings.id + 'h3/h3div class=body/divdiv class=url/div/div') I would like to use: helper.parent = $('div id=' + settings.id + 'span/span/div') However, when I did this

[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] 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

[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] 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 =

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

2009-09-13 Thread shapper
On Sep 13, 7:28 pm, Mike McNally emmecin...@gmail.com 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

[jQuery] Check if function exists

2009-09-02 Thread shapper
Hello, I am loading TinyMCE using the new JQuery Plugin: script type=text/javascript $().ready(function() { $('textarea.tinymce').tinymce({ // Location of TinyMCE script script_url : '../js/tinymce/jscripts/tiny_mce/tiny_mce.js', Is there a way to load only if tinymce

[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] 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 think the Rot13 is better at least according with the following results: http://www.josephfinsterwald.com/UI/Pages/article4.aspx On Sep 2, 7:01 pm, brian bally.z...@gmail.com wrote: I wrote one but have never gotten around to submitting it. Feedback welcome. /**  * De-obfuscate printed

[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
Please, anyone? Thank You, Miguel On Mar 17, 9:46 pm, shapper mdmo...@gmail.com 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 an ordered list

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

2009-03-18 Thread shapper
')); //var body = fieldset.find('ol:first') On Mar 18, 2:12 pm, AnatolyG anat...@geyfman.net wrote: $(fieldset ol:eq(0)).hide() shapper wrote: Hello, I am trying to find update a plugin to create new functionality. On the current version I have the following:     var legend

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

2009-03-18 Thread shapper
();         });         $item.find(ol:first).hide();       }); If you want to do something else, explain... A On Mar 18, 8:45 pm, shapper mdmo...@gmail.com wrote: Sorry, I don't understand what your mean. Please, check the code I am using in:http://www.27lamps.com/Beta/Collapse/JQuery.Collapsible-1.0.js

[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: Find element. How can I do this?

2009-03-17 Thread shapper
, help me with this? Thanks, Miguel On Mar 17, 6:01 pm, ricardobeat ricardob...@gmail.com wrote: Try this: var body = fieldset.find('ol:first') http://docs.jquery.com/Selectors On Mar 17, 12:13 pm, shapper mdmo...@gmail.com wrote: Hello, I am trying to find update a plugin to create new

[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] 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: fieldset legendPersonal Data/legend ul lifirst element/li lisecond element/li /ul /fieldset How can Show/Hide the ul when I click the legend? I would like to have many fielsets

[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: form action=Create/Account fieldset id=f1 legenda href=#f1LegPersonal/a/legend ul id=f1Content

[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] Re: TextArea CountDown

2009-03-15 Thread shapper
           $(this).addClass('overlimit');            this.value = this.value.substring(0, 100);       } else {           $(this).removeClass('overlimit');       }      $('#counter').text(100-this.value.length); }); On Mar 15, 7:37 am, shapper mdmo...@gmail.com wrote: Hello, Does anyone knows a good JQuery

[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
there are only three checkboxes, the each function with the ternary means you don't have to refactor if you decide to add more checkboxes. To get the values into the hidden input, $.map() is used. Check it out in the documentation. Hope this helps. On Feb 24, 11:20 am, shapper mdmo...@gmail.com

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

2009-02-25 Thread shapper
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 mdmo...@gmail.com wrote: Hi Michael, It is working fine. Thank You Very Much. Just one final question. This is part of a form. When the form

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

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

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

2009-02-24 Thread shapper
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 speed gain probably isn't appreciable. @Shapper - get Firebug and use Firefox for debugging, it will tell you immediately that you have an error in your code

[jQuery] Re: CheckBox - Select and Deselect

2009-02-24 Thread shapper
/ $(document).ready(function() {        $(#A, #B, #C, #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 mdmo

[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

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

2009-02-23 Thread shapper
().text()}) }) On Feb 20, 5:22 am, shapper mdmo...@gmail.com wrote: Hi, I followed your tips but I still have a few problems. The subject is working fine but when I do the same to the levels it does not work. I think the problem, but I am not sure, is in:   levels.each(function

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

2009-02-23 Thread shapper
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':$(this).next().text()}) }) On Feb 20, 5:22 am, shapper mdmo...@gmail.com wrote: Hi, I

[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?

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

2009-02-20 Thread shapper
].text+'br /' etc... for the display $('input').attr({'type':'hidden','name':'Themes['+i+'].Subject'}).val (t[0].value).appendTo(li); etc for the value Use the same object structure for storing the checkbox names/values On Feb 19, 4:36 pm, shapper mdmo...@gmail.com wrote: Hi Michaell

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

2009-02-19 Thread shapper
). 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 mdmo...@gmail.com wrote: Yes, I tried that to but the problem persists. I updated the new version:http://www.27lamps.com/Beta/List/List2.html

[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-18 Thread shapper
, - ricardo On Feb 17, 10:56 pm, shapper mdmo...@gmail.com wrote: 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 mdmo...@gmail.com

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

2009-02-18 Thread shapper
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 function. On Feb 18, 8:25 am, shapper mdmo

[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 michaell...@gmail.com wrote: if you're using the ready function, remove the inner (function($) { ... })(jQuery); wrapper On Feb 18, 9:13 am, shapper mdmo

[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-17 Thread shapper
('name').replace(/\[\d\]/, '['+index +']');        $(this).attr('name', fixName);   }); }); - ricardo On Feb 11, 7:19 pm, shapper mdmo...@gmail.com wrote: Hello, I am adding and removing a items from a list, using JQuery, which is rendered has follows: ol id=ThemesList   li

[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 mdmo...@gmail.com wrote: I have been trying to make this work but no success ... ... in fact

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

2009-02-11 Thread shapper
it from a string first. shapper wrote: Hello, I have an input on my page as follows:   input id=Index name=Index type=hidden value=0 / I am trying to increase and decrease the value of the input as follows:         $index = $('#Index');         $index.val()--; I always get

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

2009-02-11 Thread shapper
conversion is done for you: $index = $('#Index'); val = $index.val()-1; On Feb 11, 2:37 pm, shapper mdmo...@gmail.com wrote: You mean the following:         $index = $('#Index');         parseInt($index.val())--; This still gives me the same error. Could someone, please, tell me

[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: ol id=ThemesList li input type=hidden name=Themes[0].Subject value=A / input type=hidden name=Themes[0].Levels value=L1,L2 / input type=hidden name=Themes[0].Description value=Paper /

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

2009-02-11 Thread shapper
a list item to a list properly.  Probaby does. On Feb 11, 1:19 pm, shapper mdmo...@gmail.com wrote: Hello, I am adding and removing a items from a list, using JQuery, which is rendered has follows: ol id=ThemesList   li     input type=hidden name=Themes[0].Subject value

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

2009-02-10 Thread shapper
Hello, I have an input on my page as follows: input id=Index name=Index type=hidden value=0 / 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

[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 = $('li class=Themes/li').appendTo ('#Themes'); $theme.append('input type=hidden name=Themes[0].Subject value = ' + $subject.val() + ' /');

[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 something wrong or is there a bug? Thanks

[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] 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('br /'); How can I replace the last comma in levels by and ? I tried: levels.join(, ).replace(/,

[jQuery] Re: Remove comma

2008-11-22 Thread shapper
with a much more elegant expression! - ricardo On Nov 22, 3:10 pm, shapper [EMAIL PROTECTED] wrote: Hello, I have the following code: $levels = $('input[name=Levels]:checked + label'); levels = $levels.map(function() { return $(this).text(); }).get(); $theme.append(levels.join

[jQuery] Re: Remove comma

2008-11-22 Thread shapper
. Also you can simplify your code by doing a single .append() instead of two: $theme.append( commasAnd(levels) + 'br /' ); -Mike From: shapper Hi, I tried to use as follows: $theme.append(commasAnd(levels.join(,))).append('br /'); I get an error. This is the message I got

[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: Validate. Can I validate using 2 values?

2008-11-21 Thread shapper
, 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:08 am, Daniel [EMAIL PROTECTED] wrote: For my

[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: a href=mailto:[EMAIL PROTECTED]bla/a 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] Re: Validate. Can I validate using 2 values?

2008-11-18 Thread shapper
. 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 requests, from validate or others, shouldn't I add the username only to the password

[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.

[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] 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 On Sun, Nov 16, 2008 at 1:24 AM, shapper [EMAIL

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

2008-11-16 Thread shapper
: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 On Sun, Nov 16, 2008 at 7:18 PM, shapper [EMAIL PROTECTED] wrote: Sorry

[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] 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 to

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

2008-11-04 Thread shapper
Hello, I have a form as following: form id=MyForm fieldset legendPersonal Data/legend /fieldset fieldset legendOptions/legend /fieldset /form I would like to hide/show each fieldset when its legend is clicked ... ... or even better, adding a small icon on

[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 PROTECTED] wrote: No idea, I'd

[jQuery] Empty

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

[jQuery] Exists

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

[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.

[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. 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 [EMAIL PROTECTED] wrote: Please, anyone

[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,

[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: label for=Message generated=true class=WelcomeWelcome Text/ label How can I do this? Thanks, Miguel

[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] Re: Validate. Can validate plugin do this?

2008-10-27 Thread shapper
click the add button? Jörn On Mon, Oct 27, 2008 at 10:54 PM, shapper [EMAIL PROTECTED] wrote: 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

[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 following: levels = $('input:checked + label'). ... Can I select only

[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:  form action=/Poll/Vote/1 class=Poll id=Poll method=post     fieldset       label

[jQuery] Re: Validate. Password Bug?

2008-10-25 Thread shapper
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 (value, element) {  return this.optional(element) || /^([a-zA-Z0-9]{8,24}) $/.test(value); }, 'Use 8 to 24 letters

[jQuery] Re: Get label text

2008-10-24 Thread shapper
I wrote alert(levels) to check and I get: [object Object] Does anyone knows how to get the values and join in CSV format? Thank You, Miguel On Oct 24, 1:47 am, shapper [EMAIL PROTECTED] wrote: yes, I have: var levels = []; levels = $('input:checked + label').map(function() {   return

[jQuery] Validate. Not working with Radio input

2008-10-24 Thread shapper
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: form action=/Poll/Vote/1 class=Poll id=Poll method=post fieldset label for=OptionsArrayDo you like to travel?/label input type=radio name=OptionsArray

[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 ...

[jQuery] Re: My first plugin ... need some help.

2008-10-23 Thread shapper
(' a href=#remove class=removeRemove Item/a'); // etc          return false;       });   }   $ ('input.name,select.country,input.newsletter').createList({ list:'#MyList', button: 'input.sendToList' }) }); On Oct 22, 10:24 pm, shapper [EMAIL PROTECTED] wrote: Hi again, I changed

  1   2   >