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?
it inside Firebug's console, so haven't tested
it outside that...
On Oct 21, 10:14 pm, The Danny Bos danny...@gmail.com wrote:
Thanks, had a good read, figured it out in part.
Now I'm stuck trying to introduce an array to do my bidding ...
Example below.
The array is an example of how I
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 danny...@gmail.com wrote:
For each click of the DIV I'm hoping to change the BackgroundColor
-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 array, it resets to 0.
On Oct 22, 4:39 am, The Danny Bos danny...@gmail.com wrote:
Thanks so
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 so
');
});
});
On Oct 22, 3:46 am, mkmanning michaell...@gmail.com wrote:
.toggle() allows you to rotate through multiple functions, you might
want to check it out in the
docs:http://docs.jquery.com/Events/toggle#fnfn2fn3.2Cfn4.2C...
On Oct 21, 2:58 am, The Danny Bos danny...@gmail.com wrote:
I've got one
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
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
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 to
/TtrackerHowItWorks
)
Cheers,
Danny.
did a little write-up of the options I found for cross-domain
Ajax at:
http://blogs.talis.com/n2/archives/770
Cheers,
Danny.
There are people using canvas 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 marzmur...@gmail.com wrote:
Hi there,
Just wondering is it possible to take an image, for instance an
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 michaell...@gmail.com wrote:
$(div:not(#+pid+) form span).css(background-color,yellow);
On Jun 9, 8:19 am, squalli2008 m...@paskell.co.uk wrote:
Hi,
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 bcrupa...@yahoo.com wrote:
So, first:
html = 'img src=' + ($(this).find(xmlvar).text()) + '' +
($(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
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 rdwo...@gmail.com wrote:
From: Richard D. Worth rdwo...@gmail.com
Subject: [jQuery] Re:
Change to a standard radio group?
--- On Fri, 5/15/09, bharani kumar bharanikumariyer...@gmail.com wrote:
From: bharani kumar bharanikumariyer...@gmail.com
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 ,
, 2009 at 10:19 AM, Danny Nolan danny_no...@yahoo.co.uk wrote:
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 rdwo...@gmail.com wrote
15, 2009 at 10:19 AM, Danny Nolan danny_no...@yahoo.co.uk wrote:
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 rdwo...@gmail.com wrote
: [jQuery] Re: Sortable accordion-like 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 danny_no...@yahoo.co.uk wrote
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 vincenti...@gmail.com 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
debug everything I
like...
Could you please point me to the exact property I have to look for?
On 2 Mai, 02:07, Danny Nolan danny_no...@yahoo.co.uk wrote:
Firebug is your friend
--- On Fri, 5/1/09, Cryptonit dom.helfenst...@gmail.com wrote:
From: Cryptonit dom.helfenst...@gmail.com
Subject
Firebug is your friend
--- On Fri, 5/1/09, Cryptonit dom.helfenst...@gmail.com wrote:
From: Cryptonit dom.helfenst...@gmail.com
Subject: [jQuery] POST Redirection
To: jQuery (English) jquery-en@googlegroups.com
Date: Friday, May 1, 2009, 2:22 PM
Hi Folks!
Here's my problem:
I want to make a
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.
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
:
$('#webcamimage').attr('src', 'http://example.com/cam.jpg?time='+Date
())
Danny
On Feb 12, 4:30 pm, James james.gp@gmail.com wrote:
You can use Javascript's setInterval function to constantly do a check
to update an image source.
How does the filename look like? Is it predictable?
On Feb 12
jQuery 1.3 finally got rid of the '@' in selectors. Just use 'img[src
$=.png]'
On Jan 25, 8:04 am, mcologne blueameri...@web.de 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
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
() method)
On Fri, Jan 2, 2009 at 1:10 AM, Danny d.wac...@prodigy.net 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 and highlight the elements,
or right
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
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
script type=text/javascript src=path/to/jquery-1.2.6.js/script
in your HTML file and jQuery away!
Danny
On Nov 2, 3:47 pm, minu
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 get a
According to the W3C standard, style elements can only go in the
head. It's a dumb rule, but it's the rule. IE and Firefox are happy
to put the style in the body, but Safari won't do it (it ignores
styles when setting innerHTML) and I assume Chrome, which is based
on WebKit, does the same.
You
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 checkbox when
you click anywhere on the row.
Here's a version
for 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 this.
Of course, users
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!
to 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
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 PROTECTED]
wrote
You're probably assigning to searchbox before the #searchinput element
exists:
head
script
$.searchfunction = { searchbox: $('#searchinput) } // empty jQuery
object because body hasn't been created yet
/script
/head
body
div id=searchinput/div
script
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] =
to the body. My solution was to separate out
the style element as a .css file, and include it in the head:
$('link type=text/css media=screen rel=stylesheet href=/css/
whatever.css').appendTo('head');
Danny
On Mar 9, 3:23 pm, rernens [EMAIL PROTECTED] wrote:
We extensively use jquery in conjunction
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, but
.
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 different functions in the chain then you need
to define two
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
general) ... Am I missing something that's staring me in the face
://microsoft.com/nothing.gif; onerror=somefunc() /
').appendTo('body')
works as well.
Danny
' 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!!!
and executed later but for now we have to
use function(){...}
HTH,
Danny
On Feb 5, 9:30 am, Pickledegg [EMAIL PROTECTED] wrote:
I'm reading 'learning jQuery'. In this example, and in fact every
example, why do you pass a function as an argument.
$(document).ready(function() {
$('.poem-stanza
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:
td
input class=SearchProdID type=hidden value=460 name=ProdID/
input class=SearchQty type=text value=1 size=2 name=qty/
input class=cartadd type
I think you would want to append just the ampersands, not 'amp;'
that's only to get the href past the HTML parser. Thus:
$('someImage').attr('src', '/umbraco/ImageGen.aspx?image=' +
originalSrc + 'width=' + width + 'height=' + height);
Danny
On Jan 31, 10:05 am, Karl Swedberg [EMAIL PROTECTED
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],
useful would be a custom filter that
tests any attribute:
$.expr[':'].attr = 'eval(m[3].replace(/^(\\w+)/,$.attr(a,\\$1\
\)))';
and now write:
$('.qualif:attr(level3)').remove();
Unfortunately the parser for [attr] is not extensible, so you
can't create a [level3] selector directly
Danny
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)
(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
variable? I'm trying to retrieve JSON
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
function htmlspecialchars(string) = { return $
('span').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 javascript/jQuery equivalent
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] wrote
-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:
$.fn.pluginName = function() {}
$.fn.pluginName.oneThing
It looks like you've got some syntax errors. In the first example, ul
id=c-rply-to'+id+'/ul is missing a double quote:
ul id=c-rply-to'+id+'/ul (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
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:
For quickie debugging to FIrebug, you could define
$.fn.log
) 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 every debug session I
encounter, both for Javascript/jQuery and for Drupal/PHP development
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 [EMAIL PROTECTED] wrote
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, 10:38 am, Smaon
).show();
Chaining is one of the most powerful features of jQuery... let it work for
you!
Brian.
On 12/12/07, Danny [EMAIL PROTECTED] wrote:
If you have no reason to chain your plugin (something like $
('#photo').photo(...).css(...).attr(...) then having it return a
different object
(...){
}
});
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,
ok, I'm in a big trouble right now. Let me try
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',
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, 10:12 pm, S. Robert James [EMAIL PROTECTED
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).
Am 01.11.2007 um 09
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:
: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
On Nov 1, 4:24 am, Jesse Klaasse [EMAIL PROTECTED] wrote:
As we all know
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
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 feedback
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.
what i want to do
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 red);
etc.
});
That ought to work!
Danny
Sagari-2 wrote:
Greetings,
I have a nasty surprise: jQuery
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!
You don't even need
75 matches
Mail list logo