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>
>
>
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());
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
$("form").validate(
{
rules: {
legal_status_comment: {
required: function(element) {
return $
("[name=legal_status]:checked").attr("id") == "other_radio";
}
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
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
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
;
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
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
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
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
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"
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
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
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
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
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:
>
> >
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
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
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,
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
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
Try this.
$(document).ready(function() {
$("#convert").click(function() {
re = /TEXTAREA/g;
$("#newContainer").append($("").append($
("#test"))
.html()
.replace(re, "DIV"));
});
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
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,
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
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!
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){
>
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
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
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
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
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
$(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.
>
$('#content').find('blockquote')
.hide()
.end()
.find('h5').click(function() {
$(this).nextAll('blockquote:first')
.slideToggle('slow')
.end()
.nextAll('h6:first').slideToggle('slow');
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
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
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
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
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
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
$("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
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(
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
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
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
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
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
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"
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
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 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
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 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');
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
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
>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:
>
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
> class="labelRequired">street address * small>
> tabindex="4" title="street address" class="required">
> class="labelRequired">address line 2:
> tabindex=&quo
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
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.
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,
});
$.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
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
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();
}
});
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&
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,
>
>
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
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"
});
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);
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
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
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
$("#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
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
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
> &
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
May be something like this?
(function($) {
$.fn.editable = function(options) {
var defaults = {
// default value declarations
}
var opts = $.extend(defaults, options);
return this.each(function() {
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
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()
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
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
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
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;
}
}
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.
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
86 matches
Mail list logo