[jQuery] Re: What is wrong with this code

2007-04-20 Thread joomlafreak
Thanks for the reply Brian, I tried your way but didn work. I looked at the docs again and it says it should be like this jQuery(item_content).filter("#contentpane .contentpane > p, :first"); But unfortunately this also did not work. As for th cloning of node, Well I am novice to javascript and

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Priest, James \(NIH/NIEHS\) [C]
> -Original Message- > From: Scott Sauyet [mailto:[EMAIL PROTECTED] > header HTTP_X_REQUESTED_WITH means no extra work in the JS, and is > probably a better idea, as long as you are sure you will be > using JQuery This sounds like the best way - I think you were using CF right? May

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
The only question now is whether or not HTTP_X_REQUESTED_WITH is compatible with ColdFusion 4.5... > the client side can easily *tell* that to the server side It doesn't really matter how the server-side knows, as long as it knows :o) And a question about adding it to a URL... how does the clie

[jQuery] Re: Google AJAX Feed API

2007-04-20 Thread Mike Alsup
Hi Chris, Typically you need a server-side component to pull off a mashup because you're combining content from multiple sources. JavaScript employs a same origin policy to prevent XHR requests to foreign domains so you need to do your mashing on the server. But with this new Google API you ca

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Scott Sauyet
Rick Faircloth wrote: The simplest thing is just to add a post parameter that says "ajaxOn=true" or some such, then check for that server-side. It wasn't included in the HTML, or it was set to false, so if it's true, the server knows to respond with an AJAX request. It's pretty straightforw

[jQuery] Re: What is wrong with this code

2007-04-20 Thread Brian Miller
Quick-n-dirty way: use .eq(0).innerHTML instead of .eq(0) . But, what might probably work better is if you cloned the node and inserted it into #myContent (assuming that it winds up as valid DOM that way). - Brian > Hi > this is what I have > > jQuery.get(item_link,function(item_content){ > >

[jQuery] Is there an image cropping plugin?

2007-04-20 Thread Kim Johnson
Hi folks, I'm wanting to do the following thing: 1. User browses for an image 2. User crops image with a pre-set sized outline 3. Image is uploaded onto the server I know how to do #1 and #3. I also know how to do the error checking stuff like making sure the file/image is the right size, etc.

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Brad Perkins
In PHP I use something like this: $isAjaxCall = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER ['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest'; I'm not a ColdFusion developer, but it looks like CF's GetHttpRequestData can give you this information. Brad On 4/20/07, Rick Faircloth <[EMAIL

[jQuery] Re: Superfish, Tabs and IE z-index

2007-04-20 Thread Joel Birch
On 21/04/2007, at 12:43 AM, Chris Scott wrote: I'm using Superfish for my menus and the Tabs plugin. By default, the Superfish menus show up behind the tabs. The Tabs css uses a z- index of 2 so I set the Superfish css to use a z-index of 3. This works in FF and the menus show up in front

[jQuery] Re: Google AJAX Feed API

2007-04-20 Thread Karl Swedberg
Thanks for that, Mike! Very cool. I'll have to check it out. (and thanks for including learningjquery.com in the feed list.) :-) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Apr 20, 2007, at 10:21 AM, Mike Alsup wrote: In case anyone missed it, Goo

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Brad Perkins
Rick, JQuery sends an "HTTP_X_REQUESTED_WITH" header with Ajax calls. Can your CF code check for that? Brad On 4/20/07, Rick Faircloth <[EMAIL PROTECTED]> wrote: True... I may have to simple do away with the "click to reveal the form part." This discussion is disappointing so far, in that t

[jQuery] What is wrong with this code

2007-04-20 Thread joomlafreak
Hi this is what I have jQuery.get(item_link,function(item_content){ var new_content = jQuery(item_content).filter("#contentpane .contentpane > p").eq(0); jQuery("#myContent").html(new_content).slideDown("slow"); }); What I imagine this code should be doing is extract the first

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Scott Sauyet
Rick Faircloth wrote: My biggest question with my server-side code is how to make sure these three related tasks are handled Exactly what I'm trying to address. It would basically be (on the server-side validation page): - if JS or Ajax is available, return the results that way - if no JS or

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
Can you show me some example code for this? Thanks, Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Priest, James (NIH/NIEHS) [C] Sent: Friday, April 20, 2007 11:04 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determ

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
Thanks for the feedback, Rey. I'm feel certain that the feedback I'm getting will be correct. I just wanted to ask the questions to be sure. Dan's demo code caused me a lot of confusion, because it seemed to be doing exactly what I'm looking for. I'll try one more approach and that is (as I've

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Priest, James \(NIH/NIEHS\) [C]
I haven't kept up with this thread but could you use jQuery to populate a hidden form - this would tell you if JS were enabled. Then on the server side - you could check this value and modify how you return things? On my site I basically setup everything so it's displayed by default (works w/no

[jQuery] Superfish, Tabs and IE z-index

2007-04-20 Thread Chris Scott
I'm using Superfish for my menus and the Tabs plugin. By default, the Superfish menus show up behind the tabs. The Tabs css uses a z-index of 2 so I set the Superfish css to use a z-index of 3. This works in FF and the menus show up in front of the tabs. However, IE doesn't play nice and t

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
True... I may have to simple do away with the "click to reveal the form part." This discussion is disappointing so far, in that there seems to be no way to determine if the call were made via Ajax. Correct? Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTEC

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Dan G. Switzer, II
Rick, >That would work if the form were visible when the page is first opened, >(And I may have to go that route if what I'm trying doesn't work...), >but when the page is first opened, the form is invisible and a link has >to be clicked to even view the form. > >So a named anchor wouldn't provid

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Dan G. Switzer, II
Rick, > > > > > { > success: #stAction.success#, > message: "#jsStringFormat(stAction.message)# [AJAX]" > } > Don't pay too much attention to the ex2_process.cfm in the example. It's used for all of the ex2.1*.cfm templates. For the e

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rey Bango
Hi Rick, Let me summarize what everyone is saying before this turns into a long thread. Basically, there's no easy and surefire way of determining if JS is enabled on the browser. You need to code your forms and pages in the traditional way that you would any non-JS application. Once you ha

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Dan G. Switzer, II
Rick, >Isn't that what you do with this code is your >ex2.3_mailing_list_validation.cfm example for the >ex2_process.cfm page? Since it's obvious that you've downloaded my presentation, I need to point out that some of the things in the demo are bad concepts, but I did them to show the progressi

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
Very good question, Brad... not sure about that. Perhaps some of the more experienced developers with this sort of header info can respond... Just might be what I'm looking for. Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brad Perkins

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
> My biggest question with my server-side code is how to > make sure these three related tasks are handled Exactly what I'm trying to address. It would basically be (on the server-side validation page): - if JS or Ajax is available, return the results that way - if no JS or Ajax is available t

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
That would work if the form were visible when the page is first opened, (And I may have to go that route if what I'm trying doesn't work...), but when the page is first opened, the form is invisible and a link has to be clicked to even view the form. So a named anchor wouldn't provide *exactly* w

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
> The simplest > thing is just to add a post parameter that says "ajaxOn=true" or some > such, then check for that server-side. It wasn't included in the HTML, > or it was set to false, so if it's true, the server knows to respond > with an AJAX request. It's pretty straightforward. Well, t

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
> That page has no AJAX based validation. I also do no JS detection. The code > is set up so that if JS is unavailable, the form just works. I got that, but the code seems to test for Ajax availability, and if there's been an Ajax call, it responds with messages via Ajax. If the call was not via

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Scott Sauyet
Rick Faircloth wrote: I'm trying to take Progressive Enhancement, as I see it, one step further by integrating the enhancement into the server-side process, where possible and applicable. I think this is going to be difficult, if you are trying to drive it from the server-side. This part c

[jQuery] Google AJAX Feed API

2007-04-20 Thread Mike Alsup
In case anyone missed it, Google recently released an API for mashing feeds on the client. http://googleajaxsearchapi.blogspot.com/2007/04/announcing-google-ajax-feed-api.html It's really quite cool (and fast). Below is a short demo of how it works. To try it, replace [your key] with your Goo

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
That's what's motivating the question. I'm trying to take Progressive Enhancement, as I see it, one step further by integrating the enhancement into the server-side process, where possible and applicable. This part concerns return validation result messages back to the form page, or rather back

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Dan G. Switzer, II
Rick, >This is very important for forms that are embedded in the >middle of a page where refreshing the page would cause >the user to have to scroll back down to the form to see the >results if a refresh is used. You can solve this problem by have a named anchor in your template. Now if you

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Dan G. Switzer, II
Rick, >Isn't that what you do with this code is your >ex2.3_mailing_list_validation.cfm example for the >ex2_process.cfm page? That page has no AJAX based validation. I also do no JS detection. The code is set up so that if JS is unavailable, the form just works. -Dan

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Klaus Hartl
Rick Faircloth schrieb: If JS is enabled, then I can use Ajax to send them back, if not, then the page will have to be refreshed. If you use JavaScript in the sense of Progressive Enhancement, this should be no problem at all. First build your form working in the traditional way, afterward

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
Thanks for the feedback, Scott... Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sauyet Sent: Friday, April 20, 2007 9:25 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled?

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
Thanks for pointing that out, Andy. That's important for me to know, because I not only design and develop sites for clients, more and more are asking me to perform SEO/SEM for them and I don't want to hurt their rankings, for sure! Rick -Original Message- From: jquery-en@googlegroups.

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
Thanks for the info, Rob. The purpose here is to determine how my server-side form validation results will be sent back to the form page. If JS is enabled, then I can use Ajax to send them back, if not, then the page will have to be refreshed. This is very important for forms that are embedde

[jQuery] Re: Google AJAX Feed API

2007-04-20 Thread Christopher Jordan
I'm going to let my ignorance show here for a second :o) Can you explain what you mean by "mashing feeds on the client"? I'm not really well versed in RSS feeds (which is what I'm assuming you mean by "feeds") so I'm interested in what this means. Thanks Mike! Chris Mike Alsup wrote: In c

[jQuery] Re: Using EXT with Jquery

2007-04-20 Thread Andy Matthews
Never mind. Checked it in FF. Pretty cool. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eli Sent: Friday, April 20, 2007 8:37 AM To: jQuery (English) Subject: [jQuery] Re: Using EXT with Jquery Thanks all of you, especially Remy, I managed

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
Hi, Dan... and thanks for the feedback... What I would like to do is allow ColdFusion server-side validation messages to be delivered back to the form page via Ajax if JS is available and, if not, just refresh the page. Isn't that what you do with this code is your ex2.3_mailing_list_validation.

[jQuery] Re: Using EXT with Jquery

2007-04-20 Thread Andy Matthews
What is that page supposed to do? I get a js error in both IE 6 and 7. All I see is two paragraphs of Lorem Ipsum. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eli Sent: Friday, April 20, 2007 8:37 AM To: jQuery (English) Subject: [jQuery] Re

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Andy Matthews
One thing to point out about mine and Dan's suggestion is that your Seach engine ranking will take a hit if you use this method. Google penalizes sites who use redirects to other pages. Depending on why you need to check for JS, you might consider using this method only for portions of the site w

[jQuery] Re: Using EXT with Jquery

2007-04-20 Thread Eli
Thanks all of you, especially Remy, I managed to solve my problem, this http://remysharp.com/wp-content/uploads/2007/04/ext_layout.html helped me a lot mate, thanks :) On Apr 20, 2:06 pm, Remy Sharp <[EMAIL PROTECTED]> wrote: > I also wrote up a short article on my initial play with Ext and the

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Mike Alsup
Well said, Dan. On 4/20/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: As discussed on another mailing list, there's no real need to detect if JS is enabled. If you write unobtrusive JavaScript (which is what jQuery helps you to do) if the user has JS disabled, things will continue to work.

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Scott Sauyet
Andy Matthews wrote: Beat me to it. Everyone beat me! :-) -- Scott

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Andy Matthews
Simple way to do it might be to use javascript itself to do a forward or something like that. I've seen people set up a meta refresh of 5 seconds in the header, then use javascript to do a location.href as soon as the page loads. If they have js, they get redirected immediately to page A, if they

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Andy Matthews
Beat me to it. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Friday, April 20, 2007 8:19 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? Simple way to do it

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Scott Sauyet
Rick Faircloth wrote: Is there a fool-proof way to determine if a user has Javascript enabled in their browser? From the server side? No. From the client? Just try it. Often, the trick is to make the site function reasonably even if JS is off. One ugly technique that I've used on occasio

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Dan G. Switzer, II
Rick, >Good morning, all... > >Is there a fool-proof way to determine if a user has Javascript >enabled in their browser? As discussed on another mailing list, there's no real need to detect if JS is enabled. If you write unobtrusive JavaScript (which is what jQuery helps you to do) if the user

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rob Desbois
From where? If javascript runs, they have it enabled - if it doesn't, they don't! Are you wanting to pass this information to your server? Something like the following should work for that: Load