Man, I have no idea what I'm doin.
hehe, i often feel that way, too :)
Ahhh thank you! I will give it a shot tonight. And the JS you posted does
indeed go in product_add.cfm, correct?
Thanks much,
Will
~|
Want to reach
your form processing javascript will then look something like this:
Ahh yes, this works! I just need to stick a .tabs() in there that selects the
next tab after submission.
Thanks!
Will
~|
Want to reach the ColdFusion
Man, I have no idea what I'm doin.
hehe, i often feel that way, too :)
Hot damn! I'm gettin' fancy now. Check this out.
I decided to try and preselect the categories tab after the product is added.
Like a wizard. I'm also passing my ID to each tab so you can use them for
inserting into
You could also create an array variable outside of your tabs setup. Then add
to that. Since it's external from the tabs code, every piece of JS would be
able to recognize it.
script
var arrProdID = [];
// tabs code here
/script
-Original Message-
From: Will Tomlinson
go here: http://jqueryui.com/demos/tabs/
click on Methods tab. read about the 'URL' method.
presumably, your product_add.cfm page adds a product using ajax post? if
so, the callback function should receive the id of newly added product
and then call the url() method on the other tabs (and maybe
a safe bet would be to define all your js in the main page (tabs.cfm).
but particulars depend on your code...
how are you submitting your add product form? are you using jquery (i.e.
$.ajax or $.post) or are you using cf8 built-in ajax features
(cfajaxproxy or ColdFusion.Ajax.submitForm())?
a safe bet would be to define all your js in the main page (tabs.cfm).
but particulars depend on your code...
how are you submitting your add product form? are you using jquery (i.e.
$.ajax or $.post) or are you using cf8 built-in ajax features
(cfajaxproxy or ColdFusion.Ajax.submitForm())?
Man, I have no idea what I'm doin.
hehe, i often feel that way, too :)
i do not know what your processProd.cfm exactly does and what it
returns, but it MUST return the new product ID.
in its simplest form, make sure that your processProd.cfm does not
return anything but the new product id (no
go here: http://jqueryui.com/demos/tabs/
click on Methods tab. read about the 'URL' method.
presumably, your product_add.cfm page adds a product using ajax post? if
so, the callback function should receive the id of newly added product
and then call the url() method on the other tabs (and maybe
go here: http://jqueryui.com/demos/tabs/
click on Methods tab. read about the 'URL' method.
presumably, your product_add.cfm page adds a product using ajax post? if
so, the callback function should receive the id of newly added product
and then call the url() method on the other tabs (and maybe
10 matches
Mail list logo