you are also using $.fn.ready(function(){
});
this is the most direct way to use it
Could you file a ticket for this? http://dev.jquery.com/newticket
(requires registration)
Thanks!
Jörn
On Mon, Oct 20, 2008 at 8:49 PM, lightglitch [EMAIL PROTECTED] wrote:
I have made a patch for my app to the rules function to support custom
messages:
This is the new function, would be
I don't have time to rewrite your whole example, but I can offer a few tips
that might help. Selecting by class alone can be pretty slow. Basically
every single tag has to be checked for the class every time you do a
selection by class. It would help to at least give the HTML tag that the
class is
Done.
http://dev.jquery.com/ticket/3503
On Oct 21, 9:53 am, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
Could you file a ticket for this?http://dev.jquery.com/newticket
(requires registration)
Thanks!
Jörn
On Mon, Oct 20, 2008 at 8:49 PM, lightglitch [EMAIL PROTECTED] wrote:
I have made
In an attempt to think through the logic of the goal, here is more
written out.
Also, I have a much greater understanding of css than jquery at this
time.
A pass at writing out the logic:
Determine the height of div “container” after the content is loaded.
• If the height of “container” is
Hi Dom,
Simply alter the line in the setTimeout function to this:
$('ul.sf-menu li.current ul').fadeOut('slow');
Note that I have altered both the method and the selector here.
Joel Birch.
I'm working on cookie persistence: When accordion is changed, it
stores the active panel in a cookie, and restores that state on page
load. Would that solve your problem?
Jörn
On Tue, Oct 21, 2008 at 12:54 PM, evo [EMAIL PROTECTED] wrote:
Hi,
I've ran into a problem using the accordion from
I'm working on a highly asynchronous and compartmentalized component
system where components each manage their own list of assets including
js and css files.
I've recently started using jQuery to implement popup dialogs that use
an Ajax callback to populate the dialog with one of my components.
Hi folks,
I'm using the following for an accordion style menu
div class=accordion
h3Latest news/h3
pLorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi
malesuada, ante at feugiat tincidunt, enim massa gravida metus,
commodo lacinia massa diam vel eros. Proin eget
Hello,
Here's what I've made. I have a lot of divs on different pages which
you can Digg (it's called hit). When I click on hit, I've made a code
that send Ajax data to a second page which record everything needed in
the database. That's working easily. But then, I need to add something
to that
what is difference between $(document).height() and $
(window).height() ?
I'm trying to get the index of a div marked as selected, it's all a
bit complicated because I have two levels of selected divs.
My mark up looks like this:
div id=container
div id=kid1 class=kid selected
div id=k1w1
Hi, I have a web app that is hosted within a .hta wrapper (for some
security uses including hosting an ActiveX control) therefore uses ie
as its engine.
The app rarely, if ever leaves the containing page and all interaction
with the server is done using ajax and loading information into
various
I'm using the Accordion #1 example found on:
http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/
Rather than stick with p tags in the accordion, I want to have a form
in one of them.
I added $(.accordion form:not(:first)).hide();
in the hope it would hide the
First, I'm sorry I have no answers, but I want you to know you are not
alone with this issue. I also need users to be able to select
multiple rows at once, using a modifier key like shift. Sometimes
they will select 20 rows at a time so clicking each one individually
would be a usability
Hi, I would like to know how it is possibile to call a php function
inside an onclick=function (), I try to explain me better
I have 2 php functions :
1. add_friend($me,$friend) and
2. remove_friend($me, $firend)
I would like to have 2 links in this way:
a href=# id=add-friend
Bump. Sorry, I just really need help ...
On Oct 20, 3:57 pm, Ben [EMAIL PROTECTED] wrote:
Hi,
I'm new to jquery and am having a couple issues on a site I've
designed. I am using 2 jquery techniques: dd accordian and a animated
image load i sorta hacked together. Both have slight glitches
I reckon that this is the same bug as I reported here (see the
comments from 21.10.2008). navigation using .hover() does not
disappear in FF if the mouse leaves the navigation over a element such
input=text.
On Oct 20, 11:42 pm, Mike Alsup [EMAIL PROTECTED] wrote:
I was reading the jQuery help docs (in the Ajax Events section), and I
came across this statement:
you can never have both an error and a success callback with a
request
Does anyone know why you can't do this? I can think of a
It seems like I've got somewhere - though I am still confused.
div id=container
div id=kid1 class=kid select
div id=k1w1 class=week/div
div id=k1w2 class=week selected/div
Hi,
I've ran into a problem using the accordion from
http://bassistance.de/jquery-plugins/jquery-plugin-accordion/
Currently to keep the accordion open while navigating a site i add p=1
(or whatever number it may need) to the url, which works, but as soon
as I need to pass other variables
Hi:
I made a program for create a PDF of the jQuery and jQueryUI from the
xml. There's also the source code of the program (made in VS2005/C#).
I hope someone find the docs in PDF usefull as me :)
You can download from:
Docs in pdf:
Hai,
I am using Jquery for checking textboxes is entered or
not.If the text entered is correct then i want to show a message
success using jquery.How is it possible.
I will attach the code below:
table class=style8 id=myTable
Hi Jörn,
I was wondering if you had anything in a workable state for me to use?
Thanks,
Liam
evo wrote:
This sounds like something which could definitely work.
Thanks Jörn
On Oct 21, 12:09 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
I'm working on cookie persistence: When accordion is
var accordion = $(#accordion);
var index = $.cookie(accordion);
var active;
if (index !== null) {
active = accordion.find(h3:eq( + index + ));
} else {
active = 0
}
accordion.accordion({
header: h3,
active: active,
change: function(event, ui) {
This sounds like something which could definitely work.
Thanks Jörn
On Oct 21, 12:09 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
I'm working on cookie persistence: When accordion is changed, it
stores the active panel in a cookie, and restores that state on page
load. Would that solve your
Hi Jörn,
I was wondering how this sets and uses the cookie.
I also assume I can still use a class rather then a html tag to find
the header so h3 could be come .head ?
thanks again
On Oct 21, 1:27 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
var accordion = $(#accordion);
var index =
Thx a lot!
So simple and power full with jquery. Damned... :o)
Dom
On Oct 21, 12:11 pm, Joel Birch [EMAIL PROTECTED] wrote:
Hi Dom,
Simply alter the line in the setTimeout function to this:
$('ul.sf-menu li.current ul').fadeOut('slow');
Note that I have altered both the method and the
Yes, just modify the code I provided accordingly. A solution
integrated into the plugin will take some time.
Jörn
On Tue, Oct 21, 2008 at 2:31 PM, evo [EMAIL PROTECTED] wrote:
Hi Jörn,
I was wondering how this sets and uses the cookie.
I also assume I can still use a class rather then a
Hello, I an quite new to jquery and hope someone can help with my problem. I
am trying to load dynamic content in to a div(myobj)... the code i have so
far is more or less as follows. it creates a box with 2 links, that it gets
from 'name_ctg'. the links, are category names and when clicked
I've Problem with it, when I do Ajax Call and and I filter the links
in the New Page the History will not Include the Previous Links .
consider this is the Page :
!---Page A ---
div
a href='#1' id='1'/a
a href='#2' id='2'/a
a
script type=text/javascript
$(document).ready(function(){
$(#pac).click(function(){
$(#pac).animate({marginTop: 17px, paddingBottom: 17px,
borderBottom: 2px solid white}, 2500 );
$.post(rpc.php, {u:genia}, function(data){
if(data.length
Is there a way to get the 'Modal Dialog' feature of this plugin to
fade in? It already fade outs by default when the dialog is canceled.
-Thx
Hi All,
I'm trying to manually change the value of a select menu to a certain
option by referencing it's value.
I've got the three instances I've tried (below) which aren't changing
the select menu option correctly, in which am having trouble getting
the correct syntax as to how to SET the
Hiya guys,
I've put together a basic handler for clicking on a field. It simply
empties the field for you when selected, and if you don't enter
anything it puts the default text back in:
$(#field_154038).focus(function () {
if ( $(this).val() == Please enter your postcode ) {
hi
i'm giving a go at codeIgniter using jquery for the js side.
So i got a form which i validate with the validate plugin but in CI
when i submit the form the js starts a loop and i must shut down the
browser.
I read somewhere that it could be because the validate plugin use the
GET method by
A testpage would help.
Does CI use any javascript to handle the form submit? Its possible
that CI submits the form via JavaScript, triggering the validation
again. Not very likely though.
Jörn
On Tue, Oct 21, 2008 at 5:21 PM, hcvitto [EMAIL PROTECTED] wrote:
hi
i'm giving a go at codeIgniter
You should wrap all your HTML for a single 'hit' inside a tag so you
can refer to it easily, like:
div class=hit id=id_article
a href=#Hit/a
span class=hits484/span
/div
Then your script could look like this (you can assign click handlers
to multiple elements at the same time):
Try:
$(select[id='select_9']).val('23');
http://docs.jquery.com/Attributes/val#val
Mauricio
-Mensagem Original-
De: lt [EMAIL PROTECTED]
Para: jQuery (English) jquery-en@googlegroups.com
Cc: [EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2008 11:48
Assunto: [jQuery]
Hello Joel,
Thanks for the response! I managed to figure it out... you were right
i had been applying the style to the anchor elements. It works exactly
perfect now! The only thing I would like to do, and I am not sure how
to implement it at this time: add a different background image for the
I'm new to jQuery and JS
I want to change a snippet of code based on which link the user clicked.
So if the user clicked this link on the page:
# click me
I would like to hide a particular snippet of code inside a script tag. But
I'm not really sure how to write the JS/jQuery
Example:
Hi,
I'm working on this drag drop script:
http://www.lesperimento.netsons.org/various/jquery-mousemove/
It works on Firefox and Opera but not at all on IE and Safari.
The events seemed not to start at all...
Any idea how to solve it?
I tried to put some alert as well but they don't start,
index() returns -1 when the element is not found. It fails because the
object array passed contains elements that are not children of your
first object.
In your case you need to store a reference to the parent element and
pass only it's children to the index() function:
var kid = $('#container
How many event handlers do you have registered? IE starts to slow down
at some point.
It seems that the obvious performance improvements have been taken
care of (id selectors, tag names for class selectors), anything else
would be implementation specific. Are you using livequery?
On Oct 21,
Thanks for sharing.
Really useful stuff.
Brackets are an invalid character in attributes, for XHTML served as
text/html, which I guess accounts for most of jQuery usage anyway.
Looks like someone already updated the docs.
- ricardo
On Oct 20, 11:36 pm, Ariel Flesler [EMAIL PROTECTED] wrote:
We got a ticket about how to select
What I did for having php executed at onClick event is using Ajax.
You must store your functions into an external php file.
Then use the jquery ajax methods to load, execute and receive back the
result of your php code without leaving the caller page.
Process will be invisible to users (the
http://docs.jquery.com/Ajax/load
Just use the file name as an argument. You can pass data either as a
string (name=Jecasur=Tatu) or as an object, and a callback function
to be executed when it's done:
$(#myobj).load(Page2.php,{id:1325,name:'something'},
function(data) { alert('I've just loaded:
Yeah, that might work. I'm experimenting with making it suitable for
my use, where I would need 2 labels, I guess. But, that would let me
wrap text and do whatever I want without putting any text in the
actual field. Thanks for the find.
-Wayne
On Oct 20, 10:55 am, Dan Switzer [EMAIL PROTECTED]
Around line 199 in the js file is where the block layers show...
play around with those options and you should be able to get the
effect you are after
although i will note that your idea doesn't make much sense, as you'll
be giving your end user that much time to be able to click something
h Jorn
thank for the quick reply..it was my mistake :(..
but, if i'm not annoying, i got another issue which i solved with a
twik but was wonder if there's a better solution..
i got 5 couples of radio button:
input name=name1 type=radio value=si class=className /
input name=name1 type=radio
Hello,
I spent about an hour trying to figure out why a form I was loading to
a web page was not updating.
In my web page I have a navigation button tool, when I click I want to
load a form into the #display div.
$(document).ready(function(){
.. a bunch of code.
$('#menu
Here's a something based on links class name, the php code is in your
hand ;)
[HTML PAGE]
[JQUERY CODE]
//add an action to each A with class=friends,
//the action is based on the id of each A and passed as variable (see
DATA: )
$(a.friends).each (
function () {
$( this ).bind (
Shouldn't the effect still block immediately though the opacity is being
modified as an animation?
On Tue, Oct 21, 2008 at 12:22 PM, MorningZ [EMAIL PROTECTED] wrote:
Around line 199 in the js file is where the block layers show...
play around with those options and you should be able to get
I obviously don't know your scale, specifically, but the site I've put
together I don't consider to be all that deep, however, I see some
apparent slowness with the AJAX actions having to wait for responses
from my server scripts as well as short animations that seem to stack
on each other
the problem is quite simple i think, all your links have the same id
(generate2)
And the jquery function is attached to a link with this id (generate2)
So only 1 link will be responding to the function.
You need to use each() to attach an event to each links. Like
$(#generate2).each (
Can you provide a simple testpage where I can see that code running?
Jörn
On Tue, Oct 21, 2008 at 6:13 PM, hcvitto [EMAIL PROTECTED] wrote:
h Jorn
thank for the quick reply..it was my mistake :(..
but, if i'm not annoying, i got another issue which i solved with a
twik but was wonder if
(bump)
Any takers?
On Oct 20, 7:47 pm, tallvanilla [EMAIL PROTECTED] wrote:
Thanks for the reply, Josh... but that isn't the problem. To
demonstrate, I updated my demo according to your suggestion:
http://74.205.76.81/blockuitest/
Even if that WAS the solution, it would force people to
I would love to have this feature. It would save me a bunch of extra
lines of code. Any idea if and when this might be implemented into
the plugin?
On Oct 21, 5:55 am, lightglitch [EMAIL PROTECTED] wrote:
Done.
http://dev.jquery.com/ticket/3503
On Oct 21, 9:53 am, Jörn Zaefferer [EMAIL
Is this why ThickBox sets all paddings and margins to 0? I agree, it's
annoying.
I switched to John's Greybox Redux (http://jquery.com/blog/2006/02/10/
greybox-redux/) for my modal, and I don't see problems on IE6. It also
was more semantically correct than Thickbox's iFrame implementation of
Good question. No difference. Both should give you the exact same
result every time.
JR
On Oct 21, 1:38 am, jey jey [EMAIL PROTECTED] wrote:
what is difference between $(document).height() and $
(window).height() ?
You might want to give jqModal a shot. BlockUI is better for blocking
specific parts of a document, during an ajax call or the like. jqModal is
more of a modal window solution that might be better suited to what you're
trying to do. There's also SimpleModal which I personally haven't used.
Are you making sure that the jquery core file is at the top of that
concatenated file? that's the only other thing I can think of that
would produce the error.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 20, 2008, at 4:26 PM, c.barr wrote:
Thanks for all the suggestions guys, but I've kind of narrowed my
preference down to blockUI for the job at hand. Believe me, I've tried
them all, and they all have their share of quirks. Does anyone have a
suggestion for fixing the blockUI bug? If not, do know how I can
contact it's author
Stever wrote on 10/21/2008 11:34 AM:
Apparently this file is saved in the cache, how do I make sure
everytime I click on the tool button I get the latest page?
Via the headers, have the page expire in the past and set the cache-control
headers to no-cache:
Expires: Thu, 11 Jun 1998
Done!
You can find the latest revision here:
http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/
Jörn
On Tue, Oct 21, 2008 at 7:08 PM, BobS [EMAIL PROTECTED] wrote:
I would love to have this feature. It would save me a bunch of extra
lines of code. Any idea if and when this might be
Actually, it seems that the document's height is the entire page's
height, while the window height is only the viewing height(ie: what
you see at that given time).
On Oct 21, 1:00 pm, tallvanilla [EMAIL PROTECTED] wrote:
Good question. No difference. Both should give you the exact same
result
Hey Jonatan,
This is EXTREMELY useful and I'm sure more think the same way, this solves
the problems most are having with the documentation page.
Thanks a bunch :-)!
On Tue, Oct 21, 2008 at 1:45 PM, Jonatan [EMAIL PROTECTED] wrote:
Hi:
I made a program for create a PDF of the jQuery and
In XHTML, the name attribute on input (and textarea and select)
elements is defined as CDATA not NMTOKEN thus, brackets are legal in
name attributes on input elements. It is NOT backwards compatible with
HTML, where the character restriction is [a-z][A-Z]-_ and .
Further note, the id attribute
Hey all,
I understand how hasClass() works, but I'm trying to figure out how to
use it to see if an element DOESN'T have a class. I want to check if
the class doesn't exist, and if not then I'll add it.
Do I use the older is() method?
Just looking for the best way. Thanks!
Further testing is welcome, I plan to release 1.5 on Friday.
Jörn
On Tue, Oct 21, 2008 at 8:16 PM, Jörn Zaefferer
[EMAIL PROTECTED] wrote:
Done!
You can find the latest revision here:
http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/
Jörn
On Tue, Oct 21, 2008 at 7:08 PM, BobS
In the application I am writing, I have a div box that needs to be
draggable. Inside the box is an iframe containing a google widget. For
some reason, as soon as I try the drag, the entire page refreshes and
only the google widget shows.
Has anyone else experienced this and if so, were you able
I'm a complete javascript newbie and I know it's not exactly wise to
jump into jquery as such, but I did so anyway because I needed
something done fairly quickly and in a simple manner. So, forgive me
if this is not the most efficient way to get this done.
Anyway, the idea behind the script is
Maybe it's a stupid question but I was wondering if there is a way to
generate a polygon with 4 points, so that the user can himself drag
each point to create it's own (mainly for selecting a portion of an
image). Is it possible with a specific jQuery plugin. I can't seem to
find anything after a
Update: Most of the callbacks have been implemented; Actionscript
(Flash) work seems to be done; yet i did all my work without
debugging. Tomorrow i have to add maybe 3 or 4 events / log messages
and then i can start building ;)
-- Gilles
On Oct 20, 7:52 pm, Gilles (Webunity) [EMAIL PROTECTED]
I tried what you said but it does not work... now both links go to the same
page when clicked...
RotinPain wrote:
the problem is quite simple i think, all your links have the same id
(generate2)
And the jquery function is attached to a link with this id (generate2)
So only 1 link
Right from the docs
http://docs.jquery.com/Attributes/hasClass#class
---
Returns true if the specified class is present on at least one of the
set of matched elements
---
So
Anyone?
On Oct 20, 12:32 pm, ovalsquare [EMAIL PROTECTED] wrote:
I am attempting to paginate a form, and validate for each page (page
navigation via accordion or simply .show()/.hide()). However, the only
sample I've seen of this appears to be the Help me Buy and Sell a
House demo
Okay, I managed to solve this with some help. Basically the problem
was in the treatment of dimensions to the body and html by IE.
Sticking the following in both fixed it:
height: 100%; overflow: auto; margin: 0;
Just passing it along in case anyone else ran into a similar problem.
On Oct 21,
Are you using Safari? That's just a temporary file extension it uses
until it finishes downloading. Just wait for it to finish.
On Oct 18, 4:27 pm, nadavten [EMAIL PROTECTED] wrote:
Im trying to download JQuery but its downloading a .download file ...
what should i do ?
No ideas on this?
On Oct 16, 2:53 pm, dcasey [EMAIL PROTECTED] wrote:
I can't figure out how to scroll ALL my panes to the top.
Here is the pertinent code:
// dynamically assign ids and jScrollPane, I would rather not assign
any IDs...
$('.scrollpane').each(function(n) {
Hi Shawn,
They're functionally equivalent. The only difference is that $
(function() {}); is shorter and $(document).ready(function() {}); is,
at least to me, more intuitive.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 21, 2008, at 12:56 AM,
I'm trying to do what should be a fairly simple AJAX call. However
it's not playing nicely.
Here is the code I have so far.
$(document).ready(function() {
$('loading').ajaxStart(function() {
$(this).show();
Like the topic says, any click, right or left, fires the animation for
the mcDropdown. It disappears right after. Has anyone encountered this
bug? Any fixes/workarounds?
Here's an article showing JQuery UI to make a draggable cart, an
enhanced product image display and an animated menu.
I hope to see JQuery become a staple of ecommerce websites (if it
isn't already).
Does any one has an Idea!!!?
On Oct 21, 5:46 pm, Pedram [EMAIL PROTECTED] wrote:
I've Problem with it, when I do Ajax Call and and I filter the links
in the New Page the History will not Include the Previous Links .
consider this is the Page :
!---Page A
That's great Jörn. It will make things much cleaner for my generated
validation JS. In case you're interested, I'm working on a framework
that will generate both client-side and server-side validations from a
simple xml file using ColdFusion. I've written about it at:
Hi,
Your HTML is not valid as you can't have a form inside a p tag.
As you have a mix of element types in your accordian I suggest you use
an extra div as a wrapper and adjust the jQuery code to operate on
the div instead of the p.
Something like this:
div class=accordion
h3Latest news/h3
I'm trying to do what should be a fairly simple AJAX call. However
it's not playing nicely.
Here is the code I have so far.
$(document).ready(function() {
$('loading').ajaxStart(function() {
$(this).show();
hi Gilles,
i was about to take the same path: convert YUI uploader into jquery for the
new version of jquploader, because it's simply the best implementation i've
seen so far (kuddos to yahoo). i'll be very interested with what you come up
with.
There is one issue i still lack for a good answer,
Like the topic says, any click, right or left, fires the animation for
the mcDropdown. It disappears right after. Has anyone encountered this
bug? Any fixes/workarounds?
Are you seeing the problem on the example page?
http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm
What version are
I don't understand what the problem is. Could you put up a demo?
--Klaus
On 21 Okt., 22:35, Pedram [EMAIL PROTECTED] wrote:
Does any one has an Idea!!!?
On Oct 21, 5:46 pm, Pedram [EMAIL PROTECTED] wrote:
I've Problem with it, when I do Ajax Call and and I filter the links
in the New
Thanks for that - I had seen it but it is not immediately obvious how
that will be the solution.
It seems the menu elements are hardcoded whereas in the solution I
need the menu elements will vary/be filtered continually depending on
the initial search and then by subsequent selections.
Can
That's not jQuery's fault, check the headers as Bil said or use the
query string trick if you need to avoid cacheing.
If you use jQuery.ajax() you can also set cache: false as an option.
For testing purposes, if you access the loaded page directly the
browser will update the cache. IE7 is
That's kind of what I meant to say.
From my understanding, the CDATA rules apply if you are serving XHTML
as application/xhtml+xml. If you are serving as text/html it is
implied you are being backwards compatible, so you should go by the
HTML4 rules where only A-z,0-9,._- characters are allowed.
In this tut we will create a professional interface for your web
applications using the killer javascript library jQuery :)
I hope you can use it for your personal projects guys. Feedback is
welcome!
There is the jCrop plugin, though it's just a rectangle. For a polygon
you would need an image map or canvas element, a bit more complicated
and no ready-made solution.
http://deepliquid.com/content/Jcrop.html
- ricardo
On Oct 21, 2:32 pm, Sébastien Lachance [EMAIL PROTECTED]
wrote:
Maybe
Doh @ me, a rectangle *is* a polygon (and it would be stupid to crop
an image with any other shape). Sorry about that!
On Oct 21, 8:03 pm, ricardobeat [EMAIL PROTECTED] wrote:
There is the jCrop plugin, though it's just a rectangle. For a polygon
you would need an image map or canvas element,
Much appreciated! Works wonderfully.
I guess I don't quite understand the use of variables and commas
inside element declarations. So much to learn!
do you really have loading and page elements? Seems you're missing
some '#'s there.
Use Firebug on Firefox for debugging, you'd spot the problem in 10
seconds.
- ricardo
On Oct 21, 5:29 pm, scheda [EMAIL PROTECTED] wrote:
I'm trying to do what should be a fairly simple AJAX call. However
1 - 100 of 135 matches
Mail list logo