[jQuery] Are numerical properties/indexes supported?

2010-01-13 Thread Dean
Any jQuery object currently has numerical properties/indexes that store references to the DOM node elements matched in the search. (E.g., $(div)[0] is a reference to the first matched DOM node element in the search.) Can we rely on these properties remaining in jQuery indefinitely? (I haven't

[jQuery] Re: Are numerical properties/indexes supported?

2010-01-13 Thread Dean
I seem to have answered my own question here. Since the jQuery.get() method is around, and since jQuery is an array at heart, I assume it's supported. On Jan 13, 2:03 am, Dean deanpe...@gmail.com wrote: Any jQuery object currently has numerical properties/indexes that store references to the

Re: [jQuery] keep executing the script after a few seconds

2010-01-13 Thread bjorsq
setInterval(function(){alert(hello);},9); http://www.elated.com/articles/javascript-timers-with-settimeout-and-setinterval/ runrunforest wrote: Say i want the alert message hello appear every 90 seconds, how can i do it ? -- View this message in context:

Re: [jQuery] keep executing the script after a few seconds

2010-01-13 Thread Md. Ali Ahsan Rana
use jquery's timer plugin for more efficiency. http://plugins.jquery.com/project/timers -- http://ranacseruet.blogspot.com/ On Wed, Jan 13, 2010 at 2:50 PM, bjorsq p...@bjorsq.net wrote: setInterval(function(){alert(hello);},9);

Re: [jQuery] tabs in one line, on small resolution

2010-01-13 Thread bjorsq
Your problem is more related to CSS than jquery tabs. The element containing the tabs needs to be wide enough to contain them all in one line - it sounds like your containing element's width is set to the width of the browser window, so on smaller resolutions where the window is narrower, your

[jQuery] Re: How to apply limits to an animation

2010-01-13 Thread JQNovice
Thanks Jon! On Jan 11, 4:21 pm, Jon Banner banali...@googlemail.com wrote: have a look at the jCarousel plugin - i think that should do what you need. http://sorgalla.com/jcarousel/ Jon 2010/1/9 JQNovice i...@chamonixmountainguides.com I am very new to JQuery but so far very happy with

[jQuery] Converting a javascript to jQuery

2010-01-13 Thread modestmj
Hello everyone...I'm really new to jQuery..I have an urgent requirement to convert this javascript to jQuery...So please...try to help me with this.. function initShowHideDivs() { var divs = document.getElementsByTagName('DIV'); var divCounter = 1; for(var

[jQuery] Can anyone see this issue?

2010-01-13 Thread youradds
Hi, Got another weird one with crappy IE :/ function finishAjax(linkid, id, response) { jQuery('#ajax_rate_indicator' + linkid).hide(); response = unescape(response); /* an erorr test, in case we get an error in the div id=error div, which didn't get caught before for some reason */ var

[jQuery] AJAX calls timeout

2010-01-13 Thread David
Hi, I had a problem with an AJAX post call. The problem was, some times it returned data, and some times it didn't. It had nothing to do with domain server crossing, nor server errors, as it some times worked and some times it doesn't. What I found was, it worked most of the times in a high

[jQuery] Re: error messages via remote validation

2010-01-13 Thread Kim
Just wanted to ask again if anyone has ever set up their php file called by the validator's remote method to return different error messages via JSON? I was hoping to see an example of how I might do this? Thanks so much. Kim On Jan 7, 2:59 pm, Kim mom2ma...@gmail.com wrote: Hi, I am fairly

Re: [jQuery] Superfish: 2nd dropdown positioning

2010-01-13 Thread Charlie
link doesn't work mcpilot wrote: I have Superfish installed on a website and have a 3-tier dropdown. li/ li/li. The 3rd tier is not positioned correctly, it's behind the second tier. (http://208.84.152.20/~loveland1) Lookiung for the CSS line to tweak to move that out. Pat

[jQuery] combine autocomplete and validation plugin

2010-01-13 Thread Hawkeye
Is there a way to combine the plugins to validate a autocomplete- field? I think a extension of the autocomplete handler would do it, but i have no idea doing this... Any suggestions?

[jQuery] Global monitoring of all Ajax completions

2010-01-13 Thread SamCKayak
I'd like to logout users when the associated session expires as soon as reasonably possible. Assume the users computer died for any reason, I'd like to logout the user server-side by keeping the session timeout as short as reasonably possible, maybe 3 minutes. To keep the session alive so the

[jQuery] Re: tabs in one line, on small resolution

2010-01-13 Thread Greg Tarnoff
Another option is using the CSS min-width to set a minimum width in case they make the window smaller, this will prevent the block from wrapping.. this will mean two things: 1) Side scrolling in 800x600, but let's be real you shouldn't have to support that these days anyway. 2) Min-width

[jQuery] Re: tabs in one line, on small resolution

2010-01-13 Thread bill
just set the width of the containing div, not the min-width, as that is all that is required to prevent the collapsing and is supported by almost every browser available, including good ole IE6. @Greg to stop supporting IE6 means stop supporting the people who use IE6. many businesses rightly

Re: [jQuery] Are numerical properties/indexes supported?

2010-01-13 Thread Nathan Klatt
On Wed, Jan 13, 2010 at 2:03 AM, Dean deanpe...@gmail.com wrote: Any jQuery object currently has numerical properties/indexes that store references to the DOM node elements matched in the search. (E.g., $(div)[0] is a reference to the first matched DOM node element in the search.) Can we rely

[jQuery] Passing parameters by object

2010-01-13 Thread SamCKayak
Passing parameters using an object has become a popular method among jQuery add-ins. Few plugins actually validate the passed parameter object to ensure that elements are spelled correctly. Most plugins use the jQuery.extend method which would copy the passed parameter { resiz: 1 } just as

[jQuery] Re: Converting a javascript to jQuery

2010-01-13 Thread bill
modestmj, can you provide some background as to why you want to convert working javascript to jquery? your reasons may (or may not be) relevant to a solution. either way, i am curious. thank you.

[jQuery] Re: Converting a javascript to jQuery

2010-01-13 Thread MorningZ
While i only have a minute to help, i can point out quickly that var divs = document.getElementsByTagName('DIV'); var divCounter = 1; for(var no=0;nodivs.length;no++){ if(divs[no].className=='breakbg'){ divs[no].onclick =

Re: [jQuery] Converting a javascript to jQuery

2010-01-13 Thread Nathan Klatt
This is totally untested but I expect it should look something like the below. Nathan function initShowHideDivs() { $(div.breakbg).each(function(breakbgIndex) { this .click(showHideContent) .attr(id, ssdm+breakbgIndex) // .className==ssdhead .next(div)

Re: [jQuery] Passing parameters by object

2010-01-13 Thread John Arrowwood
If I were you, I would resist the temptation to do too much 'correctness' checking if it is a plugin that you are releasing to the general public. The reason I say that is sometimes it is desirable to add extra things in to your configuration that the plugin doesn't expect, so that it gets stored

Re: [jQuery] Re: background-color always returns transparent

2010-01-13 Thread John Arrowwood
Make sure you are passing in a document node and not a jQuery object. if ( elem instanceof jQuery ) elem = elem.get(0); If you were passing in a jQuery object, the 'parent = parent.parentNode' line would immediately set parent to null. Also, shouldn't your getColor function return the color if

[jQuery] Jquery Cycle Plugin Bugs

2010-01-13 Thread keli marks
Hey all: I'm having some odd bugs with 2 different kind slideshows. www.exhaciendalapetaca.com On my home page, on both mozilla and IE, instead of displaying the slideshow, the entire set of photos are displayed, stacked underneath eachother. It doesn't happen all the time. The second issue is

[jQuery] Cloning a table row that is not in a table

2010-01-13 Thread RhythmicDevil
The scenario. I have a table with form inputs. I want to clone the row to provide another row of inputs to the user. How I plan to do it. I start the table with one row. I also place a copy of that row inside a hidden div on the page. When the user clicks a button I clone and append the row from

[jQuery] treeview

2010-01-13 Thread Bill Oberacker
I am using the treeview plugin (with the famfamfam theme) as a navigation tool, does anyone know how to stop a node which is a link, that also has child nodes from collapsing/expanding when the actual link is clicked? Basically, I want the tree to only collapse/expand when the plus/minus (hitarea)

[jQuery] please can you help me with with :contains? :)

2010-01-13 Thread happysmile
Hi all I am using jQuery to toggle the visibility of some divs and at the same time the content of the 'toggler' links. Each time you click on a '.show_profile' link you show/hide a '.directors_details' div. At the same time, when you click on the above mentioned link - the class of the link

[jQuery] Re: Can anyone see this issue?

2010-01-13 Thread youradds
Anyone? :/ On Jan 13, 11:46 am, youradds andy.ne...@gmail.com wrote: Hi, Got another weird one with crappy IE :/ function finishAjax(linkid, id, response) {   jQuery('#ajax_rate_indicator' + linkid).hide();   response = unescape(response);  /* an erorr test, in case we get an error in

Re: [jQuery] Cloning a table row that is not in a table

2010-01-13 Thread Nathan Klatt
On Wed, Jan 13, 2010 at 9:15 AM, RhythmicDevil rhythmicde...@gmail.com wrote: So it seems I can only select a row if its in a table? That makes no sense? Makes perfect sense; a table row cannot exist outside of a table. Nathan

[jQuery] Re: Can anyone see this issue?

2010-01-13 Thread youradds
Anyone? :/ On Jan 13, 11:46 am, youradds andy.ne...@gmail.com wrote: Hi, Got another weird one with crappy IE :/ function finishAjax(linkid, id, response) {   jQuery('#ajax_rate_indicator' + linkid).hide();   response = unescape(response);  /* an erorr test, in case we get an error in

[jQuery] Re: simplemodal, want function to run upon $(document).ready

2010-01-13 Thread Domanique Alicia
I found that I could trigger a click event when the document was loaded. Not quite the straight fix I wanted, but a work around will do the trick. Thanks everyone, Domanique On Jan 12, 12:47 pm, Domanique Alicia domaniqueali...@gmail.com wrote: Hello all, I wonder if anyone can shed some

[jQuery] Re: Can anyone see this issue?

2010-01-13 Thread youradds
Eugh, now I feel like an idiot! I had: var regextest1 = Morate se prijaviti da bi mogli pristupiti ovome; ...but needed: var regextest1 = /Morate se prijaviti da bi mogli pristupiti ovome/; Seems to work fine now ;) Cheers Andy On Jan 13, 5:17 pm, youradds andy.ne...@gmail.com wrote:

[jQuery] ANNOUNCE: new rev of credit card validation extension

2010-01-13 Thread Jack Killpatrick
Hi All, We've released a new version of our jQuery Validation plugin credit card extension. Changes include: 1. updated card prefixes (including latest Discover Card changes) 2. support for LaserCard More info here: http://www.ihwy.com/labs/jquery-validate-credit-card-extension.aspx We

[jQuery] Re: Cloning a table row that is not in a table

2010-01-13 Thread RhythmicDevil
You are correct about that. But I did not think the selectors would enforce that. My solution is just to put another table with the row and hide that. Which makes it valid. On Jan 13, 12:03 pm, Nathan Klatt n8kl...@gmail.com wrote: On Wed, Jan 13, 2010 at 9:15 AM, RhythmicDevil

[jQuery] jQuery 1.2.6 clone problem with internet explorer.

2010-01-13 Thread m.ugues
Hallo all. When i call the clone() function in Internet Explorer jQuery meltdowns :( The error reported in ie6 is: C.fx.step is null or not an object. Any idea how to fix the problem? Kind regards Massimo

Re: [jQuery] Re: Cloning a table row that is not in a table

2010-01-13 Thread Nathan Klatt
On Wed, Jan 13, 2010 at 11:36 AM, RhythmicDevil rhythmicde...@gmail.com wrote: I did not think the selectors would enforce that. It's not the selectors; the problem is the tr never makes it into the DOM because the invalid html gets ignored by the browser. Because the tr isn't in the DOM, the

[jQuery] Re: Cloning a table row that is not in a table

2010-01-13 Thread RhythmicDevil
If its not in the DOM why do I see it in the source? I am having a disconnect here. I have fixed it as I said above. But I am curious I thought the DOM represented the HTML that is present at load time. On Jan 13, 12:54 pm, Nathan Klatt n8kl...@gmail.com wrote: On Wed, Jan 13, 2010 at 11:36

Re: [jQuery] please can you help me with with :contains? :)

2010-01-13 Thread Nathan Klatt
On Wed, Jan 13, 2010 at 10:54 AM, happysmile francesca.manc...@gmail.com wrote: It works only the first time you click on the button (changes from 'show' to 'hide'), while it remains almost always 'Hide' in all the following clicks. This won't help you understand :contains but I think it does

Re: [jQuery] Re: Cloning a table row that is not in a table

2010-01-13 Thread Nathan Klatt
On Wed, Jan 13, 2010 at 11:58 AM, RhythmicDevil rhythmicde...@gmail.comwrote: If its not in the DOM why do I see it in the source? I am having a disconnect here. I have fixed it as I said above. But I am curious I thought the DOM represented the HTML that is present at load time. Maybe I

[jQuery] Re: Jquery Cycle Plugin Bugs

2010-01-13 Thread danny.copel...@gmail.com
Homepage slideshow seems to work fine for me. Have you since found the error? As for the events slideshow, you should be able to avoid image size issues, try adding height and width attributes to the img tags. Should fix that. -Dan On Jan 13, 10:33 am, keli marks ckelima...@gmail.com wrote:

[jQuery] Re: Jquery Cycle Plugin Bugs

2010-01-13 Thread danny.copel...@gmail.com
On another note, if you use fx: 'slideHorz' it will slide in the appropriate direction(left/right), depending on button you click (downwards = left, upwards = left). On Jan 13, 10:33 am, keli marks ckelima...@gmail.com wrote: Hey all: I'm having some odd bugs with 2 different kind slideshows.

[jQuery] Shortest possible method of adding/removing class on mouseenter/leave without a plugin

2010-01-13 Thread seasoup
Is this it, or do you have something shorter? $('#nav li').each( function () { var $this = $(this); $this.bind('mouseenter mouseleave', function() { $this.toggleClass('hover') }); }); I thought hover would work, but it only does the mouseenter with one parameter, instead of

[jQuery] Re: background-color always returns transparent

2010-01-13 Thread John
Sorry for the confusion. Actually, the getColor is a function called by another function, which first checks all different css, if the css is color related and the value is transparent, then passes in the dom element, not jquery object, to the getColor function to get back the actual color. I did

[jQuery] Re: Shortest possible method of adding/removing class on mouseenter/leave without a plugin

2010-01-13 Thread MorningZ
i don't understand the .each part jQuery is already going to do that $('#nav li').bind('mouseenter mouseleave', function() { $ (this).toggleClass('hover'); }); *should* be equiv, although i must say that's untested and how about *zero* jQuery code and just using CSS's :hover pseudo?

[jQuery] Re: Cloning a table row that is not in a table

2010-01-13 Thread RhythmicDevil
Yes. Now I understand. Thank you. On Jan 13, 1:02 pm, Nathan Klatt n8kl...@gmail.com wrote: On Wed, Jan 13, 2010 at 11:58 AM, RhythmicDevil rhythmicde...@gmail.comwrote: If its not in the DOM why do I see it in the source? I am having a disconnect here. I have fixed it as I said above.

[jQuery] Re: Help needed to find image dimensions

2010-01-13 Thread banacan
John and Michael, Thanks to you both. I haven't checked the board in a while and I was pleased to see your replies. I'll give it a shot. On Jan 5, 9:03 am, devilmike devilm...@gmail.com wrote: I believe John is correct on both counts. You can't get the image dimensions before loading the

Re: [jQuery] Re: background-color always returns transparent

2010-01-13 Thread John Arrowwood
But it LOOKS right on screen? On Wed, Jan 13, 2010 at 10:22 AM, John john.jian.f...@gmail.com wrote: Sorry for the confusion. Actually, the getColor is a function called by another function, which first checks all different css, if the css is color related and the value is transparent, then

[jQuery] Re: Shortest possible method of adding/removing class on mouseenter/leave without a plugin

2010-01-13 Thread seasoup
Hey MorningZ, Yeah, sorry, the .each was in there because I actually have more code in the $('#nav li).each(... CSS :hover doesn't work in ie6, ie7 on li nodes. Josh Powell On Jan 13, 11:00 am, MorningZ morni...@gmail.com wrote: i don't understand the .each part  jQuery is already going

[jQuery] jquery draggable on live events

2010-01-13 Thread pedalpete
I was sure that drag drop from the jQuery UI wouldn't work on events that are added dynamically to the dom. But I found this thread which says to use '.live('mouseover')' to get it to work, and it seems drag works like a charm. Droppable, I can't seem to get the simplest of 'alerts' after an

[jQuery] jQuery Form Plugin

2010-01-13 Thread solich
Hello. I have a form: form method=post id=mujform1 action=inc/update_homepage.php fieldset label for=NadpisstrongNadpis:/strong/labelbr / input id=Nadpis name=Nadpis size=60 maxlength=250 type=text value=?php echo $nadpis; ? /br / label for=TextstrongText:/strong/labelbr / textarea id=content

[jQuery] Re: Shortest possible method of adding/removing class on mouseenter/leave without a plugin

2010-01-13 Thread Amos King
css hover is not supported on some browsers. Amos On Jan 13, 1:00 pm, MorningZ morni...@gmail.com wrote: i don't understand the .each part  jQuery is already going to do that $('#nav li').bind('mouseenter mouseleave', function() { $ (this).toggleClass('hover'); }); *should* be equiv,

[jQuery] javascript loaded via ajax

2010-01-13 Thread nihal
hi i have a div whose content is loaded via ajax..that content contains html+javascript the javascript contains a function called test() when the content is loaded this function is added to the dom...now when i remove the div using remove(); i am still able to run the function test() as its still

[jQuery] Read ajax response headers?

2010-01-13 Thread bryan
Read ajax response headers? How can I grab information from the response headers from within an jQuery ajax callback? I have an object, data, containing IDs to different items I'd like to build a detailed list with. I need to grab these details by sending a request to a server--one for each

[jQuery] Sceptic about JQuery

2010-01-13 Thread olliewebster
Hi, I recently came across JQuery, but I'm not sure weather I should use it. Even though I already know JavaScript, would I have to learn a new language specific to JQuery? What would the advantages of using JQuery be? Finally, would it be hard to install? Thanks

Re: [jQuery] Actually deleting instead of .remove

2010-01-13 Thread Karl Swedberg
Hmm. .remove() doesn't just hide an element; It removes it: if ( this.parentNode ) { this.parentNode.removeChild( this ); } (from the source) To prevent memory leaks, it also removes event handlers associated with it. As of jQuery 1.4, it also removes data

[jQuery] Pulling Filename into Textfield after AJAX Image Upload

2010-01-13 Thread Allen Gingrich
As the subject suggests, I am trying to do an image upload (preferably through the use of LightBox popping up with an image upload form, which then submits to a hidden iframe), but I am unsure how to pull the image path back and place it into a separate input field once it's completed. Can

[jQuery] Re: background-color always returns transparent

2010-01-13 Thread John
Yes, it does look right on screen. Also the wired thing is that if I use Firebug console to manually get the color by $(#category-list li.division:eq(0) ul li:eq(0)).css(background- color); it returns the correct one, rgb(255, 0, 0). Not sure why it does not work programmatically. Thanks,

Re: [jQuery] Sceptic about JQuery

2010-01-13 Thread Charlie Griefer
On Wed, Jan 13, 2010 at 9:11 AM, olliewebster ollie@googlemail.comwrote: Hi, I recently came across JQuery, but I'm not sure weather I should use it. Even though I already know JavaScript, would I have to learn a new language specific to JQuery? What would the advantages of using JQuery

[jQuery] Re: ANNOUNCE: new rev of credit card validation extension

2010-01-13 Thread dnfdrmn
Terrific! Downloading and installing now. Very impressive plugin, btw! dnfdrmn On Jan 13, 12:29 pm, Jack Killpatrick j...@ihwy.com wrote: Hi All, We've released a new version of our jQuery Validation plugin credit card extension. Changes include: 1. updated card prefixes (including latest

Re: [jQuery] Re: ANNOUNCE: new rev of credit card validation extension

2010-01-13 Thread Leo Balter
Impressive, but I really tought it was another spam incomming by reading only the subject. 2010/1/13 dnfdrmn dbfeder...@gmail.com Terrific! Downloading and installing now. Very impressive plugin, btw! dnfdrmn On Jan 13, 12:29 pm, Jack Killpatrick j...@ihwy.com wrote: Hi All, We've

Re: [jQuery] Sceptic about JQuery

2010-01-13 Thread Nathan Klatt
Using a Javascript framework is definitely a Good Thing. It allows you to step back and focus on what you want to do rather than on the details of getting it done in a way that will work efficiently, in various browsers, etc. Unless there's some external force compelling you to use jQuery, it

Re: [jQuery] Actually deleting instead of .remove

2010-01-13 Thread Michael Geary
.remove() does remove the element from the document head or body, but that doesn't destroy it. It just makes it available for garbage collection - if there are no other references to the element. For example: var $div = $('divtest/div'); $div.appendTo('body'); $div.remove(); Here we've created

Re: [jQuery] Re: ANNOUNCE: new rev of credit card validation extension

2010-01-13 Thread Jack Killpatrick
Hmm, was it the ANNOUNCE part (which I think is standard for this list?) or the credit card .. extension (as in extend your credit or pay later with out magic scam)? Just wondering. dnfdrmn (g) glad you like the plugin. Let me know if the change did the trick for you, if you have a sec.

Re: [jQuery] Are numerical properties/indexes supported?

2010-01-13 Thread Karl Swedberg
On Jan 13, 2010, at 9:24 AM, Nathan Klatt wrote: On Wed, Jan 13, 2010 at 2:03 AM, Dean deanpe...@gmail.com wrote: Any jQuery object currently has numerical properties/indexes that store references to the DOM node elements matched in the search. (E.g., $(div)[0] is a reference to the first

[jQuery] Sortable help

2010-01-13 Thread Ryan Gartin
This is sort of in reference to this (http://groups.google.com/group/ jquery-en/browse_thread/thread/8219bd3a3f106497) post. Also to note, I am completely new to jQuery, but it's awesome!!! Ok, why does the following work in jquery 1.2.6 (UI: jquery-ui- personalized-1.6rc2.min.js) but not in

Re: [jQuery] Re: background-color always returns transparent

2010-01-13 Thread John Arrowwood
That suggests that the selector that you are using to do your test is not quite right. Throw in a console.log( elem ) in a judicious location and find out what is being passed in. On Wed, Jan 13, 2010 at 12:00 PM, John john.jian.f...@gmail.com wrote: Yes, it does look right on screen. Also the

[jQuery] Link Clicks Double Firing

2010-01-13 Thread Collectonian
I have a bit of code on one page to make an entire table cell a clickable area to open a PDF in a new window. It works perfectly, unless you click the actual physical link. If someone clicks the link, it opens the link twice in two new windows. Inside the usual document ready, I have:

[jQuery] Re: Link Clicks Double Firing

2010-01-13 Thread pedalpete
You'll want to unbind the click event for the link, this should work $(#factsheets td a').unbind('click'); Since the link is inside the cell, a click on the link should still trigger the link. Let me know how it goes (I don't get to answer questions very often ) On Jan 13, 1:22 pm, Collectonian

[jQuery] Re: Link Clicks Double Firing

2010-01-13 Thread bill
change window.open to window.location both the anchor tag and the javascript are interpreting the click, and the problem is that your anchor tag is opening the link in the same window, whereas your js was opening the link in a new window. actually, pedalpete's solution is more correct (as there

[jQuery] Re: Link Clicks Double Firing

2010-01-13 Thread bill
ack, i just realized i misread pedalpete's solution; each click will only get interpreted once, but depending on where the click happens determines whether or not the a tag or the js will handle it. this smacks of wrongness. let's examine other ways to handle this: 1. expand the size of the a to

[jQuery] Re: Read ajax response headers?

2010-01-13 Thread Ami
try to change the paramater name inside the success function, to something like xhr, for example: ... success:function (data,xhr) {} complele:function (xhr) {} .. You uses XMLHttpRequest. Maybe the browser think about the native object. On Jan 13, 9:16 pm, bryan br...@resenmedia.com wrote: Read

[jQuery] Re: javascript loaded via ajax

2010-01-13 Thread Ami
Yes. Two options. 1. to remove function from the DOM: window.functionname=null; 2. To create one-time functions, like: (function (){ function a() {alert('a')} function b() {alert('b')} function c() {a();b();} })(); the function a,b,c are relase after they run. OR (function (){ a=function()

Re: [jQuery] javascript loaded via ajax

2010-01-13 Thread Nathan Klatt
On Wed, Jan 13, 2010 at 1:53 PM, nihal nihal.c...@gmail.com wrote: is there anyway to remove the newly added function from the dom? Wrap the code you want to be removeable in its own script element, give it an id, then remove it just like any other element. As has been discussed today, removing

[jQuery] Tabbed view and Flash Movies

2010-01-13 Thread DaveMK
Hi anyone that can help! I'm stuck and not sure how to proceed. Here's the issue: I am using jQuery tabs (seven tabs in total), and loading in iframed pages into the tab with .flvs in them. That's all working, but the issue is that I can't figure out how to get the tab to unload, so if you

[jQuery] Re: please can you help me with with :contains? :)

2010-01-13 Thread happysmile
Bless yo :) Very true, it didn't help me to understand :contains, but it makes things so much simpler. I just changed the if condition and everything works! I am impressed you understood what I wanted :) Thanks a lot!!! On Jan 13, 6:00 pm, Nathan Klatt n8kl...@gmail.com wrote: On Wed,

[jQuery] Re: Link Clicks Double Firing

2010-01-13 Thread pedalpete
Hi Bill, I'm still learning lots, and was hoping you could better explain what was wrong with my solution (as it seems the other solutions are FAR more complicated. What I was trying to acheive was to just disable the link for javascript enabled browser, and keep it enabled for those without

[jQuery] Re: jQuery Form Plugin

2010-01-13 Thread Mike Alsup
Use Firebug to see what data is actually being posted to the server. in update_homepage.php i save data to mysqldb. But if i click to submit buton, i see in div id=odezva/div OK echo from update_homepage.php, but in db is only first (Nadpis) field of form. And (!!!) if i click to this

[jQuery] Jquery Scrollable Customized - Errors

2010-01-13 Thread moneyman
Hello, I am using the following plugin: flowplayer.org/tools/scrollable.html I've slightly customized it by removing the tabs, and using image buttons. you can view my work here: http://getitnow4free.com/FreeWebsite/Page2.html If you keep hitting next template and previous template buttons

[jQuery] Re: jQuery 1.2.6 clone problem with internet explorer.

2010-01-13 Thread Jules
This clone() works for me in ie 6.0 :). May be C.fx.step is an element in your page and IE 6 can't find it for some reason? head script src=../scripts/jquery-1.3.2.js type=text/javascript/ script script type=text/javascript $(document).ready(function() {

[jQuery] Re: jQuery 1.2.6 clone problem with internet explorer.

2010-01-13 Thread Jules
Sorry, I just noticed you are using 1.2.6. Ignore my reply. On Jan 14, 11:26 am, Jules jwira...@gmail.com wrote: This clone() works for me in ie 6.0 :).  May be C.fx.step is an element in your page and IE 6 can't find it for some reason? head     script src=../scripts/jquery-1.3.2.js

Re: [jQuery] Re: Link Clicks Double Firing

2010-01-13 Thread Matt Maxwell
What I'm assuming is happening here is that the even tied to the a tag is firing as well as the click tied to the cell. It appears as though two windows are opened because the page you're currently on goes to the PDF and a new window is opened with the PDF. The easiest solution would be to add

[jQuery] Re: Tabbed view and Flash Movies

2010-01-13 Thread MorningZ
This is completely untested, but it would seem to make sense to work Given this HTML div id=tabs ul lia href=video1.phpTab 1/a/li lia href=video2.phpTab 2/a/li lia href=video3.phpTab 3/a/li /ul div/div div/div

[jQuery] What is the proper way to write this if statement?

2010-01-13 Thread Scooby
Want to check if the current links parent, which would be a list item in my case, has an unordered list or not.. Am looking for all the ones without unordered lists... if($(this).parent().not(has(ul))){ $(this).addClass(active); }

Re: [jQuery] javascript loaded via ajax

2010-01-13 Thread Michael Geary
Removing a script element just removes the script's *source code* from the DOM. It doesn't undo any actions that the script has already performed, such as defining functions or variables or creating other DOM elements. It doesn't change their availability for garbage collection at all. In your

[jQuery] Plugin design pattern (common practice?) for dealing with private functions

2010-01-13 Thread Tim Molendijk
Hey all, I've been developing jQuery plugins for quite some time now, and I like to think I got pretty good at it. One issue keeps nagging me though, and that is how to deal with private functions in a powerful yet elegant manner. My plugins generally look something like this: (function($) {

[jQuery] Re: What is the proper way to write this if statement?

2010-01-13 Thread pedalpete
Everything that I've seen says you have to check the length of the element you are looking for. So I think you want pre if($(this).parents('ul').length==0){ $(this).addClass(active); } /pre If a parent UL was found, the length would be 0

Re: [jQuery] Re: What is the proper way to write this if statement?

2010-01-13 Thread Matt Maxwell
This is correct. I actually wrote a few jQuery extensions that handle this. The code is: $.fn.extend({ // checks to see if an element exists // if no callback is supplied, returns // a boolean value stating if the element // exists, otherwise executes the callback exists: function (callback) {

Re: [jQuery] Plugin design pattern (common practice?) for dealing with private functions

2010-01-13 Thread Matt Maxwell
Maybe try using something like: $.myplugin.fill.call( this, red ); On Wed, Jan 13, 2010 at 6:47 PM, Tim Molendijk taw.molend...@gmail.comwrote: Hey all, I've been developing jQuery plugins for quite some time now, and I like to think I got pretty good at it. One issue keeps nagging me

Re: [jQuery] Plugin design pattern (common practice?) for dealing with private functions

2010-01-13 Thread Matt Maxwell
Also, more information on the call function (if you're not familiar with it) can be found here: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Function/call https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Function/callYou could also use the apply

[jQuery] Re: What is the proper way to write this if statement?

2010-01-13 Thread RobG
On Jan 14, 11:00 am, Matt Maxwell leftwithoutli...@gmail.com wrote: [...] var that = this; // scope The value of the this keyword has nothing whatever to do with scope. -- Rob

[jQuery] Re: What is the proper way to write this if statement?

2010-01-13 Thread Scooby
Thanks guys!! Got it working.. On Jan 13, 7:00 pm, Matt Maxwell leftwithoutli...@gmail.com wrote: This is correct. I actually wrote a few jQuery extensions that handle this. The code is: $.fn.extend({ // checks to see if an element exists // if no callback is supplied, returns // a

Re: [jQuery] Re: What is the proper way to write this if statement?

2010-01-13 Thread Matt Maxwell
You're right. This was a small oversight on my end, though, it would have been a little more helpful to the OP if you had provided an explanation with your reply. :) The reason I use var that = this; is not for scope but rather to ensure that the proper object is being referenced inside the

Re: [jQuery] javascript loaded via ajax

2010-01-13 Thread Nathan Klatt
On Wed, Jan 13, 2010 at 6:45 PM, Michael Geary m...@mg.to wrote: In your example, the hello function will never be garbage collected, because the window object has a property named 'hello' that holds a reference to the function. Thanks for the correction. Nathan

[jQuery] Re: Why is this demo doesn't work?

2010-01-13 Thread zirho
thanks MorningZ but I am still kinda hoping that gets fixed for further inconvinience... take care On 2009년12월14일, 오후10시43분, MorningZ morni...@gmail.com wrote: Use one of the links listed on this page instead: http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery

[jQuery] jQuery stripping HTML tags from Ajax response

2010-01-13 Thread Beckley
Hi, Here's what I'm working with (#thing is a table): $.get(/applications/stuff.php, { '_request':'thing', 'id':id, 'otherid':$('#otherid').val() }, function(data) { $('#thing').append(data); }

[jQuery] Re: jQuery stripping HTML tags from Ajax response

2010-01-13 Thread Dave Methvin
Is #thing a THEAD or TBODY tag? That would be the only valid place to append a TR.

[jQuery] jQuery Cycle categorized Pager

2010-01-13 Thread M. L. Giannotta
Hello everyone, I've recently discovered the power of jQuery plug-in cycle, and I'm enjoying it. However, tonight I faced an obstacle trying to achieve something. Basically, what I want to do, is to split the pager for a single slideshow into multiple parts, each containing only a some of the

[jQuery] Re: Read ajax response headers?

2010-01-13 Thread bryan
Hmmm, I tried what you suggested, but I don't believe it does anything but change the name of the variable inside the callback function. The same data is being passed. On Jan 13, 2:34 pm, Ami aminad...@gmail.com wrote: try to change the paramater name inside the success function, to

[jQuery] Re: ANNOUNCE: new rev of credit card validation extension

2010-01-13 Thread RobG
On Jan 14, 3:29 am, Jack Killpatrick j...@ihwy.com wrote: Hi All, We've released a new version of our jQuery Validation plugin credit card extension. It is likely that such validation is more hassle than it's worth... Changes include: 1. updated card prefixes (including latest Discover

Re: [jQuery] Tabbed view and Flash Movies

2010-01-13 Thread DaveMK
Thanks for the response! I ended up calling a lifeline friend and he helped me figure it out. Very similar to your solution. Again, much appreciated! MorningZ wrote: This is completely untested, but it would seem to make sense to work Given this HTML div id=tabs ul