[jQuery] OT: Javascript OOP / Class Design

2007-11-15 Thread Brook Davies
Hello, This is a bit OT sorry, but I don't know where else to post this JS related question. My question is about using design patterns and OOP principles in Javascript. I am trying to determine the best way to build a photo album application, where the user can layout many photos and

[jQuery] Re: AJAX and dynamically created dropdowns

2007-10-20 Thread Brook Davies
You'll never see it in the 'view source' if its dynamically added. If you use the Inspect function of firefox you can see the dynamically added content. I think the IE developer toolbar does the same thing. Make sure that you are setting the length of the selects option array and setting a

[jQuery] .wrap when targeting a frame generates an error in IE

2007-10-15 Thread Brook Davies
I tested some code in IE7 today and ran into a strange problem with the jQuery .wrap method. I have narrowed it down to this function failing when targeting a frame like this: curContext = $('#mPreviewFrame')[0].contentWindow.document; $('#mydiv',curContext).wrap('div id=myNewOuterDiv/div');

[jQuery] Re: AjaxCFC

2007-10-04 Thread Brook Davies
thing, though, AFAIK. If you try putting this inside the anonymous function, it still won't know the calling object. - Jack Brook Davies wrote: Hello Jack, Well I want to get the scope of the calling object that the function resides in. I have multiple instances of this object: someObj

[jQuery] EXTjs and Jquery

2007-10-04 Thread Brook Davies
Steve, You mention that you use extJS and jQuery. How do they work together and how is this a beneficial relationship? I drool when I see the ext demos. How do the two technologies play together? BrookD

[jQuery] Re: ajaxCFC and CF8

2007-10-04 Thread Brook Davies
things as needed instead of having to wait until Adobe patches the libs. Rob and I will be working on updating AjaxCFC to jQuery v1.2.1 soon and possibly creating wrappers around jQuery UI components. Rey... Brook Davies wrote: Can Rob or Rey shed some light on this? Is ajaxCFC still relevant

[jQuery] Re: AjaxCFC

2007-10-03 Thread Brook Davies
Hello Jack, Well I want to get the scope of the calling object that the function resides in. I have multiple instances of this object: someObj = { getData: function(){ //cfAjax request starts here } , dataResult: function(data){

[jQuery] RED: [jQuery] Re: Packed version of BlockUI?

2007-10-03 Thread Brook Davies
On this topic, what are the rules to write JS that will pack without error? I know you need a ; at the end of every line, but what else? BrookD -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: October 3, 2007 8:15 AM To:

[jQuery] ajaxCFC and CF8

2007-10-03 Thread Brook Davies
Can Rob or Rey shed some light on this? Is ajaxCFC still relevant with the release of CF8? BrookD

[jQuery] AjaxCFC

2007-10-02 Thread Brook Davies
Can anyone who uses ajaxCFC tell me how to get a reference to the calling objects scope in the success handler? I can't figure out how to pass arguments through to the callback / success handler. Anyone? FYI, I am using the jQuery version of ajaxCFC. Works awesome BTW. BrookD.

[jQuery] Re: NEWBIE QUESTION: Catch Select event

2007-09-21 Thread Brook Davies
I've tried this, but it does not catch change events trigged by the keyboard. Why? Brook -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: September 20, 2007 1:21 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: NEWBIE

[jQuery] OT: Combining JS files for production releases

2007-09-20 Thread Brook Davies
Hello, Since we know that including a large number of JS files seperatlty significantlty increases download time (http://www.wormly.com/help/case-studies/the-web-2.slow), what does everyone do? Do you combine and pack your JS files (for example if you have several of the UI library includes)

[jQuery] Newbie Question: Workiing with form fields and jQuery / Select in Particular

2007-09-20 Thread Brook Davies
How do you get a reference to a select field and then do things like set the selectedIndex, get the options array etc. I know I can get a reference to the object via a basic selector $(#mySelect) but then how do I access the options array and related stuff? How do you access the 'object'

[jQuery] Loading remote JS or dynamically loading .js files

2007-09-19 Thread Brook Davies
Hello, I am trying to create an app that opens a window dialog window (using the new UI plugin..) and I am debating between loading into an iframe or dynamically loading a number of .js files and then dynamically generating the content of the window. The window lets the user adjust some

[jQuery] Re: How to return a click event from the container function

2007-09-19 Thread Brook Davies
Question: When you say “consider caching $('#inline_dialog') in a local variable”, do you mean simply storing the string x = ‘somehtml’ or another method of caching. How would you cache it and reuse it with jQuery? Does it need to be inserted into the document before it can be cached? Thanks!

[jQuery] Re: blockUI scope / $.unblockUI not closing

2007-09-16 Thread Brook Davies
the elements used by blockUI have a class of blockUI so you can find them that way. Mike On 9/11/07, Brook Davies [EMAIL PROTECTED] wrote: Hello, How can I reference the blockUI window if $.unblockUI will not close it? I am using blockUI and can't get it to close from an event handler within

[jQuery] blockUI scope / $.unblockUI not closing

2007-09-12 Thread Brook Davies
Hello, How can I reference the blockUI window if $.unblockUI will not close it? I am using blockUI and can't get it to close from an event handler within an object using $.unblockUI. The object that contains the call to $.unblockUI. is not the same object that called $.blockUI().

[jQuery] NEWBIE Question: children() skips first element?

2007-09-12 Thread Brook Davies
Hello, I am trying to simply grab the children of a div. The markup is: div id=content div id=panelPreview class=fieldset_theme div id=panelPreview_inner class=hPanel fieldset

[jQuery] Re: NEWBIE Question: children() skips first element?

2007-09-12 Thread Brook Davies
/07, Brook Davies [EMAIL PROTECTED] wrote: Hello, I am trying to simply grab the children of a div. The markup is: div id=content div id=panelPreview class=fieldset_theme div id=panelPreview_inner class=hPanel

[jQuery] Using wrap() and then removing the wrapped element without removing the children

2007-09-11 Thread Brook Davies
Easy Question I think. If I use (from Jquery 1.2): $(#myElem).wrapAll(div id='myDiv'/div); To wrap the div 'myDiv' around 'myElem', how can I later remove that div without removing the pre-existing myElem and any other contents of that div? Brook

[jQuery] Removing the Gray Border on the blockUI window

2007-09-11 Thread Brook Davies
The BlockUI window has a thick gray border. How do you remove it? I am using a hidden div as the contents of blockUI (as shown below) and have tried setting the overlayCSS properties - but I can not get the gray border to go away. Anyone? $.extend($.blockUI.defaults.overlayCSS, {

[jQuery] Redraw after changing CSS / Screen artifacts?

2007-09-09 Thread Brook Davies
I am new to jquery, and I am trying to load HTML and CSS from a database and have them applied dynamically to the document. The CSS is returned as a string and I am using the cssEngine plugin to change the CSS: $.cssEngine.createStyle(myCSS,'page_theme'); Everything is working fine,

[jQuery] Developing for Opera

2007-08-22 Thread Brook Davies
Doesn't Opera have like 1% marketshare? How can you justify spending a lot of time developing for Opera? Brook