Re: [jQuery] the pitfalls of jquery

2007-03-16 Thread Dmitrii 'Mamut' Dimandt
Wow. The best description of jQuery. Ever. :two thumbs up: Benjamin Sterling wrote: Javascript isn't bad it's jquery that is bad. I've seen whole cities go under because of it. First it's just a few kids experimenting, trying to have a good time. No harm right? Well, they get other kids

[jQuery] Select in frames

2007-03-16 Thread George Moschovitis
Dear devs, I have a short question. Is there a jquery shortcut for the following js code: document.getElementById('myframe').contentWindow.document.getElementById('myframe').submit(); I am trying to programmatically submit a form in an iframe. thanks in advance, George. --

Re: [jQuery] Test

2007-03-16 Thread Klaus Hartl
Daemach schrieb: Disregard this, please. $('*').not(this).read(); -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] I need ge simple demo for $.ajax and events function

2007-03-16 Thread Yansky
If you just want to do a simple page load, you could just do: $('#btn2').mouseup(function(){ $(#xml).load(time1.asp); }; input type=button id=btn2 value=Just a test / Or your version: $('#btn2').mouseup(function(){ $(#xml).ajax({ url: time1.asp, async: false }).responseText; };

[jQuery] bug caught when retrieving data

2007-03-16 Thread Michel Brouckaert
if encountered a weird bug it spilled out this error message... [Exception... Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open] nsresult: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) location: JS frame :: javascript: eval(__firebugTemp__); :: anonymous :: line 1

Re: [jQuery] bug caught when retrieving data

2007-03-16 Thread Rob M
- Original Message - From: Michel Brouckaert if encountered a weird bug it spilled out this error message... [Exception... Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open] nsresult: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) location: JS frame ::

Re: [jQuery] bug caught when retrieving data

2007-03-16 Thread Michel Brouckaert
thx for the help but still doesn't work..same error as before.. [Exception... Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open] nsresult: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) location: JS frame :: javascript: eval(__firebugTemp__); :: anonymous :: line

Re: [jQuery] blending effect?

2007-03-16 Thread Torbjorn Tornkvist
Torbjorn Tornkvist wrote: Joel Birch wrote: On 15/03/2007, at 7:54 PM, Hrvoje Blažeković wrote: Simple to use, I have used it on some small sites (st-georg.hr - the home page, www.podravka.com/visebojac/ - the header images) Hrvoje On 15 ožu, 2007, at 9:47, Torbjorn Tornkvist wrote:

[jQuery] loading content into a div (IE7 problems)

2007-03-16 Thread Michael Grunewalder
greetings, I have a div div id=MyContent/div if i use $(#MyContent).load('content.html') then it works very fine in all good browsers, but for IE7 i get a)if div is empty - IE gives popup window Permission denied b)if there is content in the div, IE seems to keep trying to load the new

Re: [jQuery] Ok... one last effort to make this work... help!

2007-03-16 Thread Sam Collett
On 15/03/07, Rick Faircloth [EMAIL PROTECTED] wrote: Well, Daemach...seems I've got things working well with my jQuery client side data-handling and CF server side validation. My next step is to submit the form data and process it via CF and return the result. I've got the jQ code and CF for

Re: [jQuery] Select in frames

2007-03-16 Thread Karl Swedberg
On Mar 16, 2007, at 3:23 AM, George Moschovitis wrote: Dear devs, I have a short question. Is there a jquery shortcut for the following js code: document.getElementById ('myframe').contentWindow.document.getElementById('myframe').submit(); I am trying to programmatically submit a form

[jQuery] [!jQ] - But need help: Object doesn't support this property or method

2007-03-16 Thread agent2026
This was driving me crazy all day yesterday, and I'm sick and tired of it today. IE problem only, naturally. I'm loading an external source (which I have control over) into an object tag. I need to set the height of the object to the content of the source. Plays nicely in everything but IE

Re: [jQuery] blending effect?

2007-03-16 Thread Hrvoje Blažeković
Thanks for the code, i have some ideas where i migth use it :) Hrvoje On 16 ožu, 2007, at 9:58, Torbjorn Tornkvist wrote: Torbjorn Tornkvist wrote: Joel Birch wrote: On 15/03/2007, at 7:54 PM, Hrvoje Blažeković wrote: Simple to use, I have used it on some small sites (st-georg.hr - the

Re: [jQuery] [!jQ] - But need help: Object doesn't support this property or method

2007-03-16 Thread agent2026
Actually, I just tried testing with a 'true' external source, and I'm getting a permission denied error in FF (my external source before was residing on the same domain): [Exception... 'Permission denied to get property Window.setObjHeight' when calling method: [nsIDOMEventListener::handleEvent]

Re: [jQuery] Sortable - is 'containment' implemented? simple test case fails

2007-03-16 Thread Mike Holloway
I done a bit of digging around in the interface code, fix by the following: Line 253 of idrag.js, change from: {x:0,y:0}, to: jQuery.iUtil.getPosition(elm.parentNode), Mike Holloway wrote: Hi, I have exactly the same problem, have several dl lists and trying to order the dd's within,

Re: [jQuery] Select in frames

2007-03-16 Thread Sam Collett
On 16/03/07, George Moschovitis [EMAIL PROTECTED] wrote: Dear devs, I have a short question. Is there a jquery shortcut for the following js code: document.getElementById('myframe').contentWindow.document.getElementById('myframe').submit(); I am trying to programmatically submit a form

Re: [jQuery] How to convert class to style='attrs ...'

2007-03-16 Thread Danny Wachsstock
Oops...too tired when I wrote that. Make it if ((new RegExp('[^ ,]'+selector+'[$ ,]').test(this.selectorText))) but I haven't tested that either Danny Wachsstock wrote: Brilliant minds think alike :) The RegExp allows for stylesheets that use a comma, like .classname , .otherclass

[jQuery] Possible BUG: One/Toggle inconsistant cross-browser

2007-03-16 Thread Joel Birch
Hi all, I have made a test page to demonstrate this, but briefly: I am attaching a one('click',function(){}) to a button element and within that function I set the button to toggle between two other functions. IE toggles between the functions in the wrong order. Is this a bug?

Re: [jQuery] Ok... one last effort to make this work... help!

2007-03-16 Thread Rick Faircloth
Hi, Sam, and thanks for the reply and code... I tried using your code, but still nothing happens when I try to calculate the payment. It may be my implementation of the js or it still may be a problem in my ColdFusion code. Do I just stick your code in with my CalculateMortgage function as is,

Re: [jQuery] Ok... one last effort to make this work... help!

2007-03-16 Thread Sam Collett
On 16/03/07, Rick Faircloth [EMAIL PROTECTED] wrote: Hi, Sam, and thanks for the reply and code... I tried using your code, but still nothing happens when I try to calculate the payment. It may be my implementation of the js or it still may be a problem in my ColdFusion code. Do I just

Re: [jQuery] Ok... one last effort to make this work... help!

2007-03-16 Thread Rick Faircloth
Thanks, Sam... Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sam Collett Sent: Friday, March 16, 2007 8:47 AM To: jQuery Discussion. Subject: Re: [jQuery] Ok... one last effort to make this work... help! Probably best done within document.ready

[jQuery] cursor not showing in modal boxes

2007-03-16 Thread Benjamin Sterling
Hey guys and gals, I am using jqModal and the cursor is not showing in the forms that I have loading in there. Any ideas? -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Event-AJAX wait before animation completes

2007-03-16 Thread Mike Alsup
Your second attempt looks the closest. I would try it like this: $('.ajax-div-slide').click(function() { var url = this.href; $('#ajax-loader').animate({height: 375}, 'slow', function(){ $('#ajax-div').load(url); }); return false; }); But I've got to ask... why do you

Re: [jQuery] loading content into a div (IE7 problems)

2007-03-16 Thread Mike Alsup
Can you give us a url to look at? What could be the problem? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] php - web service (ajax/jscript)

2007-03-16 Thread Jake McGraw
Bruce: I'm not sure I fully understand what you are trying to accomplish, but AJAX is not a replacement for SOAP/WSDL Web Services as it is strictly limited to communication within its own domain, which flies in the face of Web Services philosophy. Could you provide a more concise example of

Re: [jQuery] Possible BUG: One/Toggle inconsistant cross-browser

2007-03-16 Thread John Resig
Could you create a ticket for this - and attach the page that you mentioned? Thanks for the good test case. http://dev.jquery.com/ --John On 3/16/07, Joel Birch [EMAIL PROTECTED] wrote: Hi all, I have made a test page to demonstrate this, but briefly: I am attaching a

Re: [jQuery] RSS feed not updating

2007-03-16 Thread David Olinsky
Thanks John, the nabble xml one worked (I use Nabble to read the boards, didn't know they had an atom feed). So the jQuery feed is dead to us, at least for now? :) -David John Resig wrote: You could try the Nabble one: http://www.nabble.com/JQuery-f15494.xml I'm trying to cut down on

[jQuery] Removing readonly attribute from textarea

2007-03-16 Thread Rob Desbois
All, What's the 'correct' way to change a textarea to and from readonly. The following works for me, but I wanted to particularly check the removal: $(#myTextArea).attr(readonly, readonly); // Make read-only $(#myTextArea).attr(readonly, ); // Make read-write Thanks, rob -- Rob Desbois

Re: [jQuery] RSS feed not updating

2007-03-16 Thread John Resig
Yeah, the poor mailing list doesn't need anything else railing against it. I've updated the Discussion page to represent this change: http://docs.jquery.com/Discussion#RSS_Feed --John On 3/16/07, David Olinsky [EMAIL PROTECTED] wrote: Thanks John, the nabble xml one worked (I use Nabble to

Re: [jQuery] php - web service (ajax/jscript)

2007-03-16 Thread bruce
Hi Jake. Thanks for the reply. I'll try to clarify. (Keep in mind, I'm not an experienced web developer!) As I understand Ajax, it's used to allow asynch interaction between client, and hosted site that the client js file is fetched from. In other words, if the client html/php has something to

Re: [jQuery] jQuery Powered Sites - Keep the Links Coming

2007-03-16 Thread Charles Stuart
Another (just redesigned): * http://expressionengine.com/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Removing readonly attribute from textarea

2007-03-16 Thread Jörn Zaefferer
Rob Desbois schrieb: All, What's the 'correct' way to change a textarea to and from readonly. The following works for me, but I wanted to particularly check the removal: $(#myTextArea).attr(readonly, readonly); // Make read-only $(#myTextArea).attr(readonly, ); // Make read-write

Re: [jQuery] php - web service (ajax/jscript)

2007-03-16 Thread Jake McGraw
Actually, thats a damn good point, I use Google Maps on some of my websites, and yet I gave that answer to you, perhaps they're using Iframes? Anyone have an answer for this, now you got me interested! - jake On 3/16/07, bruce [EMAIL PROTECTED] wrote: jake... if what you state is true. how

Re: [jQuery] php - web service (ajax/jscript)

2007-03-16 Thread bruce
jake... now i'm laughing here's how i understand it with a very limited amont of time to research this. the basic ajax/jscript allows for asynch communications between the server that serves the jscript file. cross-domain issues arise when you'd want the ajax/jscript to not only communicate

Re: [jQuery] jQuery Powered Sites - Keep the Links Coming

2007-03-16 Thread Alex Cook
Oh Expression Engine... now tell me it uses jQuery in the CMS and I might have to go digging more... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charles Stuart Sent: Friday, March 16, 2007 9:55 AM To: jQuery Discussion. Subject: Re: [jQuery] jQuery

Re: [jQuery] Removing readonly attribute from textarea

2007-03-16 Thread Joan Piedra
$(#myTextArea).removeAttr('readonly'); On 3/16/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: Have you tried $(#myTextArea).attr(readonly, true/false);? Oh that's new for me, why is there a true/false value? Just to say use true or false, or is it kinda javascript conditional for jquery?

Re: [jQuery] php - web service (ajax/jscript)

2007-03-16 Thread Alex Cook
I was about to write out this detailed explanation of how you all are making this much harder on yourselves then necessary but Bruce beat me too it :) Any script included at runtime = safe Anything attempted to be loaded AFTER runtime = unsafe -ALEX -Original Message- From: [EMAIL

Re: [jQuery] php - web service (ajax/jscript)

2007-03-16 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)
Hoping to clarify: Having a page built up of parts that come from different domains adds value and power. Having a page built up of parts from different domains adds complexity, lack of control and security hazards. There are browser rules that determine what kind of things can be done between

[jQuery] jquery inside a loop... need suggestions to improve code

2007-03-16 Thread Michael E. Carluen
Hello (CF) jQuerians, I currently have a working code but I would really like to improve and make it more efficient. Your suggestions will be great. Right now, I have a jquery script inside a loop (cfloop). The jquery is a just simple tooltip-like functionality, that shows and hides a

[jQuery] Move caret position Input type=file after browse

2007-03-16 Thread Glen Lipka
Use case: 1. input type=file 2. User clicks browse. 3. User chooses file. 4. Input value is changed to say path name. At this point, I want to move the carat to the end of the string, not the beginning. Any way in jQuery to do it? Glen ___ jQuery

Re: [jQuery] cursor not showing in modal boxes

2007-03-16 Thread Glen Lipka
Which browser? We had it happen in Firefox. It has something to do with a wierd FF bug. http://blog.tremend.ro/2007/01/22/mouse-cursor-disappears-in-firefox/feed/ http://blog.tremend.ro/2007/01/22/mouse-cursor-disappears-in-firefox/ Glen ___ jQuery

Re: [jQuery] Can't figure out how to put this all together...

2007-03-16 Thread Daemach
Looks like it works - is it making more sense now? On 3/16/07, Rick Faircloth [EMAIL PROTECTED] wrote: Oh, and I meant to give you the online demo… http://bodaford.whitestonemedia.com/html/calctest.cfm Rick *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *John

[jQuery] How can I find out if a style class exists?

2007-03-16 Thread Daemach
I'm working on something that I want a user to be able to override by including a specific class somewhere in the CSS definitions. If that class doesn't exist I want to add a default style. This seems like something that should have come up before but search isn't coming up with anything. Can

Re: [jQuery] Move caret position Input type=file after browse

2007-03-16 Thread Ⓙⓐⓚⓔ
Almost anything you do with file inputs will croak on a different browser. Safari doesn't even show an input-able field! On 3/16/07, Glen Lipka [EMAIL PROTECTED] wrote: Use case: 1. input type=file 2. User clicks browse. 3. User chooses file. 4. Input value is changed to say path name. At

Re: [jQuery] jquery inside a loop... need suggestions to improve code

2007-03-16 Thread Daemach
Try this: cfoutput query=myQuery a class=tooltip id=aid_#myQuery.id# href=somepage.cfm ?to=#myquery.id##myQuery.text#/a img id=imgid_#myQuery.id# src=/thumbnails/#myQuery.image# / /cfloop script type=text/javascript $(document).ready(function(){ $(img.tooltip).hide();

Re: [jQuery] the pitfalls of jquery

2007-03-16 Thread Chris Ovenden
On 3/15/07, Benjamin Sterling [EMAIL PROTECTED] wrote: I've worked on a project for about two months now that uses jquery for everything. Using such plugins as jqModal, blockUI, jqDebug, jqQuick, dimensions plugin, form plugin, and jqHighlightFade as well as some code I pulled out of other

Re: [jQuery] How can I find out if a style class exists?

2007-03-16 Thread rolfsf
if it's a class you're looking for, I think you can use something like if( $('#myDiv').is('.className')) {...} Daemach wrote: I'm working on something that I want a user to be able to override by including a specific class somewhere in the CSS definitions. If that class doesn't exist

Re: [jQuery] How can I find out if a style class exists?

2007-03-16 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)
Hi. IOW given the following: style #myDiv {background: blue;} /style div id=myDiv style=background: red The div's background would be red, correct? If you change background to background-color :) then yes, by the C in CSS. Also: style #myDiv {background-color: blue;}

[jQuery] Layout plug-ins / Creating a Dashboard

2007-03-16 Thread Dan G. Switzer, II
I'm going to be working on a Dashboard for an application that could contain X number of widgets (a widget would a block element of various width/heights that would contain charts and various threshold alerts.) Since a user will be able to configure which widgets are on their Dashboard, I need

Re: [jQuery] How can I find out if a style class exists?

2007-03-16 Thread Daemach
Yes that makes sense, and it's why I need to find out if a class exists in the stylesheet before I apply the style. On 3/16/07, Nathan Young -X (natyoung - Artizen at Cisco) [EMAIL PROTECTED] wrote: Hi. IOW given the following: style #myDiv {background: blue;} /style div id=myDiv

Re: [jQuery] jquery inside a loop... need suggestions to improvecode

2007-03-16 Thread Michael E. Carluen
Thanks Daemach. Looking at the scripts, I'm trying to find your references to the class tooltip on the img tag within the loop. Should it have one? $(img.tooltip).hide(); _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daemach Sent: Friday, March 16,

Re: [jQuery] How can I find out if a style class exists?

2007-03-16 Thread Daemach
Hmm - in theory this could work if the style was applied immediately. I guess the question is, if I'm creating this element dynamically when does the css style get applied so I can check it? I'm doing the following at the moment, but I plan on moving the .css definition to another line once I

Re: [jQuery] Event-AJAX wait before animation completes

2007-03-16 Thread Yansky
I know it seems silly to make the ajax wait for the animation, but for some reason, the animation seems a bit wonky in Internet Explorer if the ajax link has been clicked previously. It seems like Internet Explorer checks it's cache to see if it has a copy of the ajax request already, which means

[jQuery] Position changing during animation

2007-03-16 Thread skube
Hi All, I'm relatively new to jQuery and so far it's been a life saver. However, I am having a small issue and I'm wondering if it's due to something silly I'm doing. For certain divs with margins, whenever I initiate an animation effect, the div seems to animate from a different relative

Re: [jQuery] How can I find out if a style class exists?

2007-03-16 Thread Daemach
I just tested this. When defining a style using something like div#myDiv it doesn't actually apply a class to the element. Therefore I need to find the rule in the stylesheet or embedded styles itself :/ On 3/16/07, rolfsf [EMAIL PROTECTED] wrote: if it's a class you're looking for, I think

Re: [jQuery] How can I find out if a style class exists?

2007-03-16 Thread rolfsf
well, to be clear, styles, classes and css are all different things (though obviously related) so I might be getting confused by wording about what you're trying to do. Not to mention, I'm a js newbie... :-) if you have a rule (either in the head or an external stylesheet) that says

Re: [jQuery] Event-AJAX wait before animation completes

2007-03-16 Thread Mike Alsup
link has been clicked previously. It seems like Internet Explorer checks it's cache to see if it has a copy of the ajax request already, which means it shows it straight away without any delay. Isn't that a good thing? Why impose an artificial delay?

Re: [jQuery] How can I find out if a style class exists?

2007-03-16 Thread rolfsf
no... classes are classes, rules are rules, selectors are selectors... I may be getting off course from what you really need, but style div {background-color: white;} div.myClass {background-color: red;} /style div id=myDiv/div will have background-color: white; div id=myDiv

Re: [jQuery] How can I find out if a style class exists?

2007-03-16 Thread rolfsf
You might also look at .attr() and see if that's more appropriate r. rolfsf wrote: no... classes are classes, rules are rules, selectors are selectors... I may be getting off course from what you really need, but style div {background-color: white;} div.myClass {background-color:

Re: [jQuery] How can I find out if a style class exists?

2007-03-16 Thread Daemach
I appreciate the help. I'm not actually trying to find whether a class exists on a particular element, but rather in the stylesheet itself. I'm creating the element dynamically. If the stylesheet does not contain a specific selector for that element's ID, I want to apply a style, otherwise I

Re: [jQuery] jquery inside a loop... need suggestions to improvecode

2007-03-16 Thread Daemach
Yes, sorry - I was on the phone when I wrote that ;) The class is just a fast way to select a bunch of elements that you want to apply common behavior to. You can call it anything you want. On 3/16/07, Michael E. Carluen [EMAIL PROTECTED] wrote: Thanks Daemach. Looking at the scripts, I'm

Re: [jQuery] How can I find out if a style class exists?

2007-03-16 Thread Daemach
Agreed. The issue is that I don't want to override a stylesheet rule if it exists already for this element. On 3/16/07, rolfsf [EMAIL PROTECTED] wrote: well, to be clear, styles, classes and css are all different things (though obviously related) so I might be getting confused by wording

Re: [jQuery] Layout plug-ins / Creating a Dashboard

2007-03-16 Thread David Dexter
Dan, I did something similar and I just put each app in a div inside a container div and set the sub div's style attribute to float left. i.e. = (I wouldn't use inline styles... I just put those for example) div id=container style=width:700px; div class=app style=float:left;App 1

Re: [jQuery] Event-AJAX wait before animation completes

2007-03-16 Thread Yansky
You're right, it is a good thing, but the artificial delay will only be about 1/2 a second max. So I figure that's not too bad of a compromise to make things look a bit better. If it were a site for someone else, then I'd definitely choose function over form. :) malsup wrote: link has been

[jQuery] jquery and style updates on page

2007-03-16 Thread John Lauck
I have a page that uses jquery for swapping classes (to hide/show content) and fade in and fade out. I've encountered one problem that occurs when after I show and hide a table row, it's containing cell and the sub table contained beneath it. Showing the hidden content is fine at first. The

[jQuery] How could i build 2 steps form with thickbox?

2007-03-16 Thread JQuery - SimDigital
I want to build a 2 steps form with thickbox plugin, but i don't know how to do the architecture. The problem is that when i finished to fill the 2 steps, i need to close the thickbox, but i don´t know how... PS: I'm using iframe option to jump from step1 to step 2.

Re: [jQuery] How can I find out if a style class exists?

2007-03-16 Thread rolfsf
don't know how to do that specifically, but maybe you can set up a default class and check for that... Daemach wrote: Agreed. The issue is that I don't want to override a stylesheet rule if it exists already for this element. On 3/16/07, rolfsf [EMAIL PROTECTED] wrote: well, to

Re: [jQuery] the pitfalls of jquery

2007-03-16 Thread Scott Sharkey
Jonathan Chaffer wrote: On Mar 14, 2007, at 20:49 , Benjamin Sterling wrote: Because this will be on a government server, they don't want anything other then basic javascript, I can explain the whole discussion with the client but this message would be to long and either way the result

Re: [jQuery] Layout plug-ins / Creating a Dashboard

2007-03-16 Thread Dan G. Switzer, II
David, That's what I'm going to do to start. However, I'm wanting to come up with a solution that will arrange the div in a smarter arrangement based upon the number of divs and the height/width of each. Floating everything left is ok as long as each DIV is a similar width/height, but I'll have

Re: [jQuery] fadeToggle

2007-03-16 Thread skube
I'm just wondering why since there is a slideToggle(), there isn't any such effect as fadeToggle()? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Layout plug-ins / Creating a Dashboard

2007-03-16 Thread David Dexter
Do you have a design comp that shows what you are trying to achieve? -David Dexter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Friday, March 16, 2007 2:39 PM To: 'jQuery Discussion.' Subject: Re: [jQuery] Layout plug-ins /

Re: [jQuery] Layout plug-ins / Creating a Dashboard

2007-03-16 Thread Alexandre Plennevaux
Maybe the jquery portlets could be of use to you : http://host.sonspring.com/portlets/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: vendredi 16 mars 2007 22:39 To: 'jQuery Discussion.' Subject: Re: [jQuery] Layout plug-ins /

Re: [jQuery] Layout plug-ins / Creating a Dashboard

2007-03-16 Thread Dan G. Switzer, II
David, Do you have a design comp that shows what you are trying to achieve? Here's a quick dirty example (sorry, I didn't use jQuery--just cut-n-paste into an html file.) It defaults to display 5 widgets of various dimensions. If you click the Show Absolute Position it'll show those same

Re: [jQuery] jquery inside a loop... need suggestions to improvecode

2007-03-16 Thread Michael E. Carluen
Hey thanks Daemach. I got this to work for my purpose. Btw, there was also a+ ] that was missing from the script you sent. Thanks for getting me started though. _ From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] On Behalf Of Daemach Sent:

Re: [jQuery] How can I find out if a style class exists?

2007-03-16 Thread Klaus Hartl
Nathan Young -X (natyoung - Artizen at Cisco) schrieb: div style=background-color:red; will be red no matter what is in the style block. Styles placed in the element attribute have the highest precedence. Unless you do (theoretically): style type=/text/css #myDiv { background-color: blue

Re: [jQuery] How can I find out if a style class exists?

2007-03-16 Thread Erik Beeson
Sounds like you're looking for something like has a class with this name been defined. As far as I know, such a concept doesn't exist. But I think your approach is flawed. Instead of trying to only define a style if it didn't exist, I think you want to define the defaults first, then allow other

Re: [jQuery] Possible BUG: One/Toggle inconsistant cross-browser

2007-03-16 Thread Joel Birch
On 17/03/2007, at 1:51 AM, John Resig wrote: Could you create a ticket for this - and attach the page that you mentioned? Thanks for the good test case. http://dev.jquery.com/ --John Done: http://dev.jquery.com/ticket/1054 I hope I created it right - was my first one. Cheers Joel.

Re: [jQuery] How could i build 2 steps form with thickbox?

2007-03-16 Thread Erik Beeson
Check out the source for thickbox. There's a function to call that hides it, I think it's TB_hide() or something. You need to call it in the context of the parent page, not the context of the iframe. So from within the iframe, you could do parent.TB_hide() or top.TB_hide(). --Erik On 3/16/07,

[jQuery] json deserialization

2007-03-16 Thread Bojan
Hello everyone, I am trying to figure out how to deserialize json data that is sent back as a response from a .post() call. I looked at the deserialization plugin 0.35that fills out a form from json-like data. But what I'm trying to do is send back arbitrary data (data, error messages etc.

Re: [jQuery] json deserialization

2007-03-16 Thread Chris Domigan
You can roll your own: jQuery.extend({ postJSON: function( url, data, callback ) { return jQuery.post(url, data, callback, json); } }); Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jquery inside a loop... need suggestions to improvecode

2007-03-16 Thread Erik Beeson
For some reason, I often forget the closing ] when doing attribute selectors. Gets me every time. Maybe that previously suggested debug build of jQuery can have a selector syntax checker. *ducks* (kidding) --Erik On 3/16/07, Michael E. Carluen [EMAIL PROTECTED] wrote: Hey thanks Daemach. I

Re: [jQuery] the pitfalls of jquery

2007-03-16 Thread Erik Beeson
Did they also require backwards compatibility with Internet Explorer 3? At least you could still use CSS1. --Erik On 3/15/07, Klaus Hartl [EMAIL PROTECTED] wrote: Benjamin Sterling schrieb: I was actually going to do Mamut's idea or a version of it. Since they don't know what jquery is,

Re: [jQuery] json deserialization

2007-03-16 Thread Bojan
Hey Chris, I wasn't aware that I could pass in a type to the post() func. I tried that and I still got the the data back as a string instead of an object. It's in the correct form {'a':4, 'b':3} but for some reason it doesn't work. I tried the same with the getJSON() funct and it returns an

Re: [jQuery] the pitfalls of jquery

2007-03-16 Thread Brian Cherne
Of course Benjamin knows that this list is public and indexed by search engines (at least Google), so he wouldn't actually rename jQuery to bQuery and honestly think he could get away with it. ;) Good luck! Brian. On 3/16/07, Chris Ovenden [EMAIL PROTECTED] wrote: On 3/15/07, Benjamin

Re: [jQuery] fadeToggle

2007-03-16 Thread Glen Lipka
I think you have a point. There is also ToggleClass. Why is the Toggle in the front of ToggleClass and at the end of SlideToggle. Couldnt toggle be unified, like $(p).toggle(fade)...Disclaimer: I have no idea what I am talking about. Glen On 3/16/07, skube [EMAIL PROTECTED] wrote: I'm just

Re: [jQuery] json deserialization

2007-03-16 Thread ashutosh bijoor
Well deserializing JSON is quite trivial - you just need to do an eval on the string to get the object. // returns a object $(#example).click(function() { $.post('http://localhost/e/', function(json) { eval json=+json; alert(json); }, json); }); -Ashutosh On