[jQuery] Re: search through ajax object

2007-10-21 Thread Wizzud
... success : function(html){ $(html).find('#mydiv').appendTo('#content'); } ... On Oct 20, 11:43 pm, brobro [EMAIL PROTECTED] wrote: Hi, if I use $.ajax() to fetch a file. Would it be possible to search throught that file for a certain element and use that? like

[jQuery] Re: how to select this ?

2007-10-21 Thread Wizzud
Jack, he actually says all links in a paragraph with id 'para', so using $('#para a') is perfectly correct. On Oct 21, 8:43 pm, Jack Killpatrick [EMAIL PROTECTED] wrote: I see via other replies that the .text() instead of .text issue has been resolved, but maybe worth pointing out, too (though

[jQuery] Re: slideUp/slideDown - Bug in IE with images

2007-10-21 Thread Wizzud
Remove 'position:relative;' from your #headerphoto css. On Oct 21, 10:05 pm, MichaelEvangelista [EMAIL PROTECTED] wrote: just a thought, probably better ways - but could you use the same css() to set 'background:none' at the same time you trigger the slideup? -- -- Michael Evangelista,

[jQuery] Re: How would I modify this to...

2007-10-20 Thread Wizzud
nothing to me beyond sticking 2 ice cubes together by pressure alone! On Oct 20, 12:29 am, Rick Faircloth [EMAIL PROTECTED] wrote: You're actually correct, Wizzud... In experimenting with opening and closing a details section I started with trying to manipulate table rows, but the animation

[jQuery] Re: How to position this div?

2007-10-19 Thread Wizzud
jQuery('#idOfImageToBeClicked').bind('click', function() { jQuery('#newDiv').show(); }); On Oct 19, 10:03 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I have a 16x16 image that will be dragged around the screen as part of a larger DIV. When someone clicks on the image, I'd like

[jQuery] Re: How would I modify this to...

2007-10-19 Thread Wizzud
The code you have seems to imply that you're opening/closing tables, not rows. Some html would help, otherwise one has to guess as to the structure. Possibility ... $(this).siblings(':visible:not(.clickable)').slideUp(); On Oct 19, 7:16 pm, Rick Faircloth [EMAIL PROTECTED] wrote: .close an

[jQuery] Re: disable effect in images

2007-10-19 Thread Wizzud
The simplest way is to reduce it's opacity ... jQuery('img').css({opacity:0.5}); On Oct 19, 10:31 am, Alessandro Feijó [EMAIL PROTECTED] wrote: Its possible to turn any image to gray simulating a disabled effect?? I'm trying to find it out but don't know what are the keywords to search for

[jQuery] Re: slideDown problem in IE6 and IE7

2007-10-19 Thread Wizzud
And the code/html would be ? Or a test page maybe? On Oct 19, 10:51 am, chrisandy [EMAIL PROTECTED] wrote: Very new to this but really puzzled by an error in IE6 and IE7. I'm using the fx slideDown effect and it is giving me an 'Invalid Argument' error - Fine in FF and Safari. I've

[jQuery] Re: How to trigger an event/callback if the class(es) of an Element (e.g. div) changes?

2007-10-18 Thread Wizzud
Maybe I have misunderstood but if you really need to keep constant track of these 'selected' divs what's wrong with ... jQuery(function){ var selectedDivs = $('div.selected'); $( selector for unselected divs ).click(function(){ $(this).addClass('selected');

[jQuery] Re: 1.2.1 remove() forgets bindings?

2007-10-17 Thread Wizzud
The change was deliberate, because most people use remove() to (literally) remove the element(s) in question, and any bound events were getting left behind in the jQuery data cache (along with any other element-assigned data held there) and possibly causing memory leakage. If you want to keep an

[jQuery] Re: Can't understand a Jquery statement

2007-10-17 Thread Wizzud
If you're still not sure what it does I'm just expanding on what Karl wrote above Given your code of... for (var i = 0; i 10; ++i) { var n = $($(virtual-sensor,data).get(i)).attr(name); if (n!=null) gsn.vsbox.add(n); // add the selection to a box } ...the line ...

[jQuery] Re: continuously search for elements in a document

2007-10-17 Thread Wizzud
I'm not sure how much this is going to help, given that my knowledge of ASP.NET is zilch but... As an aside, from jQuery v1.2, your initial page load code could be simplified to ... $('ul.errors li:has(span:hidden)').hide(); But ... I get the impression that the errors are the only things

[jQuery] Re: continuously search for elements in a document

2007-10-17 Thread Wizzud
hidden. Any idea how I can loop through the page to continuously monitor spans and detect if they've been shown/hidden, then show/hide my LI's in response? On Oct 17, 5:20 am, Wizzud [EMAIL PROTECTED] wrote: I'm not sure how much this is going to help, given that my knowledge of ASP.NET

[jQuery] Re: advanced selector question

2007-10-16 Thread Wizzud
Using a filter is the only thing I could think of... $('*').filter(function(){ return /\.png/.test($ (this).css('backgroundImage')); }).ifix.png(); Refining the initial selector it would help. On Oct 16, 7:29 pm, tpneumat [EMAIL PROTECTED] wrote: Was thinking something like this...which of

[jQuery] Re: How to bind data to the ajax callback function?

2007-10-15 Thread Wizzud
], [userData] ) Then I can achieve my goal with this way: for(var i=0; i2; i++){ $.get(url+i, function(html, userData){ doit(html, userData['tag']); // userData was bound to ajax callback }, {'tag': i}); } Wizzud wrote: var url='http://foo.bar/?param='; for(var i=0; i2; i

[jQuery] Re: Is there a way to wrap a table around content with jQuery?

2007-10-15 Thread Wizzud
An alternative ... $(['table border=1trtdContent/td/tr' ,'trtd/td/tr' ,'trtdMore Content/td/tr' ,'/table'].join('')) .insertAfter('#target').find('td:eq(1)').append($('#target')); On Oct 15, 10:17 pm, Glen Lipka [EMAIL PROTECTED] wrote: Tricky problem. I found one way, but there

[jQuery] Re: Extremely poor performance of jQuery on AJAX partial page updates

2007-10-14 Thread Wizzud
With no indication of what either the 'parent' HTML structure or the JSON structure is like, is it possible to switch from ... var $component = $(state.html); $component.appendTo(parent); ...to... $(parent).html(state.html); (You wouldn't need to empty parent first - html() does that

[jQuery] Re: Access parent page from ajax generated html

2007-10-14 Thread Wizzud
Apart from the fact that it's a manual action, what doesn't work with the example code? On Oct 13, 3:23 pm, Mark [EMAIL PROTECTED] wrote: It seems this post was deleted... Why? If I have a main page and a section of it generated by Ajax, how do I access an element in the main page from the

[jQuery] Re: How to bind data to the ajax callback function?

2007-10-14 Thread Wizzud
var url='http://foo.bar/?param='; for(var i=0; i2; i++){ submitAjax(i); } function submitAjax(i){ $.get(url+i, function(html){ doit(html, i); }); } function doit(html, tag){ alert(tag); } On Oct 13, 11:04 am, arphenlin [EMAIL PROTECTED] wrote: Below is an example to use

[jQuery] Re: Jquery and Pseudo classes

2007-10-14 Thread Wizzud
Reset from what to what? On Oct 14, 1:36 pm, wattaka [EMAIL PROTECTED] wrote: I need them for buttons, I have a set of buttons that all have hover colors, when one clicks on one, all the others should be reset On Oct 14, 2:43 am, Glen Lipka [EMAIL PROTECTED] wrote: Why do you need jQuery

[jQuery] Re: Jquery and Pseudo classes

2007-10-14 Thread Wizzud
OK. You can't. Use your own class for active, not the pseudo, and just toggle it on/ off. On Oct 14, 3:53 pm, wattaka [EMAIL PROTECTED] wrote: from hover to active for the active button and the others to hthe normal status, which would be :link On Oct 14, 3:45 pm, Wizzud [EMAIL PROTECTED

[jQuery] Re: event.pageX/Y in IE

2007-10-13 Thread Wizzud
Can you make a test page available that demontrates this problem? And what version of IE has the problem? On Oct 13, 6:47 am, Pops [EMAIL PROTECTED] wrote: I am not sure how I missed this early in my plugin development, but I see it now. For my new hover plugin, I noticed jQuery was

[jQuery] Re: Determining the length of an object/array in IE

2007-10-13 Thread Wizzud
You're making an assumption that in IE there are newline characters in the retrieved html - there aren't. Try this ... // $codetext.pop(); // $codetext.shift(); if(!$codetext[$codetext.length-1]) delete $codetext[$codetext.length-1]; if(!$codetext[0]) delete

[jQuery] Re: Dynamic attributes selectors

2007-10-13 Thread Wizzud
Try... var forAttr = '#last_name'; $('a[href=' + forAttr + ']').text('ciao'); On Oct 13, 10:03 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I have this small issue that I cannot solve. I look for an element checking the attribute href: $('a[href='#last_name']').text('ciao');

[jQuery] Re: How about add js language enhancement to jQuery in next version

2007-10-13 Thread Wizzud
Not me. On Oct 13, 3:43 pm, Jiming [EMAIL PROTECTED] wrote: I found the enhancement of prototype and motool is very helpful to coding. Anyone agree with me? Thanks! Jiming

[jQuery] Re: Selection

2007-10-13 Thread Wizzud
$('a').filter(function(){ return ($ (this).parents('#xy').length==0); }).MyFunction(); On Oct 13, 9:28 am, ksuess [EMAIL PROTECTED] wrote: Hi. I want to apply a function to all links, but not these in a div with id #xy. There could be nested elements in #xy with links in it. How can I modify

[jQuery] Re: Accessing dynamically created divs

2007-10-12 Thread Wizzud
If you don't have control over the php then ... $('a[id^=showtxt]').click(function() { var divID = this.id.replace(/^showtxt(\[)(\d+)(\])$/, '#textbox \\$1$2\\$3'); $(divID).slideToggle(400); return false; }); If you DO have control over the php then I would recommend

[jQuery] Re: z-index and IE issue (not the select problem, or the z-index stacking context)

2007-10-12 Thread Wizzud
Try... v.parents(.vtiproot).css( { zIndex : 101 } ); ie. if using key/value pairs, don't quote the key, and try using camelBack notation instead of hyphens. Also, since zIndex is a number you probably don't need to quote the value either (not sure if this makes any difference though)...

[jQuery] Re: Animating elements at different and sequential times

2007-10-11 Thread Wizzud
Sorry about that, I was writing from memory and got the 'what' and the 'when' the wrong way round! Correct format for setTimeout is ... var timeout = setTimeout ( script-to-execute, time-in-milliseconds ); ... so just swap the 2000 and the function around. Apologies. On Oct 11, 1:55 am,

[jQuery] Re: How to iterate and manipulate an object

2007-10-11 Thread Wizzud
It's the only sensible way. jQuery provides jQuery.each( obj/arr, function() ) to iterate over arrays/objects, which boils down to using the for...in construct. To remove properties from an object ... eg. delete obj.x2; On Oct 11, 8:57 am, Pops [EMAIL PROTECTED] wrote: Is this the only way to

[jQuery] Re: Detect child number of an element?

2007-10-11 Thread Wizzud
var myRows = $('table#id tr').click(function(){ alert('Row #' + myRows.index(this) + ' clicked'); }); (index is 0-based, ie clicking on the 7th row returns 'Row #6 clicked' in the example above.) On Oct 10, 3:28 pm, RichUncleSkeleton [EMAIL PROTECTED] wrote: Is it possible to detect the

[jQuery] Re: How to iterate and manipulate an object

2007-10-11 Thread Wizzud
@Michael Snap! On Oct 11, 9:26 am, Michael Geary [EMAIL PROTECTED] wrote: From: Pops Is this the only way to iterate through an object? for ( x in myObject) { } Ultimately, yes. You can use something like $.each() on an object, but it just runs that same for loop

[jQuery] Re: ajaxSend one call, many separate events

2007-10-11 Thread Wizzud
ajaxSend is a global event that *every* bound listener will pick up. You're binding listeners to all the elements that you *could* click on to initiate the ajax call, but the ajax call does not know (or care) what was clicked on, it just knows it has something to send. You must have click event

[jQuery] Re: Prev / Next - one works, the other doesn't!?

2007-10-11 Thread Wizzud
The problem lies with .parent().parent().parent() attempting to find the TABLE - it doesn't, it finds the table's TBODY. try this instead... //hide the calendar tables, then show first $(#calendar table).hide(); $(#calendar #month-oct).show(); $(#calendar th a).click(function(){ // show

[jQuery] Re: XPath, select by attribute substring

2007-10-11 Thread Wizzud
Is this what you're after ... http://docs.jquery.com/Selectors/attributeContains#attributevalue ? On Oct 11, 12:00 pm, Serge [EMAIL PROTECTED] wrote: Is it possible to select all elements by part of its attribute? May be there is some simple regular expressions allowed? I don't know full

[jQuery] Re: Animating elements at different and sequential times

2007-10-11 Thread Wizzud
not to use too many anonymous functions or your code will get very difficult to follow! On Oct 11, 5:50 pm, marc0047 [EMAIL PROTECTED] wrote: Ah! Michael: thanks! Now I know how that works. Wizzud: thanks! It works perfectly! Here's the code for anyone else interested: $('#box1').animate

[jQuery] Re: getting index of elements

2007-10-11 Thread Wizzud
You need to give the class .bt some context other than the whole document ... $('.botoes').each(function(){ alert( $('a', this ).index( $( '.bt', this )[0] ) ); }); On Oct 11, 4:34 pm, ecopantoche [EMAIL PROTECTED] wrote: hello all, I'm new to jQuery, and have the following need:

[jQuery] Re: Animation pop

2007-10-10 Thread Wizzud
Do you have anything we can look at? On Oct 10, 8:56 pm, Jangla [EMAIL PROTECTED] wrote: I've got a 3 level vertical menu working...ish. For some reason, when the animation happens, the menu fades in to the width of the link in the menu, and then pops out to the full required width.

[jQuery] Re: Animating elements at different and sequential times

2007-10-10 Thread Wizzud
load ... success callback starts function(){ $('#yellowDiv').fadeOut('normal', function(){ var offset = $('#blueDiv').offset(); // using dimensions plugin, or var offset = {left:$('#blueDiv').css('left')}; // if css has left set, or whatever setTimeout(2000,

[jQuery] Re: Setting radio button values

2007-10-07 Thread Wizzud
#id should really be unique. It's never a good idea to rely on $(#id) retrieving multiple elements with that id. If your radios have a name of 'Gender' (which seems likely) then you could try... $('input[name=Gender]').each(function(){ this.checked = (this.value == jsonData.feedback.Gender); });

[jQuery] Re: multiple selects, hiddens and text inputs with same name

2007-10-07 Thread Wizzud
and there is no addId method in jQuery. On Oct 5, 5:59 pm, Wizzud [EMAIL PROTECTED] wrote: With... select name='foo'option value='bar1'bar1/option/select select name='foo'option value='bar2'bar2/option/select try... var selects = $('select[name=foo]'); See the Attribute Filters, under Selectors

[jQuery] Re: Problems with jQuery Firefox

2007-10-07 Thread Wizzud
For example ... ? On Oct 6, 10:39 pm, tramblie [EMAIL PROTECTED] wrote: The jQuery's Ajax Requests (and some other) API won't work with Firefox (2.0.0.7) has someone noticed the same problem? Is it an incompatibility, a bug or what?

[jQuery] Re: Add Href Values to create a querystring

2007-10-07 Thread Wizzud
Why? What are doing with the url? When are doing something with the url? dOS-2 wrote: Hi to all, hope you can help.. I need to add and remove href values as you click in a list, ex: div id=brand ul li 1 Yahoo /li li 2 Yahoo /li /ul /div And need to pass values to form a url..

[jQuery] Re: show/hide FAQ - simplify my code?

2007-10-05 Thread Wizzud
Purely as an example ... $(document).ready(function(){ // close the offDiv content sections (no javascript = content is all visible) $('.offDiv .show-hide').hide(); // showLink/hideLink shows/hides the content; showAll/hideAll shows/hides all the content $.each(['.show', '.hide'],

[jQuery] Re: jQuery and Mootools again...

2007-10-05 Thread Wizzud
As Brandon has pointed out in your other post, you don't have a conflict at all, you have bad code. And it's nothing to do with jQuery! It looks like someone has run some sort of compressor on the code in javascript.js, and the scripting isn't up to scratch and won't stand compressing (at least,

[jQuery] Re: Delete photo on confirm

2007-10-05 Thread Wizzud
function delete_photo (photo_id) { if(confirm('Are you sure you want to delete this photo?')){ $.post(http://www.domain.com/delphoto/+ photo_id); $(#+ photo_id).fadeOut(500); } return false; }; Codex wrote: Maybe I'm going about

[jQuery] Re: multiple selects, hiddens and text inputs with same name

2007-10-05 Thread Wizzud
With... select name='foo'option value='bar1'bar1/option/select select name='foo'option value='bar2'bar2/option/select try... var selects = $('select[name=foo]'); See the Attribute Filters, under Selectors in the API Reference. (If you have non-unique ids for elements on your page, do not

[jQuery] Re: Problem with binding mouseout to only parent div

2007-10-04 Thread Wizzud
Some ideas... Firstly, if you return false from any event handler it will prevent default action and, more importantly, event bubbling. For example, if you had element Aelement B.../element B/elment A and you put mouseouts on both A and B, if the mouseout on B did NOT return false (or take some

[jQuery] Re: IE6 - Operation Aborted - Any Ideas?

2007-10-04 Thread Wizzud
On a quick visual inspection, on suggestion is to make sure nothing (jQuery-wise) is being called before the document is ready. You have the following inline script... script type=text/javascript $('#date-pick').calendar(); /script ...and should probably wrap it

[jQuery] Re: ANNOUCE: jQuery lightBox plugin

2007-10-04 Thread Wizzud
Bruce, you need to include the css required for lightbox to work - jquery.lightbox-0.1.css. Bruce MacKay wrote: Hello, I'm having difficulty getting this plugin to work - a test page is here: http://www.thomasbaine.com/gallery.asp I'm sure I've followed the example, but obviously

[jQuery] Re: .is() cannot check against the parent chain?

2007-10-03 Thread Wizzud
No problem, Matt. BTW I'm sure you're aware that you can shorten... if (o.parents().filter('div.unwantedclass').size()==0) { ... } ...to just if (o.parents('div.unwantedclass').size()==0) { ... } Matt Kruse-2 wrote: On Oct 2, 6:09 pm, Wizzud [EMAIL PROTECTED] wrote: No, you can't

[jQuery] Re: input append is not working

2007-10-02 Thread Wizzud
The definition of the append() method is: Append content to the inside of every matched element. So what your script ... $([EMAIL PROTECTED]'testinput']).append(ptest/p); ...is trying to do is insert the paragraph within the input field eg. something like input name='testinput ptest/p/input and

[jQuery] Re: Can jQuery help?

2007-10-02 Thread Wizzud
I'm not entirely clear what you're asking here. You have a style defined for div#Explanation and you have a div with the id of Explanation - so the style will be applied to the div. I don't see where jQuery comes into it all. However, *if* what you really want is to apply all the properties of

[jQuery] Re: .is() cannot check against the parent chain?

2007-10-02 Thread Wizzud
No, you can't check for parent conditions with is(). You can test descendants to a certain extent, but not parents. The same goes for filter() - unless you use filter(function), in which case you do more or less what you like! Also, using hierarchical selectors as filters won't work - they're

[jQuery] Re: uhhh.......WAT?

2007-10-01 Thread Wizzud
well for my using jQuery...is it prone to not playing nice with others? Just wondering out loud... On Sep 28, 2:40 pm, Wizzud [EMAIL PROTECTED] wrote: @cmbtrx I have just lifted the code directly from your second post, tagged /body/html after the anchor, and it worked first time (Firefox

[jQuery] Re: simple browser check (need help)

2007-10-01 Thread Wizzud
if(!$.browser.msie){ .//bug out } FrankTudor wrote: I have a tool that only operates under IE So all other browser users get an alert here is my code...but it doesn't work... Can someone get me straightened out? script $(document).ready(function() {

[jQuery] Re: jquery math functions?

2007-10-01 Thread Wizzud
Google for 'javascript reference Math object'. FrankTudor wrote: Is there a place that I can see the math functions available? Frank -- View this message in context: http://www.nabble.com/jquery-math-functions--tf4551431s27240.html#a12989165 Sent from the jQuery General

[jQuery] Re: insertBefore not inserting into dom?

2007-09-29 Thread Wizzud
Break it down into what is happening when. 1. You assign a click function to #windowOpen 2. You assign a click function to all elements currently in the DOM that have a class of 'in_dom' 3. You click the button to add the new list item - item is added 4. You click the button on the newly added

[jQuery] Re: Jquery Location.href or load --problem

2007-09-29 Thread Wizzud
Without a bit more information it is nigh on impossible to determine what might - or might not - be happening. Just saying it doesn't work is not particularly enlightening. Do you have a test page that is web-accessible? Some basics: Does *anything* happen when the clickable element is

[jQuery] Re: IE6 issues

2007-09-28 Thread Wizzud
The first thing you should do is use valid html - the doctype you are using does not allow a UL to be in a DL, and this could cause unforeseen problems in any browser. That it works (ish) in some browsers could be considered fortuitous rather than by design. Once you've got your page to

[jQuery] Re: uhhh.......WAT?

2007-09-28 Thread Wizzud
@cmbtrx I have just lifted the code directly from your second post, tagged /body/html after the anchor, and it worked first time (Firefox and IE7). I can only suggest that you check that the path to the jquery.js source file is correct for wherever you are running it, as that is the *only* thing

[jQuery] Re: val function for select with 'special character' not working

2007-09-28 Thread Wizzud
I can't tell what you're doing wrong - if anything - but the following works perfectly for me (using v1.2.1) select id='app.id' name='fred' option value='11'one/option option value='22' selected='selected'two/option /select var t = $('#app\\.id').val(); // t is 22 syg6-2 wrote: In

[jQuery] Re: changing the $

2007-09-26 Thread Wizzud
You probably need to look at this ... http://docs.jquery.com/Using_jQuery_with_Other_Libraries http://docs.jquery.com/Using_jQuery_with_Other_Libraries Tom Burns wrote: Hi, Using the $ in jQuery causes problems for my setup. Our template engine uses $ as its token to start paying

[jQuery] Re: Accordion-Like Menu: Setting (and removing) class on active item

2007-09-24 Thread Wizzud
You could try... $(document).ready(function() { $('div.showHide div').hide(); $('div.showHide h2').click(function() { $(this).siblings('.selected').andSelf().toggleClass('selected').end().end() .next('div').slideToggle('fast')

[jQuery] Re: ids of elements in a string

2007-09-22 Thread Wizzud
Or, using v1.2... var ids = $('*').map(function(i,v){return (this.id?this.id:null);}).get().join(','); spinnach wrote: no, but it's easy to build a simple plugin that does that: jQuery.fn.allIDs = function(){ var IDs = []; this.each(function(){ if (this.id)

[jQuery] Re: jQuery 1.2 - Serialize a form as JSON

2007-09-21 Thread Wizzud
Name a browser that will take the submission of... form method='get' action='prog.php' input type='text' name='foo' / input type='text' name='foo' / /form ... and transmit it as : prog.php?foo[]=bar1foo[]=bar2 (and I suggest you test it first) Christoph Roeder-2 wrote: Ok,

[jQuery] Re: multiple select box to textarea

2007-09-18 Thread Wizzud
This will put all selects (just selected values, no names) into textarea... var s = $('select').serializeArray(), t = []; $.each(s,function(n,v){ t[t.length]=v.value; }); $('textarea').val(t.join('\n')); FrankTudor wrote: Hi all, I am creating a little tool that has two multiple

[jQuery] Re: filter(fn)

2007-09-15 Thread Wizzud
wrote: Thanks Klaus and Wizzud I really don't know what the problem is. Here is the latest thing I tried. // $ (#app_content_2356318).children('div').children('table').filter(function(index) { return false; }) ; // does not works with or without the index as parameter. Nothing

[jQuery] Re: newbie question

2007-09-15 Thread Wizzud
using String techniques, or ignored completely, or whatever you wish to do with it. If you want to return JSON data from AjaxHandler.php simply echo it (this is over-simplified but still...) ... echo {ok: true, data{sessionId: '$phpSessionId', progName: 'AjaxHandler.php', from: 'Wizzud'}}; Then tell

[jQuery] Re: newbie question

2007-09-15 Thread Wizzud
' , progName: 'AjaxHandler.php' , from: 'Wizzud' } } Where does this above block go? And is that complete or would I need to add more to it? Just to elaborate a little more, I have a file called test.php, and another file called ajaxhandler.php

[jQuery] Re: div show hide images

2007-09-13 Thread Wizzud
As an example: CSS img.showhide {width:12px; height:12px; background:#ff url('hide.jpg') no-repeat;} // if DIV is currently NOT hidden img.showhideShow {background-image:url('show.jpg');} // if DIV is currently hidden or you can put both the show and hide images in the same graphic jpg

[jQuery] Re: jQuery 1.2 seems to break the Treeview plugin

2007-09-13 Thread Wizzud
The treeview plugin (that you are running) uses XPath Contains Predicate Selectors, such as li[ul] and [ul:hidden] (x2). These simply need replacing with li:has(ul), :has(ul:hidden). Alex-337 wrote: I've got a page that is a massive treeview, and when loading jQuery 1.2 mingzipped, the

[jQuery] Re: plugin packages

2007-09-13 Thread Wizzud
I think I might be missing the point here, but ... if you have one js file with all your commonly used 'jquery stuff' in it, why do you need to load anything else, except on special occasions? My idea of one js file of common code means something like... start of js file /*jquery v1.2 PACK */

[jQuery] Re: Animation bug in 1.2 (@Brian and @John)

2007-09-12 Thread Wizzud
The code ... // If a +/- token was provided, we're doing a relative animation if ( parts[1] ) end = ((parts[1] == - ? -1 : 1) * end) + start; ... is based on the assumption that any value with a leading +/- indicator is a relative animation. Unfortunately this

[jQuery] Re: Page Reload On Link Click

2007-09-12 Thread Wizzud
I don't know if it's just a typo on this post, but you're missing a starting double-quote in the first statement of your click handler function... $(a.comment_toggle).click(function(){$(div.comment).toggle(); return false;}); should be

[jQuery] Re: popup div

2007-09-12 Thread Wizzud
You could try something like this... $('#myTrigger').click(function(){ $('#myDiv').show(); $(document).one('click', function(){ $('#myDiv').hide(); return false; }); return false; }); james_027-2 wrote: Hi, I am trying to make a simple div that will pop which will be close by

[jQuery] Re: jQuery 1.2 - Serialize a form as JSON

2007-09-12 Thread Wizzud
Ticket #1600 already raised. Pyrolupus wrote: In testing Chistoph's code, I encountered a separate but possibly related issue: serialize() and serializeArray() are returning things I did not expect for multiple selects. For the following form: form id=mydForm select id=myd

[jQuery] Re: jQuery 1.2 seems to break the Treeview plugin

2007-09-12 Thread Wizzud
Your path to jquery-1.2.pack.js is returning a 404. Alex-337 wrote: I've got a page that is a massive treeview, and when loading jQuery 1.2 mingzipped, the Treeview plugin seems to stop working. No errors reported in Firebug, and I can't see deprecated functionality in the plugin.

[jQuery] Re: Joern's autocomplete plugin with jquery 1.2

2007-09-11 Thread Wizzud
tlphipps wrote: Hopefully this will help someone... I noticed that Joern's autocomplete plugin uses the .eq() function which was deprecated and removed in jQuery 1.2. I was able to replace the .eq() calls with .slice() calls and get things running. Hope this helps somebody else.

[jQuery] Re: How to this non-XPath style...

2007-09-11 Thread Wizzud
$('tr[customID=123]'); // all TRs with customID set to '123' $('tr[aID=1][bID=2]'); // all TRs with aID set to '1' AND bID set to '2' Will B. wrote: (I posted this yesterday, but it never showed up... But since today's update on XPath being removed (and I don't need *another* .js or

[jQuery] Re: Multiple XPath selectors, or other, for custom attributes

2007-09-11 Thread Wizzud
You can remove the leading double slash? ... $(tr[aID='1'][bID='2']).remove(); //v1.2+ only Will B. wrote: Doesn't that still make it XPath style? On Sep 11, 10:54 am, Karl Swedberg [EMAIL PROTECTED] wrote: In version 1.2, you should be able to do the same thing by removing the @

[jQuery] Re: filter(fn)

2007-09-10 Thread Wizzud
The filter(function) works fine for me (jQuery v1.1.4) - return TRUE and the filter is applied (ie. the element is kept); return FALSE and the element is removed - so taking the documented example it would return How are you?. The same effect (using the documented example again) can be achieved

[jQuery] Re: prob with

2007-09-10 Thread Wizzud
Your load statment should be $('#thesView').load('database.html', '', oThis.afterLoad); ie. just oThis.afterLoad as the name of the callback function, instead of oThis.afterLoad() as you have it. BUT then when afterLoad gets run its context is div#thesView so this refers to that element, not

[jQuery] Re: Plugin doesn't seem to work in IE6 and IE7

2007-09-10 Thread Wizzud
You have superfluous commas in your settings and effect objects, indicating another member is going to be added but there isn't one. Try ... var settings = { effect: { duration: 100 } }; Thasmo wrote: This gives me

[jQuery] Re: Internet Explorer rounding numbers on data returned .getJSON request.

2007-09-10 Thread Wizzud
What does histars() do? Joey T wrote: Hello All, This is my first round with jQuery, which I think is absolutely fantastic, btw. At any rate, I have encountered a funky bug which seems to be IE / Internet Explorer specific. after completing a .getJSON request, whenever a

[jQuery] Re: filter(fn)

2007-09-10 Thread Wizzud
Yes, I must admit I did not test the actual documented example - I was heading more at the root of the problem, ie what wasn't working with Pluthos' script that caused him to try the example in the first place! Klaus Hartl wrote: Pluthos wrote: Hi everyone, I am new to this group. I

[jQuery] Re: problem with selectors and ajax content

2007-09-10 Thread Wizzud
... and this within afterLoad (see http://www.nabble.com/prob-with-tf4411558s15494.html http://www.nabble.com/prob-with-tf4411558s15494.html ) Richard D. Worth-2 wrote: Here's where I think the problem is: $('#thesView').load('database.html', '', oThis.afterLoad()); should be

[jQuery] Re: show hide div with menu

2007-09-10 Thread Wizzud
1. tabContent2 : holds the collection of DIVs that are immediate children of #tabcontent 2. filter(':visible') : reduces the collection from (1) to just those DIVs that are visible (ie probably the one that had previously had show() run on it) because it is not necessary to hide those that

[jQuery] Re: IE 2px out on event.pageX/Y

2007-09-06 Thread Wizzud
://dev.jquery.com/ticket/1571 (Demonstration removed!) Wizzud wrote: Has anyone come across this before, coz it's been driving me nuts! IE7 and IE6 are both reporting the cursor position as 2px greater - both X and Y - than the actual position, say, of a div on the screen. For example, given an absolutely

[jQuery] Re: IE 2px out on event.pageX/Y

2007-09-06 Thread Wizzud
a problem - but I'm not, and it is. Klaus Hartl wrote: Wizzud wrote: Found the solution here - http://ajaxian.com/archives/javascript-tip-cross-browser-cursor-positioning http://ajaxian.com/archives/javascript-tip-cross-browser-cursor-positioning - not that anyone seems to give

[jQuery] Re: Code work under FF but not under IE6

2007-09-06 Thread Wizzud
You can try ... 1. changing $('p.sc1').css('top','60px'); to $('p.sc1').css({top:60}); and 2. going up to jQuery v1.1.4 Dragondz wrote: Hi everyone I made a recent website and add it some very simple javascript features using Jquery (I am glad to tells you that Jquery had been chosen

[jQuery] Re: hidden varible

2007-09-06 Thread Wizzud
$('[EMAIL PROTECTED]').val(10); Muhammad Mohsin wrote: is there any thing like doucment.formname.hiddenvaible.value=10 in jquery -- View this message in context: http://www.nabble.com/hidden-varible-tf4391244s15494.html#a12526177 Sent from the JQuery mailing list archive at

[jQuery] IE 2px out on event.pageX/Y

2007-09-05 Thread Wizzud
Has anyone come across this before, coz it's been driving me nuts! IE7 and IE6 are both reporting the cursor position as 2px greater - both X and Y - than the actual position, say, of a div on the screen. For example, given an absolutely positioned div at 100(top), 200(left), with a mousemove

[jQuery] Re: select box manipulation

2007-09-04 Thread Wizzud
$('#theClickableButton').click(function(){ var _from = $('#theFromSelect') , _opt = '[EMAIL PROTECTED]' + _from.val() + ']' ; _from.find(_opt).appendTo('#theToSelect') }); codecowboy wrote: I am trying to implement a widget that works as follows. I want to be able to

[jQuery] Re: Help serializing form to array

2007-08-28 Thread Wizzud
Use... $.extend( parms, {this.id : this.value } ); // extends parms with the subsequent objects The merge() method is for arrays, whereas parms and {this.id : this.value} are both objects, which is why you are getting the error. bweaverusenet wrote: Hi. What is the voodoo to build an

[jQuery] Re: Wrong Width in Firefox

2007-08-26 Thread Wizzud
I suspect it's because you are using max-width and max-height to compress your images into the available space. When the width of an oversize image is computed the values are coming out to 3 or more decimal places, and depending on how the rounding/truncation works out, the returned width value

[jQuery] Re: how find this value

2007-08-26 Thread Wizzud
1. Your ids should be unique 2. I'm not entirely clear on what it is that you are trying to achieve, but IF all you want to do is retrieve the values of the appropriate hidden input field and select field when the relevant Salvez button is clicked then, with your current HTML, ...

[jQuery] Re: Wrong Width in Firefox

2007-08-26 Thread Wizzud
That's fine. It's along the lines of where my (not very comprehensive) suggestion was leading! b0bd0gz wrote: Thanks for the reply Wizzud, I think your probably right about why the width is out by a pixel. Wrapping the image and paragraph in a div did't work but it did lead to me

[jQuery] Re: Help Traversing

2007-08-26 Thread Wizzud
... var txt = $(this).parents('div:first').find('p').text(); ... or ... var txt = $(this).parents('div:first').children('p').text(); ... or ... var txt = $(this).parents('span:first').siblings('p').text(); ... or ... var txt = $(this).parent().parent().siblings('p').text();

[jQuery] Re: Broken Selector Help

2007-08-25 Thread Wizzud
Using new v1.1.4 :has() syntax ... $('#rank-products table.product-table tr:has(table):first-child').addClass(); Brandon-38 wrote: Ugh. LOL. I think I'll just change the DOM, it may be easier that way. Thanks, Karl. Brandon On Aug 24, 10:13 pm, Karl Swedberg [EMAIL

<    1   2   3   4   >