Re: [jQuery] Simple jQuery question

2009-11-22 Thread Olaf Bosch
Julesfrog schrieb: Now my question. At this point, the button disappears only when the user hit the 500 mark. I would like it to disappear and stay invisible when the user reaches the 500 mark and anything below. I think it's got to do with this line: if(jQuery(this).scrollTop() != 500) but I

[jQuery] Qunit - ok(boolean)

2009-11-22 Thread jeanluca
Hi All how does this test work. I've copied the demo test page (http:// docs.jquery.com/QUnit) and played with this function, but whatever I do, it always prints 'test success': ok( true, test success ); ok( false, test success ); It should behave identical to assertTrue, so I expect only to

[jQuery] how to apply a class to a div using $('#id').html()

2009-11-22 Thread Tristan
Hello, i have in my script something like that $('#status').html('img src=images/accept.png height=16 width=16font color=Green' + email + 'nbsp;is OK/font'); instead of that i want to apply on my div status the class called 'avail' I know this is simple, but i'm stuck here. Thanks for helping

[jQuery] Re: how to apply a class to a div using $('#id').html()

2009-11-22 Thread MorningZ
Assuming it's div id=status/div $(#status).addClass(avail).html( + email + is OK); On Nov 22, 9:06 am, Tristan tristan.bessou...@gmail.com wrote: Hello, i have in my script something like that $('#status').html('img src=images/accept.png height=16 width=16font color=Green' + email +

Re: [jQuery] how to apply a class to a div using $('#id').html()

2009-11-22 Thread HS8KIC
Hi. how about this. for example onclick event. $('a').click(function(){ ??? ?? ? $('#status').addClass('avail').html(' ... '); }); Aom. Tristan wrote: Hello, i have in my script something like that $('#status').html('img src="" height="16" width="16"font color="Green"' + email +

Re: [jQuery] Why would jQuery be undefined in IE, but not FF???

2009-11-22 Thread Olaf Bosch
Rick Faircloth schrieb: What could possibly be the issue? Your META are not closed: meta name = keywordscontent = rent, .. try this: meta name = keywordscontent = rent, . / -- Viele Grüße, Olaf --- olaf.bo...@t-online.de

Re: [jQuery] Superfish - Multiple Columns

2009-11-22 Thread Charlie
simplest case -- you can put just about any element into an LI, , floating your internal elements with 1/2 the width of the LI/UL they are in will make 2 columns Chris wrote: How would you use Superfish to make a dropdown menu that contains multiple columns of menu items?

[jQuery] Re: how to apply a class to a div using $('#id').html()

2009-11-22 Thread Tristan
Thanks guys, worked perfectly !

[jQuery] theme switcher widget on ALL pages

2009-11-22 Thread bertaudmarc
Hi all, I would like on my web site one page where I can switch the themes (I did it) but I would like also that the new choice change the layout of ALL pages. For the time being the other pages don't change ! the cookie 'jquery-ui-theme' should help to do that ? All pages have the same header

Re: [jQuery] How to Multiple wrap in Attribute level??

2009-11-22 Thread Michael Geary
You can't split up a tag like that. Whatever you pass into functions like prepend(), append(), or html() will be treated (if possible) as a complete tag. It would help to know *exactly* what result you are looking for. I'm guessing you want to have it end up like this: table tr

[jQuery] Add/Delete form elements

2009-11-22 Thread tomh88
Hi, I have two issues the following script. 1. The delete button will only delete the first form element. The rest of the delete buttons do nothing. 2. The add button adds a new element after the first one. I need it to add it at the end of the list (i.e. always last). The jquery is: //Add a

[jQuery] html method is inserting html as escaped markup (html source)

2009-11-22 Thread sean
Hi All, I am having a problem with jquery's .html method (and also append, etc.). I am using the jquery form plugin to upload images, which is working fine. I am delivering a script response, which also works fine (.e.g. a javascript alert is sent back as a script response and works fine). But

[jQuery] Re: (treeview) Question/Request regarding toggle and links

2009-11-22 Thread kemikTc
$(#categories).treeview().find('span.[insert your node classname here]').unbind('click') if you want to add your own onclick event: $(#categories).treeview().find('span.[insert your node classname here]').unbind('click').click(function(){ //do something });

[jQuery] How to Hide Parent Div

2009-11-22 Thread AndyH
All, I am new to using jQuery, but have been playing with it this weekend and am stuck on one area which I have exhausted resources. I have an index.html page which has three Tabs inside a DIV container. The tab content is populated using Ajax and a seperate html file. div

[jQuery] Re: jQuery Cycle Plugin and Captions - Please help!

2009-11-22 Thread Mike Alsup
Try this: after: function(curr, next, opts) { var alt = $(next).find('img').attr('alt'); $('#caption').html(alt); } On Nov 22, 12:12 am, Wroathe reallyto...@gmail.com wrote: You're on the right track!!! I added an alt attribute to the first .featured-image and it displayed exactly

[jQuery] validate with changing default submit

2009-11-22 Thread mike
I am a novice at jquery/javascript. I am trying to use validate plugin and then make a ajax request with post() and I am thoroughly confused by the submitHandler option Here's what I have: The html form id=mail_form name=mail_form method=post action=xxx.php // many form elements

Re: [jQuery] Add/Delete form elements

2009-11-22 Thread brian
It looks the problem stems from non-unique IDs for your cloned elements. So, the first thing to do is to get rid of those and use an indexing method. form name=create method=post action=create.php input type=hidden id=id value=1 label for=titleTitle/label input

[jQuery] Re: change the height of a div that is loaded after the jQuery is

2009-11-22 Thread Dave
It seems like the plugin Live jQuery might be a good answer. Any thoughts? Lemme know

[jQuery] Need to hide a href title content, but still need it available in the DOM

2009-11-22 Thread Dave
I want to disable the behavior of rolling over a link and having the title content display. I realize that removeAttr will do it. But that removes it form the DOM completely. And I will need it later. Is there a way to use disableDefault to just not display the tool tip on roll over? I don't seem

Re: [jQuery] Bolding a certain word - string manipulation?

2009-11-22 Thread Rua
Awesome thanks that works, but not in ie7? Michael Geary-3 wrote: If the word anything is just part of the text inside the div, then it doesn't have a DOM element (tag) of its own. This means you can't select it with a jQuery selector or any kind of DOM manipulation, and you can't apply

Re: [jQuery] Add/Delete form elements

2009-11-22 Thread brian
Oops--one change: /* create unique name id */ newElem.children('input:first') .attr('name', 'foo') .attr('id', 'foo') .attr('value', ''); There's no sense giving it a name

[jQuery] Re: (treeview) Collapsable hitarea

2009-11-22 Thread kemikTc
The removes the click event from folders $(#treeview_id).treeview().find('span.folder').unbind('click'); If you want to add your own click event, here's how: $(#treeview_id).treeview().find('span.folder').unbind('click').click (function(){ //do something here });

Re: [jQuery] Need to hide a href title content, but still need it available in the DOM

2009-11-22 Thread brian
On Sun, Nov 22, 2009 at 7:40 PM, Dave dave.mer...@gmail.com wrote: I want to disable the behavior of rolling over a link and having the title content display. I realize that removeAttr will do it. But that removes it form the DOM completely. And I will need it later. Is there a way to use

[jQuery] Re: (treeview) Collapsable hitarea

2009-11-22 Thread kemikTc
You have to unbind the click event on the span. Here's what I did: $(#categories).treeview().find('span.[your span class]').unbind ('click').click(); //replace [your span class] with the class of your nodes. By default they are 'folder' the +/- will still collapse and expand, but the label

[jQuery] Re: How to Hide Parent Div

2009-11-22 Thread kemikTc
You don't have to specify any params for parent(). Try this: $(this).parent().hide(); if that doesn't work, try changing using css $(this).parent().css('display', 'none'); Also check out jQuery UI (jqueryui.com), it has tabs and accordion elements already made and ready to use.

Re: [jQuery] Bolding a certain word - string manipulation?

2009-11-22 Thread Michael Geary
I wouldn't know what to suggest about the IE7 problem without seeing the code in action. Do you have a test page I can look at? -Mike On Sun, Nov 22, 2009 at 4:45 PM, Rua ra2a...@gmail.com wrote: Awesome thanks that works, but not in ie7? Michael Geary-3 wrote: If the word anything is

RE: [jQuery] JQuery and ColdFusion

2009-11-22 Thread Rick Faircloth
Did you ever get this worked out? Rick -Original Message- From: Westside [mailto:malik.robin...@gmail.com] Sent: Friday, November 20, 2009 2:29 AM To: jQuery (English) Subject: [jQuery] JQuery and ColdFusion Hi, I'm trying to use ColdFusion and JQuery but I'm having some problems

[jQuery] Dynamic form validation

2009-11-22 Thread pcoder
Hi All, I tried a lots of way to validate a dynamic form. Validation is always works with the element ID right? Sometimes, it seems like the validation is working with the element NAME. I give you this example. [code=text] head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /

[jQuery] Regarding dynamic loading of pages

2009-11-22 Thread StupidIdiot
Hello, I am developing a website : http://www.stonybrook.edu/lihj/LongIslandHistoryJournalStagingArea/index.html Here, the index page has 4 tabs and i am using the divTabFrame.load() function to load a page into a frame dynamically. where divTabFrame is the div

[jQuery] backgroundPosition plugin

2009-11-22 Thread Rich
Hey all, I was faced with a challenge of displaying, within a main container, 10 panels 147px sq that have background images positioned the opposite of the panel position within the container. When a user was to click one of these it grows over time so each edge of the panel reaches the relative

[jQuery] (validation) Validation remote not working in ie

2009-11-22 Thread mitstock
I have a form with validation remote. The form is loaded through ajax call. The remote validation works in Firefox, Opera and Chrome except IE. When I run it on IE, I can not submit the form, it throws an error: Message: Object doesn't support this property or method Line: 718 Char: 4 Code: 0

[jQuery] Write jQuery Data

2009-11-22 Thread Niche
I have 2 servers, a front end and a backend. I cannot execute server side scripts on the front end server. I need to get information from a form and pass it to my backend server. I must use Ajax for this. I am doing this with jQuery. I would like to store the form field information in JSON

[jQuery] Getting message in information bar in IE 8

2009-11-22 Thread tbird165
When I bring up my website that has the Jquery code in it I get a information bar at the top of IE 8 saying it blocked this webpage from running scripts or Active X controls that could access my computer I then click it for more info and then I can click allow blocked content. How do I make this

[jQuery] Validation remote not working in ie

2009-11-22 Thread mitstock
I have a form with validation remote. The form is loaded through ajax call. The remote validation works in Firefox, Opera and Chrome except IE. When I run it on IE, I can not submit the form, it throws an error: Message: Object doesn't support this property or method Line: 718 Char: 4 Code: 0

[jQuery] Tablesorter date help

2009-11-22 Thread hOtTiGeR
Hi, I'm using this plugin and need to filter the date, but am having difficulties. Do you know how I would sort dates in the format mm/ ? Thanks

Re: [jQuery] Simple jQuery question

2009-11-22 Thread Julesfrog
Works like a charm! Thanks! Olaf wrote: Julesfrog schrieb: Now my question. At this point, the button disappears only when the user hit the 500 mark. I would like it to disappear and stay invisible when the user reaches the 500 mark and anything below. I think it's got to do with this

[jQuery] jquery loses attributes in hidden tables

2009-11-22 Thread tasso85
Hi everybody! I have a little problem using latest jquery (1.3.2): in a page I have some hidden tables with display:none, and if I make them visible for example using the slideDown animation with jquery, some attributes of the tables' rows get lost. For example, all colspans are completely

[jQuery] How to install superfish

2009-11-22 Thread Mavtrevor
plz i am a newbie in web desinging and i came across superfish cos i have been looking for a way of installing or adding a dropdown menu in my website, so can you help me with a detailed solution to how i can successfully install superfish on my website?

[jQuery] Re: Click event outside of an element

2009-11-22 Thread Keysher
Works fine! Thanks!! :o) On 21 nov, 15:29, mofle mofl...@gmail.com wrote: Here you go: $(document).click(function(){         alert('clicked outside classname'); }); $('.classname').click(function(e){         e.stopPropagation(); }); First you bind a click event to the document with