Ok, so it sounds like I need to rebind when my new elements are
added. Strangely the .bind() example is not even using bind.
This is the example:
$('a').click(fn);
$('#mydiv').load('my.html',function(){
$('a').click(fn);
});
Is this the best way to do what I need, or are some of the
The formatItem implementation is wrong. You are returning the
JavaScript object for the row (item) instead of a String to display.
Try return item.Name.
Jörn
On Wed, Jul 16, 2008 at 1:28 AM, shapper [EMAIL PROTECTED] wrote:
Sorry for the delay ...
I just changed the file. Check it now.
According to the jQuery docs, the data option (in $.ajax) is supposed
to accept a string or an object (which it then converts to a query
string). It appears as though its not converting my object:
My Javascript is:
var json = {
Request : {
action :
Pappa Bear, note that the original problem was that upon executing
return true the submit action would take the browser to a new page.
Kirov (if I understood him correctly) suggested to wait for a result
code from the POST request before returning true. Now, in Java for
example, I would take this
If that's the exact code you're using, then you should first convert the XML
string into a jQuery object, like this...
xml = $(' {xml goes here} ');
Diego, John
I changed my snippet as follows and it is still works only in FF, not
in IE7
script src=jquery.js/script
script
var xml =
it's possible to possibly wait for the user to stop panning.
Currently, when the pan ends, an onEnd event is fired, which then
fires off the ajax. So what you're suggesting is that i queue the pan
onEnd events?
secondly, i still am confused to why u think jQuery should not offer
this support
Hi all
I use the jqModal, and I want to clear some fields in the modal window
after opening. Cant get it to work so some advise would be perfect.
Like this
var open = function(hash){
$(#myFiled).val('').show();
};
$('#dialog').jqm({
Basically my error callback on the ajax request is still being
executed after I have called the abort() method on the Xhr.
I am creating a live search function.
On our development server, we don't have access to the live server, to
retrieve the ajax response.
So the error callback is executed
Hey guys, I am having an issue with the fadeto function and with
multiple items. I have:
$(document).ready(function(){
$(#content div).fadeTo(slow, 0.5);
$(#content div).hover(function(){
$(this).fadeTo(fast, 1.0);
},function(){
Hi tony
Do you think there is the problem of the server for the site
www.trirand.com/jqgrid ou www.trirand.com/blog
I can't connect it
Did anyone notice some jerkiness in animations with this combo? I have
a fade in that's smooth in firefox 2, but when I run it in firefox 3,
it doesn't really fade.
Thanks!
xml = $(' {xml goes here} ');
added xml = $(xml); (see below)
still not working on IE7
script src=jquery.js/script
script
var xml = NewDataSet
+ Table1
+ aHello/a
+ bjQuery/b
+ /Table1
+ /NewDataSet;
xml = $(xml);
alert($(Table1, xml).text());
/script
partner56290674 wrote:
secondly, i still am confused to why u think jQuery should not offer
this support because you believe this is bad. Remember, the idea of
I think it is inappropriate because you are describing an application
specific issue. Not all applications will have the same
All should work now.
Regards
Tony
fengxia wrote:
Hi tony
Do you think there is the problem of the server for the site
www.trirand.com/jqgrid ou www.trirand.com/blog
I can't connect it
Sorry I'm such a n00b. I have only done a couple of things with jQuery, just
real simple stuff.
Anyways, here's what I need:
I need a SIMPLE slideshow/carousel script.
It should be able to automatically slide between images (actually slide,
like the image moves all the way to the left) every x
How can I select the #blc2?
HTML
div id=blc1
pSome text/p
/div
div class=openBloc
div id=blc2
h1strongSome title/strong/h1
/div
/div
Script
$(document).ready(function(){
$('div#blc1').ifixpng();
$('.openBloc #blc2').ifixpng();
Hi,
i have been working on a scroller, it's a bit messy design wise, but
i'm still working on it
http://www.subwayslims.co.uk/scroller_example.html
the Jquery function seems to work on iE7 and FF but not in IE6, does
anyone know why it doesn't work...??
Also, file management can be improved drastically by sorting everything in
folders and using namespacing.
I put the AJAX API's in a separate file and if it's getting to big I create
a separate API file for each functionality, for example:
API/API.feedback.php
API/API.updater.php
etc.
On Tue, Jul
I think this is caused by the vertical offset of the
jScrollPaneContainer DIV, by no means do I guarantee this fix but it
seems to work...for me at least:-)...
Line 64 of jScrollPane.js dated 2008-02-17 is:
var currentScrollPosition = settings.maintainPosition ?
Hi,
i have been working on a scroller:
http://www.subwayslims.co.uk/scroller_16_07.html
the Jquery function seems to work on iE7 and FF but not in IE6, does
anyone know why it doesn't work...??
--
View this message in context:
Thanks,
I've spotted the problem.
It was due to other problems.
On Jul 16, 3:59 am, Karl Rudd [EMAIL PROTECTED] wrote:
The HTML code you pass in to the append/prepend/etc functions gets
converted to actual DOM nodes first, then it gets added to the DOM
tree. This effectively means you can
Hello. I trying to do a function that add a li element with a new
number (index) each time a link is clicked.
The current jQuery code looks like this:
$('.new').livequery('click', function() {
Hi all,
I want to know whether we have anything like http://www.netvibes.com/#General
sign in form thing. I mean to say that I want to create a form which
comes into focus when the user clicks a button and the background
fades. They are using mootools but I want to use jquery.
Thanks,
Gaurav
The behaviour I have is that the form is correctly validated, but
submits
$('#editjobsform').submit(function() {dosavejob(); return
false; });
//other stuff here
$('#editjobsform').validate(
{ rules: {blah:blah },
If the settings are manipulated via client-side code there is no need for
cookies created by the server-side and this would actually be a bad thing to
do unless really needed (e.g. you need the server to know the change
immediately). Here is the cookie plugin:
Hi Christian,
It seems this problem can only be fixed by changing your server's behaviour.
IIS: http://www.milonic.com/mfa/2005-February/ie6-not-caching-images.html
In IIS under properties for the folder /images/menu HTTP HEADERS was set to
Enable Content Expiration. Turning this off now
zerowing ha scritto:
How can I select the #blc2?
HTML
div id=blc1
pSome text/p
/div
div class=openBloc
div id=blc2
h1strongSome title/strong/h1
/div
/div
Script
$(document).ready(function(){
$('div#blc1').ifixpng();
Hi All,
I know this is a question which is really old news, but we have a site
where some of our users have centralized security settings, and their
ActiveX has been switched off and of course they can not use IE7. they
are proud IE6 users.
I have had a look at plenty of old libraries that
Istvan:
I know this is a question which is really old news, but we have a site
where some of our users have centralized security settings, and their
ActiveX has been switched off and of course they can not use IE7. they
are proud IE6 users.
I have had a look at plenty of old libraries that
On Jul 15, 4:22 pm, wdm [EMAIL PROTECTED] wrote:
Any way to have several slideshows on the same page, each with their
own independent navigation (prev/next), without giving them unique
ids?
Couldn't get this working:
$('.gallery').each(function() {
var p = this.parentNode;
I tried the latest version but still have the said issue.
On Jul 15, 11:36 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
Please checkout the latest revision or wait for the next release
(1.4), the issue is fixed
there.http://dev.jquery.com/view/trunk/plugins/validate/
Jörn
On Tue, Jul 15,
Put the ajaxSubmit stuff into the submitHandler-callback, here is an
example:
http://jquery.bassistance.de/validate/demo/ajaxSubmit-intergration-demo.html
Jörn
On Wed, Jul 16, 2008 at 11:29 AM, Andiih [EMAIL PROTECTED] wrote:
The behaviour I have is that the form is correctly validated, but
Hi Karl,
Thanks so much for the help - it definitely got me in the right
direction. Here's what I ended up with inside the (document).ready
function:
$(.extraContent).hide(); // hide the extra stuff by default
$('div.contentWrapper').click(function() { // contentWrapper DIV,
contains
On Tue, 2008-07-15 at 21:46 -0700, partner56290674 wrote:
it's possible to possibly wait for the user to stop panning.
Currently, when the pan ends, an onEnd event is fired, which then
fires off the ajax. So what you're suggesting is that i queue the pan
onEnd events?
I recently needed some
Hi Jörn,
OK, that sounds reasonable. I did some experimenting after I sent the
original email and found that the unique naming issue was the
real issue, not the form being dynamic: even a simple form such
as:
form
input id=a1 type=text name=example value=/
input id=a2 type=text name=example
Oh and now that I'm reading my response I forgot to mention these characters
in xml names, '-' (minus) and '.' (dot). Obviously not legal tender in the
js arena. The only thing I can think of here is to not map to a legal js
name and force the associative array usage, eg via foo['bar-goop']
Ugh
FORMAT:
Yeah I agree the {}/[] issue complex and after going another round with
xotree I have to say I really like the 'force_array' map it optionally
allows. That said the asArray() solution works and I might like it even
better once I'm using it becuase I'm totlly Lazy ;)
ATTRIBUTES:
if you
OK, spoke too soon... on further testing, I'm getting an unintended
(but really stupid, on my part) side effect...
if i put another anchor in the hidden content (a link to a file or
site, for example), the toggle is triggered on that click, too (since
it's in the wrapper DIV, right?). so, in a
Hi Jörn,
Thank you for your help ...
In fact I had that before but it was not working so I changed ... I
realized it now that there were two problems:
That one on my AutoComplete code and another one on the methods that
returns the JSON when connecting to the SQL Server.
I was able to spot it
Hello,
Most JQuery plugins, including JQuery itseld, offer three versions:
Uncompressed, Minified and Gzipped and Packed.
1. Should I use Minified and Gzipped or Packed?
2. How can I create myself the Minified and Gzipped or Packed
versions from the Uncompressed version?
Is there any software
Uncompressed is the raw, human readable, source code for the plugin.
Packed takes the source code and runs it through an algorithmn which
compresses variable names, methods, code, etc into one big line of
javascript. You can find more information about it, and pack your own code,
here:
On Jul 16, 2008, at 7:48 PM, Andy Matthews wrote:
Packed takes the source code and runs it through an algorithmn which
compresses variable names, methods, code, etc into one big line of
javascript. You can find more information about it, and pack your
own code,
here:
Just came to the same conclusion. My intent was to actually send a
stringified version of the JSON object (so im using json2.js from
http://www.json.org).
None the less, thanks Eric!
On Jul 16, 4:51 am, Erik Beeson [EMAIL PROTECTED] wrote:
HTTP parameters are key/value pairs. If you have an
[apologies if this reply appears twice - my session had ended when I
hit post the first time so I wasn't sure if I'd made it as it didn't
appear on a page refresh.]
On Jul 15, 9:36 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
Check out the demo (http://jquery.bassistance.de/autocomplete/demo/),
On Jul 15, 9:36 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
Check out the demo (http://jquery.bassistance.de/autocomplete/demo/),
pick the example that comes closest to your requirement, and take a
look at the code for that one. Firebug helps a lot there.
Thanks for the reply, Jörn, and sorry
Gabriel,
Since that's the case here is the method I would use.
div with no background onload that contains the gallery of thumbs.
next, when you click a thumb the loading gif becomes background while
the selected image is loading. once loaded it becomes the background.
I'm not sure how to do
On Jul 16, 2:29 pm, Mike Alsup [EMAIL PROTECTED] wrote:
On Jul 15, 4:22 pm, wdm [EMAIL PROTECTED] wrote:
Any way to have several slideshows on the same page, each with their
own independent navigation (prev/next), without giving them unique
ids?
Couldn't get this working:
Hi, this is one of my firsts experiences with jQuery and I have a
little problems already.
The problem explanation is that I want to apply an effect to a css
layer (and it is applied) that when you click on a special div, it
moves some layers. It works perfectly with Firefox, but not in IE...
I
I'm aware this is a common error, but has anybody found a solution
yet?
The error with ga.js is as follows:
Error: uncaught exception: [Exception... Component returned failure
code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMScreen.width] nsresult:
0x80004005 (NS_ERROR_FAILURE) location: JS frame ::
Hello
I want to use the http://sorgalla.com/jcarousel/, but with more than
one column of thumbnails.
For example, with the vertical carousel (http://sorgalla.com/projects/
jcarousel/examples/static_vertical.html), set :
.jcarousel-skin-tango .jcarousel-clip-vertical {
height:245px;
Thanks a lot, Jörn. I did try twice to post a detailed reply to your
reply, but nothing's appeared here so it looks like it's fallen into a
cyber black hole. No bother. Incorporating your very useful help I've
managed to create a revised and working test at:
Fantastic - I'd guessed my way into getting it working (using
submitHandler with no arguments) but hadn't realized that
submitHandler can pass the form. I can make the handler much more
generic. Thanks for that.
What are the default classes that cause validation ?
Andrew
On Jul 16, 2:13 pm,
Thanks for the help everyone- it works! :) Now, some tweaking... I
have several divisions that I want to show in this manner, so how do I
make the code a general rule as opposed to a specific order to show
#overview? For example, how would I show #contact without writing a
new script snippet? I
If one has a textarea or editable div with overflow: auto, and one
starts typing and filling the div, due to focus on the cursor the
scroll will keep the newly added lines in view. But if one is adding
the content dynamically, the newly added lines will appear out of view
- there's no cursor to
I've just tried this and it seems to work... just wondering what other
unintended side effects I'm not seeing ;)
$(.extraContent).hide(); // hide the extra stuff by default
$('a.extraContentTrigger').click(function() { // added a class to
the [TITLE] link
Thanks for clarifying Mika...please note Mika's comments.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mika Tuupola
Sent: Wednesday, July 16, 2008 11:59 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Uncompressed, Minified and
Any way to have several slideshows on the same page, each with their
own independent navigation (prev/next), without giving them unique
ids?
Couldn't get this working:
$('.gallery').each(function() {
var p = this.parentNode;
$(this).cycle({
It always helps if you can upload a simple test case page that
displays the error.
I think your code has a couple extra lines. It should be:
$('.new').livequery('click', function() {
$('.new').before('li class=item' + (index+2) + 'Item ' + (index
+ 2) + '/li');
return false;
});
Though I'm not sure you actually need livequery there; I think bind
would suffice.
Yeah it's a kind of bug in jQuery ...
I dealt with this issue one month ago and the solution was to convert
it into JSON
All available validation methods are listed here:
http://docs.jquery.com/Plugins/Validation#List_of_built-in_Validation_methods
Jörn
On Wed, Jul 16, 2008 at 6:47 PM, Andiih [EMAIL PROTECTED] wrote:
Fantastic - I'd guessed my way into getting it working (using
submitHandler with no arguments)
Or get a copy of Learning jQuery and read half an hour in the morning
or evening.
Jörn
On Wed, Jul 16, 2008 at 5:38 PM, fredriley [EMAIL PROTECTED] wrote:
Thanks a lot, Jörn. I did try twice to post a detailed reply to your
reply, but nothing's appeared here so it looks like it's fallen into
I am trying to get live query to work, so that it will add a new class
to links that have just been added to the DOM through ajax.
Something is not right though:
$('a.calendarNavLink').livequery(function(){
$(this).addClass('ajax');
});
Have I done something wrong here?
Hi,
I'm currently using:
$(#msg).empty().prepend('div class=successIt works!/
div').show(slow).animate({opacity: 1.0}, 5000).fadeOut(slow);
But the problem is, that it's still showing (for the specified 5000ms)
after i invoke new action which should display something different
than It works!
Here you can see a functional sample ;)
http://blitrank.com/pspsdk_test/
Thanks a lot!
Hi all,
I realize this is a gigantic newbie question, but I am totally stuck
and I want to do this the right way... figured I'd go to the experts.
I'm trying to write a section of code in jquery that will read my XML
sheet and then produce a set of unordered lists with individual list
items in
livequery accepts two parameters, the first is the event to which a
function (the 2nd parameter) is bound to.
$('a.someLink').livequery('click', function() {
// anchors with a class of 'someLink'
// can now be dynamically inserted to the dom
// yet still have an 'onclick' event associated
sorry, I am incorrect. I forgot there were multiple forms. That
should work
On Jul 16, 2:29 pm, noon [EMAIL PROTECTED] wrote:
livequery accepts two parameters, the first is the event to which a
function (the 2nd parameter) is bound to.
$('a.someLink').livequery('click', function() {
//
On line 27, 'left: 311px' should not have a comma after it. That
solves the problem for me.
On Jul 16, 11:54 am, The Sixth Halcon [EMAIL PROTECTED] wrote:
Here you can see a functional sample ;)http://blitrank.com/pspsdk_test/
Thanks a lot!
Yeah it's a kind of bug in jQuery ...
I dealt with this issue one month ago and the solution was to convert
it into JSON
the way I am planning to approach is by building in-memory DOM element
and injecting the XML into it.
example:
var el = document.createElement('div');
el.innerHTML = xml;
Hello,
I have 3 inputs that use the same AutoComplete function. Can I make
this work only with one command?
I have:
$(#Tags).autocomplete(GetTags, {
autoFill: true ...
I tried
$(#Tags, #MoreTags).autocomplete(GetTags, {
autoFill: true ...
But it does not work. How
If i have 3 columns that hold 3 divs (div class=feed/div) each
and i make those columns sortable by:
$('.column').sortable();
Now if someone moved one of the divs to another column, then that
column would recieve 4 divs.. is there anyway to make it so the
sortables would be evened out? so if
Change $('entreelisting',xml) to $('entreelisting',this).
Try:
$(#Tags, #MoreTags).each(function(input) {
input.autocomplete(GetTags, {
autoFill: true
});
});
Neither of the callbacks in the following code are ever invoked:
jQuery.ajax({
type: GET,
url: actionUrl,
data: { productId: productId, quantity: quantity },
dataType: xml,
error: function(e) { alert(Failure: + e); },
success: function(xml)
Or rather:
$(#Tags, #MoreTags).each(function() {
$(this).autocomplete(GetTags, {
autoFill: true
});
});
On Wed, Jul 16, 2008 at 10:09 PM, spicyj [EMAIL PROTECTED] wrote:
Try:
$(#Tags, #MoreTags).each(function(input) {
input.autocomplete(GetTags, {
autoFill: true
});
});
Ok, I realize it is working. But, for some reason it is not working
with the ajaxload script. I have a feeling I have to somehow call the
ajaxload from within livequery.
$('a.ajax').ajaxContent({
target:'#adminToolsListing',
event:'click',
loaderType:'img',
Wow, thanks, I revised the code but I didn't see it...
So... it works!!
Thanks a lot for your time... and... see you!
Alright, I fixed that problem by taking out the columns and just
changin some css.. now i just need to figure out how to make it so the
large gaps don't get created when a div is bigger or smaller than the
normal size..
On Jul 16, 2:32 pm, armsteadj1 [EMAIL PROTECTED] wrote:
If i have 3 columns
The CASE:
I have 3 links which specify 3 different views (or various sized
DIVs).
If the user clicks a specific view the according link should become
invisible. As a result only 2 links supposed to be active and visible
at any time since the 3rd view is currently active.
What is the most elegant
I have a form with a table that contains a list of names. For each
name there are two drop downs - relationship1 and relationship2. When
the user selects the option, Other Relative or Other household member,
I need a text input to display allowing them to enter the actual
relationship.
I have
I can't seem to use jcarousel if it I use the start option to be more
than 1,000. I am using it for a photo site where the slide image could
anywhere from 1 to 300,000
e.g.
jQuery('#photo_carousel').jcarousel(
{
scroll: 1,
One of the things that the team tries hard to do is provide as much
information to jQuery developers as possible. We're actively using
Twitter to make announcements about upcoming jQuery jQuery UI updates
and releases, new plugins and tutorials.
http://twitter.com/jquery
and
Got it:
$(#calScrollTitle a)
.livequery(function(){
$(this).addClass('ajax').ajaxContent({
target:'#adminToolsListing',
event:'click',
loaderType:'img',
loadingMsg:'/__data/assets/image/0018/24345/announce-
loading.gif'
});
Hi there,
Just in case this helps you still, here is how I got this to work:
$(#button2).click(function() {
parent.top.$.closeDOMWindow({
closeNow:1
});
});
If you include this snippet into the site displayed in the
Wow, thanks, I revised the code but I didn't see it...
So... it works!!
Thanks a lot for your time... and... see you!
Hi Diego,
thanks for your answer. Indeed my problem seems to be similar to that
described in the articles you posted; however, there still seems to be
a difference because the solutions didn't help. :(
First I tried to add the execCommand to my code. The behavior
changed to that effect that the
does anyone know if it is possible to trigger a function on an
autocomplete retrieval ( using this autocomplete library
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ )
example:
i'm currently using result() to store the id of a currently selected
item in a hidden field when a
Sorry I'm such a n00b. I have only done a couple of things with jQuery, just
real simple stuff.
Anyways, here's what I need:
I need a SIMPLE slideshow/carousel script.
It should be able to automatically slide between images (actually slide,
like the image moves all the way to the left)
I have a value stored in an object, and now i want to pass it to a
jquery function, please help:
var obj = {
width: 300,
div: 'testdiv',
func: function () {
var newwidth = this.width;
$('#'+this.div).animate({width:newwidth+'px'}, 1000);
}
}
ok fine so I use a class - still having the same lack of
understanding: how do I get the contents of the CSS class into a
variable?
Paul's site discusses how to access styles for individual elements, as well
as stylesheets, stylesheet rules and their properties:
http://www.quirksmode.org/dom/w3c_css.html
JK
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jquertil
Sent:
huh. this is an interesting thought. why would the use of join() speed
things up versus just appending a string variable?
the reason I'm not concerned about the for() loop is that it seems to
be quite fast when I output the strHTML in a document.write.
I'm trying to figure out wasy to speed up
they thanks for the reply. I don't fully understand what the
parameters in this line do exactly. why is variable in 'quotation'
marks?
fn = new Function( 'variable', code );
thanks!
On Jul 8, 4:03 pm, Michael Geary [EMAIL PROTECTED] wrote:
OK, try this. It's the same idea as the code I
All right, here's my situation
I have a bunch of articles stored in my database, plain jane HTML ones
submitted by a few hundred different people (read: people of all
varying levels of HTML expertise, from none to expert)
In some of these HTML snippets are div's and tables and other
items that
Further debugging shows that my request does indeed get sent to the server,
server logs show the valid request coming through and being processed just
fine. Charles proxy shows the response coming back with a status code of
200 OK.
So basically my AJAX call above goes out and gets processed
Is jquery doing either of these by default? I haven't seen requests
overwriting each other in my work, but I'm curious is this is manually
handled or not even a problem these days with xhr.
I am returning a form in an ajax call that is built with a table
I want to find an input
$('input[{$k}]')
then i want the immediate parent tr of that input.
I have tried
$('input[{$k}]').parents(tr:last).addClass(error-field);
and
Hi, I'm having some issues with a drop down menu in one of my sites
(http://www.laseleccion.com.ar/argentina). While in Firefoz it works
perfect, in IE 6 y does not display the menu at all. It works in IE 7.
Any ideas what could be the problem?
Thanks in advance
Leroy
I too am having a very similar issue where my callback is not being called.
My error function gets called instead, and the value of e is: [object
XMLHttpRequest]
Here is what my code looks like:
$.ajax({
url: '/member/MemberNameCheck.htm',
type: 'POST',
data: {name: $mName,
1 - 100 of 119 matches
Mail list logo