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

2008-04-23 Thread Yansky
What would be the point? The script would have already loaded. cfdvlpr wrote: Is it possible to remove a script from a page dynamically? -- View this message in context:

[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

[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

[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 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 $.ajax?

[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: 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

[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] 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: 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 like

[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('span class=classnameClick Me!/span'); Clicking Click 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( 'a href=#Body_Butter_Cream_Lotion class=openVanilla, Orange

[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] 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 div is now shown) that the function acts on it (such as adding a class to that div).

[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

[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

[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

[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 I

[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] 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

[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

[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( 'a href=#productID class=openProduct 2. name/a' ); 3. $( '#productID' ).css( 'margin-top', '0px;' ); 4. $(

[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: 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

[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: 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. You

[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

[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] 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

[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

[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

[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:55 

[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

[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

[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 more

[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: 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 with

[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) jquery-en@googlegroups.com Sent: Wednesday, April 23, 2008 2:17 PM Subject: [jQuery] Which jQuery method

[jQuery] show/hide nested divs?

2008-04-23 Thread thekman
Hi all, I have code something like: div id=box_1 class=box div id=close_1_a class=closeimage_left/div div id=title_1 class=boxtitleBox Title/div div id=close_1_b class=closeimage_rightBox Title/div div id=content_1 class=boxcontentbox content.../div /div div id=box_2 class=box div

[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: div id=box_1 class=box div

[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.learningjquery.com On

[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)

[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] wrote:

[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

[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').serialize(),

[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

[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