Ok, that works.
But now when adding a second selector it fails at the second.
var company = $("#contactform > div > input[name='name']").val();
var company = $("#contactform > div > input[name='company']").val();
This is even weirder :o
The solutions, adding;
var name = "";
var company = "";
Strange this wasnt needed before :o
Up
On 23 juil, 08:30, Lideln wrote:
> Up
>
> On 20 juil, 18:46, Lideln wrote:
>
> > Hi,
>
> > Thanks for the answer.
>
> > Here is a bit of my script :
>
> > [code]
> > // Constructing the modal...
> > SModule_gallery.oGalleryModal.jqm({modal: true})
> > .width((SModule_
a shorter solution for your code should be, giving the input field an
unique id
On Aug 10, 9:46 am, V wrote:
> The solutions, adding;
> var name = "";
> var company = "";
>
> Strange this wasnt needed before :o
implementing the live() function solved this problem.
http://docs.jquery.com/Events/live#typefn
On Aug 10, 9:53 am, Ram wrote:
> anyone? any ideas at all??
>
> On Aug 7, 4:38 pm, Ram wrote:
>
> > Hi,
>
> > Im using jNice (a jQuery plugin) in rails. I have the following jQuery
> > function on t
Hi i'm currently using the dialog functionality (modal form) from UI
library to submit data to the database. All the validation checks
have been running ok until one of the validation checks requires a
ajax call to check if a username exsist in the database. I'm fairly
new to both javascript and
aside from the fact that checkIfUsername does not have a return
ajax function is not going to waitwhen you finished calling $.ajax your
function has already ended(returned)
then when server responded your returnUsernameBool will be called but thats
already too late for your alert(bValid)
thinking
Hi Steven,
Thank you for your reply but i'm not sure i understand what you mean?
By having async set to false the script does wait for the value to
come back from the server before executing the rest of the script (i
can tell it does this because all the alerts i run to test it, run in
the order
if thats the case try
function checkIfUsername(o)
{
var bool;
$.ajax({
type: "POST",
url: ""+CI_ROOT+"index.php/admin/check_if_username",
data: ({username: username.val()}),
async: false,
dataType: "json",
Hallo all.
I got e problem with this piece of code with ie6.
I'm trying to make an input text readonly with a predefined value and
I need to cancel the value only when some key is pressed on keyboard.
Her is the code
http://pastie.org/578280
The code do work on every browser except ie6 (on ie6
Thank you, that has worked. I tried exactly the same thing before
because i though that returning the boolean from within the $.ajax
method might not work. However instead of using "bool = true;" i was
using "var bool = true;". Have you any idea why using the prefix of
var would stop this worki
I'm not that good with javascript.
If the textboxt name is txtname, how do you incorporate it in the code
above???
Hello,
I use JS to change src of to load different images from remote
server in the same object.
if the image is available then everything works perfect, but when I
cannot download image the becomes blank (as expected).
My question is, can I check somehow if image is not loaded (ex. error
404
Hi,
Form is not getting validated on Pressing Enter Key only on IE8.
However its working fine on IE7/6, & Firefox.
I am showing this form on mouseover (So initially form display is none
& on onmouse over of a link form display property changed to block.)
Thanks,
Prabir
hi,
this is jquery table editor plugin,
http://dev.iceburg.net/jquery/tableEditor/demo.php
it is work in this version
/*
* jQuery 1.0.3 - New Wave Javascript
*
* Copyright (c) 2006 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
I need help with the Validation plugin. I have a form with a required
field. When the form is valid I want the form to submit and I also
want to disable the submit button. I have a function that does the
disabling, but I'm not sure how to call this function within the
"validate" method.
Here is
Hi,
So I'm trying to create a simple overly but I think i'm doing
something wrong with the ordering of my javascript or something, the
page is http://blackpaint.co.uk/BlackPaint09/offline/flash-background/index.html
here is the overlay by itself (working version)
http://blackpaint.co.uk/BlackPai
Hi there
I am a newbie to using jquery and have been exploring it developing a
new app. At the moment I have a number of AJAX calls to the server
which I have been queueing in an array and using a single $.ajax call
to handle all of them. However I know about the browser limitations of
two calls
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
section instead of inline?
Cheers,
Daz
$.ajax({
type: "POST",
url: "mywebpage.aspx?Arg="+args2,
contentType: "text",
data:"{}",
data
I Include my javascript in an includefile. Which is better way to
organize the jQuery code:
$(function(){
$(".myboxclass").corner("7px");
$("#myrandomdiv").corner("7px");
});
or
$(function(){
$(".myboxclass").corner("7px");
});
$(function(){
to get you started, you can use the each method, something like
$('#carousel ul li a').each(
function(){
//$(this) equals the current a element
var src = $(this).children("img");
//do other stuff here
}
);
On Aug 10, 2:24 am, svanhess
Try this:
$(document).ready(function() {
$("#myForm").validate({
submitHandler: function(form) {
$(form).find(":submit").attr("disabled", true).attr("value",
"Submitting...");
form.submit();
}
})
});
Jörn
On Mon, Aug 10, 2009 at 9:40 AM, Rich Sturim wrote:
> $(docume
I have developed a FF extension that loads a few JavaScript files
(one of which is jQuery) and attaches them to any given page being
viewed by the user.
The loading of the js files can ether happen during or after the web
page had been loaded into the browser.
Obviously, once the js files get load
"Am I missing something here"
Yes, you are assuming that the results will come back in the order
called, which totally is not the case the success function simply
says "when you return from this async call, run this", there is
nothing in the logic about "order"
There is an older plugin t
You should avoid using reserved words in your attributes, and also
avoid names/ids that are also available as properties of forms. IE
overwrites DOM methods/properties when you set the attribute:
http://www.jibbering.com/faq/faq_notes/form_access.html#faComMis
http://meyerweb.com/eric/thoughts/20
What I really wanted to do is use the jQuery validator and in the
function set a validation that numbers are not allowed in a text
input.
For example I have this code:
$(document).ready(function() {
// validate signup form on keyup and submit
var validator = $("#signupform").valid
Ok I found the problem.
The problem is that i want to bind the event on the Delete button
keypress.
But in ie the Delete button does not fire any keyCode.
Any idea/workaround?
Kind regards
Massimo
On Aug 10, 12:54 pm, "m.ugues" wrote:
> Hallo all.
>
> I got e problem with this piece of code w
I see your point, it's completely inconsistent. It's a wiki, anyone
can fix that. How about this?
jQuery.ajax()
Start an HTTP request with custom parameters
.load()
Load HTML from an URL and insert into the selected element(s)
jQuery.get()
Load data using an HTTP GET request
jQuery.getJSON()
Load
Maybe this plugins will help you: http://code.google.com/p/js-hotkeys/
On Mon, Aug 10, 2009 at 10:36, Mazi wrote:
>
> Ok I found the problem.
> The problem is that i want to bind the event on the Delete button
> keypress.
> But in ie the Delete button does not fire any keyCode.
>
> Any idea/work
According to the API, you can have as many $(function(){}); in a page
as you'd like. http://docs.jquery.com/Events/ready
It just depends on the needs of your project. If it's imperative that $
("#myrandomdiv").corner("7px") is applied after $(".myboxclass").corner
("7px"); completes, then leave t
I have this code:
$(document).ready(function() {
// validate signup form on keyup and submit
var validator = $("#signupform").validate({
rules: {
firstname: "required",
lastname: "required",
use
Ah I was going about it a bit wrong. I've taken out the ajaxSubmit of
the click function and changed it to ajaxForm. The click function just
adds the hidden fields now.
Nick
On Aug 6, 7:50 pm, Mike Alsup wrote:
> > My buttons are type "submit" and each have values. I believe it could
> > be bec
Hello all,
I am using the tabs with a fade in/out effect for the "panels", it
works nice.
$(function() {
$("#tabs").tabs({
collapsible: true,fx: { opacity: 'toggle'}, selected: -1
});
});
What I would like to do is a type
http://code.google.com/p/jquery-largephotobox/
Note: I have also posted this on jqueryhelp.com but I havent resolved
this issue.
http://www.jqueryhelp.com/viewtopic.php?p=9713
I have just started a new job and am building my first website for
them. Im using Jquery to try and impress them but after trying and
testing the site in Safari, I am
2009/8/10 Shawn :
>
> ALL the functions (load, get, post, etc) are wrappers for the $.ajax()
> function. I only use $.ajax() now and tweak it to meet my needs... Makes
> for less confusion.
>
> Ajax by default will only load files that are in the same domain as the
> calling page. This is a brow
I have an edit-in-place plugin I've created for my employer. We *need*
to use iso-8859-1*
I understand we can set the *response* to be in iso-8859-1 in ajax,
but I also need the request to be, so that it's posted properly to our
database.
So, I'm posting with jsonp, and then getting the updated
can you post a test page with the code you posted above?
On Aug 10, 9:00 am, maffo wrote:
> Note: I have also posted this on jqueryhelp.com but I havent resolved
> this issue.
>
> http://www.jqueryhelp.com/viewtopic.php?p=9713
>
> I have just started a new job and am building my first website f
Excellent, thanks!
On 10 Aug., 15:56, amuhlou wrote:
> According to the API, you can have as many $(function(){}); in a page
> as you'd like.http://docs.jquery.com/Events/ready
>
> It just depends on the needs of your project. If it's imperative that $
> ("#myrandomdiv").corner("7px") is appl
Well, we've finally entered the open beta phase of Outer Empires
(http://www.outer-empires.com) which is a game that is built using a
lot of Jquery... :)
If you fancy having a go, head on over to the site to get started (the
main news item will give you all the information you need) - it'll
show
p.s. Sorry if I put this in the wrong place!! I didn't know where
else to post it...!
Hi there,
I'm nearly done with this client site, and it works well in all the
browsers I've checked, but I'd really like to finetune the performance
in IE.
http://maximizeutility.com/what/
I know that the video embedding doesn't validate, but it's the best
solution I've found that allows the vi
Hello,
When a user clicks a button I dynamically load large CSS and JS files.
I handle it in this way:
$("#say_hello").click(function() {
$("body").prepend('');
$.getScript("js/mail.js");
$("#say_hello_box").dialog("open");
});
It works great, but the problem is that som
You could dialog box in the callback of the click funciton...
$("#say_hello").click(
>
> function() {
>$("body").prepend(' id="example" href="css/jquery-ui.min.css" />');
>$.getScript("js/mail.js");
>$("#say_hello_box").dialog("open");
> });
>
On Mon, Aug 10, 2009 at 12:5
I'm having this issue with IE8 as well and my implementation of
Superfish menu. Anyone know of a fix?
-Roman
Hi everybody,
Is there any project about a website using pure jQuery for rendering
the pages ?
Thanks,
Cyril
Unfortunately the callback on click() never occurs:
$("#say_hello").click(function() {
$("body").prepend('')
$.getScript("js/mail.js");
}, function() {
alert("done");
});
As a hack, I can attach the event to the getScript() callback, since
it takes roughly the same time
try setTimeOut
On Mon, Aug 10, 2009 at 1:28 PM, ebakunin wrote:
>
> Unfortunately the callback on click() never occurs:
>
> $("#say_hello").click(function() {
>$("body").prepend('')
>$.getScript("js/mail.js");
> }, function() {
>alert("done");
> });
>
>
> As a hack, I ca
> Is there any project about a website using pure jQuery for rendering
> the pages ?
When you say pure jquery, what exactly do you mean? Outer Empires
uses Jquery for a LOT of the positioning, animation, etc when in game
(http://www.outer-empires.com) - the front page uses a little as well
now
Here is a solution I came up with, but there is still some repeated
code. Does anyone have any suggestions I could try out to 'DRY' up my
code?
jQuery.fn.swapFade = function() {
if (this.is(':hidden')) {
this.fadeIn('slow');
} else {
this.fa
This might have been resolved, but I can't find a solution with my
search. I'm trying to add a class with the text of the option. Simple
to do the selected option, but not all of them it seems.
I want to change:
Text 1
Text 2
Text 3
to:
Text 1
Text 2
Text 3
I have tried $('#selectList :
You can achieve this with a loop using the each method:
$('select#custom1 option').each(function(){
var theText = $(this).html();
$(this).addClass(theText);
});
However, with your current HTML, the class names will have spaces in
them, which isn't valid.
I have a listing of records on a page and an "Edit" button for each
record. I want to write some jquery that fires when the button is
clicked to go to the edit page for the record whose button I clicked.
Here is what I have. Feel free to tel lme to do it completely
differently if there is an easi
this.id
On Mon, Aug 10, 2009 at 11:48 AM, Erich93063 wrote:
>
> I have a listing of records on a page and an "Edit" button for each
> record. I want to write some jquery that fires when the button is
> clicked to go to the edit page for the record whose button I clicked.
>
> Here is what I have.
WOW I thought I tried that. That was my first instinct. I must have
had an error somewhere else. That worked. THANKS!
On Aug 10, 11:50 am, Charlie Griefer
wrote:
> this.id
>
>
>
> On Mon, Aug 10, 2009 at 11:48 AM, Erich93063 wrote:
>
> > I have a listing of records on a page and an "Edit" butto
Hi,
I have 3 problems I need to solve:
1. Validate groups of input fields. I see in the example of tabs, you
can do as follows:
// validate the other two selects when one changes to update the
whole group
var birthdaySelects = $("#birthdateGroup select").click(function() {
jQuery.validator.addMethod("notNumber", function(value, element, param) {
var reg = /[0-9]/;
if(reg.test(value)){
return false;
}else{
return true;
try this:
$("#custom1 option").each(function(){
var class = $(this).html();
addClass(class);
});
Eduardo Pinzon
Web Developer
2009/8/10 Benn
>
> This might have been resolved, but I can't find a solution with my
> search. I'm trying to add a class with the text of the option. Simple
or
$(function() {
$('#myGroup input:button').click(function(e) {
self.location = 'foo.cfm?id=' + $(this).attr("id");
});
});
2009/8/10 Erich93063
>
> WOW I thought I tried that. That was my first instinct. I must have
> had
If the type is POST you could set arguments by 'data', or set the type to
GET to pass the paraments in querystring
...
type: "GET",
url: "mywebpage.aspx?Arg="+args2,
...
OR
...
type: "POST",
url: "mywebpage.aspx,
data:{Arg:"args2"}
...
Eduardo Pinzon
Web Developer
2009/8/10 yi
>
> $.ajax({
>
try create this method
jQuery.validator.addMethod("notNumber", function(value, element, param) {
var reg = /[0-9]/;
if(reg.test(value)){
return false;
}else{
return true
Hi Mike,
I just found out that exactly this behavior (changing the display from
static to relative) messes up my page too, only in IE: a known issue
with the IE's "z-index stacks" (well described at http://mahzeh.org/?p=19).
Could you consider, if possible, reverting the blocking element's
displa
I found 2 problems when I use jQuery on IE8
1. When I use $('elementId').css('border-top-width'), it return
"medium", but other browsers return "0px"
2. After domready, my page, that's a widget, call ajax to load
content. On page, it have menu link to call ajax to load value.
I debug and found no
This may not be a bug in the jQuery List menu widget but if it saves
someone the time it took me to figure it out or the author has an idea
of how to handle this then it is worth it. If the items begin with a
comma - ", Paul" - it causes the columns in the result to not be
created in IE 7 and the
The former is better
On 8/10/09, Jesper F wrote:
>
> I Include my javascript in an includefile. Which is better way to
> organize the jQuery code:
>
> $(function(){
> $(".myboxclass").corner("7px");
> $("#myrandomdiv").corner("7px");
> });
>
>
> or
>
>
> $(function(){
Hi there,
I am having a similar issue, but the functionality I want to achieve
is a bit simpler. Right now I want to apply a link of my choosing to
each slide (in the HTML of the slide), but t this breaks the alt
information pulled from the the pager and displays an "undefined"
error on the page.
I installed the Superfish Module and all appears to be working
properly, My question is The Original Horizontal Nav is still showing
up? How do I Disable?
Also, The links with drop down's are gray and the links with no
dropdown are red?
Thanks,
Owen
Hi,
I'm experiencing a large amount of flickering in a image i move with
animate(). Looking at jQuery's source code, i think it has something
to do with the setInterval it uses to calculate the animation; when
binding the animation to 'mousemove' its runs smoothly.
Any ideas on how to improve th
Aye, but I've been reprimanded (on this list) for suggesting that (and
incurring the 'overhead' of a jQuery object) when 'this' works just fine :)
On Mon, Aug 10, 2009 at 11:56 AM, Eduardo Pinzon wrote:
> or
>
>$(function() {
>
>$('#myGroup input:button').click(function(e
Hi Paul,
Thanks for this info, I'll add it to my test cases and thanks for
letting the community know.
I was actually working on a new version of the plugin yesterday, which
adds one new feature: an onClick option that you can pass a function to
for handling clicks in the dropdown menu. If
Hello:
I'm trying to know if an input has focus. Is that possible using
jquery?
samething like this:
$('input#1').has_focus()
Forgot to mention I am using Joomla 1.5
On Aug 10, 10:04 am, FlowSnowboards wrote:
> I installed the Superfish Module and all appears to be working
> properly, My question is The Original Horizontal Nav is still showing
> up? How do I Disable?
> Also, The links with drop down's are gray and the
Would e.target.id also work in this case?
Thanks,
Anoop
On Mon, Aug 10, 2009 at 3:00 PM, Charlie Griefer
wrote:
> Aye, but I've been reprimanded (on this list) for suggesting that (and
> incurring the 'overhead' of a jQuery object) when 'this' works just fine :)
>
>
> On Mon, Aug 10, 2009 at 11
Hi,
For the sake of learning, does anyone know where I could nab a copy of
the datepicker CSS that does not have any extra UI css? Basically, I
just want to style the datepicker sans extraneous UI css. :)
The "ui.datepicker.css" gets me pretty far, but I appear to be missing
some styles. Should
sorry, tanks for tip
2009/8/10 Charlie Griefer
> Aye, but I've been reprimanded (on this list) for suggesting that (and
> incurring the 'overhead' of a jQuery object) when 'this' works just fine :)
>
>
> On Mon, Aug 10, 2009 at 11:56 AM, Eduardo Pinzon wrote:
>
>> or
>>
>>$(function() {
You can add a class to your field when it has focus and then check for the
class:
$(":input")
// add focus/blur events
.focus(function (){
$(this).addClass("has-focus");
})
.blur(function (){
$(this).removeClass("has-focus");
});
Now you can just do $("input#1").is(".has-focus") to check if it has
How are you setting the border in CSS ?
If you set it explicitly, it should work cross-browser
L
Gaiz wrote:
I found 2 problems when I use jQuery on IE8
1. When I use $('elementId').css('border-top-width'), it return
"medium", but other browsers return "0px"
2. After domready, my page, that'
I found the issue I wasnt using the errorPlacement option. I
added this.
errorPlacement: function(error, element) {
error.appendTo( element.parent() );
},
On Aug 10, 4:17 pm, Miket3 wrote:
> This thing has kicked my butt all week long
On 10 ago, 16:49, "Dan G. Switzer, II"
wrote:
> You can add a class to your field when it has focus and then check for the
> class:
> $(":input")
> // add focus/blur events
> .focus(function (){
> $(this).addClass("has-focus");})
>
> .blur(function (){
> $(this).removeClass("has-focus");
>
> })
This thing has kicked my butt all week long.
Yesterday, I actually got it to work.(almost). Since I am new to
this plugin, I am using FRANKENSTEIN code built from examples and
samples. here is my code:
success: function(label) {
var valid_img = '';
Hi,
Can you post an example of your animation code or link to a demo page.
Paul
On Aug 10, 4:39 pm, Tom Cool wrote:
> Hi,
>
> I'm experiencing a large amount of flickering in a image i move with
> animate(). Looking at jQuery's source code, i think it has something
> to do with the setInterval
this worked great! thank you muchly!
On Aug 10, 11:19 am, Eduardo Pinzon wrote:
> try this:
> $("#custom1 option").each(function(){
> var class = $(this).html();
> addClass(class);
>
> });
>
> Eduardo Pinzon
> Web Developer
>
> 2009/8/10 Benn
>
>
>
> > This might have been resolved,
On Aug 10, 7:19 pm, Cyril wrote:
> Is there any project about a website using pure jQuery for rendering
> the pages ?
It's funny you mention that, because i'm working on exactly that right
now: an application framework for writing apps in "pure JS", using
HTML only to get the JS and CSS loaded,
> http://negativespace.ca/clients/mirrorbuilder/
>
>
>
> Works fine in Safari and Firefox so far, but for whatever reason, both
> of those controllers will not show up in IE6 or IE7. I am a little bit
> stumped.
Just looked in IE7 - looks good to me. Did you fix it?
You can still use the same technique but just not use jQuery to do it.
On Aug 10, 10:09 am, MartinBorthiry wrote:
> On 10 ago, 16:49, "Dan G. Switzer, II"
> wrote:
>
> > You can add a class to your field when it has focus and then check for the
> > class:
> > $(":input")
> > // add focus/blur e
On Aug 10, 9:58 pm, Joey Derrico wrote:
> I am a novice at AJAX and JSON (Ok, I am a novice at JavaScript.), and I am
> brand new to jQuery. I wanted to use JSON in a project I am working on and I
> read various tutorials on using JSON with jQuery however none of them
> answered some of my questi
Hi !
I use the plugin "live query", i have checked many times my code but
it dont works,
i want to use jquery after an Ajax request.
Here is my code :
"
$('#refresh_inventaire').livequery('click',function(){ajax_storage
();});
"
When I click on the refresh link, it does refresh (using "ajax_sto
I am a novice at AJAX and JSON (Ok, I am a novice at JavaScript.), and I am
brand new to jQuery. I wanted to use JSON in a project I am working on and I
read various tutorials on using JSON with jQuery however none of them
answered some of my questions. The biggest one is, does jQuery support JSON
On Aug 10, 6:26 pm, jen wrote:
> Do you have any idea how to have the hidden video viewers hidden upon
> page load in IE? It's performing on Mac Safari & FF, and Windows FF,
> but in Windows IE it's a lot slower to hide the info.
You could try setting an explicit visibility on the element:
...
> Could you consider, if possible, reverting the blocking element's
> display attribute back to static after unblocking?
The plugin already does that.
Please show the rest of your code.
Jörn
On Mon, Aug 10, 2009 at 11:49 PM, Miket3 wrote:
>
> Here is my handler:
>
> submitHandler: function(form) {
> alert('I CANT GET THIS TO TRIGGER');
> },
>
>
> Here is my button:
>
>
>
> How do i trigger a validate when the submit button is clicked?
> > From: Joey Derrico
> >
> > I am a novice at AJAX and JSON (Ok, I am a novice at
> > JavaScript.), and
> > I am brand new to jQuery. I wanted to use JSON in a project I am
> > working on and I read various tutorials on using JSON with jQuery
> > however none of them answered some of my ques
Here is my handler:
submitHandler: function(form) {
alert('I CANT GET THIS TO TRIGGER');
},
Here is my button:
How do i trigger a validate when the submit button is clicked?
All of my validations work while I am working with the form but the
button does zilch.
$.ajax({
type: "POST",
url: "mywebpage.aspx?
Arg="+args2,
contentType: "text",
data:"{}",
dat
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
Here it is minus the submit handler
var v = $("#myform").validate({
rules: {
username: {required: true,
minlength: 4,
remote: {url:"lookup.php",
type : "post",
data: {table:"members",
DO NOT include hidden fields in the plugin data. I had 3 hidden
fields that weren't required but they were phoneUS.
That must be a no no. I havent thought about the logic behind...
but I am moving on to the next problem.
and it may have been that i had no messages setup for them. only
rules.
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"
Hi Jules:
thank you for your help!!
if I use this:
type: "POST",
url: "mywebpage.aspx,
data:{Arg:"args2"}
Do you know how can i get value of arg from sever side(code behind)? I
use asp.net, but i dont know how to fatch data when data put inside
{}, " data:{Arg:"args2"} "
Can i still use "Request
1 - 100 of 121 matches
Mail list logo