Re: [jQuery] jQuery toXML

2007-03-01 Thread Mark Gibson
Jason Karns wrote: I saw your toXML plugin and the thread where you were discussing its creation. I've run into a situation where I need to serialize the page to XML. However, the majority of the page is form elements and I need the actual values of these elements serialized, and not the

Re: [jQuery] Reading json strings

2006-11-24 Thread Mark Gibson
Bruce MacKay wrote: Hi folks, I don't understand what I'm doing wrong in the following code ( http://temporarius.massey.ac.nz/json_test.htm) where I cannot seem to harvest the returned json string. The test json string being returned after the form is submitted is: {fields: [{id:

Re: [jQuery] $.val() limited in functionality?

2006-11-15 Thread Mark Gibson
Jörn Zaefferer wrote: Currently val() is only a shortcut, but doesn't encapsulate anything useful. It would be nice to have it handling some more stuff. I wouldn't like to have it in an external plugin, that makes it difficult to access or find it when you actually need that functionality.

Re: [jQuery] does jQuery has support for parameter handling ?

2006-11-10 Thread Mark Gibson
Truppe Steven wrote: Mark Gibson schrieb: In PHP have a look at: utf8_encode(), iconv, or mbstring I think i haven't clearly told my problem: I just have some article manager where for each article i have some description text (german english). At the moment i have one php file loading

Re: [jQuery] Spam problem in bugs

2006-11-08 Thread Mark Gibson
Yehuda Katz wrote: Consider ticket 342 closed. I just committed your patch in the latest svn. -- Yehuda Thanks, but it doesn't seem to be there! The trunk is at rev 549 at present, is this what you're seeing? - Mark. ___ jQuery mailing list

Re: [jQuery] console for IE

2006-11-08 Thread Mark Gibson
Mark Gibson wrote: I've adapted the console.js script originally found here: http://wish.hu/firebug-on-explorer Added pretty dumps of objects, arrays, elements, etc. My new script can be fetched from here: http://jollytoad.googlepages.com/browsercompatibility Andy Matthews wrote

Re: [jQuery] New Plugin: Resizeable

2006-11-08 Thread Mark Gibson
Stephen Woodbridge wrote: Mark Gibson wrote: I've not had chance to test it, but I'm sure all elements have a resize event. If not then the resizeable plugin can trigger() it itself. Hi Mark, I tried to do this like this: $(document).ready(function(){ $('#resize_map').Resizeable

Re: [jQuery] Hiding and showing table rows

2006-11-07 Thread Mark Gibson
, this should be more reliable and future proof than browser sniffing (in case MS ever support table-row!): var rowdisplay = $('tr/tr').css('display'); Tested in FF2.0, IE7/6/5.5, Opera 9.02 Regards - Mark Gibson ___ jQuery mailing list discuss@jquery.com

[jQuery] Spam problem in bugs

2006-11-07 Thread Mark Gibson
that it (and other tickets) are going to get ignored - could the site be changed to force a login before submitting/changing stuff (maybe using the mailing-list email and password)? Cheers - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com

[jQuery] console for IE

2006-11-07 Thread Mark Gibson
/browsercompatibility Hope you find it useful, I do! PS. Improvements are very welcome. Regards - Mark Gibson. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] New Plugin: Resizeable

2006-11-06 Thread Mark Gibson
Stephen Woodbridge wrote: Hi Stefan, I have been trying your resize plugin, it is really slick and works great! I have a request, does it already have or can you add the ability to added a call back at the end of the resize, so other code can be notified of the change in size? Like

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Mark Gibson
], fragment: m[9] }; } So: $.parseURI($(this).attr(href)).query would return the query string, which can then be parsed by the function above, or combine the two functions. - Mark Gibson ___ jQuery mailing list discuss@jquery.com http

Re: [jQuery] Plugin method question

2006-11-01 Thread Mark Gibson
Ⓙⓐⓚⓔ wrote: let's just use the informal type text/x-jquery-json that contains 1 js object or text/x-jquery-text for an unquoted string of chars and others... There is an official 'application/json' media type registered at IANA. http://www.iana.org/assignments/media-types/application/ and an

[jQuery] Extending $.extend to extend from multiple objects!

2006-11-01 Thread Mark Gibson
]; } a++; } // Return the modified object return obj; }; - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Mark Gibson
Chris W. Parker wrote: On Tuesday, October 31, 2006 10:46 AM Luke Lutman said: Have a look at this recent thread :-) http://www.nabble.com/method-plugin-for-getting-query-string-vars--tf248 1232.html#a6919130 I read through this and tried to implement your first suggestion but I notice

Re: [jQuery] Plugin method question

2006-10-31 Thread Mark Gibson
Paul McLanahan wrote: @jake I'm really liking the code tag idea. If I'm understanding you correctly, it would work something like associating a label to an input using the for attribute. I'd just be associating a code tag's contents with a specific DL either by location in the markup or

Re: [jQuery] how to stop each iteration under each's function?

2006-10-31 Thread Mark Gibson
asterocean wrote: for exzample: $([EMAIL PROTECTED]'text']).each(function(){if (this.value==){alert(error);this.focus();break;}}); but 'break;' won't stop the iteration of each, what should i do? There was some discussion on this list of returning false to break the loop - but I'm not

[jQuery] Patch: Set Content-Type of an AJAX request

2006-10-31 Thread Mark Gibson
the raw request data (via $HTTP_RAW_POST_DATA). This will also allow the correct submission of XML, and other formats. I've attached a patch against ajax.js Cheers - Mark Gibson Index: ajax.js === --- ajax.js (revision 512

Re: [jQuery] json.js

2006-10-30 Thread Mark Gibson
as true, then the string will be checked for valid JSON syntax. Safety checks can be set globally by setting: $.parseJSON.safe = true; You can find the code here: http://jollytoad.googlepages.com/json.js Regards - Mark Gibson ___ jQuery mailing list

[jQuery] New Plugin: StickHeadings (experimental)

2006-10-25 Thread Mark Gibson
are the jerky motion in Firefox and the out-of-whack offsets in IE. Can anyone help? Cheers - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] nice plugin idea - Splitter

2006-10-19 Thread Mark Gibson
Armand Datema wrote: I just found this link http://www.jackslocum.com/yui/2006/08/19/a-splitbar-component-for-yahoo-ui/ Does a jquery version excist yet? I don't about that, but have you tried the 'Click here and I will point it out' link!!! Wow! That's it, documentation is going in the

Re: [jQuery] jQuery API discussion

2006-10-17 Thread Mark Gibson
John Resig wrote: e.g.: $( '.b0rp' ).filter( '#blap' ).on.click( function() { $( '#foo' ).ajax.load( ... ) } ); Why no just do .onclick() and .ajaxLoad() - like what was proposed? Not only is it fundamentally easier to write and understand, but it's easier to implement too. The

Re: [jQuery] Compiling selectors into native Javascript

2006-10-17 Thread Mark Gibson
John Resig wrote: The thread about benchmarks got me thinking about compilation and caching of selectors too. It could be a big win for benchmarks where they use the same selector in a loop 1000 times! :-) The problem with caching is that it's unable to handle situations where the DOM

Re: [jQuery] Compiling selectors into native Javascript

2006-10-17 Thread Mark Gibson
Dave Methvin wrote: So my take was that the performance payback for simple selectors called frequently could be good, but those cases are already pretty fast--we're reducing a number that's already small. Complex selectors would still require helper functions or compiled-in loops on every

Re: [jQuery] Variable from PHP to Jquery

2006-10-16 Thread Mark Gibson
Steven Wittens wrote: [snip] Also to avoid having to use templated JS, we have a transparent mechanism for passing data from PHP to JS. All you do is call an API drupal_add_js(), which aggregates all variables that it is passed, and automatically inserts them as a single inline script

Re: [jQuery] jQuery API discussion

2006-10-16 Thread Mark Gibson
Jörn Zaefferer wrote: If we go back to the roots and stick to bind(), unbind(), trigger(), attr() and css(), we could remove all those events and html and css attribute shortcut methods, greatly reducing the number of methods. By adding those methods, or rather only parts of it, like

Re: [jQuery] $(document).load() and friends

2006-10-13 Thread Mark Gibson
() { console.log('p load'); }); }); I'm not sure about $(document).load though, never used it! - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Best way for storing user preferences?

2006-10-11 Thread Mark Gibson
just started this today :) - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery 1.0.2 RC2

2006-10-09 Thread Mark Gibson
Jörn Zaefferer wrote: it's time for another release candiate, this time including even more bug fixes and nothing else. IE 6.0.2900.2180 (XP SP2) - 1 tests of 211 failed: 38. $.find() (1, 42, 43) Firefox 1.5.0.7 - ok (test #55 failed once - but I think this may have been down to a network

[jQuery] New plugin: toXML (XML serializer)

2006-10-05 Thread Mark Gibson
Hi, I've submitted the XML serializer plugin to the wiki: http://jquery.com/docs/Plugins/toXML/ - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] New plugin: toXML (XML serializer)

2006-10-05 Thread Mark Gibson
- Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] jQuery stylesheets

2006-10-04 Thread Mark Gibson
($.stylesheet.list, function() { if (typeof this == 'function') { this.call(self); } }); } return this; }; What do you think? Cheers - Mark Gibson (I've resent this email, as it didn't

[jQuery] Evaluating script elements

2006-10-03 Thread Mark Gibson
|| ); } } if (typeof callback == 'function') callback.call(self); } exec($(this).filter('script')); return this; }; BTW: this was tested with jQuery rev 384. Cheers - Mark Gibson

Re: [jQuery] Evaluating script elements

2006-10-03 Thread Mark Gibson
Brian wrote: Looks good, but please don't use eval as the function name. It's a Bad Idea to overload reserved/predefined words, even if namespaced. Oops, sorry. I was going to rename it before submitting the suggestion. How about: evalScript() exec() execScript() any

Re: [jQuery] Serializing XML

2006-10-02 Thread Mark Gibson
+= this.xml; }); } return out; }; It seems to work in FF 1.5.0.7 and IE 6, but needs testing in Opera and Safari. - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] SVN Error

2006-09-29 Thread Mark Gibson
Hi, I've just tried an update from SVN, (add a checkout to double check) and just keep getting the following error: Can't find temporary directory! It seems to be just on jquery.com, as my other svn sandboxes update ok. - Mark. ___ jQuery mailing

Re: [jQuery] Widget Challenge

2006-09-29 Thread Mark Gibson
Dan Atkinson wrote: Why the bottom? Is that where the Apple menu is? I don't know, I don't have an Apple computer. I like the idea of cloning the icon to maintain the menu position. I'll be honest and say that I simply don't have the JS/jQuery knowledge to clone it. Is it just:

[jQuery] Suggestion: add iframe hack to core jQuery

2006-09-26 Thread Mark Gibson
Hi, I was thinking that due to it being such a common problem, I'd like to suggest adding the iframe hack for IE to the jQuery core. (To hide select elements beneath a positioned element) The plugin below appends an iframe with the necessary css so that you don't need any messy hacks in your

Re: [jQuery] mousewheel plugin

2006-09-26 Thread Mark Gibson
Brandon Aaron wrote: I've actually just recently implemented the mousewheel and thought about writting it as a plugin. There are a few special situations that need to be considered. For example IE allows a mousewheel event to be attached to an element in the dom and Firefox allows it only to

Re: [jQuery] Suggestion: add iframe hack to core jQuery

2006-09-26 Thread Mark Gibson
Brandon Aaron wrote: BTW ... Great idea on using the expression css and the mask filter! That reduces the code lots. Cheers, I haven't even got a clue what the mask filter does! It was suggested in the date picker plugin. Normally I steer clear of this wierd IE specific stuff, but this seemed

[jQuery] Bugs in idrag/idrop

2006-09-13 Thread Mark Gibson
Hi Stefan, I've just downloaded the latest Interface today, it seems to be throwing up a few errors in idrag.js: During a drag operation: newCoords has no properties, line 340: if (newCoords.constructor == Object) { After a drag operation: elm is not defined, line 287:

Re: [jQuery] Performance of idrag/idrop

2006-09-12 Thread Mark Gibson
Mark Gibson wrote: Ideally I'd like to have a single Droppable on the whole table, and use the 'ondrop' callback, but having the position of the pointer (relative to the table element) passed to the callback function, is this possible? Right, I've solved it. To recap the problem: I have

Re: [jQuery] XPath '[EMAIL PROTECTED]' doesn't work on XML documents

2006-09-11 Thread Mark Gibson
Mark Gibson wrote: John Resig wrote: Just a hunch, but IE's DOM support isn't native Javascript. If they got their typelib wrong it may be trying to call getAttribute rather than check elem for a getAttribute property. Can you replace that last line with this and see if it works

[jQuery] Performance of idrag/idrop

2006-09-11 Thread Mark Gibson
- Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Performance of idrag/idrop

2006-09-11 Thread Mark Gibson
Stefan Petre wrote: When you drag an element each droppable is interrogated until overlaps or to the end if no droppable is overlapped. If you have a large amount of drop zones in a grid with the same dimensiunos then you can use 'onDrag' and 'onDrop' callback from draggable to use

[jQuery] XPath '[EMAIL PROTECTED]' doesn't work on XML documents

2006-09-08 Thread Mark Gibson
server rejected it!!!) BTW, this works fine in Firefox, what a surprise! ;) Cheers - Mark Gibson (jQuery: r249) (IE: 6) Title: jQuery Testing Test Your Mum test data stuff=0/ data stuff=1/ /test $(function() { alert($([EMAIL PROTECTED]).length); // This works (shows: 2

[jQuery] Wiki Vandalism

2006-09-07 Thread Mark Gibson
? Cheers - Mark Gibson ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] Patch for idrag.js

2006-09-06 Thread Mark Gibson
- Mark Gibson PS. Sorry if this isn't the right place, but I couldn't find a bug list, SF style management, etc. BTW. Is Interface accessible via anon CVS/SVN from anywhere? --- interface/idrag.js 2006-09-04 21:20:00.0 +0100 +++ DL-trunk/js/jquery/interface/idrag.js 2006-09-06 13