[jQuery] Re: Loading before dom = ready - Best Practices.

2009-04-24 Thread dhtml
On Apr 23, 3:45 pm, Adam wrote: > > That sounds like a potential accessibility issue. > > I certainly think so, hence the question :] > Why can't you just include the content from the server? If the goal is to have the information when the page loads, send it in the initial request. Bots will

[jQuery] Re: Invalid Argument Line 12 1.3.2 IE 7 and 8rc1

2009-04-26 Thread dhtml
On Mar 9, 3:43 am, phipps_73 wrote: > Hi, > > I have just upgraded one of our development sites to 1.3.2 and ui 1.7. > I have also updated all of the plugins > (forms,validate,thickbox,calculation,blockUI,autogrow) to the latest > versions which should all be compatible with 1.3.2 and the site

[jQuery] Re: The jQuery Object, Namespaces, and Program Modules -- Connecting the Dots Between jQuery and Javascript

2009-05-06 Thread dhtml
On May 5, 1:53 pm, Matt Kruse wrote: > On May 5, 3:38 pm, kiusau wrote: > > > QUESTION:  If a lone pair of parentheses can be used to automatically > > call a function, then what does it mean when two pairs are juxtaposed > > in the same statement as follows:  ()(jQuery);? > > See, this is pur

[jQuery] Re: dealing with a post (json) callback

2009-05-17 Thread dhtml
On May 13, 1:29 pm, Peter Warnock wrote: > [ ] is an array literal, like { } is an object literal. > > var obj = json[0]; > > You shouldn't useevalon JSON.  If you specify 'json' as your return > type, jQuery will safelyevalvalid JSON. > jQuery uses what ECMA 262 calls "indirect eval". window

[jQuery] Re: Calling a function from a non-jQuery .JS file

2009-04-14 Thread dhtml
On Apr 14, 8:58 am, Klaus Hartl wrote: > On 14 Apr., 15:41, MorningZ wrote: > > > So what is the error > > The error is obviously that toDate is not a jQuery method. Another Right. > problem is that that Dreamweaver method is using document.write which > can cause a problem depending on wher

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread dhtml
On Apr 14, 9:34 pm, sneaks wrote: > hi! i am trying to use jQuery.post() to send name/value to a php > function which then retreives data from mysql and responds with JSON > which looks like this when i append it directly to my debug output > div: > [...] > i have tried to iterate through the

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread dhtml
On Apr 15, 4:34 pm, sneaks wrote: [posting order restored] > On Apr 15, 1:28 pm, dhtml wrote: > > > On Apr 14, 9:34 pm, sneaks wrote: > > > > hi! i am trying to use jQuery.post() to send name/value to a php > > > function which then retreives data

[jQuery] Re: question about dealing with JSON callback

2009-04-16 Thread dhtml
On Apr 15, 7:33 pm, sneaks wrote: > for anyone having similar problem heres how i resolved it: > >         function getProductInfo(product_id) { >                 jQuery.post( >                         "/wp/wp-admin/admin-ajax.php", { >                                 action: "getProductInfo",

[jQuery] Re: question about dealing with JSON callback

2009-04-16 Thread dhtml
On Apr 16, 12:42 am, mkmanning wrote: > Just an FYI, but there's no 'object side' of the json in your example. > It just an object, consisting of name-value pairs. While you can leave No, it is not an object. It is a string. > quotes off of the names, they are strings which, according to the

[jQuery] Re: how to streamline my code with Event Delegation?

2009-04-16 Thread dhtml
On Apr 16, 12:28 pm, redsun wrote: > i'm sure the jQuery i'm using below is very ineffiecient. the only I would not doubt that it is inefficient (you are using jQuery). > syntax that changes are the numbers in the names of my IDs and my > variables - and even they're matching. everything else

[jQuery] Re: question about dealing with JSON callback

2009-04-17 Thread dhtml
On Apr 16, 5:14 pm, mkmanning wrote: > As I said before: it's a string until it's eval'd, which happens with > the 'json' response type within jQuery, or as I said you can eval the Notice carefully what 'sneaks' used for his dataType: jQuery.post( "/wp/wp-admin/admin-ajax.php", {

[jQuery] Re: Creating custom attributes in html

2009-04-17 Thread dhtml
On Apr 14, 3:34 pm, Ricardo wrote: > If you insert these attributes server-side, the page will not validate > and might trigger quirks mode in the browser. Which browser? Thanks, Garrett

[jQuery] Re: question about dealing with JSON callback

2009-04-22 Thread dhtml
On Apr 17, 10:55 am, mkmanning wrote: > >- the dataType is "JSON", not "json". > >(I pointed this out earlier in this thread) > > I noticed what sneaks did, I also noticed you had pointed it out, > which is why my comment was in direct reply to sneaks post about the > 'object side' and removing

[jQuery] Re: Loading before dom = ready - Best Practices.

2009-04-23 Thread dhtml
On Apr 23, 12:13 pm, hedgomatic wrote: > While virtually every site in existence trumpets using the jQuery DOM- > ready shortcut as an absolute must, I've come across situations which > I feel frustrate the user, particularly when using jQuery to create a > navigational element. > That sounds