Re: [jQuery] Bug in .color() / Firefox

2006-09-18 Thread Klaus Hartl
Justin Carter schrieb: Hi All, I'm building a new site using jQuery (obviously) and sIFR (2.0.2) for replacement of Heading text. sIFR forces you to specify your text color in the replaceElement function but since I have different style sheets for different parts of the site I prefer not

Re: [jQuery] Error Handling with AJAX

2006-09-18 Thread Klaus Hartl
Matt Stith schrieb: AJAX is supposed to return XML, so its doing what its made to do. It returns whatever MIME type you want the server to respond. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Error Handling with AJAX

2006-09-18 Thread Klaus Hartl
Mike Rubits schrieb: How is it returning XML at all? The only thing it's returning is a 404 error code. It's supposed to post to the action attrib of the form, instead it's posting to /modules/tasks/[object htmlInputElement] instead of taskaction.php. Does your form contain an input field

Re: [jQuery] Error Handling with AJAX

2006-09-18 Thread Mike Rubits
My understanding was that the plugin looked inside the form tag for the action: form id=noteform action=taskaction.php method=post and when you click submit, instead of doing an old fashioned submit, the ajaxForm plugin kicks in, reads action= from the form tag, and does it via AJAX. I have a

[jQuery] getPosition() of iUtil is not not what I want as the scrollbar is scrolled

2006-09-18 Thread limodou
Just after I asked that getPos() function in iUtil.js of interface package, I got the getPosition() should do the work. But as I used it in IE browser, if the scrollbar is not scrolled, the result is good. But as I scroll the scrollbar, the result is not correct, it seems that it minuses scrollTop

Re: [jQuery] typewriter effect

2006-09-18 Thread Fil
I am looking for a type-writer effect (the text of an element types out). Anyone aware of this? Nice idea, I've just tried and done it. I'll publish it later on jquery.info with explanations, and probably a nicer code, but you can get a first version here:

Re: [jQuery] typewriter effect

2006-09-18 Thread Christof Donat
Hi, I'll publish it later on jquery.info with explanations, and probably a nicer code, but you can get a first version here: http://www.jquery.info/IMG/html/19_typewriter.html Nice. You should handle the tags properly. The following Page contains a typewriter that I have written in

Re: [jQuery] Bug in .color() / Firefox

2006-09-18 Thread Stamen Georgiev
I'm building a new site using jQuery (obviously) and sIFR (2.0.2) for replacement of Heading text. sIFR forces you to specify your text color in the replaceElement function but since I have different style sheets for different parts of the site I prefer not to hard code color values into the

Re: [jQuery] tweenbox - image gallery

2006-09-18 Thread Dan Atkinson
A tiny suggestion: $(#tweenLoad).html('Loading ' +k+'%'); Instead of the other one: $(#tweenLoad).html('loading' +k ); I really like it. The 'bounce' effect looks cool too! Like a jello window! :) This just seperates it and shows that it's percentage Will Jessup wrote:

Re: [jQuery] interface-sotables question

2006-09-18 Thread Dan Atkinson
Yes. This is quite easy. Simply do: $(p#myseralhash).text(serial.hash); Replace this would make: p id=myserialhash/p into: p id=myserialhashSerialization info here!/p kevdotbadger wrote: ok ill be a lil shorter. serial = $.SortSerialize('sortable1'); alert(serial.hash); make the

Re: [jQuery] typewriter effect

2006-09-18 Thread sime
Thanks Fil Christof. These examples are fantastic. Simon Christof Donat wrote: Hi, I'll publish it later on jquery.info with explanations, and probably a nicer code, but you can get a first version here: http://www.jquery.info/IMG/html/19_typewriter.html Nice. You should

Re: [jQuery] Interface: draggables, droppables, and sortables

2006-09-18 Thread Bryan Buchs
Brendan, Thanks for doing a good job explaining what I was trying to - the jQuery.iSort.helper.get bug. I would hope that this can be fixed. I can see a situation where I might want to have a list on a page that isn't a sortable until a user initiates that action (click here to sort this

[jQuery] LOADING DATA and Returning a VAR - an odd inconsistancy

2006-09-18 Thread Sam Sherlock
after using .get i am extractng various nodes all works well except the music nodeeg:div id=msuic14/divin this case I would expect the following to return 14 $(div#music,html).text()it often return a blank value, even though firefox's consiole window display the correct node valuevery odd and

Re: [jQuery] typewriter effect

2006-09-18 Thread Fil
Just for the record, when I view this page in IE: http://www.jquery.info/IMG/html/19_typewriter.html nothing happens. You're right, it doesn't work at all on MSIE. Surprisingly it also behaves badly in FF for the PC. It at least tries to type itself out, but has some issuies when it gets to

Re: [jQuery] typewriter effect

2006-09-18 Thread Andy Matthews
Ah... Didn't catch the HTML code. Interesting. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: [jQuery] LOADING DATA and Returning a VAR - an odd inconsistancy

2006-09-18 Thread Andy Matthews
It's probably just a mistype, but your div has an id of msuic, while you're trying to reference "music". Also, what are you trying to reference with your $() call? $("div#music",html)? Why not just reference #music? !//--andy matthewsweb developercertified advanced

Re: [jQuery] LOADING DATA and Returning a VAR - an odd inconsistancy

2006-09-18 Thread Sam Sherlock
yep that was just a typo in my message not in the actual code.referancing div#music or #music equate to the same as long as the node is a div.I am giving it ago now though On 9/18/06, Andy Matthews [EMAIL PROTECTED] wrote: It's probably just a mistype, but your div has an id of msuic, while

Re: [jQuery] LOADING DATA and Returning a VAR - an odd inconsistancy

2006-09-18 Thread Klaus Hartl
referancing div#music or #music equate to the same as long as the node is a div. Yes, but which query do you think is faster? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] LOADING DATA and Returning a VAR - an odd inconsistancy

2006-09-18 Thread Andy Matthews
Well, which one do I THINK is faster, or which one actually IS faster? I think that asking for an id of music should be the fastest sort of search as there should only be ONE of them on the page. I would think that asking it to search all divs THEN for a div with the ID of music would take

Re: [jQuery] LOADING DATA and Returning a VAR - an odd inconsistancy

2006-09-18 Thread Rey Bango
Sam, If you try to reference the node as simply #music as opposed to div#music, do you see any better consistency or do you still have issues? Rey... Sam Sherlock wrote: I only have 1 music node when I extract data from the node sometimes it is blank (more often than not its blank) even

Re: [jQuery] typewriter effect

2006-09-18 Thread Sam Collett
On 18/09/06, Fil [EMAIL PROTECTED] wrote: Just for the record, when I view this page in IE: http://www.jquery.info/IMG/html/19_typewriter.html nothing happens. You're right, it doesn't work at all on MSIE. Surprisingly it also behaves badly in FF for the PC. It at least tries to type

Re: [jQuery] typewriter effect

2006-09-18 Thread Christof Donat
Hi, A regular expression is probably the best thing to use. This is nearly working (but not quite) Why not using DOM? It works perfectly. Just have a look at my code. Actually I think, that it should be rather straight-forward to transform my code to use jQuery. The reason I think it

Re: [jQuery] LOADING DATA and Returning a VAR - an odd inconsistancy

2006-09-18 Thread Sam Sherlock
would it help if I returned an object rather than a seris of HTML nodes?eg the following[title:'home_reviews', content:'h2New content/h2pcontent/p', image:'', music:3]if so what would be the syntax I would use to access the various parts of the object? $.get(./content/?+htmlDoc,function(obj) {

Re: [jQuery] typewriter effect

2006-09-18 Thread Sam Collett
On 18/09/06, Christof Donat [EMAIL PROTECTED] wrote: Hi, A regular expression is probably the best thing to use. This is nearly working (but not quite) Why not using DOM? It works perfectly. Just have a look at my code. Actually I think, that it should be rather straight-forward to

Re: [jQuery] LOADING DATA and Returning a VAR - an odd inconsistancy

2006-09-18 Thread Sam Sherlock
yep its well formed, first thing I checked.Perhaps returning a object would be better (see thoughts in previous email)thxOn 9/18/06, Sam Sherlock [EMAIL PROTECTED] wrote: would it help if I returned an object rather than a seris of HTML nodes?eg the following[title:'home_reviews', content:'h2New

Re: [jQuery] LOADING DATA and Returning a VAR - an odd inconsistancy

2006-09-18 Thread Sam Sherlock
thanks Klaus, looks like I'll have to bite the bullet with this json thingthanks alot!On 9/18/06, Klaus Hartl [EMAIL PROTECTED] wrote:You can try that and it makes more sense to me than extracting the data from your html.I recommend using JSON for that. The response looks something

Re: [jQuery] typewriter effect

2006-09-18 Thread Christof Donat
Hi, Why not using DOM? [...] It was just a suggestion on how the code could be improved (and a good chance to work on my RegExp skills). That is OK, but in production code I see no point in reeimplementing stuff that you already have with DOM. It is fine while praticing. Plus it involves

Re: [jQuery] typewriter effect

2006-09-18 Thread Fil
Your code may generate h1asdf asdf asdf/h1 span style=visibility:hiddenp style=backgrou/span yes this was the biggest bug. It's gone now. There is another issue with your code. You take the content for your typewriter from a parameter to your function, where I take the contents of the

Re: [jQuery] Serialization of form fields

2006-09-18 Thread Mike Alsup
This is what the form plugin is for. http://jquery.com/dev/svn/plugins/form/ On 9/18/06, Rey Bango [EMAIL PROTECTED] wrote: If I have 4 form fields like below and I wanted to serialize them in one big swoop instead of 1 by 1, how might I go about doing it? I know I can do this for the text

Re: [jQuery] Processing JSON with jquery

2006-09-18 Thread Klaus Hartl
Sam Sherlock schrieb: Ealier Klaus recommended usig JSON to process an object here is the code I am using $.ajax({ url: ./content/? + htmlDoc, dataType: 'json', success: function(json) { // process json... eval(var myVar = + json +;); //

Re: [jQuery] Serialization of form fields

2006-09-18 Thread Rey Bango
Thanks Mike. I'll check that out. Rey... Mike Alsup wrote: This is what the form plugin is for. http://jquery.com/dev/svn/plugins/form/ On 9/18/06, Rey Bango [EMAIL PROTECTED] wrote: If I have 4 form fields like below and I wanted to serialize them in one big swoop instead of 1 by 1,

Re: [jQuery] Serialization of form fields

2006-09-18 Thread Rey Bango
Great solution Francisco. Worked like a charm. Rey... Francisco Brito wrote: I just do [EMAIL PROTECTED] Serialize will ignore anything that's not an input anyway. -Brito On 9/18/06, *Rey Bango* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: If I have 4 form fields like

[jQuery] Setting header for local files

2006-09-18 Thread Jörn Zaefferer
Hi folks, is there any way to set a header (ie. content-type: text/xml) when loading a file from a local disk, without a webserver? This would be a great help to run AJAX tests. I once read that someone implemented a kind of webserver via javascript (running inside a browser). Maybe someone

Re: [jQuery] Setting header for local files

2006-09-18 Thread Klaus Hartl
Jörn Zaefferer schrieb: Hi folks, is there any way to set a header (ie. content-type: text/xml) when loading a file from a local disk, without a webserver? This would be a great help to run AJAX tests. I once read that someone implemented a kind of webserver via javascript (running

Re: [jQuery] Processing JSON with jquery

2006-09-18 Thread Sam Sherlock
alert( json.title ); says undefinedthe header is application/jsonhave tried various bits and bobs but still not getting resultsany suggestionsOn 9/18/06, Klaus Hartl [EMAIL PROTECTED] wrote: Sam Sherlock schrieb: Ealier Klaus recommended usig JSON to process an object here is the code I am using

Re: [jQuery] Processing JSON with jquery

2006-09-18 Thread Klaus Hartl
Sam Sherlock schrieb: alert( json.title ); says undefined the header is application/json have tried various bits and bobs but still not getting results any suggestions What version of jQuery are you using? There has been a slight change to the success callback handler... --

Re: [jQuery] Processing JSON with jquery

2006-09-18 Thread Sam Sherlock
I have just had partial success with the following: success: function(json) { console.info( json ); obj = eval('('+json.responseText+')'); console.info(' title: ' + obj.title); console.info(' content: ' + obj.content); console.info(' image: ' + obj.image);

Re: [jQuery] Setting header for local files

2006-09-18 Thread Jörn Zaefferer
Klaus Hartl schrieb: Jörn, not sure if that helps at all, but you can load an xml file from the local file system like this (Mozilla and IE): XML.loadAsync = function(url, callback) { var xmldoc = XML.newDocument(); if (document.implementation

Re: [jQuery] Processing JSON with jquery

2006-09-18 Thread Sam Sherlock
I have tried various versions compressed and noncompressedthe current jquery version info is: $Date: 2006-08-31 13:26:31 -0400 (Thu, 31 Aug 2006) $ $Rev: 249 $ On 9/18/06, Sam Sherlock [EMAIL PROTECTED] wrote: I have just had partial success with the following: success: function(json) {

Re: [jQuery] Processing JSON with jquery

2006-09-18 Thread Jörn Zaefferer
Sam Sherlock schrieb: I have tried various versions compressed and noncompressed the current jquery version info is: $Date: 2006-08-31 13:26:31 -0400 (Thu, 31 Aug 2006) $ $Rev: 249 $ If you have problems that may be solved in the latest development version, you could check it out from

[jQuery] Odd response from .ajax()

2006-09-18 Thread Rey Bango
I'm getting an odd response back via .ajax. Firebug is showing the reply as: h1Length Required/h1 Anyone seen this before? Rey... ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Processing JSON with jquery

2006-09-18 Thread Sam Sherlock
Opera9 does not play along and display content, something odd is happening with opera (not to worried about this) maybe it is easy to fixany (easy) ideas? otherwise I am just going to disable jquery in opera all versions. atb -SOn 9/18/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: Sam Sherlock

Re: [jQuery] Processing JSON with jquery

2006-09-18 Thread Klaus Hartl
And, to be JSON, all the quoted strings need to use double quotes. The JSON standard doesn't allow 'single quotes'. Thank you Michael, I totally overlooked that! -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Processing JSON with jquery

2006-09-18 Thread Klaus Hartl
Sam Sherlock schrieb: I have tried various versions compressed and noncompressed the current jquery version info is: $Date: 2006-08-31 13:26:31 -0400 (Thu, 31 Aug 2006) $ $Rev: 249 $ I think you have a version prior to the change I mentioned. Try the latest version from SVN as Jörn

Re: [jQuery] TreeMenu height problem (curCSS issue)

2006-09-18 Thread Mark Sams
--- Mark Sams [EMAIL PROTECTED] wrote: Could you post a link to your modified version? Here is a link: http://www.geocities.com/msams992000/treeview.html The icons for plus (+) and minus (-) sometimes dissapear, but you can still click in the area where the icon should be and see the

Re: [jQuery] typewriter effect

2006-09-18 Thread Fil
lynx http://www.jquery.info/IMG/html/19_typewriter.html OK I have now written an explanation (in French) and finished the code: http://www.jquery.info/spip.php?article19 But I'm afraid I'm not sure the explanations are understandable... even I have difficulty reading my text :))

[jQuery] jQuery spokesmodel

2006-09-18 Thread Dave Methvin
Nice hat! http://static.flickr.com/52/114431569_4c0c4e1763.jpg?v=0 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery spokesmodel

2006-09-18 Thread Tom Drummond
Where'd you get that picture of my girlfriend? :P -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Methvin Sent: 18 September 2006 22:54 To: discuss@jquery.com Subject: [jQuery] jQuery spokesmodel Nice hat!

[jQuery] Help Appending HTML

2006-09-18 Thread Rey Bango
Hi everyone. I'm a little stuck trying to append a row to an existing table. I do a simple ajax call that returns the HTML row to insert into the table: $.get(product.cfm, { productid: thisID }, function( msg ){ /* Add the new row to the cart table */

Re: [jQuery] jQuery spokesmodel

2006-09-18 Thread Rey Bango
LOL! Dave Methvin wrote: Nice hat! http://static.flickr.com/52/114431569_4c0c4e1763.jpg?v=0 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list

[jQuery] Packing jquery code

2006-09-18 Thread Meece, Clifford T
I have made some modifications to the jquery code and would like to pack it back down. What command is used to generate the official 'packed' version? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Help Appending HTML

2006-09-18 Thread Rey Bango
Hi Patrick, Thanks for the feedback. I was missing a column as you mentioned but adding that in didn't resolve. Same effect just with an additional column. :o) I did manage, however, to add this code which actually works: $(#cartTable).append( 'tr valign=top id=cartRow_' + thisID +'/tr' );

[jQuery] .css(property, value) -left -right -top -bottom broken in IE

2006-09-18 Thread Christian Gove
That's it! That worked perfectly. Perhaps I missed it somewhere, but I didn't see it in the documentation. Thank you very much. - Christian Gove On 9/18/06, Shawn Tumey [EMAIL PROTECTED] wrote: I could be mistaken Christian, but I seem to remember a discussion from a few weeks ago indicating

Re: [jQuery] Bug in .color() / Firefox

2006-09-18 Thread Justin Carter
On 9/18/06, Klaus Hartl [EMAIL PROTECTED] wrote: color() returns the computed style and in Firefox this is the RGB notation, no matter how you specified the color in the style sheet (name, hex, rgb). So this is not a bug. I'd write a RgbToHex function that transforms the Rgb value into Hex

Re: [jQuery] jQuery spokesmodel

2006-09-18 Thread Matt Stith
Haha nice find!On 9/18/06, Dave Methvin [EMAIL PROTECTED] wrote: Nice hat!http://static.flickr.com/52/114431569_4c0c4e1763.jpg?v=0___jQuery mailing list discuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery

Re: [jQuery] Help Appending HTML

2006-09-18 Thread limodou
On 9/19/06, Rey Bango [EMAIL PROTECTED] wrote: Hi Patrick, Thanks for the feedback. I was missing a column as you mentioned but adding that in didn't resolve. Same effect just with an additional column. :o) I did manage, however, to add this code which actually works:

Re: [jQuery] Help Appending HTML

2006-09-18 Thread Rey Bango
Thanks for the suggestion Limodou. I'll check that out. Rey... ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] IE choking on children()

2006-09-18 Thread Rey Bango
IE is choking on the following line: $( #searchResults ).children().remove(); I'm getting an Object Required error. This works fine in FF. Seems like the children() method is causing IE to choke in this case. Any ideas? Rey... ___ jQuery mailing

Re: [jQuery] Bug in .color() / Firefox

2006-09-18 Thread Brian
I vote for color() always returning the same value. The problem is that the code to clear that up is pretty bulky, by jQuery standards. If we re-wrote it to be smaller overall, it might be a candidate for inclusion. Otherwise, John might ask that we make it a plugin. - Brian On 9/18/06,

[jQuery] Request from a newbie

2006-09-18 Thread Paul
Im just beginning to experiment with jQuery and need a little help. Im using it to display reference data for one of our production teams, and the data changes frequently throughout the day. Heres what Ive got, which works: $(document).ready(function() { $.ajax({ type: GET, url:

Re: [jQuery] Request from a newbie

2006-09-18 Thread Blair McKenzie
function refreshData() {$(#report).load(bentonite.cfm?dataType=html); // Loads the page via ajax and puts content into specified elementsreturn false;};$(function() { // $(fn) == $(document).ready(fn) refreshData(); setTimeout(refreshData(), 3000);$(refreshlink).click(refreshData);});BlairOn