Re: ssot: Ext window management question

2009-07-06 Thread cold.fusion

 From the Docs on Ext.Window 
(http://extjs.com/deploy/ext-3.0-rc3/docs/?class=Ext.Window), in the 
'methods' section:

*load 
*( |Object/String/Function config| ) 
: Ext.Panel
Loads this content panel immediately with content returned from an XHR 
call.
*Parameters:*

* |config| : Object/String/Function
  A config object containing any of the following options:

  |panel.load({
  url: /your-url.php/,
  params: {param1: /foo/, param2: /bar/}, /// or a URL encoded 
string/
  callback: yourFunction,
  scope: yourObject, /// optional scope *for* the callback/
  discardUrl: false,
  nocache: false,
  text: /Loading.../,
  timeout: 30,
  scripts: false
  });|

  The only required property is url. The optional properties
  nocache, text and scripts are shorthand for disableCaching,
  indicatorText and loadScripts and are used to set their associated
  property on this panel Updater instance.

*Returns:*

* |Ext.Panel|
  this

Don L wrote:
 Good input, but load() method seems for panel only, it made me think of 
 render and renderto...

   
 Have you tried the load() method?

 mxAjax / CFAjax docs and other useful articles:
 http://www.bifrost.com.au/blog/
 

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324235
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ssot: Ext window management question

2009-07-06 Thread Don L

 You're aware that a window is a type of panel, right?
 
 mxAjax / CFAjax docs and other useful articles:
 http://www.bifrost.com.au/blog/
 
 2009/7/6 Don L do...@yahoo.com:
 
  Good input, but load() method seems for panel only, it made me think 
 of render and renderto...
 
 Have you tried the load() method?

No, I didn't know that but I figured it out.  The docs are helpful to some 
extent.
Quick question on ext's autosuggest feature, how do you renderTo a form 
element? a sample one of renderTo:document.body works while 
renderTo:document.myElementID won't
nor renderTo:document.getElementByID('myElementID').   Thanks.




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324242
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ssot: Ext window management question

2009-07-06 Thread James Holmes

I just use the applyTo property when setting up the ComboBox.

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/



2009/7/6 Don L do...@yahoo.com:

 You're aware that a window is a type of panel, right?

 mxAjax / CFAjax docs and other useful articles:
 http://www.bifrost.com.au/blog/

 2009/7/6 Don L do...@yahoo.com:
 
  Good input, but load() method seems for panel only, it made me think
 of render and renderto...
 
 Have you tried the load() method?

 No, I didn't know that but I figured it out.  The docs are helpful to some 
 extent.
 Quick question on ext's autosuggest feature, how do you renderTo a form 
 element? a sample one of renderTo:document.body works while 
 renderTo:document.myElementID won't
 nor renderTo:document.getElementByID('myElementID').   Thanks.




 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324246
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ssot: Ext window management question

2009-07-06 Thread Don L

I just use the applyTo property when setting up the ComboBox.

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/


Beautiful, thank you.  One more question, what are required attributes for a 
URL for data store? some scattered sample as a question seems very messy. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324250
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ssot: Ext window management question

2009-07-06 Thread James Holmes

http://www.extjs.com/deploy/dev/docs/?class=Ext.data.Store

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

2009/7/6 Don L do...@yahoo.com:

I just use the applyTo property when setting up the ComboBox.



 Beautiful, thank you.  One more question, what are required attributes for a 
 URL for data store? some scattered sample as a question seems very messy

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324251
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: ssot: Ext window management question

2009-07-06 Thread Don L

Thanks.

ok, gettting closer... the following code still missed some required attributes 
or value not set correctly for some existing ones, and I don't know which one...

var autos = new Ext.form.ComboBox({
xtype: 'combo',
id: 'type',
store : new Ext.data.Store({
proxy:new Ext.data.ScriptTagProxy({
url:'ext_qry.cfm'
}),
reader:new Ext.data.JsonReader({
root:'data',
id:'project'
})
}), 
mode : 'remote',
displayField: 'display',  // don't understand what exactly the doc says about it
editable: true,
applyTo:'project'


Output from firebug for the target is: 
And I don't understand why it set autocomplete to off, what triggered that?

div id=ext-gen6 class=x-form-field-wrap x-trigger-wrap-focus style=width: 
319px;
input id=project class= x-form-text x-form-field x-form-focus type=text 
onkeyup=document.getElementById('tagline').style.display='block' size=50 
autocomplete=off/

img id=ext-gen7 class=x-form-trigger x-form-arrow-trigger  
src=http://extjs.com/s.gif/

/div


 http://www.extjs.com/deploy/dev/docs/?class=Ext.data.Store
 
 mxAjax / CFAjax docs and other useful articles:
 http://www.bifrost.com.au/blog/
 
 2009/7/6 Don L do...@yahoo.com:
 
 I just use the applyTo property when setting up the ComboBox.
 
 
 
  Beautiful, thank you.  One more question, what are required 
 attributes for a URL for data store? some scattered sample as a 
 question seems very 
messy

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324274
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ssot: Ext window management question

2009-07-06 Thread Cutter (ColdFusion Related)

Don,

Adobe's JSON implementation is a little non-standard (and better, IMHO). 
You'll need a custom data reader when feeding your data store with a cf 
query return. The CFQueryReader is available at 
http://cfqueryreader.riaforge.org, with some more information available 
on this post:

http://blog.cutterscrossing.com/index.cfm/2009/5/13/CFQueryReader-v11

-- 
Steve 'Cutter' Blades
Adobe Certified Expert
Advanced Macromedia ColdFusion MX 7 Developer

http://blog.cutterscrossing.com

The best way to predict the future is to help create it



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324276
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


ssot: Ext window management question

2009-07-05 Thread Don L

sorry sort of ot.  Ext gurus, Cutter?

How do I reload a child window with URL param or FORM elements within the 
context of Ext?  That is, upon click or other event trigger at the child 
window, it would reload the child window with either some URL params or form 
submission data.
too bad haven't got the problem resolved with ext forum...

Many thanks.

Don


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324227
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ssot: Ext window management question

2009-07-05 Thread James Holmes

Have you tried the load() method?

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/



2009/7/6 Don L do...@yahoo.com:

 sorry sort of ot.  Ext gurus, Cutter?

 How do I reload a child window with URL param or FORM elements within the 
 context of Ext?  That is, upon click or other event trigger at the child 
 window, it would reload the child window with either some URL params or form 
 submission data.
 too bad haven't got the problem resolved with ext forum...

 Many thanks.

 Don


 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324228
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ssot: Ext window management question

2009-07-05 Thread Don L

Good input, but load() method seems for panel only, it made me think of render 
and renderto...

Have you tried the load() method?

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324230
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: ssot: Ext window management question

2009-07-05 Thread James Holmes

You're aware that a window is a type of panel, right?

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

2009/7/6 Don L do...@yahoo.com:

 Good input, but load() method seems for panel only, it made me think of 
 render and renderto...

Have you tried the load() method?

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324233
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4