CFLAYOUT - bug in core javascript?


when i'm in cflayout's tab, , submit form variables action page (outside of cflayout) uses cflocation return user original tab (after processing), session , other variables unavailable on tab, , subsequent activity on tab acts strangely.

i built sample app show problems here.

try code below:
start on tab3. click edit mode, correctly remains on tab 3. submit text, submitted action.cfm page, cflocation'd tab3. @ point in application (the real project sample debugging), session variables unavailable code processing on tab3 right (variable not defined error). regardless, click edit mode again (the second time) , note how screwy things get. leave cflayout framework , go directly tab's page.

i think cflayout has fundamental bug manifests when users cflocation'd tab after processing. maybe tab's page doesn't know remind browser there parent cflayout template (but thought that's cfform tag doing!!). way can think fix cflocation original page cflayout tag, , (using url params , cfifs) decide tab "selected". when that, javascript error like: "error processing javascript in markup element cf_layoutarea1200957715744: ...."


hi jonathan,

you kind of going wrong way here.

if using new cflayout tags don't want have cflocation go tab, idea use coldfusion.ajax.submitform function submit form values asynchronously way user stays on selected tab. when submit form using ajax submit function can specify return event handler fire once action has completed way can provide user feedback action performed successfully.



More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support