[jQuery] Re: jQuery 1.2.6 clone problem with internet explorer.

2010-01-13 Thread Jules
Sorry, I just noticed you are using 1.2.6. Ignore my reply. On Jan 14, 11:26 am, Jules wrote: > This clone() works for me in ie 6.0 :).  May be C.fx.step is an > element in your page and IE 6 can't find it for some reason? > > >     </ > script> > >

[jQuery] Re: jQuery 1.2.6 clone problem with internet explorer.

2010-01-13 Thread Jules
This clone() works for me in ie 6.0 :). May be C.fx.step is an element in your page and IE 6 can't find it for some reason? $(document).ready(function() { $("#btnCloneIt").click(function() { $("#container").append($("#toBeCloned").clone());

[jQuery] Re: Filter xml data before display

2010-01-11 Thread Jules
Use .ajax to get filtered the data on the server, instead of retrieving all xml data and filtering the data on the client. On Jan 12, 9:06 am, stevo wrote: > Hi all, > > I have an xml file that is dynamically generated at periodic intervals > onto disk. the information contained in this file is

[jQuery] Re: Need help with a required field from radio selection

2010-01-11 Thread Jules
$("form").validate( { rules: { legal_status_comment: { required: function(element) { return $ ("[name=legal_status]:checked").attr("id") == "other_radio"; }

[jQuery] Re: Go through XML nodes only 1 level deep

2010-01-07 Thread Jules
e either. > > The code I had posted earlier doesn't work in FF 3.53 either. I'm > accessing it by running it on my desktop with this as the URL > file:///c:/xampplite/htdocs/DEVELOPMENT/geolocate.htm > but even when I access it via a decent URL I still get undefined

[jQuery] Re: Go through XML nodes only 1 level deep

2010-01-06 Thread Jules
n 7, 2:50 pm, Steven Yang wrote: > just making sure > > you are not able to parse the xml at all right? > i believe for IE you have to make sure you server returns the correct > content type like text/xml to client inorder for you to parse > > hope this help > > On Thu, Jan

[jQuery] Re: Go through XML nodes only 1 level deep

2010-01-06 Thread Jules
For some reason, it works on firefox (3.5.6) and doesn't work in ie 6.0 and 8.0 On Jan 7, 6:39 am, Frank Peterson wrote: > I'm grabbing an XML file with jQuery like this: > > $(document).ready(function(){ >     $.ajax({ >         type: "GET", >         url: "http://ipinfodb.com/ip_query.php?ip=74

[jQuery] Re: remote validation on empty field

2009-12-06 Thread Jules
; else return $("#field").val(); } } } }); On Dec 7, 9:15 am, Jules wrote: > May be a dumb suggestion, but can't you set the value as "empty" when > there is no value? > > On Dec 6, 7:5

[jQuery] Re: remote validation on empty field

2009-12-06 Thread Jules
May be a dumb suggestion, but can't you set the value as "empty" when there is no value? On Dec 6, 7:53 pm, david wrote: > Hi all, > > I want to make a remote validation on an empty field. Sometimes the > field may be empty and sometimes not. This depends on the selection of > other elements. I s

[jQuery] Re: Attribute filters doesn't work with similar values

2009-11-16 Thread Jules
Put a space after me or alternatively, use a delimiter if it is possible. -- HTML < a href="site" rel="me " >me< /a > < a href="site" rel="met" >met< /a > -- Code xfn_me = $("a[rel*='me ']").length; or xfn_me = $("a[rel*='me.']").length; On Nov 17, 6:57 am, UVL wrote: > I'm trying to filter the

[jQuery] Re: Validation plugin rules() ???

2009-11-16 Thread Jules
http://docs.jquery.com/Plugins/Validation/Methods Also, I found it was worth while to look into jquery.validation.js code. On Nov 17, 8:55 am, "Atkinson, Sarah" wrote: > Is there a list somewhere of what the options are for the rules (required, > email) > I can't seem to find more info on this

[jQuery] Re: Newbie validator question/problem

2009-11-16 Thread Jules
Can't you use remote validation? This code should work. $("#password").rules("add", { messages: { remote: "Invalid password." }, required: true, remote: { url: ".../UVServer/login.php", type: "get"

[jQuery] Re: Count items inside/outside of visible area

2009-11-15 Thread Jules
This code should works as it retrieves the parent height during run- time $(document).ready(function() { var cnt1 = $("#test_list").parent().css("height"); var cnt2 = $("#test_list").children(":first").css ("height"); var re = /px/g; alert(p

[jQuery] Re: (validate plugin) dependency callback not being triggered

2009-11-05 Thread Jules
Hi, Validation only triggered if you call submit the page or call the $ ("form").valid() function. I didn't see any submit() or $ ("form").valid() call in your page. Try adding this to your page js script inside ready() $("#validateMe").click(function(){ if($("form").valid()) alert("Al

[jQuery] Re: Submitting after Validation

2009-11-04 Thread Jules
Hi Stephen, Try using input type="button" instead of "submit" as per my example below. Excuse the aspx :). register.aspx code. string usrName = Request["userName"]; Response.Clear(); Response.Write("Hello " + usrName); Response.End(); -- client side code and htm

[jQuery] Re: Simple problem

2009-10-29 Thread Jules
Modify this line of code var panelID = "panel_" + $("input").val(); to var panelID = "panel_" + $(this).val(); On Oct 30, 9:56 am, AlChuck wrote: > Hello, I'm new to using jQuery. I was motivated by wanting to put some > panels on an ASP.NET website which

[jQuery] Re: (validate) validator is undefined error

2009-10-29 Thread Jules
0, 12:14 am, Collectonian wrote: > Thanks, but that only seems to work if they only pick other. Since > they can pick multiple checkboxes from that set, I need to see if they > picked it among possibly multiple others. > > On Oct 28, 5:50 pm, Jules wrote: > > >

[jQuery] Re: (validate) validator is undefined error

2009-10-28 Thread Jules
Use this rule. whyvisitother: { required: function(element) { return $("[name=whyvisit]").index($ ("[name=whyvisit]:checked")) == 4; } On Oct 29, 7:34 am, Collectonian wrote: > With the suggestion earlier, everything is

[jQuery] Re: (validate) validator is undefined error

2009-10-27 Thread Jules
Change var validator = $("#surveyForm").validate({ to var validator = $("form").validate({ or to Good luck. On Oct 28, 7:54 am, Collectonian wrote: > I'm trying to implement Validate on a survey form that has just a few > basic requiremen

[jQuery] Re: Prevent key to change values

2009-10-25 Thread Jules
Put the calculation logic in blur event? $("input[type='text']:order").blur(function(){ $('#total_buyed').val( v * 2.75 ); }) On Oct 26, 4:18 am, ReynierPM wrote: > Hi every: > I have this function: > > $("input[type='text']:order").keyup(function() { >      var v = $(this).val().replace(/\D/g,

[jQuery] Re: How to know which button is clicked

2009-10-25 Thread Jules
Use a variable? var buttonClicked = ''; $("#delete").click(function(){ buttonClicked ='delete'; . }) $("#view").click(function(){ buttonClicked ='view'; . }) submitHandler: function(form) { if(buttonClicked == 'delete') {//do delete} else if (buttonClicked == 'view') {//do v

[jQuery] Re: show/hide problem

2009-10-25 Thread Jules
If a.more is a child of the div, use this code. $(document).ready(function() { $("div.featured-cell-padding").mouseenter(function(){ $(this).find("a.more").show(); }); $("div.featured-cell-padding").mouseleave(function(){ $(this).find("a

[jQuery] Re: Is it possible to clone all attributes on an element and copy to a DIFFERENT type of element?

2009-09-23 Thread Jules
Try this. $(document).ready(function() { $("#convert").click(function() { re = /TEXTAREA/g; $("#newContainer").append($("
").append($ ("#test")) .html() .replace(re, "DIV")); });

[jQuery] Re: triggering handlers for native events

2009-09-10 Thread Jules
You are right, when click() event is triggered, the check box/radio button value is the original value. Use change(fn) to detect the after click() value. On Sep 11, 10:40 am, Mike McNally wrote: > Am I the only person who finds wildly wrong the jQuery behavior of > handler invocation for native

[jQuery] Re: key - value

2009-09-09 Thread Jules
You can use array. var arr = new Array(); arr['Some Text 1'] = 41; arr['Some Text 2'] = 42; arr['Some Text 3'] = 43; arr['Some Text 4'] = 44; arr['Some Text 5'] = 45; alert(arr['Some Text 4']) On Sep 10, 12:43 am, TiGeRWooD wrote: > Hi,

[jQuery] Re: How can I get current Index?

2009-09-06 Thread Jules
This works, but there could be a more elegant way to do it. $(document).ready(function() { var cnt; $("tr").each(function() { cnt = 0; $(this).find("td").each(function() { $(this).find("a").each(function() { aler

[jQuery] Re: Select Span with Span Parent

2009-08-31 Thread Jules
Is this what you are after? $("span span") On Sep 1, 12:14 pm, a1anm wrote: > Hi, > > How would I select all spans which have a span as a parent? > > Thanks!

[jQuery] Re: Append data using Slide In animation

2009-08-30 Thread Jules
try this $(data).appendTo("#chat_box").show(); On Aug 31, 3:14 am, Namir wrote: > Well I want to append some data to a div called chat_box but I want it > to slide in from the bottom as it appears, the code Im currently using > to attempt to reach this is >        success: function(data){ >    

[jQuery] Re: Limit nextAll

2009-08-28 Thread Jules
Assuming you are looking for div .nextAll("div:lt(2)").each(function(){}); On Aug 28, 6:55 pm, Jaggi wrote: > Basically i'm going through a table, i've used closest to get the > parent element which is a tr then i can use next() to get the next one > or nextAll() to get all the next ones howeve

[jQuery] Re: previous value ands remote validation

2009-08-26 Thread Jules
May be you should put the remote validation in field A instead of B, passing both A and B values to the server side. On Aug 26, 4:42 pm, marcp wrote: > hi all, > > i have 2 fields in my form with 1 being currently validated with a > remote method (say Field B). > I would like to make a dependenc

[jQuery] Re: jQuery Form Plugin ajax submit

2009-08-26 Thread Jules
To protect the input fields, use readOnly instead of disabled and the value will be included. On Aug 21, 9:39 pm, Chris Hall wrote: > Using the following code: > > $('.input_all').attr("disabled", "disabled"); > > for input texts with the class="input_all" seems to break jQuery forms > ajax subm

[jQuery] Re: JQuery with Crystal Reports .Net 2.0

2009-08-25 Thread Jules
On the server side (CR XI), export the report to PDF and stream it to the client, much less problem than using CR viewer. On Aug 26, 3:06 am, ND wrote: > Hello, > > Has anyone attempted using JQuery dialog to display crystal reports > in .Net 2.0? Also, the crystal report viewer is within and AJ

[jQuery] Re: Which event to use with form elements

2009-08-23 Thread Jules
Can't you use change()? >From the jquery docs. "The change event fires when a control loses the input focus and its value has been modified since gaining focus." $("form Input, form select").change(function(){ alert($(this).val()); }); If you want to detect the value before lost focus, you

[jQuery] Re: :first relative to clicked element

2009-08-22 Thread Jules
$(this).nextAll('blockquote:first') .slideToggle('slow') .end() .nextAll('h6:first').slideToggle('slow'); }); On Aug 21, 5:28 pm, Carl-Johan Lindqvist wrote: > Hi Jules and thanks for your reply. >

[jQuery] Re: :first relative to clicked element

2009-08-20 Thread Jules
$('#content').find('blockquote') .hide() .end() .find('h5').click(function() { $(this).nextAll('blockquote:first') .slideToggle('slow') .end() .nextAll('h6:first').slideToggle('slow');

[jQuery] Re: invalid object initializer. Pls Help

2009-08-20 Thread Jules
The first parameter format for Animate should be {width:'100px'} instead of {width, '100px'} On Aug 21, 2:07 am, NotoriousWebmaster wrote: > I'm trying to animate a couple of fields in a form.  When the focus > lands on field A it grows to 300px and fieldB shrinks to 100px.  When > focus lands o

[jQuery] Re: Using $.ajax to post XML to an aspx page

2009-08-19 Thread Jules
Can't you pass the xml as a string and load it to dom on the server side? On Aug 19, 1:39 am, Karl wrote: > I'm new to using JQuery and I've been searching everywhere to be able > to post XML to a WebMethod on an aspx page in a site.  I'm sure it can > be done but I just have no idea how. > > An

[jQuery] Re: how to get back the DOM element as HTML source

2009-08-18 Thread Jules
Use DHTML property. $("table:first")[0].outerHTML On Aug 19, 12:36 am, John wrote: > Thanks, Anurag. Let me rephrase my question. For example, I can use > the following jQuery > to get the html source of a table element > > $("table:first").html() > > The returned html source does not include t

[jQuery] Re: manipulate elements with filter

2009-08-17 Thread Jules
I am not sure what do you want to do. Assuming you want to set the new input value and a text (not the cleanest code though): $("#clickmeIMg").click(function() { var insertDataBefore = $('#tablaFormulario').find('tr:last') insertDataBefore.clone(true) .insertAfter(insertDataBefo

[jQuery] Re: Could you give some advise on studying JQuery Code Source.

2009-08-17 Thread Jules
Are you a beginner? If you are, this web site is a good one. http://www.w3schools.com/ On Aug 17, 1:55 pm, Jackwanzai wrote: > Hi all, > > I have been using JQuery for some time, finding it very interesting > and elegant. > > I want to study the code source. But found I was confused by many > co

[jQuery] Re: Input position in HTML

2009-08-13 Thread Jules
You should use css not jquery. On Aug 13, 10:22 pm, Baalzamon wrote: > Hi, I'm making a dynamic div in a page but I'm having some doubts: > -I have an input text field and i need to get it's position (left and > top) to make the div appear near this input. $.(':INPUTNAME').css > ('left') returns

[jQuery] Re: Click() Not Working

2009-08-13 Thread Jules
$("td a.menu:contains('Main')").click() should work. Can you post the html? On Aug 14, 4:48 am, S2 wrote: > This doesn't work in IE or Firefox: > > $("td a.menu:contains('Main')").click(); > > This works in IE: > > $("td a.menu:contains('Main')")[0].click(); > > $("td a.menu:contains('Main')").l

[jQuery] Re: Validation Error message help

2009-08-11 Thread Jules
Check the error message existence before adding a new error msg if ($('#'+fieldName+'-exists').length = 0) $('#username').after('' + error + ''); On Aug 12, 2:17 am, "Dave Maharaj :: WidePixels.com" wrote: > I have this script: > > $(document).ready( function() { > >     $('#username').blur(

[jQuery] Re: $ajax() question

2009-08-11 Thread Jules
it() to get the value. On Aug 11, 1:59 pm, Jules wrote: > JavaScriptSerializer is included in AJAX 1.0. It is compatible > with .NET 2.0. > > http://www.asp.net/ajax/downloads/archive/ > > You don't have to use the ajax component on your client to use it. > > On A

[jQuery] Re: $ajax() question

2009-08-10 Thread Jules
JavaScriptSerializer is included in AJAX 1.0. It is compatible with .NET 2.0. http://www.asp.net/ajax/downloads/archive/ You don't have to use the ajax component on your client to use it. On Aug 11, 1:18 pm, yi wrote: > Hi Jules: > If i use old version of ASP.net, Can i Deserializ

[jQuery] Re: $ajax() question

2009-08-10 Thread Jules
ject input = ser.DeserializeObject(reader.ReadToEnd()); string args = ((Dictionary)input)["Args"] as string; or if you have the object defined use System.Runtime.Serialization.Json.DataContractJsonSerializer More info in http://www.west-wind.com/WebLog/posts/218001.aspx On Aug 11, 12:23 pm, yi wr

[jQuery] Re: (Validate) Error messages in Summary section

2009-08-10 Thread Jules
Check out errorLabelContainer http://docs.jquery.com/Plugins/Validation/validate#toptions On Aug 10, 9:32 pm, "dazad...@gmail.com" wrote: > Hi, > > I'm new to jQuery and the validation plugin, I just wondered if it is > possible to get the error messages to be shown in an error summary > sectio

[jQuery] Re: $ajax() question

2009-08-10 Thread Jules
Use Request("Arg") instead, this syntax gets the Arg from data post or querystring. Do not enclose args2, the server will get "args2" instead of the value of args2. data:{Arg:args2} On Aug 11, 10:12 am, yi wrote: > Hi Jules: > thank you for your help!! > if I use

[jQuery] Re: refactoring help/ suggestions?

2009-08-10 Thread Jules
Assuming your html format as follows: Para a Paragraph a Para b Paragraph b Para c Paragraph c Use this: $(document).ready(function() { $("a.p").next("p").hide(); $("a.p").hover(function() { $(this).fadeOut("slow"

[jQuery] Re: $ajax() question

2009-08-10 Thread Jules
There is a limit on url length depending on the browser. http://classicasp.aspfaq.com/forms/what-is-the-limit-on-querystring/get/url-parameters.html use type:"POST" and data: instead and do not enclose the object declaration data:{Arg:args2} instead of data:"{Arg:args2}" On Aug 11, 8:41 am, y

[jQuery] Re: Custom Attributes - Beginner tip

2009-08-05 Thread Jules
I think that is one of the reason to use class, It is "cleaner" than using custom attributes. May be others can share their experiences on XHTML and custom attributes? On Aug 6, 1:37 am, "Cesar Sanz" wrote: > What happens with custom attributes regarding the strict XHTML format? > > - Origi

[jQuery] Re: Custom Attributes - Beginner tip

2009-08-04 Thread Jules
jQuery support custom attributes, may be you can post a sample? Anyway, this works $(document).ready(function(){ alert($("[custom='test']").length); }); On Aug 5, 10:04 am, Miket3 wrote: > One issue I ran across while learning jquery was that I often wanted/ > needed a way to tell jqu

[jQuery] Re: Show/hide on radio button click

2009-08-04 Thread Jules
This should works not sure about the performance though $(function() { $('p').next('ul').hide(); //hide donation choice children $('input[name="donate_by"]').click(function() { //donation choice radio button click $(this).next().css('font-weight','

[jQuery] Re: xpath not returning objects

2009-08-04 Thread Jules
jQuery does not recognise @ as attribute indicator. Just remove the @ from your code and enclose the attribute value with ': $("input:checkbox[name='media_type']").click(function() { if (this.checked == true) { alert('checkbox true');

[jQuery] Re: How to show a div upon a validation error?

2009-07-30 Thread Jules
Hopefully this help. -- html Error text for field1 -- script var options = { errorPlacement: function(error, element) { $("label[for='" + element[0].id + "']").addClass (this.errorClass).show(); } }; $("form").validate(options); On Jul 31, 2:11 am, R

[jQuery] Re: A few novice questions on Datepicker

2009-07-30 Thread Jules
Most of your questions can be answered by the date picker docs http://docs.jquery.com/UI/Datepicker 1. Use minDate option 2. If I correctly understand the question, use dateFormat option 3. .ui-icon-circle-triangle-e and .ui-icon-circle-triangle-w. This website allow you to change the ui theme h

[jQuery] Re: fn question

2009-07-29 Thread Jules
>From the jquery plugin http://docs.jquery.com/Plugins/Authoring Your method must return the jQuery object, unless explicity noted otherwise. $('input#btn').btnClick().css("background-color","blue") won't work for your 1st case but works for the 2nd one. On Jul 30, 3:14 pm, "David .Wu" wrote: >

[jQuery] Re: jQuery Nesting Tables

2009-07-29 Thread Jules
As mentioned by FrenchiINLA, $("table tr:has(table)") or $(".list tr:has(table)") should do it. On Jul 29, 5:04 am, nullstring wrote: > Hi, > > am not sure if I'm doing this right .. > > I have here the function to move the paging from GridView(table) > generated by .NET, on top/before the table

[jQuery] Re: (validate) multiple error error messages per input

2009-07-29 Thread Jules
>                 class="labelRequired">street address * small> >                 tabindex="4" title="street address" class="required"> >                 class="labelRequired">address line 2: >                 tabindex=&quo

[jQuery] Re: small problem

2009-07-29 Thread Jules
Using Vista 64 FF3.0.1 the letters change to yellow as mentioned. Works fine in IE 8 On Jul 26, 7:40 pm, GaVrA wrote: > Hmm check out my site: > > http://www.crtaci.info/ > > on top-right position i have search field. When you move your mouse > over there small text shows up that says: > > Napre

[jQuery] Re: JQuery method to update one form element with value from another

2009-07-27 Thread Jules
Try the most obvious method: '("#hiddenfieldId").val(' or '("#hiddenfieldId")[0].value =' or '("#hiddenfieldId").get(0).value =' assuming the hidden field is as specified below and the coder using uniqueid. If the code cannot be found, the original coder may use class name or other attributes.

[jQuery] Re: (validate) multiple error error messages per input

2009-07-27 Thread Jules
Since you didn't post your html and code, I would guess you don't have name property specified on your html. should be On Jul 28, 8:26 am, jckos wrote: > Hi, > > If I  focus on a field multiple times or submit the form multiple > times, I the script adds multiple error messages per field,

[jQuery] Re: Need help with a custom selector to bind ajax callbacks

2009-07-23 Thread Jules
}); $.ajax({ //your call beforeSend: function(){ isFaceBox = false;}, complete: function(){ isFaceBox = true;} }); }); On Jul 24, 10:02 am, Jules wrote: > Can't you check the settings.url? > > $(document).ready(function(){ >   $(document).ajaxSend(function(even

[jQuery] Re: [validate]

2009-07-23 Thread Jules
Validation is triggerd by 4 events that are active by default: Submit KeyUp Change Click -- for check box and radio button To prevent KeyDown and LostFocus validation use the following options onkeyup:false, onfocusout:false, onclick:false This information is available on the validate options d

[jQuery] Re: Need help with a custom selector to bind ajax callbacks

2009-07-23 Thread Jules
Can't you check the settings.url? $(document).ready(function(){ $(document).ajaxSend(function(event, request, settings){ if(settings.url != 'faceboxurl') // replace faceboxurl with the real url { $('body > div.container').fadeTo('normal', 0.33); $('#loading').show(); } });

[jQuery] Re: Customize Error Labels

2009-07-22 Thread Jules
errorPlacement: function(error, element) { >     $('label').each(function() { >       var field_for = $(this).attr('for'); >       var field_id = $(element).attr('id'); >       if (field_for == field_id) { >         $(this).addClass('error&

[jQuery] Re: Customize Error Labels

2009-07-22 Thread Jules
Read errorPlacement on validate docs. $(document).ready(function() { $("form").validate({ errorPlacement: function(error, element) { $(element).prev().addClass("error"); } }); }); Input: On Jul 23, 3:03 pm, Rizky wrote: > Hi, > >

[jQuery] Re: jQuery validation custom method doesn't work

2009-07-22 Thread Jules
Your code should have been: $.validator.addMethod('myEqual', function (value, element, param) { return value >= $(param).val(); // this works know }, 'Please enter a greater year!'); On Jul 23, 12:21 pm, Erwin Purnomo wrote: > Hello all > > I have added a method on jQuery

[jQuery] Re: Jquery Validation How To

2009-07-22 Thread Jules
The validation is only triggered during submit event which is fine to me. I don't like interactive validation as it creates distraction to the users. $("form").validate( { errorLabelContainer: "#errMsg", wrapper: "li" });

[jQuery] Re: extend an Object

2009-07-22 Thread Jules
Something like this? function person(name, address) { this.name = name; this.address = address; this.whoAmI = function() { if (this.creditLimit) alert(this.name + ' address:' + this.address + 'credit limit:' + this.creditLimit);

[jQuery] Re: Caching jQuery objects

2009-07-21 Thread Jules
I found out that jquery.validate code uses the form object to store global variables. Taking clue from the code, I uses the document object $.data($(document)[0], 'myData', myData). Not sure if this is the best practice, may be others can shed some light to the best practice to store global vari

[jQuery] Re: jquery.ajax executes error function for Web Server HTTP 201 Response

2009-07-20 Thread Jules
201 is considered as a success. It could be an error somewhere else, try to step through httpSuccess function. // Determines if an XMLHttpRequest was successful or not httpSuccess: function( xhr ) { try { // IE error sometimes returns 1223

[jQuery] Re: Validation plugin - submit form without validation

2009-07-20 Thread Jules
Try $("#frm")[0].submit() On Jul 20, 1:56 pm, Adam P wrote: > I'm using the Validation plugin for JQuery and was wondering if there > was a function to submit the form without causing it to validate the > form.  I have a table with a list of radio-buttons and above that is a > drop down list of

[jQuery] Re: Noob question about wrapped sets

2009-07-20 Thread Jules
$("#myElement) returns jQuery object and $("#myElement")[0] returns DHTML object. Here is a sample on how to access alt attribute jQuery $("#myElement").attr("alt") vs DHTML $("#myElement")[0].alt Both code return the same value. Correct me if i am wrong, I think the DHTML version is faster tha

[jQuery] Re: Value adding to drop down

2009-07-19 Thread Jules
OK that means the values causing the problem. Are your strings stored in the database as double byte characters? Try to view your page in Firefox and use firebug to display the value instead of using alert (). On Jul 20, 2:08 pm, naz wrote: > i have values in data like BSIT|MSIT|BSC| etc when

[jQuery] Re: Value adding to drop down

2009-07-18 Thread Jules
lue is SE,DLD etc i m getting > these values from db. > > On Jul 16, 11:14 am, Jules wrote: > > > The code looks fine to me.  Could you post the data value?  What is > > the browser you are using? > > > On Jul 16, 2:58 pm, naz wrote: > > > > hi > &

[jQuery] Re: Can this plugin be structured better?

2009-07-16 Thread Jules
In the object init, pass this. switch (tag) { case 'DIV': obj = new $.myDiv(); obj.init ($this);break; jQuery.myDiv= function() { this.init = initDiv; this.doSomething = divFunction; this.actualObject; return this; function initD

[jQuery] Re: Can this plugin be structured better?

2009-07-15 Thread Jules
May be something like this? (function($) { $.fn.editable = function(options) { var defaults = { // default value declarations } var opts = $.extend(defaults, options); return this.each(function() {

[jQuery] Re: Value adding to drop down

2009-07-15 Thread Jules
The code looks fine to me. Could you post the data value? What is the browser you are using? On Jul 16, 2:58 pm, naz wrote: > hi > i m adding some values to drop down > by usind j query by this code > var programs=[]; >  programs=data.split('|'); > $('#p_course').length = 1; >   for(var i=0;i

[jQuery] Re: (validate) Validating multiple drop down boxes

2009-07-15 Thread Jules
I had simillar problem to this. The solution is a little bit clumsy but it works. --SCRIPT $(document).ready(function() { $("#inputForm").validate({ errorLabelContainer: "#errorContainer", wrapper: "li" }); $("#MOB").change(function()

[jQuery] Re: manipulate the next element with a class

2009-07-15 Thread Jules
Opps, after re-reading the original post it should be $(this).parent().next().find(".a1").css({ "visibility": "hidden" }); However, this only works for #container1 .link1 and #container2 .link1. If you click #container3 .link1, nothing happens. On Jul 16, 10:24 am

[jQuery] Re: manipulate the next element with a class

2009-07-15 Thread Jules
It should be siblings() not find(). On Jul 16, 8:00 am, Benn wrote: > Is there a non-structure specific way of finding the next element with > a given class? for example you have a structure of: > > >   link >   asdf > > > >   link >   ghjl > > > >   link >   qwer > > > When you click on t

[jQuery] Re: Inserting elements

2009-07-14 Thread Jules
If you want to be sure the is appended after the last li use this $(".list li:last").after("item " + (parseInt($(".list li").length,10) + 1) + ""); On Jul 15, 10:24 am, Eno wrote: > Given this HTML: > > item 1 > > How would I insert elements inside the element after the > existing ? I tri

[jQuery] Re: Validate textbox (required=true) on combobox selected value

2009-06-24 Thread Jules
Its in the validate documentation http://docs.jquery.com/Plugins/Validation/Methods/required#dependency-expression In your case rules: { newColor: { required: function(element) { return $("#color").val() == -1; } }

[jQuery] [validate] Validating a formatted number failed

2009-06-16 Thread Jules
Hi all, I am using validate (1.5.4) plugin to validate numeric input field with max:5000.00. When the numeric value is formatted as "2,999.00", the max validation failed. After some investigation, it turns out the max function compare the value "2,999.00" as string with 5000.00 instead of 2999.

[jQuery] Triggering asp:Button click event from client side

2009-06-04 Thread Jules
Hi, I have a page with an asp:Button save that performs an ajax validation before post back. If the data is incorrect, the aspx returns a warning text message. The user can ignore the warning and continue to save the data. I managed to perform the desired result using the posted code below. No