[jQuery] Re: Which jQuery method to use in this scenario

2008-04-23 Thread neualex
Mike, thanks for your response. When using this $.post method, the function is called once the data comes back from the server page. How can I show a loading icon while the function waits for the data to be sent back? I'd appreciate your support. Thanks, neualex On Apr 23, 10:17 pm, "Mike Alsu

[jQuery] AJAX get method problem

2008-04-23 Thread David Frank
I intend to have a poll page which user can switch between poll and result, triggered by clicking on a centain link, which is returned by GET method. now I am stuck because both function works on the first click, but when user try to click on the returned link, corresponding click event is not tr

[jQuery] Re: Which jQuery method to use in this scenario

2008-04-23 Thread neualex
Thank you all for your responses. I am taking Mike's suggestion by using the "serialize" method. ...neualex On Apr 23, 10:17 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > You can do this easily w/o the form plugin also (with jQuery 1.2.2 and later): > > $.post("process.asp", $('#myForm').seri

[jQuery] Re: Can you improve my Bring-to-Front code?

2008-04-23 Thread [EMAIL PROTECTED]
Wow, brilliant, Josh! :D It was missing an extra }); at the end, but that's it afaik. If you want play with it, it's here (development page; only the first half-dozen are real divs at present) http://vanilla-spa.homeholistics.com/products.php Nice one :) On Apr 24,

[jQuery] Re: Problem positioning an absolute element

2008-04-23 Thread AsymF
Do you mean here? http://www.pmob.co.uk/temp/3colfixedtest_sourcenone.htm That is not my page, just the page I took the layout code from. On Apr 22, 2:24 pm, mrpollo <[EMAIL PROTECTED]> wrote: > i see no div called box > at leats firebug doesnt > > On Apr 22, 9:53 am, AsymF <[EMAIL PROTECTED]>

[jQuery] Re: Which jQuery method to use in this scenario

2008-04-23 Thread Mike Alsup
You can do this easily w/o the form plugin also (with jQuery 1.2.2 and later): $.post("process.asp", $('#myForm').serialize(), function(data) { alert(data); }); or $.ajax({ url:'process.asp', type: 'POST', data:$('#myForm').serialize(), success: function(data) {a

[jQuery] Re: is this a good way to test for the presence of a jquery plugin?

2008-04-23 Thread Sam Sherlock
thx - seems obvious now, and I was merely add complexity - S On 23/04/2008, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > > This should work: > > if ($.fn.jScrollPane) { > $('.scroll-pane').jScrollPane(); > } > > --Karl > _ > Karl Swedberg > www.englishrules.com > www.learningjque

[jQuery] Re: show/hide nested divs?

2008-04-23 Thread Shawn
oops.. that should probably be a .toggle() instead of a .hide() Shawn Shawn wrote: $(".closeimage_left").click( function () { $(this).siblings(".boxcontent").hide(); }); That *should* do the trick. Shawn thekman wrote: Hi all, I have code something like: Box Title Box Title b

[jQuery] Re: show/hide nested divs?

2008-04-23 Thread Shawn
$(".closeimage_left").click( function () { $(this).siblings(".boxcontent").hide(); }); That *should* do the trick. Shawn thekman wrote: Hi all, I have code something like: Box Title Box Title box content... Box Title Box Title box content... All numbers are dynamical

[jQuery] show/hide nested divs?

2008-04-23 Thread thekman
Hi all, I have code something like: Box Title Box Title box content... Box Title Box Title box content... All numbers are dynamically generated from the database. What is the best way to use jquery to close the correct content div? I am presuming I would use something like

[jQuery] Re: Which jQuery method to use in this scenario

2008-04-23 Thread Josh Nathanson
Yeah there's an easy way -- use the Form plugin by Mike Alsup: http://malsup.com/jquery/form/ -- Josh - Original Message - From: "neualex" <[EMAIL PROTECTED]> To: "jQuery (English)" Sent: Wednesday, April 23, 2008 2:17 PM Subject: [jQuery] Which jQuery method to use in this scenari

[jQuery] Re: Which jQuery method to use in this scenario

2008-04-23 Thread Erik Beeson
The formSerialize function from the form plugin does exactly what you're asking for: http://www.malsup.com/jquery/form/#api The form plugin also has a variety of functions for submitting forms via ajax. Hope it helps. --Erik On 4/23/08, neualex <[EMAIL PROTECTED]> wrote: > > > Guys, I am new

[jQuery] Re: Can you improve my Bring-to-Front code?

2008-04-23 Thread Josh Nathanson
Give this a try. It will set the clicked div to the highest current z-index plus 1, without disturbing the other divs (untested): var zmax = 0; $( '.draggable' ).click( function () { $( this ).siblings( '.draggable' ).each(function() { var cur = $( this ).css( 'zIndex');

[jQuery] Re: Can you improve my Bring-to-Front code?

2008-04-23 Thread [EMAIL PROTECTED]
Bother, I got Scite to fill in all the spaces & returns before posting, too! Sorry the lines got mangled :/ On Apr 24, 12:18 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi :) > > Fed up trying to figure out why my wonderful drag layers don't work in > IE, I decided to get on with some mo

[jQuery] Can you improve my Bring-to-Front code?

2008-04-23 Thread [EMAIL PROTECTED]
Hi :) Fed up trying to figure out why my wonderful drag layers don't work in IE, I decided to get on with some more pretty stuff :) As we have layers fading in & out, and draggable, I reckon users will expect that clicking on a partially visible layer will bring it to front - like in desktop wind

[jQuery] Which jQuery method to use in this scenario

2008-04-23 Thread neualex
Guys, I am new with jQuery, and I was trying to do something very simple for you at least. I am using jQuery against classic ASP pages and I need to send a form to a ASP page and come back with XML results. So, question: Is there an easy way to just identify the FORM and send all the element val

[jQuery] Re: event question

2008-04-23 Thread Ariel Flesler
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F -- Ariel Flesler http://flesler.blogspot.com On 23 abr, 10:12, Brian Ronk <[EMAIL PROTECTED]> wrote: > Hmmm...  That would work perfectly.  I'll take a look at it.  Thanks. > > On Apr 22, 4:

[jQuery] Re: Question: Selecting all the links in div

2008-04-23 Thread Hamish Campbell
Could you post the html? That would help a lot. If the links exist your code should work. btw, ripple, you shouldn't need to use 'each' - addClass will apply to all objects in the collection. Using 'each' just adds overhead. On Apr 24, 3:14 am, ripple <[EMAIL PROTECTED]> wrote: > Why not loop th

[jQuery] Re: is this a good way to test for the presence of a jquery plugin?

2008-04-23 Thread Karl Swedberg
This should work: if ($.fn.jScrollPane) { $('.scroll-pane').jScrollPane(); } --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Apr 23, 2008, at 5:00 PM, Sam Sherlock wrote: I am using this to test for the presence of blockUI if((typeof $.block

[jQuery] jQuery to create dynamic HTML-Content in a table

2008-04-23 Thread KnoxBaby
Hello, I have a big table. It has a header on the right side (dates) and on the top (names of persons). Each date has an ID (tid) and each person an user-id (uid). This table is generated in PHP: http://img117.imageshack.us/img117/7624/zwischenablage02ow0.jpg (Table Layout) Each user can set fo

[jQuery] is this a good way to test for the presence of a jquery plugin?

2008-04-23 Thread Sam Sherlock
I am using this to test for the presence of blockUI if((typeof $.blockUI) === 'object'){ // set up blockUI } also seems to work if((typeof $.fn.idTabs) === 'object'){ $('.idTabs').idTabs(); } does'nt work if((typeof

[jQuery] Re: problem with animation()/stop()

2008-04-23 Thread Karl Swedberg
Hey guys, Remy wrote an article about this sort of thing on jqueryfordesigners.com the other day. In it he shows a couple approaches that were probably better than mine, but the one he got from me involved using .fadeTo() this one uses two images, and it might not directly apply, but the

[jQuery] Re: problem with animation()/stop()

2008-04-23 Thread Jörn Zaefferer
Highmaster schrieb: Hello Everybody, Hope this is the right spot to place some suggestions for the GREAT jQuery Lib. How is it possible to use the fade() or fadeTo() method, if i want to toggle the an item e.g. a button with a fade on mouseover. the problem is, i have to stop the animation if

[jQuery] Re: ie still stalling at html rewrite

2008-04-23 Thread [EMAIL PROTECTED]
Hi Scott You said: > Something looks screwy with this. Line 1 - 2 insert the link with id "productID" into the appropriate h2 element. The link contains nothing but a text node. Then in line 4, you try to retrieve an element of class "close" from inside that link. There is no such element. Y

[jQuery] Re: Retrieving the location of the mouse click within the browser window

2008-04-23 Thread Glen Lipka
This might help. http://docs.jquery.com/Tutorials:Mouse_Position I also whipped up a simple demo here: http://www.commadot.com/jquery/mousePosition.php Glen On Wed, Apr 23, 2008 at 6:40 AM, Kalpers <[EMAIL PROTECTED]> wrote: > > I am trying to retrieve the location of the mouse click within the

[jQuery] Re: Question: Selecting all the links in div

2008-04-23 Thread ripple
In a very few instances I can see how livequery could help. But I see very few reason's for it. Why add another plugin include to a page which for livequery is 36.91 kb? You could just easily right a small function or a few lines of code to handle the new objects that are added from js aft

[jQuery] Re: Question: Selecting all the links in div

2008-04-23 Thread Glen Lipka
Are the links being added after the fact? Maybe post the page so we can see. It's probably something simple. You might need the LivejQuery plugin. That is used for when objects are added via JS after the page loads. Glen On Wed, Apr 23, 2008 at 8:14 AM, ripple <[EMAIL PROTECTED]> wrote: > Why

[jQuery] Re: ie still stalling at html rewrite

2008-04-23 Thread Scott Sauyet
[EMAIL PROTECTED] wrote: My work page is at http://vanilla-spa.homeholistics.com/products.php - this is the one that's OK everywhere except in IE. 1. $( 'h2.product1' ).html( 'Product 2. name' ); 3. $( '#productID' ).css( 'margin-top', '0px;' ); 4. $( '#productID .close' ).html( '' );

[jQuery] Re: Ajax Replacing HTML Using JSON

2008-04-23 Thread s.ross
On Apr 23, 2008, at 1:27 AM, Diego A. wrote: > > Is the new link by any chance being inserted within the trigger > itself? (doesn't seem like it would work because the code takes the > href attribute from the trigger itself, not the link within it, but it > could cause something weird to happen).

[jQuery] Re: getScript is great to add scripts dynamically, but how might you remove scripts?

2008-04-23 Thread hj
On Apr 21, 3:41 pm, cfdvlpr <[EMAIL PROTECTED]> wrote: > Is it possible to remove a script from a page dynamically? Something like this was just discussed on another mailing list that I read. The answer is something like: A) Remove the script element itself from the DOM. This accomplishes p

[jQuery] Re: Forms

2008-04-23 Thread Nathaniel Whiteinge
kippi wrote: > I have built a form and now I would like to add some ajax to it. Is it > possible with jquery so load information into the form and also take > the information from the form and update the database (PHP script for > mysql part) If you can already submit the form (without Ajax) and

[jQuery] Re: Question: Selecting all the links in div

2008-04-23 Thread ripple
Why not loop through it? This is usually how I would do it. $(document).ready(function(){ $('#UserSubPanel a').each(function(i) { $(this).addClass('sideLink'); }); http://2whoa.com/dominate/ vladv <[EMAIL PROTECTED]> wrote: Thanks f

[jQuery] Re: Question: Selecting all the links in div

2008-04-23 Thread vladv
Thanks for your answer :) I tried this also, but no luck... What may be the problem? I have another jQuery function in the same place, but it works just fine can it be that nested div called in other way? Thanks again On Apr 23, 3:26 pm, "Giuliano Marcangelo" <[EMAIL PROTECTED]> wrote: > $

[jQuery] Ext went GPL

2008-04-23 Thread Mika Tuupola
Just a heads up to everyone who has done some work with Ext. Since Ext 2.1 the new license is GPL3 (not LGPL). Since GPL is viral all code that bundles Ext will become GPL3 too. Something you might not want to happen. -- Mika Tuupola http://www.appelsiini.net/

[jQuery] Re: popup window like google map infowindow

2008-04-23 Thread Seth - TA
Check this out. http://jqueryfordesigners.com/coda-popup-bubbles/ I haven't done it personally, but its close. Seems cool. Hope it helps. Seth On Apr 23, 9:22 am, wesbird <[EMAIL PROTECTED]> wrote: > Hi, > I'm looking for a solution to create a popup window like google map > infowindow. when

[jQuery] Flexigrid Column Width

2008-04-23 Thread Sanjiv
I have been using Flexigrid plugin for some time and really liking it. Congratulations Paulo for the excellent work. I am facing one problem though. If I specify the column size in colModel the grid shows up nicely. However, in case I leave the column size to auto, the column width for the header

[jQuery] popup window like google map infowindow

2008-04-23 Thread wesbird
Hi, I'm looking for a solution to create a popup window like google map infowindow. when I google it, all about how to create infowindow in google map which is not what I am looking for. I start use jQuery about 3 month agos, I really like it. Does anybody experise it? or what's term of it so I

[jQuery] Re: Function Running in the Background???

2008-04-23 Thread alfredwesterveld
1. First get right CSS-selector: See http://docs.jquery.com/Selectors/class#class to get all elements with certain class. $(".data"); to get CSS-selector for all elements with class "data" 2. Second event handling: See http://docs.jquery.com/Events/click#fn for handling click events. $(".data").

[jQuery] Retrieving the location of the mouse click within the browser window

2008-04-23 Thread Kalpers
I am trying to retrieve the location of the mouse click within the browser window. When a user clicks on an area that they thought was click-able but is not I want to record that location. There is a similar application already out there called heat click but I would like to create something mor

[jQuery] Re: ie still stalling at html rewrite

2008-04-23 Thread [EMAIL PROTECTED]
Sure, Scott :) My work page is at http://vanilla-spa.homeholistics.com/products.php - this is the one that's OK everywhere except in IE. Various alternatives would be on products_0, products_1, etc (depending on my level of exasperation at any given time!) You're spot-on about writing a simplifi

[jQuery] Re: ie still stalling at html rewrite

2008-04-23 Thread Scott Sauyet
[EMAIL PROTECTED] wrote: Thank you for your replies :)) The code I posted was from FF's 'view generated source' so that is what my PHP's putting out Here are a couple more attempts: ... which unfortunately get a bit mangled over email. That's why I'm hoping for a URL. By the way, if

[jQuery] Function Running in the Background???

2008-04-23 Thread Joe
I know I've read about this somewhere and I should have bookmarked it, but what is the process for having a function running in the background so that if at any point something should change on the page (i.e. a is now shown) that the function acts on it (such as adding a class to that div). For

[jQuery] Forms

2008-04-23 Thread kippi
Hey, I have built a form and now I would like to add some ajax to it. Is it possible with jquery so load information into the form and also take the information from the form and update the database (PHP script for mysql part) If you can do this are there some examples around that would help me

[jQuery] Re: ie still stalling at html rewrite

2008-04-23 Thread [EMAIL PROTECTED]
Thank you for your replies :)) The code I posted was from FF's 'view generated source' so that is what my PHP's putting out Here are a couple more attempts: // $( 'h2.product1' )[0].innerHTML = ''; $( 'h2.product1' ).append( 'Vanilla, Orange & Ginger Body Custard' ); // $( '.produc

[jQuery] Re: event question

2008-04-23 Thread Brian Ronk
Hmmm... That would work perfectly. I'll take a look at it. Thanks. On Apr 22, 4:55 pm, "Jake McGraw" <[EMAIL PROTECTED]> wrote: > The default behavior: > > $(".classname").click(function(){ >   alert("Hello, world!"); > > }); > > $("body").append('Click Me!'); > > Clicking "Click Me!" would do

[jQuery] Re: Question: Selecting all the links in div

2008-04-23 Thread Giuliano Marcangelo
$(document).ready(function(){ $('#UserSubPanel a').addClass('sideLink'); }); 2008/4/23 vladv <[EMAIL PROTECTED]>: > > Selecting all the links in div.. > I know it should be really simple, but for some reason I can't make it > work.. > > I work with asp.net and try to run something

[jQuery] Question: Selecting all the links in div

2008-04-23 Thread vladv
Selecting all the links in div.. I know it should be really simple, but for some reason I can't make it work.. I work with asp.net and try to run something like this: $(document).ready(function(){ $('#UserSubPanel > a').addClass('sideLink'); }); but it doesn't work. The links

[jQuery] Re: getScript is great to add scripts dynamically, but how might you remove scripts?

2008-04-23 Thread A Paella
If it's a library script you could remove the function from the window scope (or the object in jquery, ie) On Tue, Apr 22, 2008 at 12:41 AM, cfdvlpr <[EMAIL PROTECTED]> wrote: > > Is it possible to remove a script from a page dynamically? >

[jQuery] Re: ie still stalling at html rewrite

2008-04-23 Thread Scott Sauyet
[EMAIL PROTECTED] wrote: I hope someone more experienced can tell me where I'm going wrong with this? Any chance you could post a URL? It doesn't need to be your live site; a sample of the generated code should be plenty. My guess is that IE doesn't like your JS syntax and is refusing to

[jQuery] problem with animation()/stop()

2008-04-23 Thread Highmaster
Hello Everybody, Hope this is the right spot to place some suggestions for the GREAT jQuery Lib. How is it possible to use the fade() or fadeTo() method, if i want to toggle the an item e.g. a button with a fade on mouseover. the problem is, i have to stop the animation if i do a quick toggle ov

[jQuery] Re: ie still stalling at html rewrite

2008-04-23 Thread Rene Veerman
I'd like to see how you call up the jquery code.. Did you try inserting an alert() at the top of your jquery statements? On Tue, Apr 22, 2008 at 7:00 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > I hope someone more experienced can tell me where I'm going wrong with > this? > > I have PHP

[jQuery] Re: Ajax Replacing HTML Using JSON

2008-04-23 Thread s.ross
On Apr 22, 2008, at 2:36 PM, tlphipps wrote: > > I'm just guessing here, but I would think it would be related to your > xhr.setRequestHeader line. I don't really understand why you need > that anyway in this case. What happens if you completely remove the > beforeSend: parameter from your $.aj

[jQuery] Re: Why is form submit action not being invoked?

2008-04-23 Thread Diego A.
Works fine for me in Firefox But you have this line at the start of the validation function that I assume can only be for testing purposes: alert(document.getElementById('Email').value); On Apr 22, 10:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > When I submit the contact form

[jQuery] Re: Ajax Replacing HTML Using JSON

2008-04-23 Thread Diego A.
Is the new link by any chance being inserted within the trigger itself? (doesn't seem like it would work because the code takes the href attribute from the trigger itself, not the link within it, but it could cause something weird to happen). Other than that, are use using event delegation or liv

[jQuery] Re: getScript is great to add scripts dynamically, but how might you remove scripts?

2008-04-23 Thread Diego A.
that's a point, but as Jake and Yansky have pointed out, once the script is downloaded and executed it will have "done stuff" and "stored stuff in memory". Removing a script doesn't change anything. Perhaps the question needs rephrasing... ...which will beg another question: what exactly does the