derek allard wrote:
Hello. We are working within a CMS and we have a dynamic text header
that pulls into the top of the page. The problem is that there are
certain titles that are too long and are breaking into other design
elements. I'm thinking there should be a way to count the number of
oh I forgot the link !!
= www.chesstwit.com
You can play chess with all your twitter friends.
On 26 Oct, 16:13, weepy jonah...@gmail.com wrote:
Hey there,
Just wanted to tell everyone about ChessTwit that's using jQuery to
good effect.
The best place to play correspondence chess with
As far as I'm aware xhr already follows redirections, and complete isn't
triggered before the final destination is reach (which makes it a lot easier
to ajax a restful app). There is a callback you can set in xhr objects to
handle partial loading events, though I haven't seen the point in using
Depending on your clients navigators you may use inline-block positionning
(works fine with Firefox 3.xx, Opera, Safari ; works with Firefox 2.xx with
a few tweaks, works IE7 with a bit more tweaking but ultimately ok), or
floating positioning if you really are forced to be IE6 compliant (though
By reading the doc a lot of answers one can find, hmm...
http://docs.jquery.com/UI/Draggable#option-handle
To master jquery, master the api you must.
Michel Belleville
2009/10/27 Thai Dang Vu tdan...@gmail.com
Suppose that I have this div
div id='draggable'
div id='header'x/div
Solved my problem.
here is the link which helped me to do so.
http://tweet.seaofclouds.com/
I hope this ll help someone. :)
On Oct 27, 9:50 am, deep deeps...@gmail.com wrote:
please see this example
http://tweet.seaofclouds.com/
in the first demo they are showing 3 tweets. but its not
Hi everyone.
I'm writing a dynamic form that allows users to add fields. These
fields are contained in a table.
I have this function to clone the rows (my table has an ID of
EventType)
function addEventType()
{
var clonedRow = $(#EventType tr:last).clone();
$(input,
On Mon, Oct 26, 2009 at 9:58 PM, MorningZ morni...@gmail.com wrote:
if this is your *exact* code
$.getJSON(url + ?callback?, function (json) {
then you're missing an equal sign
$.getJSON(url + ?callback=?, function (json) {
Good catch! Fortunately I had the = in my real code. I just
Hello
I have scripts which refreshes my file after few seconds. but i want
it should refreshes only when that file is got new data(new tweets)
index.php
script
$(document).ready(function() {
$(#responsecontainer).load(index-tweet.php);
var refreshId = setInterval(function() {
Here is example of table presently working on. I using the code below,
but getting error message:
$(document).ready(function() {
// call the tablesorter plugin
$(table).tablesorter({
// define a custom text extraction function
textExtraction: function(node) {
Never mind - Ricardo's genius post here solved it for me:
http://groups.google.com/group/jquery-en/browse_thread/thread/f5469902b151daa2/b1908e69d723bfa6?lnk=gstq=clone+IDs#b1908e69d723bfa6
On Oct 27, 10:43 am, Matt guitarroman...@gmail.com wrote:
Hi everyone.
I'm writing a dynamic form that
thanks for that explanation, Dave.
--Karl
On Oct 26, 2009, at 7:54 PM, Dave Methvin wrote:
I think a lot of plugins have this problem but most people aren't
creating and deleting them a lot. My splitter has this issue but I
solved that problem because I was too lazy to support splitters
I'm looking for following ajax functionaliaties. Can you please point
me to some example or correct page in documentation.
1- Ajax enabled Link (a) that on click fetch data from server
(database) and refresh an area of page with new data
2- Ajax enabled form, that on submit does same as above
I think I've done something similar to this. What I did (for a one-row
image grid with horizontal scrolling) was have a div with a fixed
height and width, overflow: hidden, and position:relative. I put a
child div with absolute positioning and a large enough width so that
it will accommodate all
Ok ive tried like everything, my content areas are overlaping with my
submenus, and ive probly set every single functions z-index to 10 in
the superfishmenu's css. Ive even set the content areas thats
overlaping with my submenu to -z-index
Any1 got another idee, im really clueless now, and i
When you're binding the itemLoadCallback, you have a state argument.
this argument contains the 'init' string at initialisation. you could
catch the jCarousel argument (that is what you want) at
initialisation, and then use it later.
var myCarousel;
function itemLoad(carousel, state) {
I know there's already a couple of posts about IE cursor issues, but
this one is slightly different I think.
If you set the overlayCSS backgroundColor property to an empty string
or 'transparent', IE will not change the cursor when blocking the UI.
E.g.
$.blockUI({
I found this website which has done a great job writing some detection
functions for some of the new html5 capabilities. Perhaps this is
something that could be added to jQuery.support? I don't know the
policies for inclusions, perhaps it's something you rather see people
include themselves.
Hi everyone,
In my web page I have the following code:
In the head part the loading of jQuery library and a jQuery plugin
named jquery.queryNickName:
script type=text/javascript src=http://lib.community.virgilio.it/
js/lib/std/jquery/jquery-1.3.2.min.js/script
script type='text/javascript'
I found this website which has done a great job writing some detection
functions for some of the new html5 capabilities. Perhaps this is
something that could be added to jQuery.support?
I added your find to an open ticket on HTML5 issues, thanks!
http://dev.jquery.com/ticket/4668
yeah, if you are not using cross domain calls, dump the callback
parameter there, it's totally no needed... and if you are not using
cross domain, then you aren't/don't-need-to use or think about jsonp
at all
as for mime type of normal json:
application/json
or
text/plain also works for fine (in
probably an easy fix but not without a link to see it...is this a
joomla pillmenu?
cooli wrote:
Ok ive tried like everything, my content areas are overlaping with my
submenus, and ive probly set every single functions z-index to 10 in
the superfishmenu's css. Ive even set the content
http://lmgtfy.com/?q=jquery+ajax
Michel Belleville
Hi,
how can i check if a DIV with the ID xyz exist?
thank you
yavuz
if (document.getElementById(xyz)) {
// exists
}
else {
// does not exist
}
or, if you must use jQuery for whatever reason (which would ultimately
use the above anyways)
if ($(#xyz).length 0) {
// exists
}
else {
// does not exist
}
On Oct 27, 9:37 am, bc04Inc.
I have now found this one:
if ($('#toc').length) {
}
is this correct, too?
On 27 Okt., 14:39, MorningZ morni...@gmail.com wrote:
if (document.getElementById(xyz)) {
// exists}
else {
// does not exist
}
or, if you must use jQuery for whatever reason (which would ultimately
As correct as 0 == false et 1..oo == true
Michel Belleville
2009/10/27 bc04Inc. bc04...@googlemail.com
I have now found this one:
if ($('#toc').length) {
}
is this correct, too?
On 27 Okt., 14:39, MorningZ morni...@gmail.com wrote:
if (document.getElementById(xyz)) {
//
I am trying to access my own JS object from within an ajax call, and
can't figure out how to get it to work. Whenever I access this in
the function, it returns the ajax context and not my JS object
context. My code looks something like this. I have a Zone object
defined in a JS file like
I'm interested in namespacing jQuery to something like $myjQ. or myjQ.
$ and wondering what the best way is to do it. I will potentially be
using my version of jQuery on other pages that are running other
versions of jQuery - hence the idea to rename it completely so that I
have control over
I normally use the jQuery method MorningZ posted above, as it makes it
easier to check for the existence of elements with a certain class
name.
On Oct 27, 2:05 pm, Michel Belleville michel.bellevi...@gmail.com
wrote:
As correct as 0 == false et 1..oo == true
Michel Belleville
2009/10/27
Hello,
I have a Jquery enabled menu, but when the page loads, it is open for
a split second.(ONLY in IE)
I dont know if it a js or css problem.
http://ampsoft.com/Testindex.html
Thanks
Mike
See the $.noConflict() docs:
http://docs.jquery.com/Core/jQuery.noConflict
var j = *jQuery.noConflict*();
// Do something with jQuery
j(div p).hide http://docs.jquery.com/Effects/hide();
// Do something with another library's $()
$(content).style.display = 'none';
-Dan
On Tue, Oct 27, 2009 at
Well, you're using $.ajax() and the context of its callbacks make this the
xhr object, so no surprise there.
This should work as you expect :
var myself = this;
var Zone = function(data) {
myself.someInfo = data;
myself.load = Zone_Load;
};
var Zone_Load = function() {
$.ajax({
type: GET,
url:
Very cool! Is this an extension of your http://64squar.es/ site?
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 27, 2009, at 4:09 AM, weepy wrote:
oh I forgot the link !!
= www.chesstwit.com
You can play chess with all your twitter friends.
On
Thx!!! This is exactly what i was looking for!!! I knew there was a
simple solution.
Joe C
On Oct 27, 11:08 am, Michel Belleville michel.bellevi...@gmail.com
wrote:
Well, you're using $.ajax() and the context of its callbacks make this the
xhr object, so no surprise there.
This should
I recently had the same problem of links sorting by the URL, but I
discovered that if I removed all the white space within the cell in my
HTML it would sort by the text and not the URL. I don't know if that
will help you with em tags as well, but it solved the problem for
links for me.
On Oct
hi,
I´m building a jCarousel following the tuturials and the example that
you´ve post in http://sorgalla.com.
I want to build a Vertical carousel but with to columms (one side by
side the other). I know that it can be made using css, but i´m new to
css and i can´t do it without our help. Can you
I'm trying to do a simple show/hide. When a user clicks an a link, I
want to hide the dd for that link. Any ideas why the .children() is
not working?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html
head
He who masters the context shall inherit the JavaScript. ^^v
Michel Belleville
2009/10/27 Joe joecel...@gmail.com
Thx!!! This is exactly what i was looking for!!! I knew there was a
simple solution.
Joe C
On Oct 27, 11:08 am, Michel Belleville michel.bellevi...@gmail.com
wrote:
Not entirely sure what you mean by removed all the white space. Could
you please elaborate.
On Oct 27, 11:39 am, Jacob jste...@gmail.com wrote:
I recently had the same problem of links sorting by the URL, but I
discovered that if I removed all the white space within the cell in my
HTML it
dta href=#onetab 1/a/dt
dd id=one
h2Container 1/h2
pRandom content./p
/dd
$('dt a') who's your daddy ? it's dt of course, because I'm a.
So daddy, who are your children ? Well I see only a.
Well, where's the dd ? It's dt's sibling of course :
dt.../dt
dd.../dd
Yeah, apparently there's no dd in
Hello,
I'm new to jQuery and would appreciate some help with Selectors.
At the moment I know enough to write some clunky repetitive code that
violates the DRY (Don't Repeat Yourself) principle
// Toggle Divs
$(a#toggle_effect_button).click(function(){
where is the em at?
like here is what you need to post
table
thead
trHeader Row/tr
/thead
tbody
5 or so rows of various data
/tbody
/table
don't worry about posting your parser code, as obviously it has
issues and if you want to keep the HTML intact
$(a[id=^='toggle_effect_button']).click(function() {
var id = this.id.replace(toggle_effect_button, );
$(#toggle_effect + id).toggle('blind',500);
return false;
});
On Oct 27, 12:06 pm, Simon Morris moz...@gmail.com wrote:
Hello,
I'm new to jQuery and would appreciate
How about using a class instead of ID's?
$('a.toggle_effect_button').click(function() {
$(this).toggle('blind',500);
return false;
});
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of MorningZ
Sent: Tuesday,
Indeed it seems very repetitive as much as clunky.
Though without a glimpse of html I guess I can't do much for you, especially
since your code currently uses ids to locate things which doesn't help one
bit understanding the underlying dom structure...
So, let's assume your html looks something
Hi,
If you just want to do a simple show/hide then you don't need to add a
class. You can use jQuery hide() and toggle() functions.
Like this:
$('#tabs dd').hide();
$('#tabs dt a').click(function() {
$(this).parent().next().toggle();
return false;
});
Paul
On Oct 27, 3:59 pm, Michel
On Oct 27, 12:16 pm, Rick Faircloth r...@whitestonemedia.com
wrote:
How about using a class instead of ID's?
$('a.toggle_effect_button').click(function() {
$(this).toggle('blind',500);
return false;
});
That would hide the a itself (which is not what his repetitive
Sorry - should have mentioned - I tried using jQuery.noConflict() as
well as jQuery.noConflict(true) and reassigning to a variable, but ran
into race conditions where another version of jQuery was executing a
call before I could call noConflict()... I'm hoping to namespace my
own separate version
Hi there,
I have a table that looks like this:
The user can click the 'Add another category' link and another row is
inserted.
My issue is here: those two select boxes are linked, meaning that
depending on what is chosen from the first one, the options are
changed in the second one.
When I
Oops, missed the link: http://imgur.com/p25xN.jpg
On Oct 27, 4:45 pm, Matt guitarroman...@gmail.com wrote:
Hi there,
I have a table that looks like this:
The user can click the 'Add another category' link and another row is
inserted.
My issue is here: those two select boxes are linked,
jQuery.com's homepage encourages using a gzipped version of jQuery.
Why not advertise HTTP 1.1 deflate encoding instead? It is better.
(even better than HTTP 1.1 deflate is sending raw deflate [without the
zlib wrapper]).
I've done some research on this and posted the results here:
anyone have any examples of auto-complete ??
tenks
I have a problem with jQuery appending new text to a div - but then
not firing events attached to the inserted text.
Let me explain. I have a div that contains a number of divs - the div
has a link and a hidden form. Clicking on the link fires a slideToggle
event which reveals the form.
When you
I would like only to submit the result of a Jquery quicksearch which i
have put on a html table.
If i do a normal submit , I get every row submitted , also those where
jquery puts display ; none
An even better is it also possible to use ajax to submit when a row is
changed .
my TR 's has about
Hi,
How can I remove all div foo=whatver... div elements using the
attribute foo for my selector? Basically any div with a foo attribute
I want gone.
Thanks, Jason
I'm trying to create a contact form using Jquery Validation and Ajax
Submit. I'm having a problem figuring out the best way to submit the
results to a php file. Below is a break down of my validation code.
$().ready(function(){
$(#signupForm).validate({
rules: {
$('div[foo]').remove();
On Tue, Oct 27, 2009 at 1:04 PM, jason jason.novo...@gmail.com wrote:
Hi,
How can I remove all div foo=whatver... div elements using the
attribute foo for my selector? Basically any div with a foo attribute
I want gone.
Thanks, Jason
You have run into a fairly common issue: how to get events to work
with elements that are added to the DOM, through either ajax or simple
DOM mainpulation.
Rather than using the .click(fn) shorthand, use .live('click', fn)
For more information, check out this FAQ topic:
On Oct 27, 2009, at 1:04 PM, jason wrote:
Hi,
How can I remove all div foo=whatver... div elements using the
attribute foo for my selector? Basically any div with a foo attribute
I want gone.
Thanks, Jason
You could try this:
$('div[foo]').remove();
--Karl
Karl
On Tue, 2009-10-27 at 09:11 -0700, MorningZ wrote:
$(a[id=^='toggle_effect_button']).click(function() {
var id = this.id.replace(toggle_effect_button, );
$(#toggle_effect + id).toggle('blind',500);
return false;
});
Thanks MorningZ,
A small correction is..
Look the submitHandler option:
http://docs.jquery.com/Plugins/Validation/validate#toptions
On Tue, Oct 27, 2009 at 15:02, StephenJacob turnstylecreat...@gmail.comwrote:
I'm trying to create a contact form using Jquery Validation and Ajax
Submit. I'm having a problem figuring out the best way
Gotcha...
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of MorningZ
Sent: Tuesday, October 27, 2009 12:31 PM
To: jQuery (English)
Subject: [jQuery] Re: Basic help with selectors
On Oct 27, 12:16 pm, Rick Faircloth
This is the entire html. I would expect it would return the HTML tag
as it does with :first, but it errors on the second alert when
using :eq(0)
html
head
script language=javascript src=jquery-1.3.2.js/script
script
$().ready(function() {
I am using v 1.3.2.
I suspect that the issue is related to poor javascript coding on my
part.
Delayed response, I know, but I just discovered that I had a reply...
On Oct 1, 8:03 am, Jon Banner banali...@googlemail.com wrote:
What version of jQuery are you using? I have not had problems with
Hi everyone, I'm trying to figure out a way to add a class only if the
browser is resized by the user at less then 1000px
This is what i have going right now.
$(function(){
$(window).width('width','100%');
$('body').css('width','w 1000px');
$(body).addClass(no_border);
});
as of
I just tested against 1.2.6 and it works. Would this now be considered
a bug in Sizzle?
If your script tag that loads jQuery is immediately followed by another
script tag that calls noConflict, there should be no race conditions.
You're not putting the noConflict call inside a $(document).ready() or the
like, are you? It should be directly executed in a script tag:
script
Hi all,
In my application, i get a set of urls. the url basically contains an image.
How do i dynamically extract the image from that url and display on my page.
Thanks
Arun
Leonardo, I've been looking into the submitHandler option but i'm
having problems getting it to work correctly. Here is a sample of the
code i'm testing.
$(#signupForm).validate({
rules: {
fullname: required,
company: required,
phone:
Thanks for this example.
there's no doubt in my mind that YUI team hasn't processed
all the issues you bring up when making their determinations
on structure
I don't know if they have. The YUI developers are very capable people,
but this does not totally guarantee that YUI is accessible or
Yes.
// parent directory
$.post('../file.php');
// folder in parent directory
$.post('../dir/file.php');
// folder in grandparent directory
$.post('../../folder/file.php');
// child directory
$.post('child/file.php');
$.post('./child/file.php');
// base directory
$.post('/file.php');
//
Did you ever find a solution to this? I'm having the same problem.
On Oct 22, 3:14 pm, Gabe g...@kokiri.org wrote:
I've been getting some buggy behavior with IE7 when using a new line
character as the multipleSeparator. Here is my sample code:
textarea name=search[movies] rows=4 cols=20
Thanks guys,
Nice to get such a quick reply. Thanks for the tips!
Martin
On Oct 27, 4:29 pm, Paul Mills paul.f.mi...@gmail.com wrote:
Hi,
If you just want to do a simple show/hide then you don't need to add a
class. You can use jQuery hide() and toggle() functions.
Like this:
$('#tabs
I'm trying to implement Validate on a survey form that has just a few
basic requirements. I'm running jQuery 1.3.2 and Validate 1.5.5.
Whenever I try to run the code, however, I get an error that
validator is undefined. I tried Googling and found only a few hits,
most saying the HTML was invalid.
I have come across a real head-scratcher...
Using Superfish 1.4.8 w/SuperSubs to create a horizontal menu with
vertical dropdowns. Some of the dropdowns have flyouts).
The links on the dropdowns lead to various category pages. Each
category page is stored in a database, and uses a table for
I've noticed some strange behavior in IE7 for the bassistance
autocomplete plugin.
1. This bug can be seen on the demo page here:
Type something into the Multiple Birds (remote) field and select one
of the autocomplete choices. Type a couple more letters so the drop
down appears again. Hold
Hi Gabe,
There seems to be some IE7 bugs with the 1.1 release of the
autocomplete plugin. I found that using the 1.1pre version as opposed
to 1.1 fixed the problems. There are links to that version here:
Hi All,
Have tried to find an example of this, and played around a bit but got
no where.
I want to have 2 sortable lists (just like in the demo
http://jqueryui.com/demos/sortable/#connect-lists)
However I also want to be able to select multiple items and then drag
them all from one list to
Would you mind posting this question to the jquery-ui google group if
you haven't done so already? That group is dedicated to questions such
as yours that are specifically related to jQuery UI.
http://groups.google.com/group/jquery-ui/
Thanks!
--Karl
Karl Swedberg
superfish shows and hides UL's and doesn't interact with their children
like you are saying. The exact same markup in YUI example bellow works
perfectly well...no hacks needed
Florent V. wrote:
Thanks for this example.
there's no doubt in my mind that YUI team hasn't
wrap 2 columns in one container and only move the one
container...requires some css modifications no matter what you do
paparazzy wrote:
hi,
Im building a jCarousel following the tuturials and the example that
youve post in http://sorgalla.com.
I want to build a Vertical carousel but with
if your ID's are only numbered for the sake of trying to match your
link to toggle_effect is worth learning about indexing which is
extremely useful for 1:1 matching. The allows you to apply class
instead of ID to elements
assume changing ID's to classes named toggle-effect_button and
I have seriously been fighting this issue for hours. I would
appreciate some advice when someone gets a chance.
I am wanting to check my database to determine if this user already
exists. I thought I could just add the method to the validation.
Evidently I'm doing something wrong. Here is the
No em presently, was just using as possiable examples. The table I
am working with now contains either numerical digits or text within a
a hrefa/. the numbers sort perfectly, but the columns with the
links seem to order based and the link and not the data itself in the
cell. What I wrote above
I am trying to block the whole page, but blockUI is not working with
my layout (like the simple layout in demo).
- Regards,
Indraneel
Read this documentation page on try to achieve what you want:
http://docs.jquery.com/Plugins/Validation/Methods/remote
On Oct 27, 1:08 pm, Ryan cowdo...@gmail.com wrote:
I have seriously been fighting this issue for hours. I would
appreciate some advice when someone gets a chance.
I am
Got anything more to go on? link to live example? something,
anything, more than doesn't work?
Is it any browser?
On Oct 27, 8:24 pm, Indraneel indraneel.ra...@gmail.com wrote:
I am trying to block the whole page, but blockUI is not working with
my layout (like the simple layout in demo).
Replying to my own thread here. I figured out the issue.
I was using this in a Wordpress installation and the issue was with
wp_head() loading jquery.js after my jQuery code. This rendered
everything useless until I put the code block under the wp_head() call
and all worked fine.
Thanks to the
Change
var validator = $(#surveyForm).validate({
to
var validator = $(form).validate({
or
form action=?event=submitSurvey method=post
fieldset id=surveyForm
to
form id=surveyForm action=?event=submitSurvey method=post
fieldset
Good luck.
On
Hi guys,
Currently I'm using this version of autocomplete plugin
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ for
some of my php files.
I found an issue with the autocomplete dropdown that it showed all the
html tags as results instead of the data from the database.
91 matches
Mail list logo