If i remove stepy you can see my whole 300 line form.
I hard coded the fieldsets
like so because I couldn't figure out how to do it threw cake. The
jquery plugin works by each step is broken up by a legend and a field
set
<fieldset title="Step 1">
<legend>First Owner Information</legend>
<?php // First Owner Information ?>
<?php echo $form->input('FirstOwner.fname');?>
<?php echo $form->input('FirstOwner.lname');?>
</fieldset>
<fieldset title="Step 2">
<legend>Business Information</legend>
<?php //Business Information ?>
<?php echo
$form->input('BusinessInformation.business_name');?>
<?php echo
$form->input('BusinessInformation.business_addres');?>
<?php echo
</fieldset>
jquery code
<?php echo $javascript->codeBlock("
$(function() {
$('#default').stepy();
$('#custom').stepy({
backLabel: 'Backward',
block: true,
errorImage: true,
nextLabel: 'Forward',
titleClick: true,
validate: true
});
$('div#step').stepy({
finish: false
});
$('#callback').stepy({
onBack: function(index) {
alert('Going to step ' + index
+ '...');
},
onNext: function(index) {
var random =
Math.floor(Math.random() * 11);
if (random <= 5) {
alert('Invalid value!');
return false;
}
alert('Going to step ' + index
+ '...');
},
titleClick: true
});
});
" );
$javascript->blockEnd();
On Thu, 2011-03-24 at 17:19 +0000, Stephen wrote:
> Did you try disabling stepy and seeing if your form generates?
> That will help identify if it's an issue with jquery or cakephp
>
> On 24 March 2011 14:54, arron <[email protected]> wrote:
> I tried all of the aboive and i still have the same problem
> and yes im
> using 1.2
>
> is there a way to disable the fieldset feature ?
>
> --
> Kind Regards
> Stephen
>
> http://www.ninjacodermonkey.co.uk
>
>
>
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and
> help others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this
> group at http://groups.google.com/group/cake-php
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php