In regards to this blog post http://tiny.cc/y0vsz
Elijah has been able to come up with a workaround for BlockUI.
However even with this I'm having problems with ImageButton ASP.NET
control.
Anyone know of a way to mod BlockUI to better handle this?
doing is getting the current value of a given
> property, such as background-color, finding its index in the arrValues
> array, incrementing that by one and then setting the new value to the
> element in the array with the incremented index. If the index is at
> the end of the ar
rote updates the color; you can add an ajax call
> to update your db as well, if the value your updating in the db is the
> color, or else the value is in an array that's indexed the same.
>
> On Oct 22, 12:10 am, The Danny Bos wrote:
>
>
>
> > For each click o
('background-color'),arrValues)+1;
> $(this).css('background-color',arrValues[bgcolor===arrValues.length?
> 0:bgcolor]);
>
> });
>
> disclaimer: just wrote it inside Firebug's console, so haven't tested
> it outside that...
>
> On Oct 21, 10:1
or', 'blue');
}, function() {
$(this).css('background-color', 'purple');
});
});
On Oct 22, 3:46 am, mkmanning wrote:
> .toggle() allows you to rotate through multiple functions, you might
> want to check it out in the
> do
I've got one for ya, JQuery and Ajax.
I want to have a button image, let's stay it's inactive state it's a
grey circle, when someone clicks it once, it'd change to a blue circle
(update associated DB field to "blue"), click it again and it becomes
a red circle (update the DB field to "red") and s
This is of course the Validator Plugin, but someone must have some
insight into how to add this functionality? I've looked, it's not
there.
Hi, I'm trying to figure out how to display a Success Message upon
remote returning 'true'.
Yes, I know this can be done with success: function() {}, however I
have multiple fields that I want to use this on, and I want to display
more than just a generic message.
Let's say I have a Username and
I understand that ive to use - X-Requested-With then I did search a
bit about that and I found this code,
$.ajaxSetup({
headers: {"X-Requested-With":"Ajax"}
});
but I still don't understand how should I send the parameters to the
same file and get them in the server side (PHP)
I hot t
Hello,
I want to build a form that work on one page only, to subtract the PHP
pages for getting the data from all my web forms,
I tried to pass the parameters to the same page but it dosent work :(
i'll be glad if you can direct me to the solution
Thanks
how I did a little write-up of the options I found for cross-domain
Ajax at:
http://blogs.talis.com/n2/archives/770
Cheers,
Danny.
I've run up against a cross-domain Ajax problem, essentially I want to
do something like:
(in http://hostA.com/page.html)
There are people using elements to do image processing in
Javascript; see http://ejohn.org/blog/ocr-and-neural-nets-in-javascript/
and http://www.pixastic.com/
On Jun 24, 2:03 pm, rosie wrote:
> Hi there,
> Just wondering is it possible to take an image, for instance an item
> of clothing and r
You probably don't want the '#' character in there:
$("div:not("+pid+") form span").css("background-color","yellow");
On Jun 9, 11:45 am, mkmanning wrote:
> $("div:not(#"+pid+") form span").css("background-color","yellow");
>
> On Jun 9, 8:19 am, squalli2008 wrote:
>
> > Hi,
>
> > Im trying to
First is the code you cant see. Any and all post document ready changes are not
visible by view >> page source.
Instead, select the object with your mouse, right click, and view selection
source.
As for the accordion, not so sure there!
--- On Mon, 5/25/09, Bharat wrote:
From: Bharat
Subjec
So, first:
html = '' +
($(this).find("titletext").text()) + '\n\n';
Create a variable with the code needed.
$("div").append($(html));
Then dump it to the div.
Order and logic you need to figure out, but thats an example of how to dump a
xml returned result into a file.
--- On Wed, 5/20/09,
widget
To: jquery-en@googlegroups.com
Date: Friday, May 15, 2009, 2:04 PM
What UI-LI objects? Your sample code (which I added an extra div level to) only
has DIVs and H3s.
- Richard
On Fri, May 15, 2009 at 2:21 PM, Danny Nolan wrote:
Almost, I found it worked almost, except for the fact that
ble();
})
Where am I going wrong?
--- On Fri, 5/15/09, Richard D. Worth wrote:
From: Richard D. Worth
Subject: [jQuery] Re: Sortable accordion-like widget
To: jquery-en@googlegroups.com
Date: Friday, May 15, 2009, 10:51 AM
Sure, here you go:
http://jsbin.com/aqeca
You can edit this example here:
ht
@googlegroups.com
Date: Friday, May 15, 2009, 10:51 AM
Sure, here you go:
http://jsbin.com/aqeca
You can edit this example here:
http://jsbin.com/aqeca/edit
It's not perfect, since when you sort one, it also toggles it, but it's a start.
- Richard
On Fri, May 15, 2009 at 10:19 AM, D
Change to a standard radio group?
--- On Fri, 5/15/09, bharani kumar wrote:
From: bharani kumar
Subject: [jQuery] how to uncheck the check box
To: jquery-en@googlegroups.com
Date: Friday, May 15, 2009, 9:38 AM
Hi all
Can u tell me , how to uncheck the check box , when i check another check bo
Example? Im very new to jQuery, the old code was partially provided by someone
else with a few edits, so not sure how to create that new level you was talking
about.
--- On Thu, 5/14/09, Richard D. Worth wrote:
From: Richard D. Worth
Subject: [jQuery] Re: Sortable accordion-like widget
To: jq
Are you sure the data is coming back the way you expect? Put an alert
(data) in the callback function.
On May 13, 3:02 am, V wrote:
> I can't get global variables work, maybe somebody knows the answer
> because this should be very simple.
>
> The following does not work, the price is not availab
int me to the exact property I have to look for?
On 2 Mai, 02:07, Danny Nolan wrote:
> Firebug is your friend
>
> --- On Fri, 5/1/09, Cryptonit wrote:
>
> From: Cryptonit
> Subject: [jQuery] POST Redirection
> To: "jQuery (English)"
> Date: Friday, May 1, 2009,
Firebug is your friend
--- On Fri, 5/1/09, Cryptonit wrote:
From: Cryptonit
Subject: [jQuery] POST Redirection
To: "jQuery (English)"
Date: Friday, May 1, 2009, 2:22 PM
Hi Folks!
Here's my problem:
I want to make a post request to a web service site. This site is
automaticly redirecting me
Hi all,
I've been trying to fix some memory leaks in my app. As I was
stripping the code down I discovered that even on a totally blank page
that includes jQuery, memory is leaked. If you point Drip at the
jquery.com homepage you'll see quite a few elements left around after
the page unloads.
It
Hi,
Is there a way to highlight or enable for selection individual days
( not a range of days ) in a datepicker?
Thanks in advance,
Danny
dd a query string to
change the filename:
$('#webcamimage').attr('src', 'http://example.com/cam.jpg?time='+Date
())
Danny
On Feb 12, 4:30 pm, James wrote:
> You can use Javascript's setInterval function to constantly do a check
> to update an image sour
jQuery 1.3 finally got rid of the '@' in selectors. Just use 'img[src
$=.png]'
On Jan 25, 8:04 am, mcologne wrote:
> hi,
>
> there comes an error with the following selector... i'm using
> jquery.ifixpng2.js or (jquery.ifixpng.js) and jquery-1.3.1.min.js
>
> $('i...@src$=.png]').ifixpng();
>
> E
All,
I just started work with jQuery just recently, and I'm beginning to
love it. I'm a Prototype convert, and I love the increased power of
jQuery.
New to it though, I'm running into some trouble already. I'm trying to
flip between different background images, with CSS set initially to
the BODY
onsole.log() method)
>
> On Fri, Jan 2, 2009 at 1:10 AM, Danny wrote:
>
> > Has anyone else noticed that Firebug before 1.2 would treat console.log
> > ($('div')) as an array and list all the matched elements on the
> > console, so you could mouse over the list
Has anyone else noticed that Firebug before 1.2 would treat console.log
($('div')) as an array and list all the matched elements on the
console, so you could mouse over the list and highlight the elements,
or right-click and scroll into view etc., but now it just lists
"Object length=13" and you n
Sounds like you are trying to use the file by double-clicking it in
Windows. You don't have to do that; there's no "installation". It's
ready to use.
Include the line
In my experience, problems of "Works in FF but silently fails in IE"
are almost always extra commas at the end of objects -- {a: 1, b:2, }
sorts of things.
> On Thu, Sep 11, 2008 at 5:04 PM, Andy Matthews <[EMAIL PROTECTED]>
> wrote:
> > A coworker is trying to use this combination of codes to ge
add " return false; " to your click handler to keep the click from
getting to the checkbox itself.
Danny
On Sep 8, 10:55 am, "Michael Smith" <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I'm trying to make a page which automatically toggles a check
According to the W3C standard,
empty text nodes though; change the if clause
to (this.nodeType == 3 && $.trim(this.nodeValue))
Danny
On Aug 28, 2:30 pm, Steven Black <[EMAIL PROTECTED]> wrote:
> I develop and host wikis where users enter free-form text, and my
> server-side parsers create WISIWYG HTML from
Also attr('style', 'prop:val') replaces the entire inline style. css()
just replaces that property.
Danny
On Jul 19, 12:37 pm, Geir <[EMAIL PROTECTED]> wrote:
> Thanks!
do capability testing without importing the
whole jQuery test suite? Just a small set of things that are known to
fail on unsupported browsers?
Danny
On May 22, 10:36 am, howa <[EMAIL PROTECTED]> wrote:
> Just share with you one of a useful plugin:
>
> jQuery.supported = function()
use
setTimeout.
Danny
On May 19, 1:27 pm, Ariel Barreiro <[EMAIL PROTECTED]> wrote:
> I am new to jquery but an experience developer.
>
> Here's the code actually running:
>
> http://guilespi.dyndns.org/jquery/bounceimage/
>
> CSS:http://guilespi.dyn
I suspect the problem is the window.onload=load line.
That replaces any existing onload function (such as jQuery itself)
with your function.
I would use $(load) to add your load() function to jQuery's
document.ready queue.
Danny
On May 15, 6:45 pm, "[EMAIL PROTECTED]" <[EMAIL
You're probably assigning to searchbox before the #searchinput element
exists:
$.searchfunction = { searchbox: $('#searchinput) } // empty jQuery
object because hasn't been created yet
console.log ($('#searchinput')); // one element in jQuery object
console.log ($
In PHP, monster[pid][id2]['db_id'] will create the intermediate arrays
(monster[pid] and monster[pid][id2]) if they don't already exist.
Javascript isn't that smart, and monster = [[[]]] doesn't help. You'll
have to do something like:
monster[pid] = monster[pid] || [];
monster[pid][id2] = monster[
Technically, Safari is doing it right (but it's very frustrating).
Isn't length a property, not a function (use $(...).length, not $
(...).length() )
On Mar 6, 10:12 am, Yansky <[EMAIL PROTECTED]> wrote:
> This isn't a problem as such, just something I'm curious about.
>
> Under IE7 I've found that when I use xpath, the length() method
> doesn't seem to work, bu
the next time
you use the plugin.
Try
$.fn.myPlugin1 = function(options) {
var myOptions = $.extend( {}, defaults, options);
which creates a new object to accumulate the options.
Danny
On Mar 4, 2:13 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> If you want to use two differe
imeout
);
I haven't found any way of directly asking the browser if images are
enabled, so I think you're stuck with this.
Danny
On Feb 17, 6:41 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Yet another question about this (or perhaps about Javascript in
>
images.css' are loaded. The fastest thing may be to use
"http://localhost/nothing.gif"; as your non-image.
Danny
On Feb 16, 11:15 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> OMG, I can't wait to test this!!!
t the element, with
$('http://microsoft.com/nothing.gif"; onerror="somefunc()" /
>').appendTo('body')
works as well.
Danny
function, not a jQuery object of
HTML elements, and will probably throw an error.
I think Javascript 2 will have a more elegant way of expressing "a
block of code to be stored and executed later" but for now we have to
use function(){...}
HTH,
Danny
On Feb 5, 9:30 am, Pickledegg
Probably a good idea anyway--you hate to mess up the global
namespace.
Danny
On Feb 1, 4:00 am, Michael Price <[EMAIL PROTECTED]> wrote:
> > Given the following table cell:
> >
> >
> >
> >
> >
>
> > The following JavaScript works in FF2 and IE
Depends on what you're trying to do. In your case, the index and the
value are identical, but next time they may not be:
$.each( ['a','b','c'], function (index, val){
// index is 0...1...2, val is 'a'...'b'...'c'
});
On Jan 31, 3:40 pm, timothytoe <[EMAIL PROTECTED]> wrote:
> $.each( [0,1,2,3,4
I think you would want to append just the ampersands, not '&'
that's only to get the href past the HTML parser. Thus:
$('someImage').attr('src', '/umbraco/ImageGen.aspx?image=' +
originalSrc + '&width=' + width + '&height=&
t;3)').remove();
Unfortunately the parser for [attr] is not extensible, so you
can't create a [level>3] selector directly
Danny
On Jan 30, 12:22 pm, Feijó <[EMAIL PROTECTED]> wrote:
> Hi Cabbite
>
> Thanks for your 0.02
>
> Its possible to simple use like
A question for the jQuery team:
I look at the jQuery source code as my source for Javascript best
practices, and I see a few examples of things like:
fn = eval("false||function(elem){return " + fn + "}")
What is the advantage of that over using Function, as:
fn = Function('elem', 'return '+fn)
$.getJSON(paths.get_comment, _params, function(data)
{
$.each (data.comments, function (comment){...})
});
Danny
On Jan 16, 1:17 am, Niels <[EMAIL PROTECTED]> wrote:
> Is there any way to put a return from within a callback into a global
> varia
I'm not an AJAX guru, but it looks like the pageNumber variable is
local to each of your click functions and won't be seen by the
showResponse function.
Make it global (actually, local to the document.ready function):
$(document).ready(function(){
var pageNumber; // local variable in this docu
function htmlspecialchars(string) = { return $
('').text(string).html() }
the text() function does what you want but only by inserting the
string into an element. html() pulls it back out.
Danny
On Jan 10, 5:18 pm, acesfull9 <[EMAIL PROTECTED]> wrote:
> is there a javascrip
3A-passing-this-p13540912s27240.html
Danny
On Jan 9, 12:29 pm, Zoram <[EMAIL PROTECTED]> wrote:
> I am working on a plugin and was trying to figure out what was
> happening to break my code..
>
> I have in my plugin functions similar to the following:
&g
To the best of my knowledge, cross domain script loading is just as
much a security risk, but it was present in browsers before the risks
were realized and too many sites depend on it, so no one can remove
it. It's a historical anomaly.
Danny
On Jan 9, 9:39 am, Miha <[EMAIL PROTECTED
It looks like you've got some syntax errors. In the first example, (that's a single quote followed by a
double right after id+
In the second, #('#c-r"+id"") should be $('#c-r'+id)
See if that works
Danny
On Jan 6, 4:28 pm, chrismarx <[EMAIL PROT
#x27;m not sure how to add a value to the watch list; when I
use the above plugin 'this' and 'brk' are on the watch list but they
go out of scope when it returns
Danny
On Dec 28, 2:59 pm, "Mike Schinkel" <[EMAIL PROTECTED]> wrote:
> Danny wrote:
>
this (I'm sitting in front of IE 7) but it ought to
work.
Danny
On Dec 27, 9:47 pm, "Mike Schinkel" <[EMAIL PROTECTED]> wrote:
> >> Is there a particular problem that you are trying to debug?
>
> No, it just seems the pattern I find for practically ever
Hi Andy:
Erland Schei gave you the answer; the names of the easings changed
from the time lavalamp was originally written.
Look at http://gsgd.co.uk/sandbox/jquery/easing/ for the correct
names. "easeOutBack" is the classic effect.
Danny
On Dec 13, 8:29 pm, Andy Matthews <[EM
> var cropSettings = {width:w,height:h};
>
> $('#photo').photo( 'create', createSettings ).photo( 'crop', cropSettings
> ).show();
>
> Chaining is one of the most powerful features of jQuery... let it work for
> you!
>
> Brian.
>
> On 12/
I modified it to run under 1.2, with the most recent easing plugin:
http://youngisrael-stl.org/inc/jquery.lavalamp.js
On Dec 12, 10:21 pm, Andy Matthews <[EMAIL PROTECTED]> wrote:
> I'm really wanting to use Ganeshki's excellent LavaLamp plugin
> (http://www.gmarwaha.com/blog/?p=7) but it appear
If you have no reason to chain your plugin (something like $
('#photo').photo(...).css(...).attr(...) then having it return a
different object makes sense. But then, why put it in the jQuery
namespace at all? 'return new smaon.photo(...) makes as much sense.
Danny
On Dec 12,
}
});
Or, if using my namespace plugin,
$.namespace ('photo', {
create: function(settings){
},
crop: function(...){
}
});
Danny
On Dec 11, 6:43 pm, Smaon <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
>
The answers given here (use is and addClass and removeClass for
element classes) are correct, but the more general problem is using
reserved words in objects. You can always quote them and they'll work:
{
class: 'foo',
for: 'foo',
function: 'foo'
}
all fail, but
{
'class': 'foo',
'for': 'foo',
'
query.js
and if you include it you can do:
var style = $.parsecss()['.myclassname'];
if (style) $('#widget').animate(style);
Unfortunately animate throws an error if style is undefined, so it
needs the guard condition.
Let me know if this is helpful.
Danny
On Nov 3,
mynamespace().func().$().func(); // alerts 'namespaced
plugin', then resets to the normal jquery and alerts 'plugin'
Danny
On Oct 28, 5:50 pm, Jean-Sébastien <[EMAIL PROTECTED]>
wrote:
> sorry, james i didn't see someone answer me.
> what i want to do is ('
I always get error when the server returns my 404 (page not found)
error page instead of the javascript file. Make sure the script file
with that name exists; I suspect you really want
'jquery.corner.js' (standard way to name plugins) rather than 'jquery-
corner.js'
On Oct 31, 11:24 pm, iain dunc
,
'yellow');
On Nov 1, 5:17 pm, Danny <[EMAIL PROTECTED]> wrote:
> You can manipulate stylesheets, though it's not pretty (or built-in to
> jQuery; you could write plugins to do it).
> Seehttp://www.hunlock.com/blogs/Totally_Pwn_CSS_with_Javascript
>
>
You can manipulate stylesheets, though it's not pretty (or built-in to
jQuery; you could write plugins to do it).
See http://www.hunlock.com/blogs/Totally_Pwn_CSS_with_Javascript
On Nov 1, 4:24 am, "Jesse Klaasse" <[EMAIL PROTECTED]> wrote:
> As we all know, we can do the following using jQuery:
I believe the syntax is (not tested):
$(e).parent().next()[utoggle.animationType](uToggle.speed);
Javascript objects are associative arrays.
Danny
On Nov 1, 3:29 am, Olaf Gleba <[EMAIL PROTECTED]> wrote:
> Little Correction for the second example (needless '()' in chain)
Interesting question. As far as I can tell (playing with things like $
(selector).(namespace.function)() and the like) it is not possible to
namespace plugins.
Danny
On Oct 28, 5:50 pm, Jean-Sébastien <[EMAIL PROTECTED]>
wrote:
> sorry, james i didn't see someone answer me.
>
I just got one of those gag surveys: "Are you happy with your salary?"
where the "No" button runs away from the mouse. I figured I could use
that on a web page someday so I wrote a simple plugin for it; see
http://youngisrael-stl.org/wordpress/blogfiles/keepaway.html
If there's any positive feedba
ecutes within milliseconds, and test.html probably hasn't come back from
the server yet. You need to use a callback (
http://docs.jquery.com/Ajax/load#urldatacallback ):
$("#left").load("test.html", function(){
$("#left").css("border","1px solid
You don't even need to explicitly accumulate the result:
$.fn.attrs = function(key, val) {
if (val != undefined)
return this.attr(key, val);
return $.map(this, function(a) { return $(a).attr(key); });
};
Danny
malsup wrote:
>
> Good catch, Jörn!
>
>>
78 matches
Mail list logo