Re: [jQuery] Drag Drop Add to Cart

2007-02-15 Thread Allan Mullan
I'd be using sessions to manage the user/customer ID, much safer. My 2c worth anyway :-) Allan Benjamin Sterling wrote: > Meilad > > Take a look at the addProductToCart function at about line 202 of the > demo page and that will give you 90% of the code you need. Now you > just need to add it

[jQuery] Interface drag-drop: More than one draggables and more than one droppables problem.

2007-02-15 Thread codar
I want to highlight valid moves for dragging square in a chess board. In the chessboard initial position Square f3 droppable by pawn on the f2 and knight on the g1. Because I am setting for square f3 two accept class but working only one. can I set square.Droppable ( { acce

[jQuery] Interface drag-drop: More than one draggables and more than one droppables problem.

2007-02-15 Thread codar
I want to highlight valid moves for dragging square in a chess board. In the chessboard initial position Square f3 droppable by pawn on the f2 and knight on the g1. Because I am setting for square f3 two accept class but working only one. can I set square.Droppable ( { acc

Re: [jQuery] Drag Drop Add to Cart

2007-02-15 Thread Benjamin Sterling
Meilad Take a look at the addProductToCart function at about line 202 of the demo page and that will give you 90% of the code you need. Now you just need to add it to the database by using one of the ajax functions, i prefer $.ajax and send the productId (line 207) and the customerID can be some

Re: [jQuery] Form Plugin curiosity

2007-02-15 Thread Benjamin Sterling
Are you using something like http://pajhome.org.uk/crypt/md5/ for your encryption? are you doing something like: var options = { beforeSubmit: function(formArray, jqForm) { encryptform(); // just example }}; Maybe an example page? -- Benjamin Sterling http://www.KenzoMedia.com http

Re: [jQuery] Getting the TEXT of an option tag, not the value.

2007-02-15 Thread Alexis Bellido
Joan Piedra wrote: > > I've tried this, and it works just fine with jQuery 1.1.1 > > $(document).ready(function(){ > console.log($('#mySelect :selected').text()); > $('#mySelect').change(function(){ > console.log($(this).find(':selected').text()); > }); > }); > > > one

Re: [jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-15 Thread Benjamin Sterling
Brice, that was happening to me earlier today in ie6,ie7 and ff2, so I switch to ajaxSubmit instead of ajaxForm. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/dis

[jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-15 Thread Brice Burgess
I've noticed that scripts are evaluated twice if they're included in the responseText & loaded via the Form's plugin "target" parameter -- using jQuery 1.1.1 As an example: [ FORMS PAGE ] === $().ready(function() { $('form').ajaxForm({target: '#out'}); }); [[[

Re: [jQuery] Getting the TEXT of an option tag, not the value.

2007-02-15 Thread Joan Piedra
I've tried this, and it works just fine with jQuery 1.1.1 $(document).ready(function(){ console.log($('#mySelect :selected').text()); $('#mySelect').change(function(){ console.log($(this).find(':selected').text()); }); }); one two three Regards Alexis, On 2/16/07, A

Re: [jQuery] Getting the TEXT of an option tag, not the value.

2007-02-15 Thread Alexis Bellido
Mungbeans wrote: > > Ah. This is getting closer. Rather bizarrely, it returns the text for > both the original selection AND the new selection, > > Eg "--B:Option 1" > > But at least I can just chop off the first two characters - near enough is > good enough. > Chopping off the first char

[jQuery] Form Plugin curiosity

2007-02-15 Thread Brian Ronk
I'm new to jQuery, and found the Forms plugin. So far it seems to be working fine, but I ran into 2 issues earlier. First, it was working, but it was acting like a normal form, not an ajax form. I had some errors in my script (used the wrong id in checking a password), and when I changed that, it

[jQuery] Why compressed version of jQuery is not part of SVN download?

2007-02-15 Thread Ashish Agrawal
Hi, I would recommend that we have compressed version of jQuery in SVN repository too. I saw many plugins are having compressed version of jQuery with them in their folder (DatePicker for example). What I suggest is we should have compressed version so user just need to run test file and they a

[jQuery] Drag Drop Add to Cart

2007-02-15 Thread Meilad
Hi. I've just discovered JQuery & the interface addon available @ http://interface.eyecon.ro Noteably, I noticed a featured demo the guy had of dragging & dropping to add items to cart. I'm wondering if anyone is able to give me some tips or guides as to how I would add MYSQL queries to this. I

Re: [jQuery] rounding the corners but making the background transparent

2007-02-15 Thread Erik Beeson
-moz-border-radius: 10px; -khtml-border-radius: 10px; -o-border-radius: 10px; border-radius: 10px; And be done with it. These hacked up corner rounding things are nasty. --Erik On 2/15/07, Dave Methvin <[EMAIL PROTECTED]> wrote: > Problem is, the corners get rounded, but if I float my > DIV

Re: [jQuery] is JQuery compliant to the OpenAjax Hub?

2007-02-15 Thread Rey Bango
Amazing. Just utterly amazing. Its times like these that really bring it home that I made the right choice by going with jQuery. Great job John. Rey... John Resig wrote: > It is now! I've added OpenAjax support to jQuery in the form of a > plugin. You can check it out of svn from here: > svn sv

Re: [jQuery] jQuery for President

2007-02-15 Thread Kenneth
On a related note: http://digg.com/design/Barack_Obama_Hops_on_the_Web_2_0_Bandwagon And a direct link to the article: http://gizmodo.com/gadgets/home-entertainment/barack-obama-hops-on-the-web-20-bandwagon-237047.php On 2/10/07, Glen Lipka <[EMAIL PROTECTED]> wrote: Alot of new snazzy site

Re: [jQuery] is JQuery compliant to the OpenAjax Hub?

2007-02-15 Thread Will
amazing. I'm just sorta blown away by how elegant jQuery is in general but to be able to (in 8 hours) offer somewhat random standards compliance by way of a plugin is just an exquisite example of how elegant it really is. Nice work. Will On 2/15/07, John Resig <[EMAIL PROTECTED]> wrote: It i

Re: [jQuery] is JQuery compliant to the OpenAjax Hub?

2007-02-15 Thread John Resig
It is now! I've added OpenAjax support to jQuery in the form of a plugin. You can check it out of svn from here: svn svn://jquery.com/trunk/plugins/openajax and online here: http://jquery.com/dev/svn/trunk/plugins/openajax/ You can run the test suite here, to verify its compliance: http://john.jq

Re: [jQuery] Heads Up - I'll be giving a jQuery Presentation at Spring 2007...

2007-02-15 Thread Jason Huck
Hey, I went to OU! FWIW, I'll be giving an introduction to jQuery at Lasso Summit 2007 , and I'm taking the approach that since many long-time web developers *still* haven't dipped their toes into the AJAX/Web2.0 waters, it's better to start simple and build slowly. M

Re: [jQuery] onclick - toggle the creation of a TR?

2007-02-15 Thread bdee
THANK YOU for helping me understand this! i used what you posted to help come up with the final solution which is as follows: $("tr.listing").click(function(){ var sibling = $(this).next('tr'); var myID = $(this).attr("id"); if (sibling.is('.expanded')){ sibling.toggle(

Re: [jQuery] onclick - toggle the creation of a TR?

2007-02-15 Thread Danny Wachsstock
How about: // check for a sibling to this var sibling = $(this).next('tr'); // if that sibling has the right class, use it if (sibling.is('.description')){ sibling.load(...).toggle(); }else{ // create the new row and fill it (don't toggle--that would only hide it $("").inser

Re: [jQuery] I love JQuery

2007-02-15 Thread Gaston Garcia
I'm new to it, but I love it too. It's been good. G. On Feb 15, 2007, at 5:10 PM, Rigent wrote: > > I just wanted to say thanks to everyone involved in Jquery's > development. I > tried a couple of other libraries but the approach, results and > support of > this project are so good it's the

Re: [jQuery] Animate enlargement of a thumbnail image

2007-02-15 Thread DaveG
> But, since it is a commercial license attached to it, > I don't want to look into the code. The license on that allows derivitive works: "to Remix -- to make derivative works" ref: http://creativecommons.org/licenses/by-nc/2.5/ ___ jQuery mailing l

[jQuery] I love JQuery

2007-02-15 Thread Rigent
I just wanted to say thanks to everyone involved in Jquery's development. I tried a couple of other libraries but the approach, results and support of this project are so good it's the *only* choice. I was just sitting here, developing a form based application and wondering how I could set the wi

Re: [jQuery] Table striping, speed question

2007-02-15 Thread Brice Burgess
Sam Collett wrote: > On 15/02/07, Brice Burgess <[EMAIL PROTECTED]> wrote: > >> On 2/15/07, *Angelo Sozzi* <[EMAIL PROTECTED] > >> wrote: >> >>> Just a minor (nice to know) question: >>> When stripping multiple tables or lists on a single page >>>

Re: [jQuery] Table striping, speed question

2007-02-15 Thread Sam Collett
On 15/02/07, Brice Burgess <[EMAIL PROTECTED]> wrote: > On 2/15/07, *Angelo Sozzi* <[EMAIL PROTECTED] > > wrote: > > > > > > Just a minor (nice to know) question: > > When stripping multiple tables or lists on a single page > > $(.stripMe li:even).addClass

Re: [jQuery] onclick - toggle the creation of a TR?

2007-02-15 Thread bdee
yea i dont want to create a new row every time it is clicked. i guss what i want to do is to create a details row when the first row is clicked - but only if the details row hasnt already been created. if its already been created then i want to remove it. the reason i dotn want to add the empty

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Aaron Heimlich
On 2/15/07, Klaus Hartl <[EMAIL PROTECTED]> wrote: This property is DOM Level 0, which is implemented by literally any browser ("from Netscape 2 onwards by all browsers", http://www.quirksmode.org/js/dom0.html), just like document.forms and these things. So that explains it, then. Thanks, Kla

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Klaus Hartl
Aaron Heimlich schrieb: > On 2/15/07, *Aaron Heimlich* <[EMAIL PROTECTED] > > wrote: > > On 2/15/07, *Danny Wachsstock* <[EMAIL PROTECTED] > > wrote: > > I'm looking at the HTML specs > > (http://www.w3.org/TR/1999/REC-

Re: [jQuery] OT: Debugging PHP With Firebug

2007-02-15 Thread Mathias Bank
Hi, I have translated my article into English because some people has asked: http://forenblogger.de/2007/02/14/how-to-debug-php-with-firebug/ Perhaps, someone can use the function to debug php code with firebug. Mathias 2007/2/12, Mathias Bank <[EMAIL PROTECTED]>: > Hi, > > Some months ago, I h

Re: [jQuery] onclick - toggle the creation of a TR?

2007-02-15 Thread Danny Wachsstock
Try creating the element then using chaining to manipulate it: $("").insertAfter(this).load(...).toggle(); But are you sure this is what you want? You'll end up creating a new row each time it's clicked, not toggling the old row. Why not create the (empty) description line when the table is crea

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Tim Baxter
Guys, they're just anchor links: http://www.w3.org/TR/1999/REC-html401-19991224/struct/links.html#anchors-with-id On 2/15/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote: Mozilla agrees with Aaron.. http://developer.mozilla.org/en/docs/DOM:window.location Properties All of the following properties are s

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Aaron Heimlich
On 2/15/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote: Mozilla agrees with Aaron.. http://developer.mozilla.org/en/docs/DOM:window.location That's talking about the window.location object. I was talking about the DOM element for 's (HTMLAnchorElement). There appears to be no official standard that defi

Re: [jQuery] bind and unbind after an Ajax Call

2007-02-15 Thread Sam Sherlock
Thanks Scott are you suggesting using toggle instead of slide? I had this working fine; but that was with jq 1.0.3 I think. Its definately in how I am binding and unbinding the events. from the example I posted earlier I was trying to chain the unbind bind calls $("a.jLink")

Re: [jQuery] onclick - toggle the creation of a TR?

2007-02-15 Thread bdee
i am sorry - but i have been looking at this code for a while and i cant figure what exactly it is doing (sorry i'm a noob). could you possibly break it down and explain whats going on in each step? Chris Domigan wrote: > > .next() only gets siblings, so you won't be able to select the new as

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Danny Wachsstock
oops. It should be $(/#.+$/.exec(this.href)[0]); Danny Danny Wachsstock wrote: > > I'm looking at the HTML specs > (http://www.w3.org/TR/1999/REC-html401-19991224/struct/links.html#edef-A) > and hash doesn't look like a standard attribute. It seems to work for me > in both IE and FF, but if i

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Ⓙⓐⓚⓔ
Mozilla agrees with Aaron.. http://developer.mozilla.org/en/docs/DOM:window.location Properties All of the following properties are strings. You can read them to get information about the current URL or set them to navigate to another URL. The "Example" column contains the values of the prope

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Aaron Heimlich
On 2/15/07, Danny Wachsstock <[EMAIL PROTECTED]> wrote: I'm looking at the HTML specs (http://www.w3.org/TR/1999/REC-html401-19991224/struct/links.html#edef-A) and hash doesn't look like a standard attribute. That's because it's not an attribute, it's a property of the HTML DOM object for el

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Aaron Heimlich
On 2/15/07, Aaron Heimlich <[EMAIL PROTECTED]> wrote: On 2/15/07, Danny Wachsstock <[EMAIL PROTECTED]> wrote: > > I'm looking at the HTML specs > (http://www.w3.org/TR/1999/REC-html401-19991224/struct/links.html#edef-A > ) > and hash doesn't look like a standard attribute. That's because it's

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Danny Wachsstock
I'm looking at the HTML specs (http://www.w3.org/TR/1999/REC-html401-19991224/struct/links.html#edef-A) and hash doesn't look like a standard attribute. It seems to work for me in both IE and FF, but if it's not in the standard, your browser may not support it. You may be stuck with using the regu

Re: [jQuery] Table striping, speed question

2007-02-15 Thread Angelo Sozzi
Thanks, But that was really what I was looking for see: http://www.ehs.sfu.ca/AtoZ/indexUL_all.htm (click on all) multiple lists with the same .stripMe class just to add strips. But $(.stripMe li:even).addClass('alt'); would not always start with a non striped item, hence the use of each or n

Re: [jQuery] rounding the corners but making the background transparent

2007-02-15 Thread Dave Methvin
> Problem is, the corners get rounded, but if I float my > DIV above other elements, the space between the > rounded corner and the normal rectangular corner is > filled with white background, and I would prefer that > this space be transparent, allowing you to see the > elements behind. Is that p

Re: [jQuery] bind and unbind after an Ajax Call

2007-02-15 Thread Weaver, Scott
Hmmm, I actually had this same issue. Funny thing is, this logic worked fine for me in FF (1.5) but broke in IE (6). In my use case I was able to use $().toggle() instead which seems to work just fine in both browsers. Regards, -scott From: [EMAIL PROTE

[jQuery] bind and unbind after an Ajax Call

2007-02-15 Thread Sam Sherlock
I have links with the class name 'jLink' that update After each AJAX Call I re-run a function named init (which is initially called via document ready) It does work but after two sometimes three clicks it stop working any ideas? this is the unbind / bind is inside that init function function i

[jQuery] rounding the corners but making the background transparent

2007-02-15 Thread dalvarado
Hi, I used this JS to make my borders rounded ... $().ready(function() { $('#editPanelTitle').corner(); }); Here is the class-id definition: #editPanelTitle { background: #ff; position:absolute; font-family:verdana,tahoma,helvetica;

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Klaus Hartl
Ⓙⓐⓚⓔ schrieb: > $(document).ready(function() { > $("a.trigger").click(function(){ > $(this.hash).css({background: "red" }) > // right here the chain can keep on chaining > and no local or (GLOBAL) variables! > }); > })

Re: [jQuery] how to filter a list

2007-02-15 Thread Jake McGraw
Why not just do this: $.get("page_name",input,function(data){ $("li").removeClass("wanted").removeClass("notwanted"); for (i in data) { $("#"+data[i]).addClass("wanted"); } $("li").not(".wanted").addClass("notwanted"); }); - jake On 2/15/07, Dominik Hahn <[EMAIL PROTECTED]> wrote: > My current c

Re: [jQuery] Table striping, speed question

2007-02-15 Thread Brice Burgess
On 2/15/07, *Angelo Sozzi* <[EMAIL PROTECTED] > wrote: > > > Just a minor (nice to know) question: > When stripping multiple tables or lists on a single page > $(.stripMe li:even).addClass('alt'); > won't work as it itterates over all the li element reg

Re: [jQuery] how to filter a list

2007-02-15 Thread Dominik Hahn
My current code looks like this: function filter(query) { if(query != '') { $("li").each(function(i){ $(this).removeClass('wanted').addClass('unwanted'); }); $.getJSON("$homeadress/suche.php", { do: "ajax", type: 'filter', what: 'all'

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Ⓙⓐⓚⓔ
$(document).ready(function() { $("a.trigger").click(function(){ $(this.hash).css({background: "red" }) // right here the chain can keep on chaining and no local or (GLOBAL) variables! }); }); On 2/15/07, Klaus Hartl

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Tim Baxter
Thanks.. it just took a while to see how it fits. On 2/15/07, Klaus Hartl <[EMAIL PROTECTED]> wrote: Tim Baxter schrieb: > But that's not what I need. I need to match up the div to the link. I'm > going to be manipulating it in several ways, not always onclick, but the > relationship between th

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Klaus Hartl
Tim Baxter schrieb: > But that's not what I need. I need to match up the div to the link. I'm > going to be manipulating it in several ways, not always onclick, but the > relationship between the two is the important part. Actually, the whole > red thing is just for testing. > > So far, I haven

Re: [jQuery] is JQuery compliant to the OpenAjax Hub?

2007-02-15 Thread Rey Bango
Not at this moment. This appears to be the same for most Ajax libraries. According to the Open Ajax site, these are the only vendors have passed the conformance test case in the OpenAjax Hub initiative: http://www.openajax.org/member/wiki/InteropFest_2007_March Rey... tapederson wrote: > is JQ

Re: [jQuery] getting children using XPath in IE - no luck

2007-02-15 Thread Klaus Hartl
Matthew Delmarter schrieb: > Hi all, > > So at this stage I am assuming that what I am trying to do is not possibly > with jQuery in Internet Explorer? > > $("/xmlelement/*").length returns 2 entire HTML sections of the page which > is completely wrong. > > $("//xmlelement/*").length returns wha

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Ⓙⓐⓚⓔ
$(this.hash) gives you a jquery object that you can use for anything you want! before you use it alert(this.hash) to show you exactly what you have. I've used it before.. I thought it was cute that the # in the name is the same as the # in the id name! On 2/15/07, Tim Baxter <[EMAIL PROTECTED

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Tim Baxter
But that's not what I need. I need to match up the div to the link. I'm going to be manipulating it in several ways, not always onclick, but the relationship between the two is the important part. Actually, the whole red thing is just for testing. So far, I haven't been able to get $(this.hash) t

Re: [jQuery] Forms Plugin -- $.formToArray not serializing submit

2007-02-15 Thread Brice Burgess
Mike Alsup wrote: >> What would the masa do? ;) >> > > It's a one-liner my friend: > > $('#myForm').ajaxForm( { target: '#myDiv' } ); Mas bueno ! ;) Thanks, ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Angelo Sozzi
You are thinking too complicated this should do: $(document).ready(function() { $("a.trigger").click(function(){ $(this.hash).css({background: "red" }); }); }); Regards [EMAIL PROTECTED] wrote: > > I just know this is a dumb que

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Tim Baxter
I'm not following. I tried targetDiv = $(this.hash); but still didn't get the element. On 2/15/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote: almost too simple! $(this.hash) On 2/15/07, Tim Baxter <[EMAIL PROTECTED]> wrote: > I just know this is a dumb question with a simple answer, but here goes... > I

Re: [jQuery] Table striping, speed question

2007-02-15 Thread Yehuda Katz
nth-child is very fast. Probably faster than the each method. -- Yehuda On 2/15/07, Angelo Sozzi <[EMAIL PROTECTED]> wrote: Just a minor (nice to know) question: When stripping multiple tables or lists on a single page $(.stripMe li:even).addClass('alt'); won't work as it itterates over a

Re: [jQuery] getting children using XPath in IE - no luck

2007-02-15 Thread Dave Methvin
> So basically at this stage I have found no way of selecting an XML > element on the page and iterating through its child nodes in IE. What is the doctype of the document? Does changing it (say from HTML to XHTML) make a difference? Can you select and traverse the nodes with basic DOM functions

Re: [jQuery] Forms Plugin -- $.formToArray not serializing submit

2007-02-15 Thread Mike Alsup
> What would the masa do? ;) It's a one-liner my friend: $('#myForm').ajaxForm( { target: '#myDiv' } ); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] is JQuery compliant to the OpenAjax Hub?

2007-02-15 Thread tapederson
is JQuery compliant to the OpenAjax Hub? The documentation only states that it works within its own namespace, including glabals, but doesn't mention anything about the standard. Thanks, link to the hub: http://www.openajax.org/OpenAjax%20Hub.html -- View this message in context: http://www.

Re: [jQuery] Centering jqmodal dialog windows

2007-02-15 Thread Brice Burgess
[EMAIL PROTECTED] wrote: >> ---Original Message--- >> From: Benjamin Sterling <[EMAIL PROTECTED]> >> Subject: Re: [jQuery] Centering jqmodal dialog windows >> Sent: Feb 15 '07 18:28 >> >> Dave, >> you need to do something like: >> >> .jqWindow{ >> position:absolute; >> width:30

Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Ⓙⓐⓚⓔ
almost too simple! $(this.hash) On 2/15/07, Tim Baxter <[EMAIL PROTECTED]> wrote: > I just know this is a dumb question with a simple answer, but here goes... > I have something like: > Link a > Link a > > and > > > > I need to match the link to it's div, but can't figure out the selector. Non

Re: [jQuery] getting children using XPath in IE - no luck

2007-02-15 Thread Matthew Delmarter
Hi all, So at this stage I am assuming that what I am trying to do is not possibly with jQuery in Internet Explorer? $("/xmlelement/*").length returns 2 entire HTML sections of the page which is completely wrong. $("//xmlelement/*").length returns what I need, but only works in Firefox, in IE I

Re: [jQuery] Forms Plugin -- $.formToArray not serializing submit

2007-02-15 Thread Brice Burgess
Mike Alsup wrote: >> Is it possible to have the Forms plugin $.formToArray include the >> clicked submit element (name/value pair) -- as the W3C standard does. >> Currently it seems to be ignored, even when semantic is passed as true. >> > > Brice, > > You need to use the ajaxForm method for t

Re: [jQuery] Popup window and ajax

2007-02-15 Thread Stamen Georgiev
Thanx Ray. I've put a small test here: http://stamen.lasvegas-nevada.com/popup/main.html It's weird because I'm getting different results each time I try it. Sometimes it's ok - sometimes I'm even getting errors like this in the firebug console: showMsg is not defined showMsg('Estado: ' + GrAj

Re: [jQuery] Parent Selection Problem

2007-02-15 Thread Jonathan Chaffer
On Feb 15, 2007, at 12:02 , Mahadewa wrote: > var parent = $(this).parents('div.parent'); > > Is this not the same as to say: "Select element (of 'this') which > parent is > 'div.parent' " ? Nope, not the same. The way to read this is: - Wrap the DOM element "this" in a jQuery object. - F

Re: [jQuery] Centering jqmodal dialog windows

2007-02-15 Thread dalvarado
> ---Original Message--- > From: Benjamin Sterling <[EMAIL PROTECTED]> > Subject: Re: [jQuery] Centering jqmodal dialog windows > Sent: Feb 15 '07 18:28 > > Dave, > you need to do something like: > > .jqWindow{ > position:absolute; > width:300px; > height: 300px; > margin:-15

Re: [jQuery] Centering jqmodal dialog windows

2007-02-15 Thread Benjamin Sterling
Dave, you need to do something like: .jqWindow{ position:absolute; width:300px; height: 300px; margin:-150px 0 0 -150px; left:50%; top:50%; } -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@

Re: [jQuery] Heads Up - I'll be giving a jQuery Presentation at Spring 2007...

2007-02-15 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)
I thought the firebug/jQuery combination was pretty effective here: http://ejohn.org/blog/hacking-digg-with-firebug-and-jquery/ And it could be taken a lot further, especially if you have a technical audience. I've been using jQuery to create page upgrades... places on the page where existing co

[jQuery] Centering jqmodal dialog windows

2007-02-15 Thread dalvarado
Hi, What is the easiest way to center a jqModal dialog window? The examples from http://dev.iceburg.net/jquery/jqModal/ seem to have the windows at fixed points on the screen. Thanks, - Dave ___ jQuery mailing list discuss@jquery.com http://jquery.c

Re: [jQuery] Heads Up - I'll be giving a jQuery Presentation at Spring 2007...

2007-02-15 Thread Rey Bango
Very cool Dan. I think right off the bat, you should focus on some of these topics: 1) Making Ajax calls to CFCs. Most people are using a proxy cfm for this so and with CFCs being so important to CF development, this would be good for them to understand 2) Leveraging the taconite plugin for ma

Re: [jQuery] ajax within opera does not work

2007-02-15 Thread Ⓙⓐⓚⓔ
I looked in opera... Not sure if I really understand the problem. my page doesn't go blank. when I tab to hotels typing a letter scrolls the list. So I have no advice... but when I loaded the site in firefox, the repeated ajax calls to an aspx are not cached so it kept banging your server, in a

Re: [jQuery] Heads Up - I'll be giving a jQuery Presentation at Spring 2007...

2007-02-15 Thread Digital Spaghetti
I think you should definitly show jQuery against another popular JS library. Find something in say Prototype that maybe takes a few lines to do, and show it being done in jQuery using 1 or 2 lines :) Regards, Tane Piper Work: http://www.nohalfmeasures.com Personal: http://digitalspaghetti.me.uk

Re: [jQuery] http://jquery.com/api/ Currently not working

2007-02-15 Thread John Resig
Fixed - there was a minor error with the build script earlier. --John On 2/15/07, Jake McGraw <[EMAIL PROTECTED]> wrote: > Just wanted to get the word out, I'm getting javascript errors when > trying to access http://jquery.com/api/. > > - jake > > ___

Re: [jQuery] Can't get a 1 pixel rounded corner

2007-02-15 Thread dalvarado
> ---Original Message--- > From: Mike Alsup <[EMAIL PROTECTED]> > Subject: Re: [jQuery] Can't get a 1 pixel rounded corner > Sent: Feb 15 '07 17:47 > > > Following advice on this mailing list, I visited > http://www.malsup.com/jquery/corner/ to learn how to create a rounded border

[jQuery] Heads Up - I'll be giving a jQuery Presentation at Spring 2007...

2007-02-15 Thread Dan G. Switzer, II
I'm going to be giving a presentation on jQuery at Spring 2007 this year (http://www.sbconference.com/.) I'm planning on going over some popular plug-ins and some basic tips/tricks. Any suggestions? -Dan ___ jQuery mailing list discuss@jquery.com h

Re: [jQuery] Can't get a 1 pixel rounded corner

2007-02-15 Thread dalvarado
> ---Original Message--- > From: Dave Methvin <[EMAIL PROTECTED]> > Subject: RE: [jQuery] Can't get a 1 pixel rounded corner > Sent: Feb 15 '07 17:36 > > > > $(this).corner("round 8px").parent().css('padding', '1px').corner("round > 10px") > > Unless Mike Alsup's recent changes

Re: [jQuery] Can't get a 1 pixel rounded corner

2007-02-15 Thread Mike Alsup
> Following advice on this mailing list, I visited > http://www.malsup.com/jquery/corner/ to learn how to create a rounded border > that was a different color than the inner DIV. I want to create a 1 pixel > border, and so I changed the code in the first "Adornment" example to read ... > > $(th

Re: [jQuery] Can't get a 1 pixel rounded corner

2007-02-15 Thread Dave Methvin
> $(this).corner("round 8px").parent().css('padding', '1px').corner("round 10px") Unless Mike Alsup's recent changes removed this limitation, you need to have at least as much padding as the corner height. That might cause what you are seeing. See the "Tips and Tricks" section here: http://methv

Re: [jQuery] Parent Selection Problem

2007-02-15 Thread Karl Swedberg
Are you sure? Maybe the problem is with "source.id" I put your HTML into a page and ran this code (on document ready): $('input').click(function() { var parentId = $(this).parents('div.parent')[0].id; alert(parentId); }); When I clicked the first button, the alert read "parent1" When I clic

Re: [jQuery] http://jquery.com/api/ Currently not working

2007-02-15 Thread Rey Bango
Might have been a hiccup. Its back up. Jake McGraw wrote: > Just wanted to get the word out, I'm getting javascript errors when > trying to access http://jquery.com/api/. > > - jake > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com

[jQuery] Table striping, speed question

2007-02-15 Thread Angelo Sozzi
Just a minor (nice to know) question: When stripping multiple tables or lists on a single page $(.stripMe li:even).addClass('alt'); won't work as it itterates over all the li element regardless of the table they are in. So I went for: $('.stripMe').each(function(i) {$("li:odd", this).addC

[jQuery] http://jquery.com/api/ Currently not working

2007-02-15 Thread Jake McGraw
Just wanted to get the word out, I'm getting javascript errors when trying to access http://jquery.com/api/. - jake ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-02-15 Thread John Resig
Jason - We don't support HTML-style attributes, instead we support CSS Selectors (which support a subset of HTML attributes). Some information here: http://www.w3.org/TR/CSS21/selector.html It's an important distinction, because using CSS selectors it's not possible to select all possible HTML a

Re: [jQuery] Parent Selection Problem

2007-02-15 Thread Mahadewa
This doesn't do it for me. I got the Button itself as a result. var parent = $(this).parents('div.parent'); Is this not the same as to say: "Select element (of 'this') which parent is 'div.parent' " ? I think I need the other-way around, don't I ? Something like ... "Get me the element, which

[jQuery] Finding element that matches anchor link

2007-02-15 Thread Tim Baxter
I just know this is a dumb question with a simple answer, but here goes... I have something like: Link a Link a and I need to match the link to it's div, but can't figure out the selector. Non working test js is: $(document).ready(function() { $("a.trigger").each(function(i) {

Re: [jQuery] Parent Selection Problem

2007-02-15 Thread Karl Swedberg
On Feb 15, 2007, at 11:01 AM, Mahadewa wrote: // This function is wired to the above buttons' onclick event, passing 'this' as an argument function OnButtonClick(source) { var parent = $(".parent").children(source.id); } Hi Chris, you should be able to do it this wa

Re: [jQuery] Animate enlargement of a thumbnail image

2007-02-15 Thread Torbjorn Tornkvist
Rey Bango wrote: > Hi Torbjorn, > > Do you have an examples of the animation that you'd like to duplicate? Well, the most beautiful example I've seen is here: (not that I was hoping to duplicate it... :-) http://vikjavev.no/highslide/ But, since it is a commercial license attached to it, I do

Re: [jQuery] Target iframe generated by jquery

2007-02-15 Thread 15daysofjquery
I have attempted to, but so far have been unable to confirm that I have done it successfully. var oIframe = document.getElementById("if"); var oDoc = oIframe.contentWindow || oIframe.contentDocument; if (oDoc.document) { oDoc = oDoc.document; } //add jquery to ifr

[jQuery] Parent Selection Problem

2007-02-15 Thread Mahadewa
Hi all, I've got the following problem ... Let's say I have the following html: Now given a JQuery object of any of the button, how can I select its parent div (the one with the class "parent") ? I have

Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-02-15 Thread Sam Collett
On 15/02/07, Jason Levine <[EMAIL PROTECTED]> wrote: > > It looks like : isn't a valid character for ID attributes. From > http://www.w3.org/TR/html401/types.html#type-name : > > > > > ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed > > by any number of letters, digits (

Re: [jQuery] Target iframe generated by jquery

2007-02-15 Thread Sam Collett
On 14/02/07, 15daysofjquery <[EMAIL PROTECTED]> wrote: > > How do I target an element inside of an iframe I've created on the page? In > other words, I've used jQuery to create an iframe, and now I need to target > all the p elements of the document inside that iframe. > > I've tried > > $("p",sel

[jQuery] Can't get a 1 pixel rounded corner

2007-02-15 Thread dalvarado
Hello, Following advice on this mailing list, I visited http://www.malsup.com/jquery/corner/ to learn how to create a rounded border that was a different color than the inner DIV. I want to create a 1 pixel border, and so I changed the code in the first "Adornment" example to read ... $(this)

Re: [jQuery] Animate enlargement of a thumbnail image

2007-02-15 Thread Benjamin Sterling
There is a plugin over at http://interface.eyecon.ro/demos/slider_resize.html This may point you in the right direction. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com http://jquer

[jQuery] Target iframe generated by jquery

2007-02-15 Thread 15daysofjquery
How do I target an element inside of an iframe I've created on the page? In other words, I've used jQuery to create an iframe, and now I need to target all the p elements of the document inside that iframe. I've tried $("p",self.MyIFrame.document).click(function(){alert('asdf');}); and also

Re: [jQuery] Animate enlargement of a thumbnail image

2007-02-15 Thread Rey Bango
Hi Torbjorn, Do you have an examples of the animation that you'd like to duplicate? Rey Torbjorn Tornkvist wrote: > Hi, > > I want to learn how to animate the enlargement of a thumbnail image. > Any pointers where to look for tips on how to do it ? > > Cheers, Tobbe > > > ___

Re: [jQuery] Popup window and ajax

2007-02-15 Thread Rey Bango
Hi Stamen, Could you put an example link so we can see the actual problem? I'm sure we can help you out. Rey Stamen Georgiev wrote: > Hi there. > > I have a popup window - it calls a function in it's opener and closes > itself. The opener function executes an AJAX request. > The first problem

  1   2   >