[jQuery] Re: should be using .find . . .

2008-04-20 Thread hubbs
I cannot get it to work, here is what I tried: function loadTest() { $.ajax({ type: "GET", url: "home.html", data: "", success: function(html){ $(html).find("#footer"); $("#loadTest").append(html); } }); Any help would be appreciated! On Apr 20, 10:22 pm, hubbs <[

[jQuery] Re: should be using .find . . .

2008-04-20 Thread hubbs
Sorry, not sure how I started a new topic... I am trying to use the ajax POST and GET function, and at the same time, use .find to filter the results so I only return a div with a specific ID. I have tried, and I am failing to get it working. Any help would be great! On Apr 20, 10:20 pm, hubbs

[jQuery] should be using .find . . .

2008-04-20 Thread hubbs
Could anyone help with this? I figure that I should be using the .find function, but I am not sure how to use to to filer my response text, and only display the id that I want. The example seems to not be working, or I should be changing it somehow, and I am not sure. Anyone?

[jQuery] Re: Trouble with attr() and IE7, and onclick...

2008-04-20 Thread Karl Rudd
The only thing I could see that might be wrong is in "uncheckAll()". Don't need the "on" as the second argument to "removeAttr()". That shouldn't cause any problems though. Do you have a "live" version of the page that we could look at? It doesn't have to be "working", just a static HTML version

[jQuery] Re: IE debugging advice, please

2008-04-20 Thread Karl Rudd
Apart from the usual "alert()" option you might like to try Firebug Lite: http://www.getfirebug.com/lite.html Karl Rudd On Mon, Apr 21, 2008 at 12:42 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > As I stumble towards discovery of jQuery and all things Javascript, I > frequently g

[jQuery] Re: jQuery style guide?

2008-04-20 Thread [EMAIL PROTECTED]
Karl, you're a great teachr and I diligently work through your tutorials wherever I find them! Thanks for the links :)) On Apr 21, 4:22 am, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hi Cherry, > > When Jonathan Chaffer and I wrote our books on jQuery, we put together > a number of pages to exemp

[jQuery] Re: Postal Code Validation

2008-04-20 Thread [EMAIL PROTECTED]
Nice one, Ian :) Without the extras, here's a regex for UK post codes: /^[A-Z]{1,2}\d[\dA-Z]?\s?\d[A-Z]{2}$/i and one for UK phones (includes mobiles): ^\\s*\\(?(020[7,8]{1}\\)?[ ]?[1-9]{1}[0-9{2}[ ]?[0-9]{4})|(0[1-8]{1} [0-9]{3}\\)?[ ]?[1-9]{1}[0-9]{2}[ ]?[0-9]{3})\\s*\$ Made these ages ago & h

[jQuery] Re: jQuery style guide?

2008-04-20 Thread Karl Swedberg
Hi Cherry, When Jonathan Chaffer and I wrote our books on jQuery, we put together a number of pages to exemplify the concepts we were explaining. Perhaps you will find them helpful in gaining a better understanding of some of the basics: http://book.learningjquery.com/ In particular, re

[jQuery] Re: jQuery style guide?

2008-04-20 Thread [EMAIL PROTECTED]
You are correct in this case, Scott. I tend to do my CSS 'automatically' these days (though it was as tricky to learn, in the beginning, as this is!) and probably don't think often enough about the rules. In far more general terms, however, I really do believe a style guide for jQuery beginners i

[jQuery] IE debugging advice, please

2008-04-20 Thread [EMAIL PROTECTED]
As I stumble towards discovery of jQuery and all things Javascript, I frequently get knocked down by IE ;) It throws fatal errors far more often than Firefox (whose debugger I can understand) but IE's debug option invariably points to an 'error' in the jQuery core. I assume that's not the *real* e

[jQuery] Re: Ajax Calls + IE Issues

2008-04-20 Thread Damian
Ok, figured this out. IE is caching the previously called data. The AJAX calls are using get instead of post. Simple fix...a timestamp has been added to the end of my ajax call. This ensures that the page url is always different. IE will not use its cached data any longer. Hope this helps some

[jQuery] Re: Adding load to ajax POST function

2008-04-20 Thread hubbs
On Apr 20, 3:28 pm, Sephi-Chan <[EMAIL PROTECTED]> wrote: > Hello, > > You can look the code of the load function in the jQuery source. It's what i > did few days ago whereas i want do this (filter the response). > > I make something like this : > > $.ajax({ >         url : 'remotePage.php', >  

[jQuery] Load image without html page

2008-04-20 Thread hubbs
I was trying to figure out if it is possible to use ajax to just load in an image, rather than loading in an html page that contains the image tag? I know that there is a way to assemble the tag, and then write it, but I am not sure. Any help using jquery?

[jQuery] Re: Error-Message: is not a function

2008-04-20 Thread Ryura
If I recall correctly, match() always returns an array. Try: catid = $(this).attr("name").match(/\[.+\]/) [0]; On Apr 20, 3:41 pm, Sen <[EMAIL PROTECTED]> wrote: > No ideas?

[jQuery] jQuery Form Builder

2008-04-20 Thread Web Specialist
Hi all After some search I found 2 examples about jQuery Form Builder: - http://www.phpletter.com/form_builder/demo.html - http://elpaso.homelinux.org/formbuilder/ All very nice but impossible to download form builded. Somebody knows another examples related to Form Builder in jQuery? Cheers

[jQuery] Re: Adding load to ajax POST function

2008-04-20 Thread Sephi-Chan
Hello, You can look the code of the load function in the jQuery source. It's what i did few days ago whereas i want do this (filter the response). I make something like this : $.ajax({ url : 'remotePage.php', dataType : 'html', complete : function(response){

[jQuery] Ajax Calls + IE Issues

2008-04-20 Thread Damian
Hello, I'm currently developing a small web application and IE (6 & 7 tested) is not functioning as expected when submitting information via AJAX. In each case, the data to be submited is being sent via a form that is brought into the page with a previous AJAX call. All other browsers (Firefox,

[jQuery] Adding load to ajax POST function

2008-04-20 Thread hubbs
I am using the ajax POST from the examples on the jQuery site. $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(html){ $("#results").append(html); } }); I would like to add the "load" option onto this, so that I filter the server re

[jQuery] Re: Trouble with attr() and IE7, and onclick...

2008-04-20 Thread vincehofmeister
Anyone?

[jQuery] REMINDER: jQuery Site Detection Greasemonkey Script

2008-04-20 Thread Rey Bango
Hi everyone. The number of jQuery-powered sites being listed is incredible and the numbers just continue to grow. One of the methods that I use to find sites is via jQuery Team Member Paul Bakaus' awesome jQuery Site Detection Greasemonkey Script. It's a small script that detects the jQuery ob

[jQuery] Re: jQuery in the wild

2008-04-20 Thread Shelane
I just noticed the MLB thing. I was checking out the Giants and Cards today on gameday and cheked firebug and say jQuery. That's awesome!!! On Mar 23, 8:39 pm, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > Looks like MLB.com and in turnhttp://phillies.comare now using jQuery > 1.2.1, looks l

[jQuery] Re: ui.tabs + ajax question

2008-04-20 Thread Alexandre Plennevaux
Hi Klaus, i've updated the wiki, if you want to double check: http://docs.jquery.com/UI/Tabs Cheers ! Alexandre On Sat, Apr 19, 2008 at 12:50 PM, Klaus Hartl <[EMAIL PROTECTED]> wrote: > > On Apr 19, 8:42 am, "Alexandre Plennevaux" <[EMAIL PROTECTED]> > wrote: > > > hey hey, good to know. Is

[jQuery] Re: Problem using html(val) with firefox (works in IE7)

2008-04-20 Thread Eric Fehse
Update: I found the mistake myself: There were two elements with the same id. Now everything works as expected. On Apr 19, 5:33 pm, Eric Fehse <[EMAIL PROTECTED]> wrote: > Hi, > > I am writing a little web app that is supposed to show a table as a > reaction to an ajax call to the server. > > So

[jQuery] Re: Slide Panel

2008-04-20 Thread Jan David
I'm trying to achieve the same, but with an overlayed panel sliding up from the bottom of the screen. Do you know if that is possible using this script? Jan David On 20 mrt, 21:47, uneuronh <[EMAIL PROTECTED]> wrote: > hey thanks, it worked :) > > On Mar 19, 5:36 am, "Richard D. Worth" <[EMAIL P

[jQuery] Postal Code Validation

2008-04-20 Thread Ian
I've noticed a lot of requests for Postal Code validation. I don't know if anyone posted one, but here is an addon method I wrote for Canadian postal codes. $.validator.addMethod("postalCode", function(value) { // Addon method for validating postal codes. Valid formats are (X1X 1X1) or (X1X1X1) o

[jQuery] Re: Error-Message: is not a function

2008-04-20 Thread Sen
No ideas?

[jQuery] Re: jQuery Cycle - Manually selecting next slide

2008-04-20 Thread Mindwraps
Splendid ! I was looking for the functionality in the second link you posted. Navigating via existing markup. Guess I ignored the 'Even more demos' link at the bottom of your page and had to end up there via this post :) In any case, great plugin. Thanks for the great work so far. On Apr 9, 11:

[jQuery] Re: Odd behaviour with the "one()" event handler

2008-04-20 Thread Scott González
Use click instead of mouseup, that's the event that triggers the default behavior in browsers. On Apr 20, 3:07 am, Yansky <[EMAIL PROTECTED]> wrote: > I'm not sure if I'm misinterpreting how to use the "one()" event handler > properly, but when I tried to use it in the bit of code below, I was u

[jQuery] Re: jQuery style guide?

2008-04-20 Thread Scott González
Your problem actually has nothing to do with JavaScript; it is purely CSS. http://www.w3.org/TR/REC-CSS2/selector.html On Apr 19, 10:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > As anyone who's flicked over my beginner's blog will know, jQuery > provides a constantly vertical learnin

[jQuery] jQuery Question of the Week! Iframes and Loading!

2008-04-20 Thread Joe
So I'm building a custom CMS solution for a site that exclusively uses jQuery, but the cool part is that the CMS is entirely placed in a single web page. I accomplish this by showing and hiding only the necessary required for the respective tab that is clicked AND using a ton of AJAX to interact

[jQuery] [Announce] jMaps3 RC1 Released

2008-04-20 Thread Tane Piper
Hey folks, Today I am happy to announce that jMaps version 3 has been released today. This version is classed as a release candidate as I have not confirmed all bugs have been fixed, and some internals might still change slightly, however the API itself has stabilised. The plugin now has a prop

[jQuery] Re: Superfish current state

2008-04-20 Thread DRoss
Hey Joel, I added the code from Stan's site via the link in the other thread: http://stanlemon.net/index/articles/hiding-a-superfish-menu.html It is a little buggy like when roll over the main navs too fast they sometimes get stuck (the subnavs don't always appear as expected). The site using th

[jQuery] Re: Im having trouble with selectors

2008-04-20 Thread alex.allah
You cannot put DD tag into DT. Look http://www.w3schools.com/TAGS/tag_dd.asp PS When working with DOM use firebug :)

[jQuery] Re: Im having trouble with selectors

2008-04-20 Thread alex.allah
You cannot put DD tag inside DT Read: http://www.w3schools.com/TAGS/tag_dd.asp PS Use firebug when working with DOM

[jQuery] Re: Im having trouble with selectors

2008-04-20 Thread alex.allah
tag cannot contain Correct structure is: read: http://www.w3schools.com/TAGS/tag_dd.asp

[jQuery] Re: Which method is better?

2008-04-20 Thread Michael Geary
As always, you would need to run a test to really know which is faster. Create a large number of elements and try both versions. My gut sense is that method 1 will be faster. Running the three .each() loops won't be much different than running the single .each() loop over all the elements - take

[jQuery] Re: Im having trouble with selectors

2008-04-20 Thread Karl Swedberg
Hi Clint, The dt element should never be the parent of a dd. Maybe you were thinking of dl? In that case you could select a dl that has a hidden dd descendant element this way: $('dl:has(dd:hidden)').addClass('menu_bg').trigger('click'); --Karl _ Karl Swedberg www.engli

[jQuery] Re: jQuery style guide?

2008-04-20 Thread Klaus Hartl
In addition, the W3C specs as a reference: http://www.w3.org/TR/CSS21/selector.html http://www.w3.org/TR/css3-selectors/ Not all of the CSS3 selectors are supported though and there are quite a few non spec selectors added by jQuery. Find out here: http://docs.jquery.com/Selectors --Klaus O

jquery-en@googlegroups.com

2008-04-20 Thread Dmitry Bykadorov
Oh, yes. I'm forget to say about little experiment: I create local site with one file: http://temp/search.php - it returns simle html table. In my app i call this scrip remotely: $.search = function() { $.ajax({ url: "http://temp/search.php";, dataType: "html", And thi

[jQuery] Re: Traversing AJAX Response?

2008-04-20 Thread Nicolas R
If you convert your response to a jQuery object then yes. So something like $(response).find('#mylinks') should work, if used in the success callback function. Your response doesnt need to be in XML, HTML is just fine. On Apr 19, 5:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Is it po

[jQuery] Im having trouble with selectors

2008-04-20 Thread justclint
Im new to using jquery so forgive my question that is probably so simple. Im trying to select the parent of element that contains a hidden element. In my case I need to grab the dt that contains hidden dd's. this is what I have but is not working: $('dt').has('dd:hidden').addClass('menu_bg

[jQuery] Odd behaviour with the "one()" event handler

2008-04-20 Thread Yansky
I'm not sure if I'm misinterpreting how to use the "one()" event handler properly, but when I tried to use it in the bit of code below, I was unable to prevent the button from submitting the form (which it was now inserted into). I tried "return false" as well as an "event.preventDefault()", but c

jquery-en@googlegroups.com

2008-04-20 Thread Dmitry Bykadorov
Yes! The problem has solved. The root of the problem in incorrect encoding in .htaccess file (UTF8 instead UTF-8). Internet Explorer does not know encoding UTF8 and throws "parsererror" (and shows Error: system error: -1072896658 in js error window). On Apr 19, 7:56 pm, "[EMAIL PROTECTED]" <[EMAI

[jQuery] Which method is better?

2008-04-20 Thread alex.allah
Method #1 $('.someClass1').each(function(){ // Some stuff here }); $('.someClass2').each(function(){ // Some stuff here }); $('.someClass3').each(function(){ // Some stuff here }); Method #2 $('.someClass1, .someClass2, .someClass3, .someClass4').each(function() {

jquery-en@googlegroups.com

2008-04-20 Thread Dmitry Bykadorov
Cherry, no thanks :) I don't know how this bug appears - in other thread also (IE XML Parsing problem from newb). Now about my ajax issue - simple example works fine. But when i try it wit my zend framework app - it doesn't work. I'm spent many hours and going crazy :( On Apr 19, 7:56 pm, "[EMA

[jQuery] Drupal jQuery plugin wrapper

2008-04-20 Thread Hans Riemenschneider
Hi Group! I've been struggling with implementing jQuery plugins into Drupal 6. I've spent a day and a half attempting various means of creating the wrapper Drupal will understand. Also, which is the preferred method (and when?) drupal_add_js http://api.drupal.org/api/function/drupal_add_js/6 jQue

[jQuery] Re: DataTables plugin

2008-04-20 Thread fbloggs
It's ok - but not as nice as Ingrid or Flexigrid. On Apr 17, 1:02 am, theallan <[EMAIL PROTECTED]> wrote: > Hello all, > > I've recently being trying out jQuery for the first time and it has been > absolutely outstanding. I'm currently working on a project that needs tables > with filter, pagina

[jQuery] Re: deferring script loading

2008-04-20 Thread Christof Donat
Hi, > Thanks, it seems to have worked:-) > I suppose it doesn't harm to set the time interval to a value greater > than 10, right? Of course not. That just increases the time between the moment, jQuery is available and the moment your code is evaluated. It should still work of course. Christo

[jQuery] Odd behaviour with the "one()" event handler

2008-04-20 Thread Yansky
I'm not sure if I'm misinterpreting how to use the "one()" event handler properly, but when I tried to use it in the bit of code below, I was unable to prevent the button from submitting the form (which it was now inserted into). I tried "return false" as well as an "event.preventDefault()", but

[jQuery] Re: Traversing AJAX Response?

2008-04-20 Thread Yansky
It's possible to traverse the AJAX response using selectors if the ajax response is in XML format. If it's just a string of html code, then you will have to use string methods to get the piece of html you're after. http://www.w3schools.com/jsref/jsref_obj_string.asp I usually do something like t