That's great, thanks Richard. Thanks for the explanation too, really helped
to show me where i was going wrong.
Brian
Richard D. Worth-2 wrote:
This should work:
$(div.togglecontainer div.togglebutton).click(function() {
$(this).siblings(div.toggletarget).slideToggle();
I mean
$().ajaxSend(function() {
});
Jörn
On Sun, Nov 16, 2008 at 1:24 AM, shapper [EMAIL PROTECTED] wrote:
Hi Jorn,
You mean using:
$.ajax({
beforeSend: function(){
}
});
And in before send get the value of the text box and add it to the
ajax validate request of the
Having a heck of a time figuring this out, I have made a few fields
(td'seditable, so when you click on them it puts in a form with a
text box and a button to submit, and a button to undo it.
Well when I undo it, everything looks fine but the data is trapped in
another set of td tags. Is their
I have this test page up: http://btk.name/misc/links.html
Basically, I am using Jquery and a Cycle plugin to allow the user to
paginate via links through content. Simple enough.
However, as you can see (at least in Firefox 3), the DOM generated
links (via the plugin) keep going in 1 line
I'm trying to implement my own tooltip plugin with an optional delayed
hiding on mouseout event. This wouldn't be a problem if the tooltip
wasn't displaying so frequently a need it to. I want to use it in a
chat room where messages are starting with users' nicks which are
links and on mouseover
Hi leap !
I want to pass arguments from link to jquery function , like
follow
$(#view).click(function(){
...
...logic to send the values using jquery ajax...
...
});
Any suggestion , ...
Regards,
Balavignesh
I've been a graphic designer for the past 25 years. Only programming
I know is HTML and a little CSS. I'm about to try my hand at learning
JavaScript and AJAX . . . . should I learn JavaScript first - and then
learn JQuery, or will I be okay just diving into JQuery?
Just to let you know - being
Hi I've this markup: http://dpaste.com/91124/
and this js (from init.js): http://dpaste.com/91126/
with firebug i get no errors but when I click on the a the div won't
scroll :(
can you help me?
That does not work. This is what I have:
function confSubmit(form) {
if (confirm(Are you sure you want to submit the form?)) {
$(#employmentForm).submit();
}else{
return false;
}
}//End of confSubmit function
The form validates and submits anyway. Notice in the title I indicate
that I am
I have this test page up:http://btk.name/misc/links.html
Basically, I am using Jquery and a Cycle plugin to allow the user to
paginate via links through content. Simple enough.
However, as you can see (at least in Firefox 3), the DOM generated
links (via the plugin) keep going in 1 line
Could you show your complete code, eg. provide a testpage?
Jörn
On Sun, Nov 16, 2008 at 3:21 PM, flycast [EMAIL PROTECTED] wrote:
That does not work. This is what I have:
function confSubmit(form) {
if (confirm(Are you sure you want to submit the form?)) {
$(#employmentForm).submit();
Hi friends,
I am capturing the button link click on the same
function , like follow...
code:-
$(a, #view).click(function(){
--
code for links (a)...
---
code for button (#view)
common for both link button
});
To do like the above , how can i
Hello,
From my personal experience, I learned basic javascript sometime last
year. Then about a month ago a friend showed me this cool thing he
found called jQuery. jQuery allowed me to do everything I had learned
about javascript with a simple .nameofthing such has .hide()
or .animate() which
Hi ncriptide, take a look at these links,
http://en.wikipedia.org/wiki/JavaScript
http://www.w3schools.com/js/default.asp
maybe useful
Diego
2008/11/16 ncriptide [EMAIL PROTECTED]
I've been a graphic designer for the past 25 years. Only programming
I know is HTML and a little CSS. I'm
Thanks Mike,
I found that out later last night while investigating. Since I
couldn't alter your code to actually add a space at the end where the
link is written out, I just went with display: inline-block; and that
seemed to fix the issue.
I will check it out in Safari, etc... and see if the
Is it possible to iterate over the array and create functions as
follows?
It did not seem to work for me.
var menu = ['home','news','sport','music'];
for(var i=0; imenu.length;i++) {
$('#'+menu[i]+'_header').click(function(){ alert(i);
alert(menu[i]+'_header clicked');
I do not want to post a page publicly. The code is very long.
In regards to my last post, I can't understand why adding a space at
the end of the link would't work. If I added any text at all, it
didn't take
var $a = (typeof opts.pagerAnchorBuilder == 'function')
? $(opts.pagerAnchorBuilder(i,el))
: $('a href=#'+(i+1)+'/a');
This
Hi,
we're running a recently launched website ( http://www.smashdown.net).
We're using AJAX requests (in JSON) to communicate with our servers.
A couple of customers complained about that some functionalities on
our website are not working. We've found out that some AJAX requests
does simply
Hi
I'd like to have a form that uses validate plugin, but uses submit
confirmation too.
ideally this would be a js confirm or a custom function, but that's a
minor issue.
My question is: is there a way to extend validate (or plug in) a
custom confirmation fuction?
or: is there a way of
Hello,
I am trying to use the Jquery BLOCKUI pluginbut with no success...
As per the examples on that page,I tried passing my custom
message,etcit doesn't work.
No matter what I try,it only displays the default Please Wait...
message :-(
What could possibly be the cause of this symptom??
I am trying to use the Jquery BLOCKUI pluginbut with no success...
As per the examples on that page,I tried passing my custom
message,etcit doesn't work.
No matter what I try,it only displays the default Please Wait...
message :-(
What version of the plugin are you using? What
Hi all,
Anyone knows how to create ROOT node for the tree, sth like below
ROOT --- I want to create this Node
- Home
- Campany
Thanks for reading and looking your all help :)
bowlkhin
Here is the JS code. I have removed a bunch of Validation rules to
shorten it up. The code at the bottom is the problem.
$(document).ready(function(){
$(#employmentForm).validate({
debug: false,
rules: {
emp_applicationDate: {
Here is the code. I have removed a bunch of Validation rules to make
it shorter. The problem code is at the bottom.
$(document).ready(function(){
$(#testForm).validate({
debug: false,
rules: {
emp_applicationDate: {
It looks I solved it. For those who could have same problem, the
solution was to store timer ids in an array instead of storing it in
one variable. on mouseout you need to push a new id into array and on
mouseover just check the array length. If there were any items, shift
them in a for loop and
Try this:
$(...).validate({
submitHandler: function(form) {
if (confirm(Really?) {
form.submit();
}
}
});
Jörn
On Sun, Nov 16, 2008 at 4:36 PM, Miguel Griffa [EMAIL PROTECTED] wrote:
Hi
I'd like to have a form that uses validate plugin, but uses submit
confirmation too.
Just posted to a different thread, but should work here, too:
$(...).validate({
submitHandler: function(form) {
if (confirm(Really?) {
form.submit();
}
}
});
Jörn
On Sun, Nov 16, 2008 at 5:33 PM, flycast [EMAIL PROTECTED] wrote:
Here is the code. I have removed a bunch of
The web site don't work (Safari e FF under MAC).
On Nov 12, 11:38 pm, Brice Burgess [EMAIL PROTECTED] wrote:
Ladies and Gentlemen,
I'm writing to inform you all of a new addition to the jQuery plugin
family... Please welcome jqRevolve!
jqRevolve is a carousel-like plugin for jQuery. It
Hi,
I've been developing this plugin:
http://sourceforge.net/projects/jqtreevial/
download the demo version and enjoy.
Dirceu Barquette
2008/11/16 Pham Anh Tuan [EMAIL PROTECTED]
Hi all,
Anyone knows how to create ROOT node for the tree, sth like below
ROOT --- I want to create this
I downloaded just today...the latest available on the site...V2
I tried copying and pasting the lines from the site after adding the
javascript reference on to my webpage..
Usage is very simple; to block user activity for the page:
$.blockUI();
Blocking with a custom message:
$.blockUI({
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
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, is there any example using validate for this?
To be
$(a, #view).click(function(){
if (this.id == view) {
//code for button
} else {
//code for links
}
//common
});
You can also use 3 distinct functions for the same effect:
$(a, #view)
.click(function(){
//common
}).filter('a').click(function(){
//links
It's easier to just add a class to all the headers, then use $
('.menuheaders').click(...);
On Nov 16, 12:43 am, bob [EMAIL PROTECTED] wrote:
Thanks ricardo,
Is it possible to do something like this?
It did not seem to work for me.
var menu = ['home','news','sport','music'];
for(var i=0;
see response at the original thread:
http://groups.google.com/group/jquery-en/browse_thread/thread/37906be6845780c2?hl=en
On Nov 16, 1:43 pm, bob [EMAIL PROTECTED] wrote:
Is it possible to iterate over the array and create functions as
follows?
It did not seem to work for me.
var menu =
There is no 'delay' or 'pause' in Javascript, you have to use a
timeout or interval. Maybe this will work (interval, vars passed with
a closure, if instead of while):
$(document).ready(function() {
var date_reg = $(input#date_requested).val();
var counter = -1;
slideTimer =
Starting off with a framework is never a good way to get to learn a
technology, even if you start with jQuery you'll still have to learn the
JavaScript syntax, built-in functions, and all the rest.. Moreover, there is
a basic you have to know before using jQuery because jQuery is not a
language
Hi.
I am new with jQuery, and i want to know if its possible to do the
follow.
var row = $(.flexigrid .bDiv #socios .trSelected:first);
$(row + td:first).css(color, red);
Or something like that.
I mean.
I have a row selected in jQuery. Now I want to go for each column, of
this row without
yes, thanks...this is exactly what i needed! your jeditable is great
On Nov 14, 2:24 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
That is exactly why I posted. I noticed that you had done a lot of
work on inputs. Unfortunately I could not figure out how to do it
myself from reading through
Hallo all: I got this piece of code:
$(#faq).click(function () {
var url = $.get(faq, { pagina: page });
alert(url);
});
On faq responds a Servlet tha set an attribute on the request
request.setAttribute(pageFAQ, pageFAQ);
After the get jqeury print me [object XmlHttpRequest I
But,no matter what I add,it shows only Please wait. It doesn't
display the text I add...
What should I do to make it work?
I think you need to post a link to what you have. Obviously the
plugin does work per the sample pages, so maybe it's just a typo on
your part or something.
I'm trying to attach a function to all selects that have the custom
goto-attribute. It works for the first one, but the behavior isn't
being attached to the second select. Any ideas how to fix it?
$(document).ready(function() {
$('select[goto]').each(function () {
$(this).change(function
On Nov 15, 2008, at 2:24 AM, Rodent of Unusual Size wrote:
http://github.com/tuupola/jquery_jeditable/tree/master/
jquery.jeditab...
Brilliant! Works a treat now.
Ok great :)
Thanks for the heads up!
You betcha. Who closes the tracker item?
i can close.
--
Mika Tuupola
This line is the likely culprit, because the css selector is not
specific to an individual select element:
var selected = $(select option:selected).val();
Try this instead, to constrain the selection within the current
context:
var selected = $(option:selected, this).val();
Or,
Try the core jQuery function: jQuery(expression, [context])
http://docs.jquery.com/Core/jQuery#expressioncontext
$('td:first', row).css('color', 'red');
Maurício
Hi.
I am new with jQuery, and i want to know if its possible to do the
follow.
var row = $(.flexigrid .bDiv #socios
If you want to concatenate strings in order to create selectors, don't
make them jQuery objects first. In other words, just do this:
var row = .flexigrid .bDiv #socios .trSelected:first;
$(row + td:first).css(color, red);
Also, as long as your ID's are unique, which they should be,
I would suggest dropping the add-/remove- class stuff entirely in
favor of simply switching out the background image. Try something like
this:
// Attach a click event to every input in the .nav section.
$('div.nav input').click(function(){
// Extract the specific floor plan from the
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 validate request?
Is this possible?
Thanks,
Miguel
On Nov 16,
Thanks!
I am having a hard time getting my form to validate now. Would I place
my rules here?
$(...).validate({
submitHandler: function(form) {
if (confirm(Really?)) {
rules...
messages...
etc...
form.submit();
}else{
//stuff to do if the form does not validate
Hi, i'm just starting in jquery and i need help on this code.
I just need to display a message (or image)before the content is
loaded and fade that content.
Here is the code, and you can see it in action on realferias.com and
click the OK button on the left.Thanks.
$(document).ready(function() {
Hey guys/gals,
For some reason, I only have the option to Reply to author on this
thread:
http://groups.google.com/group/jquery-en/browse_thread/thread/
484d6cd5fd2a64cd
So I am starting a new thread here...
For me, the technique Klaus proposed worked when I added
display:block:
.tabs
No worries! Glad you got it figured out and sorry I wasn't able to get back
to you sooner. :)
--
Brandon Aaron
On Sat, Nov 15, 2008 at 2:39 PM, n00bert [EMAIL PROTECTED] wrote:
Got it sorted. ie doesn't like the selector. Now using a different
method, but still with livequery. Sorry to have
$(...).validate({
rules: { ...},
messages: { ... },
submitHandler: function(form) {
if (confirm(Really?) {
form.submit();
}
},
otherStuff: ...,
etc...
});
On Sun, Nov 16, 2008 at 10:09 PM, flycast [EMAIL PROTECTED] wrote:
Thanks!
I am having a hard time getting my form to
Hello group,
I have a problem with the cycle plugin and internet explorer. When i have a
slide (div) with flash inside it it keeps playing even when it is not
visible (display:none);
Any ideas?
Thanks in advance
I've been trying to play around with this, my javascript knowledge is
very limit still (learning!).
I keep getting this error:
Error: useless setInterval call (missing quotes around argument?)
I changed the script after running it a bit, to try and fix the error,
still having problems:
I've gotten to be fairly intermediate at consuming json objects, such
as those I'm retrieving from web api's. However, I'm trying to push
the boundaries of what I understand about JSON objects once the client
has loaded them. I have been searching around google for the last
couple of hours for
Ah, sorry. I made a mistake, this should work:
$(document).ready(function() {
var date_reg = $(input#date_requested).val();
var counter = -1;
slideTimer = setInterval((function(date_reg,counter){
return function(){ //global var
if (counter = date_reg) {
That's not always right: in case you're going to reuse that main
selector a lot, it's better to make it a jQuery object so you don't
need to redo the first part of the query every time.
cheers,
- ricardo
On Nov 16, 6:27 pm, Jason Huck [EMAIL PROTECTED] wrote:
If you want to concatenate strings
Hi i want to know if this code can be converted to jquery. It's a very
good hoover pop up with effect code.
function initCloseButton(){
var blocks = document.getElementsByTagName(li);
for (var i=0; iblocks.length; i++){
if (blocks[i].className.indexOf(roll) !=
$.ajax({
async: true,
url: testingURL,
success: function () {
location.reload();
},
error: function (XMLHttpRequest, textStatus,
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
The documentation for the ajax error function has this note in the example:
// typically only one of textStatus or errorThrown
// will have info
( http://docs.jquery.com/Ajax/jQuery.ajax#toptions )
Perhaps check the textStatus as well as the errorThrown?
Karl Rudd
On Mon, Nov 17, 2008 at
Hi,
A little while back I wrote a post on writing unit testable jQuery
plugins:
http://www.onenaught.com/posts/85/jquery-tip-to-increase-plugin-flexibility-and-testability
I am finding more and more that jQuery code I write can often be
turned into plugins. Furthermore, those plugins can be
Let me see. I would try the following
var row = $(.flexigrid .bDiv #socios .trSelected:first);
1. $(row).find(td:first-child).css(color, red);
2. row.find(td:first-child).css(color, red);
3.
$(row).each(function(){
$(this).find(td:first-child).css('color', 'red');
});
4.
$.ajax({
async: true,
url: testingURL,
success: function () {
location.reload();
},
error: function (XMLHttpRequest,
errorThrown is for JavaScript errors (think try/catch). 40X responses
are not thrown, they are just errors returned from the server and
you can get details from the xhr (ie: xhr.statusText).
To elaborate slightly, the server could return an XML document with a
200 status code. But if the
On Nov 17, 8:57 am, Geuis [EMAIL PROTECTED] wrote:
I've gotten to be fairly intermediate at consuming json objects, such
as those I'm retrieving from web api's. However, I'm trying to push
the boundaries of what I understand about JSON objects once the client
has loaded them. I have been
Thanks for the tips. That helps a bunch.
On Nov 16, 6:27 pm, RobG [EMAIL PROTECTED] wrote:
On Nov 17, 8:57 am, Geuis [EMAIL PROTECTED] wrote:
I've gotten to be fairly intermediate at consuming json objects, such
as those I'm retrieving from web api's. However, I'm trying to push
the
Greetings,
I am using this plugin in my web application and I had a quick
question. Is there a way to trigger an ajax call if someone selects
something from the dropdown list? The ajax call would then fill in
some fields below related to what was just selected from the
autocomplete field.
Cannot be done something with each?
Again, it does not work for me.
var menu = ['home','news','sport','music'];
$.each(menu, function(index) {
$('#'+this+'_header').click(function(){
alert(this+'_header clicked');
});
});
71 matches
Mail list logo