[jQuery] jQuery 1.4+ and FF JSON.parse() error

2010-02-17 Thread Scott
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

RE: [jQuery] Can I use external domain with jQuery media plugin ?

2010-02-16 Thread Scott Stewart
>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

[jQuery] Re: Is there have any JQuery plugin that can sort 1A,2A,3A,... 10A, 11A, 12A, 13A, 14A?

2010-02-03 Thread Scott Sauyet
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

Re: [jQuery] New Forums

2010-01-22 Thread Scott Wilcox
+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

Re: [jQuery] New Forums

2010-01-22 Thread Scott Wilcox
Agreed. On 22 Jan 2010, at 00:38, Matt Quackenbush wrote: > Well stated, Shawn. I wholeheartedly concur. > smime.p7s Description: S/MIME cryptographic signature

[jQuery] Re: Call ajax on sucess response from a previous ajax

2010-01-21 Thread Scott Sauyet
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

[jQuery] Re: FastFlip like plugin

2010-01-21 Thread Scott Sauyet
e.com/search?q=jquery+carousel -- Scott

[jQuery] Re: click action effect/problem

2010-01-20 Thread Scott Sauyet
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

Re: [jQuery] (Validate) Checking once an Entry is Change

2010-01-20 Thread Scott Wilcox
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

[jQuery] Re: JQuery and AJAX Heartbeat question

2010-01-19 Thread Scott Sauyet
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

[jQuery] Re: Select part of text and add a CSS class

2010-01-18 Thread Scott Sauyet
On Jan 18, 4:55 pm, Scott Sauyet wrote: > It's a >         very typo: difficult -- Scott

[jQuery] Re: Sort options in select.

2010-01-18 Thread Scott Sauyet
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

[jQuery] Re: Open/Save as dialog box

2010-01-18 Thread Scott Sauyet
7;t know for sure, but I would doubt it. It's too close to OS operations. -- Scott

[jQuery] Re: Select part of text and add a CSS class

2010-01-18 Thread Scott Sauyet
ral case. Is this doable? Yes. Easy? Far from it. -- Scott

[jQuery] Re: JQuery and AJAX Heartbeat question

2010-01-18 Thread Scott Sauyet
, PHP might tell you that the file is ready even though its still being built. Good luck, -- Scott

[jQuery] Re: click action effect/problem

2010-01-18 Thread Scott Sauyet
uot;#submenu").toggle(); }); The idea is simply to ignore those events that are inside the submenu. Cheers, -- Scott

[jQuery] jQuery 1.4 and Broken UI Dialog Animations

2010-01-17 Thread Scott Gibson
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

[jQuery] (Validate) Checking once an Entry is Change

2010-01-16 Thread Scott Wilcox
oints or suggestions are welcome. Pastebin of code: http://pastebin.com/ma643a4e Scott. smime.p7s Description: S/MIME cryptographic signature

[jQuery] Re: Function help

2010-01-12 Thread Scott Sauyet
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

[jQuery] Re: Disable Submit

2010-01-12 Thread Scott Sauyet
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

[jQuery] Re: Accessing an objects array from an $.ajax call

2010-01-12 Thread Scott Sauyet
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

[jQuery] Re: Accessing an objects array from an $.ajax call

2010-01-12 Thread Scott Sauyet
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

[jQuery] Re: Displaying reviews using js widgets such as in freeindex.co.uk

2010-01-11 Thread Scott Sauyet
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

[jQuery] Re: Why mootools animations is more smooth than jquery?

2010-01-11 Thread Scott Sauyet
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

[jQuery] Re: Displaying reviews using js widgets such as in freeindex.co.uk

2010-01-11 Thread Scott Sauyet
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

[jQuery] Re: Optimized jQuery

2010-01-11 Thread Scott Sauyet
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

[jQuery] Re: Go through XML nodes only 1 level deep

2010-01-08 Thread Scott Sauyet
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

[jQuery] Re: jQuery and IE 8

2010-01-07 Thread Scott Sauyet
I don't get any error. Have you fixed it since posting yesterday? -- Scott

[jQuery] Re: Why mootools animations is more smooth than jquery?

2010-01-06 Thread Scott Sauyet
you been here asking this question before? Are you trying to get information or prove some obscure point? -- Scott

[jQuery] Re: Pass object to function

2010-01-06 Thread Scott Sauyet
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

Re: [jQuery] Re: Form submit success method not being called

2010-01-06 Thread Scott Brady
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

[jQuery] Re: Cycle and softedge

2010-01-06 Thread Scott Sauyet
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

[jQuery] Re: jQuery parent remove

2010-01-06 Thread Scott Sauyet
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

[jQuery] Re: jQuery Equivalent of Prototype Function.bind

2010-01-06 Thread Scott Sauyet
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

[jQuery] Form submit success method not being called

2010-01-05 Thread Scott Brady
ajaxForm() work better? Or, is there something I'm actually doing wrong that you can see? -- - Scott Brady

[jQuery] Re: How to gain reference to hyperlink that is clicked

2010-01-05 Thread Scott Sauyet
per object containing only that element. -- Scott

RE: [jQuery] Another "Why doesn't this work in IE"

2010-01-04 Thread Scott Stewart
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

[jQuery] Another "Why doesn't this work in IE"

2010-01-04 Thread Scott Stewart
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

[jQuery] Re: Help on Independent DIV's that toggle!!

2010-01-01 Thread Scott Sauyet
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

[jQuery] Re: Referring to the current DOM object in a jQuery method parameter list

2009-12-31 Thread Scott Sauyet
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

[jQuery] Re: Help on Independent DIV's that toggle!!

2009-12-31 Thread Scott Sauyet
-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

[jQuery] Re: jQuery + OOP + AJAX

2009-12-31 Thread Scott Sauyet
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

[jQuery] Re: Plugin Authoring and $.extend

2009-12-30 Thread Scott Sauyet
uery.extend#object If you only pass one object to extend, jQuery assumes you mean to extend jQuery itself. -- Scott

[jQuery] Re: jQuery + OOP + AJAX

2009-12-30 Thread Scott Sauyet
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

[jQuery] Re: jQuery + OOP + AJAX

2009-12-29 Thread Scott Sauyet
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

[jQuery] Re: Why does this work??

2009-12-28 Thread Scott Sauyet
x27;re trying to use script tags for something other than JS content, but that's pretty rare. Cheers, -- Scott

[jQuery] Re: jQuery suggestion

2009-12-28 Thread Scott Sauyet
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

[jQuery] Re: jQuery + OOP + AJAX

2009-12-28 Thread Scott Sauyet
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) {

[jQuery] Re: Problem with a search form in a loaded php file??

2009-12-28 Thread Scott Sauyet
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

[jQuery] .attr issue in Chrome on Windows

2009-12-23 Thread Scott Wilcox
t,filename) { $("#card").attr("src","/cache/" + t + "/" + filename); } Any ideas? Scott. smime.p7s Description: S/MIME cryptographic signature

[jQuery] Re: .add()

2009-12-23 Thread Scott
; > 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

[jQuery] Re: .add()

2009-12-23 Thread Scott
> $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.

[jQuery] Re: .add()

2009-12-23 Thread Scott
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

[jQuery] .add()

2009-12-23 Thread Scott
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

[jQuery] Re: Image Upload and preview

2009-12-23 Thread Scott Sauyet
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

[jQuery] Re: Problem with jQuery and AJAX

2009-12-23 Thread Scott Sauyet
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

[jQuery] Re: Jquery .submit not firing up!

2009-12-23 Thread Scott Sauyet
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

[jQuery] Re: Problem with window focus event in Firefox 3.5/Win Vista?

2009-12-23 Thread Scott Sauyet
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

[jQuery] Re: How to get these two slide show to alternate?????

2009-12-23 Thread Scott Sauyet
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

[jQuery] Re: Problem with a search form in a loaded php file??

2009-12-23 Thread Scott Sauyet
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

RE: [jQuery] passing variables to JQuery

2009-12-22 Thread Scott Stewart
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

[jQuery] passing variables to JQuery

2009-12-22 Thread Scott Stewart
;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?

[jQuery] Re: Plugin development: Defaults & options: Questions?

2009-12-21 Thread Scott Sauyet
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

[jQuery] Re: Plugin development: Defaults & options: Questions?

2009-12-21 Thread Scott Sauyet
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

[jQuery] Re: huge drop down

2009-12-21 Thread Scott Sauyet
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/

[jQuery] Re: huge drop down

2009-12-21 Thread Scott Sauyet
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

[jQuery] Re: onclick and jquery in the Outlook browser

2009-12-18 Thread Scott Sauyet
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

[jQuery] Re: more ckeditor

2009-12-17 Thread Scott Sauyet
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

[jQuery] Re: more ckeditor

2009-12-17 Thread Scott Sauyet
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

[jQuery] Re: jquery and shtml - 2 problems

2009-12-16 Thread Scott Sauyet
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

[jQuery] Re: more ckeditor

2009-12-16 Thread Scott Sauyet
call this as soon as $("#fck").ckeditor() returns, but I'm far from sure. Good luck, -- Scott

[jQuery] Re: more ckeditor

2009-12-16 Thread Scott Sauyet
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

[jQuery] Re: more ckeditor

2009-12-16 Thread Scott Sauyet
keditor.instance("textarea1") Worth a try, any way. -- Scott

[jQuery] Re: IE stops recurring ajax call

2009-12-16 Thread Scott Sauyet
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

[jQuery] Re: Passing parameters to a function with a click event

2009-12-15 Thread Scott Sauyet
olm").click (function(event) { checkAnswer($(this).attr('class'), $(this).parent().parent ().attr('id')); return false; }); Cheers, -- Scott

[jQuery] Re: JQuery - CSS - style unordered list

2009-12-15 Thread Scott Sauyet
("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

[jQuery] Re: JQuery - CSS - style unordered list

2009-12-15 Thread Scott Sauyet
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

[jQuery] Re: IE stops recurring ajax call

2009-12-15 Thread Scott Sauyet
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

RE: [jQuery] Re: load() function and IE8

2009-12-15 Thread Scott Stewart
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

[jQuery] Re: IE stops recurring ajax call

2009-12-14 Thread Scott Sauyet
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

[jQuery] validate (help with plugin)

2009-12-14 Thread Scott Phillips
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")

[jQuery] Re: IE stops recurring ajax call

2009-12-14 Thread Scott Sauyet
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

RE: [jQuery] Debugging in IE

2009-12-14 Thread Scott Stewart
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:

RE: [jQuery] Re: load() function and IE8

2009-12-14 Thread Scott Stewart
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,

RE: [jQuery] Re: load() function and IE8

2009-12-14 Thread Scott Stewart
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

[jQuery] Re: Current page

2009-12-11 Thread Scott Sauyet
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

[jQuery] Re: Collapsing

2009-12-11 Thread Scott Sauyet
the inline Javascript. That is very rarely the best solution to anything. Good luck, -- Scott

[jQuery] Re: Selecting a value from a SELECT field?

2009-12-11 Thread Scott Sauyet
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

[jQuery] Re: visible divs and selectors

2009-12-11 Thread Scott Sauyet
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

[jQuery] load() function and IE8

2009-12-11 Thread Scott Stewart
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.

[jQuery] Re: visible divs and selectors

2009-12-11 Thread Scott Sauyet
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

[jQuery] Re: jQuery no conflict question

2009-12-11 Thread Scott Sauyet
have to avoid using "$" for jQuery, although you can define your own shortcut like so: var $jq = jQuery.noConflict(); Cheers, -- Scott

[jQuery] Re: jquery conflict with prototype

2009-12-10 Thread Scott Sauyet
is: (function($) { // here $ refers to jQuery })(jQuery); But there are many other techniques listed in that document. Cheers, -- Scott

[jQuery] Re: Traversing Help

2009-12-10 Thread Scott Sauyet
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

[jQuery] Re: NEED HELP::siblings isssue in jquery

2009-12-10 Thread Scott Sauyet
t siblings; they're cousins. Maybe something like this: $("a").click(function(){ $(this).parents("ul").find("a").removeClass("bg"); $(this).addClass("bg"); }); Cheers, -- Scott

[jQuery] Re: huge drop down

2009-12-10 Thread Scott Sauyet
You might look at a plug-in like: http://code.google.com/p/dropdown-check-list/ Good luck, -- Scott

[jQuery] Re: Unexpected append behavior

2009-12-10 Thread Scott Sauyet
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

[jQuery] Re: previous

2009-12-10 Thread Scott Sauyet
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

[jQuery] Re: previous

2009-12-07 Thread Scott Sauyet
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

[jQuery] Re: Document undefined error

2009-12-07 Thread Scott Sauyet
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   2   3   4   5   6   7   >