error seen was "script stack space quota is exhausted" when
processing large chunks of json data. Smaller chunks had no problem.
The solution was to be less secure and force the dataType to text then
eval() the result into a JS object. Hope this helps someone.
--
Scott
--
Scott
>From what I've seen the answer is no..
The workaround is to build a redirect page in whatever backend processing
language you're using (ColdFusion, JSP, .Net, PHP), then call the redirect
page in the href.
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups
rn 0;
}
}
};
})();
var values = ["12A", "11B", "1A", "2C", "2B", "2A",
"1a", "4B", "13C", "12C", "3B", "3A"];
// 1A,1a,2A,2B,2C,3A,3B,4B,11B,12A,12C,13C
alert(values.sort(sorter));
Good luck,
-- Scott
+vote for Mailman.
On 22 Jan 2010, at 08:41, Octavian Râşniţă wrote:
> From: "brian"
> FWIW, I'm pretty sure the decision to drop Google Groups is due to
> John Ressig's account being spoofed by spammers. It's happened to me,
> also. That, too, is unacceptable.
>
> I vote for Mailman, or some o
Agreed.
On 22 Jan 2010, at 00:38, Matt Quackenbush wrote:
> Well stated, Shawn. I wholeheartedly concur.
>
smime.p7s
Description: S/MIME cryptographic signature
ire on after
> another?
Do you have the ability to post a full sample somewhere? That is, one
with actual working AJAX calls and a broken attempt to nest them? It
might be more helpful than the code sample posted here. (It would be
nice if it were quite minimal too.)
Cheers,
-- Scott
e.com/search?q=jquery+carousel
-- Scott
x27;s page here:
http://jsbin.com/ejuga3/3 (code: http://jsbin.com/ejuga3/3/edit)
Can you try my second one to see if that works?
-- Scott
Got it working now, but thanks!
Turned out my backend wasn't returning right. Human error we'll call it ;)
On 19 Jan 2010, at 20:22, Nathan Klatt wrote:
> On Sat, Jan 16, 2010 at 6:42 PM, Scott Wilcox wrote:
>> Pastebin of code: http://pastebin.com/ma643a4e
>
> Hi
x this. But that would mean that your server might hang, for say
ten minutes on other requests that are not processing, just stuck.
I think the solution I suggested before would not be terribly
difficult to work out.
Good luck,
-- Scott
On Jan 18, 4:55 pm, Scott Sauyet wrote:
> It's a
> very
typo:
difficult
-- Scott
tion to
the call like this:
$("selector").sortOptions(true, {sortFn: mySortFn});
You might want to do some additional work to allow the first parameter
to sortOptions to remain optional.
As to actually implementing your sort, I leave that to you
Good luck,
-- Scott
7;t know for sure, but I would doubt it. It's too close to OS
operations.
-- Scott
ral case.
Is this doable? Yes. Easy? Far from it.
-- Scott
, PHP
might tell you that the file is ready even though its still being
built.
Good luck,
-- Scott
uot;#submenu").toggle();
});
The idea is simply to ignore those events that are inside the submenu.
Cheers,
-- Scott
I dropped the new jQuery 1.4 into my site, and suddenly every dialog
window stopped working.
Simple dialog code no longer works:
$(div).dialog({show: "drop"});
It will play the animation, but when the animation finishes the dialog
disappears.
I've tried this with jQuery UI 1.7.1, 1.7.2, and 1.8a
oints or suggestions are welcome.
Pastebin of code: http://pastebin.com/ma643a4e
Scott.
smime.p7s
Description: S/MIME cryptographic signature
creating a jQuery plug-in for your
functionality, so that you could use it like this:
$("#myForm").addRecord().hide().fadeIn('slow');
That would have some advantages, but is probably not worth the
effort. If you're interested, Mike Alsup's tutorial is excellent:
http://www.learningjquery.com/2007/10/a-plugin-development-pattern
None of these are tested, of course.
Good luck,
-- Scott
cular button, but some variation of
this might do.
It's not that I think this is a better solution than blockUI, but it's
a useful technique in its own right.
Cheers,
-- Scott
low it as
well.) So you've essentially delayed the execution of comparing 0 and
1.
> Well thanks a lot for the superb and detailed answer. You helped me a
> lot.
Glad to hear it. You're welcome.
-- Scott
ce code, it is executed later,
after the value you're checking has actually been updated.
I've posted an example of this to
http://jsbin.com/oxegu (code http://jsbin.com/oxegu/edit)
Good luck,
-- Scott
at it might still be a good idea for the server to
offer a JSONP version anyway. This way, JS-savvy users could
integrate the reviews into their site as they like, without using a
widget which might not fit at all with their design. Just a thought.
Good luck,
-- Scott
e MooTools example collapses the images, they move
to locations within +- 20 pixels from the location of the clicked
image, and are not rotated. When the jQuery example collapses the
images, they move to the same location as the clicked image, and are
rotated to between -20 and 20 degrees.
In other words, these two animations are far too different to use for
comparing the libraries.
-- Scott
ort error or ignore as you like
}
);
The trouble I see with doing it this way is that you will need hook
into the DOM on an arbitrary site, or proceed with additional
document.write statements in any case. And if you have to do the
latter, why not simply format the server-side response as
document.write statements?
Good luck,
-- Scott
On Jan 10, 8:14 pm, Adrian Lynch wrote:
> I get a bad feeling when I'm asked to go to a site using IE!
>
> Anyone had a look?
I couldn't see anything strange with IE. What animations are causing
problems?
-- Scott
PHP code (which is quite
possibly horrible; I don't know PHP that well):
http://scott.sauyet.com/Javascript/Demo/2010/01/08b/proxy.phps
This is a very limited proxy, proxying only these requests.
-- Scott
I don't get any error. Have you fixed it since posting yesterday?
-- Scott
you been here asking this question before? Are you trying to
get information or prove some obscure point?
-- Scott
On Jan 6, 2:17 pm, knal wrote:
> BTW It also works without the " return this.each() { " part!
Yes, but that allows you to continue chaining, i.e.
$(this).closest(".project").closeProject().css({color: "blue"});
or whatever. This is the usual technique with jQuery plug-ins.
-- Scott
Thanks! I'll try that.
I have an idea what it might be, but that code is at home. I think I
might not be getting rid of the prefix ColdFusion adds to json
responses -- I'll have to see if there's a preprocessing directive
like jquery's built in ajax calls have.
Scott
On W
cation with increasing opacities and
decreasing clip size.
But I think if you put your images in some containers and use the
cycle plug-in on those containers, it might work.
Good luck,
-- Scott
his);
$.get('ajax/update-callback.php', {/* ... */},
function(data){
alert(deleteImg.attr('id'));
deleteImg.remove();
}
);
});
});
Cheers,
-- Scott
[1] According to the docs, "this" refers to the options for your ajax
request
On Jan 5, 9:43 am, Bruce wrote:
> Is there a jQuery way of doing this Prototype bind?
I don't know about built-in means, but here is one that Google
provides:
http://groups.google.com/group/jquery-en/msg/0980e113f097720a
-- Scott
ajaxForm() work better? Or, is
there something I'm actually doing wrong that you can see?
--
-
Scott Brady
per object containing only that element.
-- Scott
It's doing a DB Update on the back side, so it may not be "ready" until
after the update completes..
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Nathan Klatt
Sent: Monday, January 04, 2010 3:52 PM
To: jquery-en@googlegroups.com
Subje
ith new data.
You wind up with a table that rows are removed from when a link is clicked.
This works fine in Firefox, but no re-rendering in IE, the database calls
happen,, but nothing is sent back to the browser.
Any suggestions
--
Scott Stewart
IT Consultant/ColdFusion Developer
4405 Oakshyre Way
Raleigh, NC 27616
(919) 874-6229
On Dec 31 2009, 5:10 pm, Šime Vidas wrote:
> Scott, you used A elements as JS triggers which is not proper... the A
> element is for linking to other web-resources. If you need an element
> for onclick JS execution, just use a button or a SPAN element
Well, I was modifying exis
up, because we are not yet in such a
context.
The best we could do is to pass in a function which could then be
evaluated in the correct context. That is what ".each()" does, as do
numerous other calls. But they won't give you the syntactic
convenience you're looking for.
Sorry.
-- Scott
-development-pattern
This has been a long post, especially for one that started by saying
that the problem is not complex! I still say that. In fact, I spent
much more time typing the post than in creating pages with six
variations of your code and markup to match.
As you get more experience with jQuery, you will find yourself
starting with markup and code similar to this. There is no real
complexity in it. It's simply a matter of learning what you can
comfortably do with Javascript and with jQuery.
Cheers,
-- Scott
quot;$" is just a regular character in variable names. Many jQuery users
will use it to visually distinguish variables representing jQuery
collections from DOM elements or other JS variables. Just a reminder
to myself.
-- Scott
uery.extend#object
If you only pass one object to extend, jQuery assumes you mean to
extend jQuery itself.
-- Scott
On Dec 30, 10:51 am, fran23 wrote:
> Thanks Scott ! Your proposals are an inspiration in doing things better.
Glad to help. This one will have to be shorter...
> > First of all, does the click have to be in the last paragraph itself?
> > Or could it be in some parent c
here:
http://scott.sauyet.com/Javascript/Demo/2009-12-29a/
or, with that last addition, here
http://scott.sauyet.com/Javascript/Demo/2009-12-29a/?last
This may be oversimplified, because I have no error handling on last
chapter, simply looping back to the first, but I think this captures
the gist of it.
Good luck,
-- Scott
x27;re trying to use
script tags for something other than JS content, but that's pretty
rare.
Cheers,
-- Scott
istent goal of the jQuery team has been to keep the library as
lean as possible, and such tricks help, with practically no
performance cost.
I believe it would take a great deal of persuasion to convince the
team that supporting code completion in this way is worth the
additional weight of the download, but feel free to try... :-)
-- Scott
not really the most natural fit. JS is more of a
functional language, and its natural object system is based upon
prototypes rather than classes. The equivalent of constructors are
just plain functions accessed with "new", in this manner:
function Person(firstName, lastName) {
MLHttpRequest, textStatus, errorThrown) {
// typically only one of textStatus or errorThrown
// will have info
this; // the options for this ajax request
}
So when it's thrown, investigate textStatus and/or errorThrown to help
find the cause of the error.
Good luck,
-- Sco
t,filename) {
$("#card").attr("src","/cache/" + t + "/" + filename);
}
Any ideas?
Scott.
smime.p7s
Description: S/MIME cryptographic signature
;
> filter doesn't work the same either...
>
> as
>
> http://jsbin.com/imifa/edit
>
> chaining sticks to the current processed line, it doesn't remember for
> later processing unless it's told to :-)
>
> On Dec 23, 2:07 pm, Scott wrote:
>
> > > $ob
> $obj1 = $obj1.add($obj2);
Ok, this is what I was missing.
I don't know why I assumed it would work this way when .filter() is
the same.
quot;background", "yellow");
>
> That will add a 2px red border around any 'div' element.
>
> Then add in a new selector and grab all of the elements. Add a yellow
> background to the previously selected elements, as well as the newly
> selected ele
Maybe I'm not understanding the point of .add() but it doesn't really
do what I'd expect nor can I figure out how to do what I thought would
be simple.
I want to combine 2 jquery objects.
var $obj1 = $(".stuff");
var $obj2 = $(".morestuff");
$obj1.add($obj2);
alert($obj1.length);
This doesn't do
ders would also likely be able to help.
Good luck,
-- Scott
[1] The Sun Servlet forum is usually pretty active and pretty
helpful: http://forums.sun.com/forum.jspa?forumID=33
on 2.1 of the FAQ [1] or at the Ajax
and Events Tutorial [2] to see if that's the issue.
-- Scott
[1] http://docs.jquery.com/Frequently_Asked_Questions
[2] http://docs.jquery.com/Tutorials:AJAX_and_Events
On Dec 23, 9:25 am, Mike Alsup wrote:
> If you can't post a link then create a very simplified example that
> demonstrates the problem and post a link to that.
And if you haven't used it, JSBin is an excellent place to do it:
http://jsbin.com/
-- Scott
log is closed. Leonardo Balter's suggestion may do it for
you, or find a way to use something other than an alert on focus.
Cheers,
-- Scott
t: 3000});
I haven't used the plugin, but looking at the documentation, I think
you have delay and timeout switched. Delay is how long before it
starts out. Timeout is how long between each slide.
I think both need a timeout of 6000, and one needs a delay of 0, the
other of 3000.
-- Scott
On Dec 23, 4:37 am, 123gotoandplay wrote:
> Now i am 'loading' list.php in #content and now the search function
> doesn't work.
You might want to look at question 2.1 of the FAQ [1] or at the Ajax
and Events Tutorial [2] to see if that's the issue.
-- Scott
tion. Then, on a page where
it uses the defaults, you can leave those parameters out of the call.
This, of course, pollutes the global namespace. You probably should define
a namespace and put it there. But that is your choice.
Also, re-think your use of .live(). Are you adding and removing butto
;d like to be able to do is have one code chunk that I throw variables
at, instead of cutting/pasting and changing the hard coded values it would
be much more elegant and make troubleshooting a lot easier. Not to mention
making my .js file a helluva lot smaller.
Any thoughts on how to do this?
tor? Why not a plain JS function of the following form?:
function myFunction(source, target)
You could still use jQuery inside the function.
Perhaps it's just to learn jQuery plug-ins, and there's nothing wrong
with that. But if it doesn't work on multiple elements, should it
really be a plug-in? Food for thought, anyway.
Good luck,
-- Scott
n options hash, and you would have to deal with the fact that
some are required mainly in the documentation. I'm not sure where the
dividing line would be, but a single mandatory parameter definitely
falls in the simpler-is-better category.
Cheers,
-- Scott
ay to go. But the issue you presented with your sample code is
not a JQuery issue or a Javascript one. It's probably best addressed
as HTML/CSS.
Good luck,
-- Scott
[1] http://jsbin.com/
be a CSS or HTML
problem. And you do not post a test case anywhere that we might use
for testing.
And then you whine about it when no one has followed up for thirteen
hours, quoting your entire previous post in the process.
I'd love to be able to help, but you're not holding up your end of the
bargain.
-- Scott
ple:
http://jsbin.com/eqiva (code http://jsbin.com/eqiva/edit)
I don't know if this will fix your Outlook issue, but I think it sets
you off in a better direction.
Good luck,
-- Scott
[1] http://tinyurl.com/ydu7hsz
if (testFn()) {
mainFn();
} else if (!timeout || new Date().getTime() < start +
timeout) {
setTimeout(again, 10);
} else {
// wait timed out.
}
}, 10);
}
At least here, you don't have to wait an arbitrary two seconds, but
are ready to go almost as soon as your data is back.
Good luck,
-- Scott
ting before that is
> finished I get CKEDITOR is undefined.
Perhaps just this, then:
$("#fck").ckeditor()
CKEDITOR.on( 'instanceReady', function(event) {
// your code here
});
It's worth a try in any case.
-- Scott
wrong, but a quick trip to
the W3C validator shows many more errors in your full page than in
your plain HTML one:
http://tinyurl.com/ydvcqvw (plain HTML)
http://tinyurl.com/y9pfxo8 (with SSI)
One thing I did notice that is disconcerting is an additional BODY tag
in the SSI version.
Good luck,
-- Scott
call this as soon as $("#fck").ckeditor()
returns, but I'm far from sure.
Good luck,
-- Scott
eight:
300 };
It seems as though the jQ plug-in uses this to actually load the
CKEditor code rather than declaring it in the HTML markup. I don't
know why...
-- Scott
keditor.instance("textarea1")
Worth a try, any way.
-- Scott
y of chained requests like that, I'd be surprised
if that's the issue. I wonder if there are any differences in what
"next()" in that chain is giving you in IE versus FF. Not that at
matters for you since you've got a working solution, but it's
curious...
I'm glad you got it working.
Cheers,
-- Scott
olm").click (function(event) {
checkAnswer($(this).attr('class'), $(this).parent().parent
().attr('id'));
return false;
});
Cheers,
-- Scott
("color");
The difference is that I incorrectly ended the quote and started a new
one around the comma. They should all be together in a single
selector.
> Thanks for the help Dude, I appreciate it
You're welcome.
-- Scott
n or
4n + 1?
If that's the case then this should do it:
$("ul ").each(function() {
$(this).find("li:nth-child(4n+2)", "li:nth-child(4n
+3)").addClass("color");
});
If not, can you describe the pattern better?
-- Scott
a quick alternative for you. A long time later I
was still trying to fill in the details. I should either have trimmed
it down or followed it through all the way. I'm glad that it was at
least food for thought.
Good luck on your project.
-- Scott
see if a test page somewhere.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Dec 14, 2009, at 9:41 AM, Scott Stewart wrote:
"working" and "supported" are two different animals
This is true...
Back to my particular ano
full of typos, and maybe it wouldn't work
at all for your case, but I think it would be easier to write
something reusable like this and then use if a few times in your code
than to do this deeply nested, and very fragile-looking code.
Good luck,
-- Scott
[1] http://www.fiddler2.com/fiddler2/
[2] http://getfirebug.com/lite.html
I am trying to get the validate plugin (http://docs.jquery.com/Plugins/
Validation) to work with my forms, but all I seem to be able to
produce is errors My code looks like this (I've commented out
where I was trying to add it):
$(function () {
//$("#loginForm").validate({
$("#loginForm")
On Dec 13, 1:52 pm, Henjo wrote:
> It works flawlessly in FF, Safari, Chrome... But IE is being nasty on
> me!
"Being nasty" is probably quite accurate, but not specific enough for
us to offer help!
What's happening. Better yet, is there a way you can post a live URL?
-- Scott
There is a Firebug Lite which runs in IE, it's not nearly as good as
Firebug, but it's better than nothing (or the "developer tools" in IE8
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Henjo
Sent: Monday, December 14, 2009 2:46 PM
To:
and, no surprise here, IE doesn't bubble
events the way that works with ".live()" but apparently some way
around IE's shortcomings is in place for 1.4's implementation of ".live
()"
On Dec 14, 8:56 am, "Scott Stewart" wrote:
> Thanks Karl,
09 12:33 AM
To: jQuery (English)
Subject: [jQuery] Re: load() function and IE8
Hi Scott,
Take a look at the documentation for the .live() method:
"Currently not supported: blur, focus, mouseenter, mouseleave, change,
submit"
http://docs.jquery.com/Events/live#typefn
The change event do
On Dec 11, 11:14 am, "Atkinson, Sarah"
wrote:
> How do I mark the current page in a list of links?
$("#myList a").each(function() {
if (this.href == document.location.href) $(this).addClass
("currentPage");
});
-- Scott
the inline
Javascript. That is very rarely the best solution to anything.
Good luck,
-- Scott
And your other syntax should also work as well:
http://jsbin.com/oredo (code http://jsbin.com/oredo/edit)
Must be something else on the page...
-- Scott
rward, and at the end of it we set the
variable "current" to the newly-opened div.
I think that will do what you want without flicker and without having
to try to close all the elements.
Cheers,
-- Scott
I fat fingered the last one so...
I have this piece of code
$("#AP_PONum").live("change", function(){
ap_po = $("option:selected",this).val();
$("#content-box").load("webapps/finished_jewelry/PurReq/display/
dsp_addPurchaseRequest.cfm?poNum="+ap_po);
});
which works like a champ in firefox.
Any chance you could post a small test case somewhere? I *think* I
understand what's happening, but without seeing it, it's hard to
diagnose.
-- Scott
have to avoid using "$" for jQuery,
although you can define your own shortcut like so:
var $jq = jQuery.noConflict();
Cheers,
-- Scott
is:
(function($) {
// here $ refers to jQuery
})(jQuery);
But there are many other techniques listed in that document.
Cheers,
-- Scott
is that "prev" returns only the immediate previous sibling
of the selected element, and, if you supply a selector, won't return
even that element if it doesn't match the selector. If you want the
first prior sibling matching the selector, you can use "prevAll
('selector:first')".
Cheers,
-- Scott
t siblings; they're cousins.
Maybe something like this:
$("a").click(function(){
$(this).parents("ul").find("a").removeClass("bg");
$(this).addClass("bg");
});
Cheers,
-- Scott
You might look at a plug-in like:
http://code.google.com/p/dropdown-check-list/
Good luck,
-- Scott
ve the selector result and
use array.push/array.join instead of appending each individually, but
I wouldn't bother unless there are problems. This code is quite
clean.
Good luck,
-- Scott
On Dec 8, 4:17 am, lennon1980 wrote:
> Cheers..thats pretty cool. One more thing actually..I need the element to
> be a div..how do I add this to the selector
This might do it:
var item = $("#feature").prevAll("div[class]:first");
Cheers,
-- Scott
contain an attribute named "class" and then choose just
the first one of these. ('First' here does not mean document order
but something more like 'closest'.)
Cheers,
-- Scott
eat
many tasks, but without additional code to actually do something with
it, it's not clear what it would meant that it works.
Good luck,
-- Scott
[1] This is an oversimplification, but is enough for this discussion.
1 - 100 of 619 matches
Mail list logo