[jQuery] Re: ext dialog and form

2007-04-24 Thread Wizzud
One thing to bear in mind when using Ext with the jQuery engine is that you don't have to use Ext all the time! I have built a backend application using Ext's brilliant border layouts, message boxes, dialogs, trees, etc, but for all form processing (and a lot of the ajax calls, as well) I simply

[jQuery] IE sometimes objects to jquery.event.fix

2007-05-01 Thread Wizzud
I have a problem with IE and the fix method of jquery.event, whereby it (IE) sometimes objects to the variable b (=document.body) not being an object. This usually happens on a page refresh, but cannot reliably be re-produced. The solution I have put in place is a very small modification to the

[jQuery] Re: IE sometimes objects to jquery.event.fix

2007-05-01 Thread Wizzud
New ticket added. Brandon Aaron wrote: Would you mind filing a new ticket so that this doesn't get lost in the archives? http://dev.jquery.com/newticket/ -- Brandon Aaron -- View this message in context:

[jQuery] Re: DOM friendly link creation

2007-05-15 Thread Wizzud
Actually I thought I grasped the problem fairly well. The bit I might have misunderstood was the relative importance of the Failing that ... part, as I thought you wanted to solve the problem rather than sidestep it. Ah well ... -- View this message in context:

[jQuery] Question about scroll in dimensions plugin

2007-05-18 Thread Wizzud
The description of the usage of the scroll option is that it controls whether or not the scroll offsets of the parent elements should be included in the calculation of an element's offset. With reference to the http://dev.jquery.com/~brandon/plugins/dimensions/test/offset.html visual test

[jQuery] Re: New plugin: Model (for client-side MVC implementations)

2007-05-18 Thread Wizzud
You're right about more demos. On your current demo, click one checkbox and both get set/unset. But even more interesting is that in Firefox, if you click to the left or right of the checkboxes, they get triggered - even if you're right across the other side of the page! Seems to be triggering

[jQuery] Re: Trouble with calendar icon and datePicker v2

2007-05-22 Thread Wizzud
the class of the anchor is actually .dp-choose-date, not .date-picker as the example page states. Check his css and you'll find an entry for a.dp-choose-date{}. Chris W. Parker wrote: Hello, Why doesn't $('#date').datePicker(); cause the calendar icon to appear anymore? Only thing I'm

[jQuery] Re: Question about scroll in dimensions plugin

2007-05-25 Thread Wizzud
PPS The link mentioned below has been removed due to total lack of interest. Wizzud wrote: .. PS. I have put up a modified version of the Brandon's visual test that uses the YUI position calculator, just so that interested parties (if there are any) can see the difference between YUI

[jQuery] Re: Question about scroll in dimensions plugin

2007-05-28 Thread Wizzud
Brandon, just an update in case you are interested. I've made a few changes to the YUI visual test page to try and find out where YUI was going wrong in Firefox. My test page can now switch between dimensions and the YUI adapter, but more interestingly it can disable the borders on the target

[jQuery] Re: .parents(expr)

2007-05-29 Thread Wizzud
parents(expr) is equivalent to parents().filter(expr) SamCKayak wrote: I could do a test, but discussion seemed like it might turn up something else... .parents(expr) supports an expression to filter parent elements, e.g., .parents('.getme') // returns all parents with class getme

[jQuery] Re: .load issue with IE7

2007-05-31 Thread Wizzud
preventing the user clicking more checkboxes until the previous click has done all the processing it needs to. This may or may not help! John W wrote: Weird I posted a reply about this earlier this morning and it never went through. Anyway, Wizzud thanks for the tip this worked. One other

[jQuery] Re: AJAX get into a persistent variable?

2007-06-18 Thread Wizzud
Use $.getJSON() and get the php program to return JSON-formatted data. eg Javascript... var _mySelects = false; $.getJSON('options.php', {}, function(json){ _mySelects = json.ok ? json.data : false; }); ... if(_mySelects _mySelects.select1){ var _s1 = $('select name='select1'/select');

[jQuery] Re: 1.1.3.1 breaks jqModal in IE6

2007-07-27 Thread Wizzud
The problem is caused by the browser detection method being used to determine IE6. The test used is: ie6=$.browser.msie typeof XMLHttpRequest == 'function' which worked up to 1.1.2 where there was code along the lines of if ( !window.XMLHttpRequest ) XMLHttpRequest = function(){...}

[jQuery] Re: 1.1.3.1 breaks jqModal in IE6

2007-07-27 Thread Wizzud
to be different and I'm not sure what to change. On 7/27/07 7:30 AM, Wizzud [EMAIL PROTECTED] wrote: The problem is caused by the browser detection method being used to determine IE6. The test used is: ie6=$.browser.msie typeof XMLHttpRequest == 'function' which worked up

[jQuery] Re: 5 JavaScript Tricks Made Easy with jQuery

2007-07-28 Thread Wizzud
Neat examples. If I might make a couple of suggestions...? Your page subtitle includes the word 'tutorial'. Personally, if I see that word I expect to be guided through the process of achieving each of the results in the examples. I would therefore suggest that, instead of having to go find the

[jQuery] Re: Allowing a .click() function to occur as many times as needed in tandem with .load() ?

2007-07-29 Thread Wizzud
1. the load() Klaus is trying to make the point that if you do not want any data loaded why are you running a load()? You are running the load() into an element that you have clearly stated does not exist, so in my opinion it is actually a bug in jQuery that is even allowing the ajax call to be

[jQuery] Re: problme with jquery...

2007-07-29 Thread Wizzud
Your code below is incomplete, but also wrong. The way you have it set out, after a POST the page begins with javascript, then the DOCTYPE! Basically, you should have this sort of structure... ?php //define your php functions, eg function GetSQLValueString(...){ ... } //set up some variables,

[jQuery] Re: Anything similar to IE's table.moveRow in jquery?

2007-08-02 Thread Wizzud
$('table') ... gets all tables $('table').eq(1) ... gets the second table $('#formelement').parent().parent().parent() ... gets the 'great-grandad' of #formelement or, to look back up the DOM for a table ... var _find = $('#formelement'); while(!_find.is('table')){ _find = _find.parent(); }

[jQuery] Re: Collapsible Menu radio buttons problems in IE7

2007-08-02 Thread Wizzud
For some reason (and don't ask me why) IE does not like the checked attribute being set in the html. Add $('#Menu input:radio').get(0).checked = true; to your ready function, and set your radios to input type=radio name=selection value=on / input type=radio name=selection value=off / (oh,

[jQuery] Re: Anything similar to IE's table.moveRow in jquery?

2007-08-02 Thread Wizzud
Klaus Hartl wrote: $('#formelement').parents('table:eq(0)'); Even simpler. NOTE: In documentation of parents(), first example is misleading/incorrect in that shows the returned items in reverse order. -- View this message in context:

[jQuery] Re: Show all?

2007-08-02 Thread Wizzud
There is a possible problem using siblings() - if Basics:Location is the current selection, and you then browse through the other accordion panels then presumably while you are opening/closing panels the RH panel does not change, ie still showing Locations; if you decide to click on Belly in the

[jQuery] Re: Show all?

2007-08-03 Thread Wizzud
link. With three links (currently) it's manageable... with 50 it would be a needlessly verbose and bloated beast. 2) that there's no need to introduce additional class names or other hooks for information that's already accessible to jQuery (like :visible) Brian. On 8/3/07, Wizzud [EMAIL

[jQuery] Re: Modals don't mask whole page with Ext and jQuery

2007-08-15 Thread Wizzud
Brandon, There is actually a slight problem in this particular scenario, because $(document).height() is returning 0. Ext's jquery adaptor IS maxing out window and document, but because document is returning 0, window height is being used as the greater. The only property I can find (using

[jQuery] Re: Help with show/hide script

2007-08-16 Thread Wizzud
The problem you have is due to the slideDown. Because that takes time (whereas the hide() is instantaneous), clicking Hide TOC while the toc is still sliding won't stop the actions that take place (within jQuery) during and at the end of the slide. One possible alternative (of many) is ...

[jQuery] Re: Avoiding invalid markup

2007-08-19 Thread Wizzud
Surround inline script with commented out ![CDATA[ .. ]], eg: script type='text/javascript'//![CDATA[ jQuery(function($){ . $(this).hide().parent() .prepend( ajax-loader.gif ); . }); //]]/script Kyle-47 wrote: Code should read: $(this).hide().parent().prepend(

[jQuery] Re: some javascript function on some.html won't work

2007-08-19 Thread Wizzud
What does some.html look like? You imply that it can be run in its own right, ie that it is a full document. IF you are trying to inject a full document into the DOM under the 'somediv' DIV then it would not be surprising if some functionality failed. Michael Lo wrote: Dear all: can some

[jQuery] Re: small issue with script ( working in firefox not in ie )

2007-08-22 Thread Wizzud
Correct your HTML (remove the /ul id=nav for a start). Set your script to (for example) ... script type='text/javascript' $(document).ready(function() { $('#nav li ul').hide(); $('#nav a.folditem').click(function() { var _me = $(this);

[jQuery] Re: Can't get it to work

2007-08-22 Thread Wizzud
Can you supply a bit more information? Just saying I can't get it to work leaves the field of possibilities wide open! [EMAIL PROTECTED] wrote: Hi There, Ive downloaded the source by can't get it to work, i am using jquery-1.1.3.1.pack.js i couldn't find the jquery min js file you used.

[jQuery] Re: Select box help from ajax

2007-08-22 Thread Wizzud
First off, you need to read this http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Rate_me:_Using_Ajax http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Rate_me:_Using_Ajax tutorial by Jorn Zaefferer, particularly the bit the starts 'A very common problem encountered...'

[jQuery] Re: How to have multiple repeating forms with different targets on the same page using ajaxform plugin

2007-08-23 Thread Wizzud
When you just pass a selector string as the target, the Form plugin literally uses that selector (with no additional context) to assign the returned value, eg. 214$(options.target).attr(innerHTML, data).evalScripts().each(oldSuccess, [data, status]); target will take a selector

[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

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

  1   2   3   4   >