Re: forms

2010-06-22 Thread Shaz
Try using $this->Form->create() instead of $form->create() in the view. Also make sure your form helper is enabled in the model. On Jun 22, 9:36 am, mirfan wrote: > This is the script > > $form->create("User",array('controller'=>'users','action'=>'register'));?> > >                              

Re: forms

2010-06-22 Thread mirfan
This is the script create("User",array('controller'=>'users','action'=>'register'));?> First Name * input('User.first_name', array('label'=>false,'class'=>'inputbox'));?>

Re: forms

2010-06-22 Thread Andrei Mita
happening. > > On Jun 22, 12:49 pm, Jeremy Burns | Class Outfit > wrote: > > Help us to help you. If forms are not being created, what IS happening > instead? Are you getting errors? Do you have debug set to 2 so that you can > see what's going on? > > > >

Re: forms

2010-06-22 Thread mirfan
It create all fields correctly but form tag is not available, no error is displayed, however this fieldset is availabe i am not able to understand what is happening. On Jun 22, 12:49 pm, Jeremy Burns | Class Outfit wrote: > Help us to help you. If forms are not being created, what

Re: forms

2010-06-22 Thread Andrei Mita
If doesn't work, then most probably it's not a cake issue. Set debug to 2 and check what errors do you get. On Tue, Jun 22, 2010 at 10:46 AM, mirfan wrote: > Hi, > Its very urgent and rediculus that my cakephp application is not > creating form, any where in my application i am generating form

Re: forms

2010-06-22 Thread Jeremy Burns | Class Outfit
Help us to help you. If forms are not being created, what IS happening instead? Are you getting errors? Do you have debug set to 2 so that you can see what's going on? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 22 Jun 2010, at 08:46, mirfan

forms

2010-06-22 Thread mirfan
Hi, Its very urgent and rediculus that my cakephp application is not creating form, any where in my application i am generating form they are are not created either through echo $form->create() or through html form tag please help me. Check out the new CakePHP Questions site http://cakeqs.org an

Re: Forms and Descriptions

2010-06-10 Thread Jeremy Burns | Class Outfit
Just for completeness, there are five options that are potential descriptors: - label - before - between (comes between the label and input) - separator - after http://book.cakephp.org/view/1393/options-before-options-between-options-separator-a Jeremy Burns Class Outfit jeremybu...@classoutfit.

Re: Forms and Descriptions

2010-06-10 Thread Flavia Missi
Hi! You can define a label for the input too, look like this: $form->input('input_name', array('label'=>'label name', 'after'=>'description for input')); Sorry if I wrote something wrong, I'm brazilian! ^^ Hope it helps... 2010/6/10 phpcoder2...@googlemail.com > cheers Jeremy! you seem to re

Re: Forms and Descriptions

2010-06-10 Thread Chris Hanson
ye know about label just wasnt sure on after lol thanks :D On 10 June 2010 17:15, Flavia Missi wrote: > Hi! > > You can define a label for the input too, look like this: > > $form->input('input_name', array('label'=>'label name', > 'after'=>'description for input')); > > Sorry if I wrote somethin

Re: Forms and Descriptions

2010-06-10 Thread phpcoder2...@googlemail.com
ye i thought about that, but thought there may be a cake wayoh well lol thanks for the help :D On Jun 10, 5:14 pm, Jeremy Burns | Class Outfit wrote: > Wild stab without thinking, researching or testing... > > I think you could do: > > 'after' => 'My description...' > > ...and then style span

Re: Forms and Descriptions

2010-06-10 Thread Jeremy Burns | Class Outfit
Wild stab without thinking, researching or testing... I think you could do: 'after' => 'My description...' ...and then style span.description. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 10 Jun 2010, at 17:00, phpcoder2...@googlemail.com wrote: > is th

Re: Forms and Descriptions

2010-06-10 Thread phpcoder2...@googlemail.com
is there a way to wrap class around, like after_class? thanks On Jun 10, 4:56 pm, Jeremy Burns | Class Outfit wrote: > User the 'after' option and then apply css: > > echo $this->Form->input( >         'field_name', >         array( >                 'after' => 'Your description...' >         ) >

Re: Forms and Descriptions

2010-06-10 Thread phpcoder2...@googlemail.com
cheers Jeremy! you seem to reply to everyone's issues :D lol thanks! On Jun 10, 4:56 pm, Jeremy Burns | Class Outfit wrote: > User the 'after' option and then apply css: > > echo $this->Form->input( >         'field_name', >         array( >                 'after' => 'Your description...' >    

Re: Forms and Descriptions

2010-06-10 Thread Jeremy Burns | Class Outfit
User the 'after' option and then apply css: echo $this->Form->input( 'field_name', array( 'after' => 'Your description...' ) ); Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 10 Jun 2010, at 16:46, phpcoder2...@googlem

Forms and Descriptions

2010-06-10 Thread phpcoder2...@googlemail.com
Hey guys building a form and not sure how to go about adding descriptions to each input, from what ive seen there is no description option in the $form->input(); does anyone know of a simple way to achieve this? thanks Check out the new CakePHP Questions site http://cakeqs.org and help others wit

Re: Dealing with forms!!!!!

2010-05-15 Thread WebbedIT
Do you have any debug tools running to see if your javascript is being loaded/executed correctly? It appears your link should work, although I'm surprised even if it does reload the page that it comes up with a proper cake page as your URL array should be array('controller'=>'users', 'action' =>

Re: Dealing with forms!!!!!

2010-05-14 Thread sherzo
hp@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php?hl=en > > -- View this message in context: http://old.nabble.com/Dealing-with-forms%21%21%21%

Re: Dealing with forms!!!!!

2010-05-13 Thread WebbedIT
I wrote a blog post about using ModalBox which is handy if you're using Prototype: http://webbedit.co.uk/blog_posts/view/tutorial-cakephp-modalbox-crud HTH Paul. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this m

Re: Multiple AJAX Forms on same page all submitting to first form.

2010-05-13 Thread Nabil Alsharif
name of "id" in your array! > > That can't work! > > So check you form create statement and correct it! > > Enjoy, > >John > > > > On May 12, 7:17 pm, Robert McWay > > wrote:> I took another look at the generated HTML, like you suggest

Re: Multiple AJAX Forms on same page all submitting to first form.

2010-05-13 Thread Robert McWay
7:17 pm, Robert McWay > wrote:> I took another look at the generated HTML, like you suggested Matt, > > and found something very strange. The multiple forms i have on this > > page are being generated by a loop. It appears that the first form > > generates the proper open

Re: Dealing with forms!!!!!

2010-05-13 Thread
data['User']['password'] == > > Security::hash(Configure::read('Security.salt') . > > $field['password_confirm'])) { > >     $valid = true; > >   } > >   return $valid; > > } > > ... > > > HTH > > > P

Re: Dealing with forms!!!!!

2010-05-13 Thread sherzo
t; } > return $valid; > } > ... > > HTH > > Paul. > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP&

Re: Dealing with forms!!!!!

2010-05-13 Thread WebbedIT
Hmm, your doing all of your validation manually in the controller ... this is supposed to be done automagically by the model when you save the record. Read the following through a couple of times: http://book.cakephp.org/view/125/Data-Validation The one thing you have to watch out for is the pas

Dealing with forms!!!!!

2010-05-12 Thread sherzo
{ $invited_id = $this->getUserId($this->data['User']['username']); $this->requestAction('/bonuses/updateStatus/'.$this->Session->read('ref').'/'. $this->data['User']['email'].'/'. $in

Re: Multiple AJAX Forms on same page all submitting to first form.

2010-05-12 Thread John Andersen
found something very strange. The multiple forms i have on this > page are being generated by a loop. It appears that the first form > generates the proper opening and closing form tags, along with the > javascript for the AJAX. But then looking at the 2nd and 3rd forms in > the code, i real

Re: Multiple AJAX Forms on same page all submitting to first form.

2010-05-12 Thread Robert McWay
I took another look at the generated HTML, like you suggested Matt, and found something very strange. The multiple forms i have on this page are being generated by a loop. It appears that the first form generates the proper opening and closing form tags, along with the javascript for the AJAX. But

Re: Multiple AJAX Forms on same page all submitting to first form.

2010-05-07 Thread Matthew Powell
t McWay > wrote: >> Hello All, >> >> I am having trouble with putting multiple ajax form instances on the >> same page. All the forms have the same fields, with the exception of a >> hidden field passing the User Id. Upon submitting the form, it always >>

Re: Multiple AJAX Forms on same page all submitting to first form.

2010-05-06 Thread Nilz
y wrote: > Hello All, > > I am having trouble with putting multiple ajax form instances on the > same page. All the forms have the same fields, with the exception of a > hidden field passing the User Id. Upon submitting the form, it always > submits the form fields in the first fo

Multiple AJAX Forms on same page all submitting to first form.

2010-05-06 Thread Robert McWay
Hello All, I am having trouble with putting multiple ajax form instances on the same page. All the forms have the same fields, with the exception of a hidden field passing the User Id. Upon submitting the form, it always submits the form fields in the first form, regardless of which form i submit

Re: Conflicting forms

2010-04-13 Thread Ed Propsner
27;] > ['username'], etc. > You just need to map that to the User model after receiving the data. > AFAIK, you don't have to pass a model name to a form. > > On Apr 13, 11:21 pm, Ed Propsner wrote: > > At one point during the test site I'm working on I e

Re: Conflicting forms

2010-04-13 Thread jacmoe
. On Apr 13, 11:21 pm, Ed Propsner wrote: > At one point during the test site I'm  working on I end up with two forms on > the same page that both use the same model. > > One form is for registration and the other is to log in ... both forms > contain a username and password f

Conflicting forms

2010-04-13 Thread Ed Propsner
At one point during the test site I'm working on I end up with two forms on the same page that both use the same model. One form is for registration and the other is to log in ... both forms contain a username and password field. Having these two forms contain the same field names is caus

Js helper forms

2010-03-26 Thread Jeremy Burns
Does anyone have an example of how to create an Ajax form from start to end using the Js helper in 1.3? Which components/helpers to include, how to set up the view and the controller, how to get the right layout etc? The information is all out there somewhere, but in bits. I'd love to see a simple

Re: Trailing Slash redirect (SEO) and CakePHP Forms

2010-03-25 Thread Jon Bennett
d/worry about SEO for forms, sure for content pages, what's so special about this form that you can't risk loosing SEO for it? Cheers, J -- jon bennett - www.jben.net - blog.jben.net Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP relate

Re: Trailing Slash redirect (SEO) and CakePHP Forms

2010-03-25 Thread Lucca Mordente
I'm not too experient about .htaccess, but what if you use a rewrite rule instead of a redirect? Lucca Mordente On 24 mar, 17:39, "Andreas D." wrote: > Hi there! > I have a Problem with my App. > In my .htaccess, i added some lines to redirect the user if the url > ends without a slash to the sa

Trailing Slash redirect (SEO) and CakePHP Forms

2010-03-24 Thread Andreas D.
Hi there! I have a Problem with my App. In my .htaccess, i added some lines to redirect the user if the url ends without a slash to the same page with a slash. For example: redirect /posts/view/2 to /posts/view/2/ Now, I have a form /posts/add/. I use the Cakehelper to create it, and it ma

Re: Multiple forms on single page

2010-02-19 Thread Marco
I don't know if I understood your question but what I use when I need a step by step form is this component: http://bakery.cakephp.org/articles/view/wizard-component-1-2-1 On Feb 18, 7:11 pm, McScreech wrote: > Is it possible to define several _independent_ data entry forms on a >

Re: Multiple forms on single page

2010-02-19 Thread WebbedIT
ms did you face? I would imagine this would lend itself to Ajax quite well, but finding it hard to imagine a single pages with multiple forms which you can fill in in no particular order then click done. I would expect if this is a multi-step form to still have to go through each form in a logical or

Re: Multiple forms on single page

2010-02-18 Thread Zaky Katalan-Ezra
Use Elements On Thu, Feb 18, 2010 at 11:11 PM, McScreech wrote: > Is it possible to define several _independent_ data entry forms on a > single page where each one posts data back to different models? Maybe > with a redirect back to the same multi-form page on each Submit until

Re: Multiple forms on single page

2010-02-18 Thread Jeremy Burns
the notes on how to shape your data array. Jeremy Burns jeremybu...@me.com On 18 Feb 2010, at 21:11, McScreech wrote: > Is it possible to define several _independent_ data entry forms on a > single page where each one posts data back to different models? Maybe > with a redirect back

Multiple forms on single page

2010-02-18 Thread McScreech
Is it possible to define several _independent_ data entry forms on a single page where each one posts data back to different models? Maybe with a redirect back to the same multi-form page on each Submit until a 'Done' button is clicked? And of course, if so, any suggestions on ho

Deep nested data in forms

2010-01-25 Thread Jeremy Burns
I have some connected models: e.g. (made up example): Post->Comment->Author->Address My controller's index action creates an array using a model find function using the containable behaviour - let's call the output $postSummary. I have a form that displays data from across the $postSummary array

RE: Forms: HABTM with additional fields in join table

2010-01-13 Thread Dave
ke-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of Ernesto Sent: January-13-10 12:31 PM To: CakePHP Subject: Forms: HABTM with additional fields in join table Hello. Person HABTM Training i'm coding the Person::add and Person::edit views there's plenty of examples/tutorials wich

Forms: HABTM with additional fields in join table

2010-01-13 Thread Ernesto
Hello. Person HABTM Training i'm coding the Person::add and Person::edit views there's plenty of examples/tutorials wich explains how to code an HABTM form... but unfortunately none of them explains how to add additional information in the join table (in my case "who_added_this_relationship", "e

Re: accents in html forms

2009-12-27 Thread euromark
the current versions of WAMP for example use utf8 now as default i just had to install the wampserver for a neighbor today and relized it On 27 Dez., 10:52, Kees de Bruin wrote: > On 26 dec 2009, at 11:20, Lorenzo Bettini wrote: > > > and, most important, all my tables were sweedish encoding (wh

Re: accents in html forms

2009-12-27 Thread Kees de Bruin
On 26 dec 2009, at 11:20, Lorenzo Bettini wrote: > and, most important, all my tables were sweedish encoding (why that's > the default I wonder :) so I altered all the tables with That is because MySQL was created by a Swedish company. -- Kees de Bruin "A vacation is having nothing to do and

Re: accents in html forms

2009-12-26 Thread Lorenzo Bettini
euromark wrote: > i would not use utf8_general_ci > use utf8_unicode_ci instead! > > the general one has major problems sorting! > if you want to return your results with ORDER BY some day you might > consider taking my advice :) Uh thanks! I'll do that right now :) cheers Lorenzo -- L

Re: accents in html forms

2009-12-26 Thread euromark
;>> yes it is > >>> use utf8 in your template files if you need to use special characters > >>> On 24 Dez., 16:10, Lorenzo Bettini wrote: > >>>> Hi > >>>> I'm experiencing problems with words with accents (e.g., Lu s) w

Re: accents in html forms

2009-12-26 Thread Lorenzo Bettini
use special characters >>> On 24 Dez., 16:10, Lorenzo Bettini wrote: >>>> Hi >>>> I'm experiencing problems with words with accents (e.g., Lu s) which are >>>> not displayed at all in html forms generated with the html form helper >>>> (e

Re: accents in html forms

2009-12-25 Thread Dr. Loboto
anks >         Lore > > euromark wrote: > > yes it is > > use utf8 in your template files if you need to use special characters > > > On 24 Dez., 16:10, Lorenzo Bettini wrote: > >> Hi > > >> I'm experiencing problems with words with accents (e.g., Lu s

Re: accents in html forms

2009-12-24 Thread Lorenzo Bettini
lems with words with accents (e.g., Lu s) which are >> not displayed at all in html forms generated with the html form helper >> (e.g., select fields). >> >> Is this a problem with encoding? >> -- Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino HOME: h

Re: accents in html forms

2009-12-24 Thread euromark
yes it is use utf8 in your template files if you need to use special characters On 24 Dez., 16:10, Lorenzo Bettini wrote: > Hi > > I'm experiencing problems with words with accents (e.g., Lu s) which are > not displayed at all in html forms generated with the html form helpe

accents in html forms

2009-12-24 Thread Lorenzo Bettini
Hi I'm experiencing problems with words with accents (e.g., Luís) which are not displayed at all in html forms generated with the html form helper (e.g., select fields). Is this a problem with encoding? thanks in advance Lorenzo -- Lorenzo Bettini, PhD in Computer Science, DI,

Re: How to have 2 forms on one page for same model

2009-11-25 Thread #2Will
items. Elegant? Nope. Pragmatic? for now. thanks again. Will On Nov 26, 12:17 am, Kerr wrote: > There are some articles on this subject.  You may try this one out. > > http://bakery.cakephp.org/articles/view/how-to-create-multirecord-forms > > It includes a component called M

Re: How to have 2 forms on one page for same model

2009-11-25 Thread Kerr
There are some articles on this subject. You may try this one out. http://bakery.cakephp.org/articles/view/how-to-create-multirecord-forms It includes a component called Multirecord that does some looping to handle validation. Be sure to read the comments, as there are some bugs in the posted

How to have 2 forms on one page for same model

2009-11-24 Thread #2Will
Hi All. I need to have 2 forms on a page that add an item to the db using the same model. The trouble is, they are setting each others validation off. How can i isolate the forms so they still use the models validation but only the form whos button has been clicked gets validated? Thanks for

Re: Multiple forms in the same view not working

2009-10-04 Thread Hicham EL KADIRI
Users" table). In that specific page i have an issue to make both of forms working. Well i tried my auth component with the login form it just worked fine, but when creating register page i found out some problems on informing database of sent data. Well here is my code if you can help some :

Re: Cake PhP (1.2) Secure Forms and Ajax

2009-09-29 Thread clearflysyst...@googlemail.com
I Meant The hidden 'Token' Fields not Target fields are missing ie the ones generated by the Security component. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to ca

Cake PhP (1.2) Secure Forms and Ajax

2009-09-29 Thread clearflysyst...@googlemail.com
I'm fairly new to cakePhP so excuse me if im missing the obvious. I'm building an application using secure forms by using the 'Security' component which i've set up in the main app_controller.php This is all working fine, all my forms are secure except for one condition

forms with names paramaters

2009-09-27 Thread jon_snow
Hello all, I'm trying to make a form that will use named parameters. Basically I want the action to be something like action="/cake/someapp/edit/id: 148". The default seems to be action="/cake/someapp/edit/148" and I couldn't find any easy way in the manual to switch to the named parameters forma

Re: Multiple forms in the same view not working

2009-09-22 Thread ramanujan
Hi John, thanks for your answer. I've taken your second advice and it worked. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubs

Re: Multiple forms in the same view not working

2009-09-22 Thread ramanujan
Hi John, thanks for your answer. I take your second advice and it worked. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: Multiple forms in the same view not working

2009-09-21 Thread John Andersen
Yes, you can't use two forms, if you want both the title and the textarea to be submitted at the same time. In that case you only need one form. If you want to update either of them independently of each other, then you can use two forms, or use two submit buttons, each named differentl

Multiple forms in the same view not working

2009-09-21 Thread ramanujan
ge) in the pages view folder and make its contents editable in the administrative section. So I decided to make an administrative page in which one can set the blog title and edit this about page via two forms. Well both forms are not binded with any model and a call a diffent action but the first

Re: problem with facebook-like ajax windows submitting forms

2009-09-19 Thread 浪漫様
Thanks for your comment Mukhamad, but... i never said anything of uploading files... i was talking about sending simple forms :P also facebook never upload files in ajax popups... they use java applets or simple forms. Rohman On Sep 19, 12:19 pm, Mukhamad Ikhsan wrote: > recently my frie

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread Mukhamad Ikhsan
ll me that facebook using java for uploading the file, but i'm not checked before about that. On Sat, Sep 19, 2009 at 10:16 AM, 浪漫様 wrote: > > "cheating by using an iframe doesn't mean you're submitting your > dialog-forms by ajax" > -> well, i didn't

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread 浪漫様
"cheating by using an iframe doesn't mean you're submitting your dialog-forms by ajax" -> well, i didn't say i was using an iFrame to do ajax :P i know it doesn't work like that... i only said that as i couldn't do the ajaxForm on the popup window, the soluti

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread 浪漫様
no, cheating by using an iframe doesn't mean you're > submitting your dialog-forms by ajax) > > Seehttp://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_st... > to understand why your ajaxforms work when they are in the first http > request, but don't if

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread AD7six
On 18 sep, 15:13, 浪漫様 wrote: > no problem. thank you anyway > > Rohman Walter and Bert have already given you your answer (yes, I've read your question and no, cheating by using an iframe doesn't mean you're submitting your dialog-forms by ajax) See

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread DiRN
I think you need to add event.preventDefault() to your submit function: $output.='$("form#'.ucfirst(strtolower($controlador)).ucfirst (strtolower($funcion)).'Form").submit(function(event) {'; $output .= 'event.preventDefault()'; --~--~-~--~~~---~--~~ You receiv

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread 浪漫様
no problem. thank you anyway Rohman On Sep 18, 9:04 pm, Bert Van den Brande wrote: > No sorry, I don't have any examples at hand. > > I still suggest to debug the javascript code with FireBug to detect at which > point the browser decides that it needs to leave the current page. > > 2009/9/18 浪

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread Bert Van den Brande
No sorry, I don't have any examples at hand. I still suggest to debug the javascript code with FireBug to detect at which point the browser decides that it needs to leave the current page. 2009/9/18 浪漫様 > > well, the code works perfectly on normal views, just fails when > creating the pop-up wi

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread 浪漫様
gt; > ajax form... yes... that works without any problem, the form is > > > > already located on the main ( post ) view, and form is sent and > > > > comments div is updated... no problem. > > > > now imagine you are building a facebook-alike social networking, an

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread Bert Van den Brande
main ( post ) view, and form is sent and > > > comments div is updated... no problem. > > > now imagine you are building a facebook-alike social networking, and > > > when clicking on a user's 'send message to xxx' link i want to open a > > > pop-up

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread 浪漫様
a > > pop-up ajax window to send message to him... but not from the main > > view's form... from a form located on a div appearing on screen ( i > > guess you are familliar with facebook or other sites that do that )... > > then the form is sent, but the page is reloaded while w

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread Bert Van den Brande
p 18, 10:15 am, 浪漫様 wrote: > > > > > i don't think that is the problem... facebook can do it without > > > iFrames and works perfectly no matter what browser. > > > moreover... i'm talking about same domain's forms... nothing to do > > > with

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread 浪漫様
thanks for the info Bert, but also not the problem... i know how to send ajax forms... and they work great on a simple view... problem is when the form has to be created on a facebook-style pop-up div... and i follow the same code as i do for the simple view's ajax form... just, in the wi

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread 浪漫様
:15 am, 浪漫様 wrote: > > > i don't think that is the problem... facebook can do it without > > iFrames and works perfectly no matter what browser. > > moreover... i'm talking about same domain's forms... nothing to do > > with external domains. > > if i&

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread Bert Van den Brande
I think the problem is that you do a normal HTML submit of the form inside your div popup. Since you don't want the form to be submitted as it would do for a normal page, you need catch the submit action with some javascript code and submit the form by ajax. How to submit forms by ajax

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread Walther
about same domain's forms... nothing to do > with external domains. > if i'm building a facebook-alike social networking, and when clicking > on a user's link i want to open a pop-up ajax window to send message > to him... where is the cross-domain issue? > thanks for

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread 浪漫様
i don't think that is the problem... facebook can do it without iFrames and works perfectly no matter what browser. moreover... i'm talking about same domain's forms... nothing to do with external domains. if i'm building a facebook-alike social networking, and when clickin

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread wirtsi
ou want to post uploaded files, you'll also need an iframe form since you can't upload files via ajax calls On 18 Sep., 09:12, 浪漫様 wrote: > hello all, > i had been successful on sending forms via ajax on a view and updating > some divs instead of reloading the page without much pr

Re: problem with facebook-like ajax windows submitting forms

2009-09-18 Thread 浪漫様
i forgot... using JQuery... not the Ajax helper for Prototype. thanks Rohman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscr

problem with facebook-like ajax windows submitting forms

2009-09-18 Thread 浪漫様
hello all, i had been successful on sending forms via ajax on a view and updating some divs instead of reloading the page without much problem, however, when the form is located on a facebook-like ajax pop-up div, the page is always reloaded on submission... and that's not what i expected

Re: Validation errors are shown for all forms on page, instead of just for the submitted form.

2009-09-10 Thread Dr. Loboto
You should not have same forms on one page. From HTML point all same elements in them will have same IDs that breaks JavaScript&AJAX. From Cake point all of them is one form that produce validation messages spread across them. On Sep 10, 10:12 pm, Crux wrote: > Hi Bakers, > > I

Re: Validation errors are shown for all forms on page, instead of just for the submitted form.

2009-09-10 Thread Miles J
Well you can't, simply because all the form inputs have the same "name" attribute. You will have to change the model for each form. On Sep 10, 8:12 am, Crux wrote: > Hi Bakers, > > I have multiple forms on single page/view, and upon submit, validation > errors are s

Validation errors are shown for all forms on page, instead of just for the submitted form.

2009-09-10 Thread Crux
Hi Bakers, I have multiple forms on single page/view, and upon submit, validation errors are shown for all forms, instead of just for the submitted form. This is because multiple forms contain identically named fields: User.email, User.password etc. How do I force Cake to display validation

Re: Select forms returning an array?

2009-09-08 Thread WebbedIT
I would say your schema needs some work as this seems way over- complicated. To be honest I am having difficulty understanding what you're trying to achieve .. maybe providing the tables involved and listing the relations you're using (wanting to use) would help me understand. Questions jumping

Select forms returning an array?

2009-09-07 Thread Michael Gaiser
I am trying to get a select form that has been passed an array, to return an array. This is the array I am sending: Array ( [clan] => Array ( [1] => Daeva [2] => Gangrel [3] => Mekhet [4] => Nosferatu [5] => Ventrue )

Re: Help with Date Range in Forms Helper

2009-09-04 Thread martinp
t.date <=' => $this->data['Event']['max_date'] ) Does that help? On Sep 4, 6:14 am, dmsmitty wrote: > I'm creating a form using the forms helper to allow a user to search > for events occurring within a specified date range. > > My model (called

Help with Date Range in Forms Helper

2009-09-04 Thread dmsmitty
I'm creating a form using the forms helper to allow a user to search for events occurring within a specified date range. My model (called "Event") has a field called "date", which is of type DATE. I want to create 2 form inputs: a minimum and a maximum date range

Re: Can select forms not return an array?

2009-09-03 Thread Michael Gaiser
Cool. Thanks. On Thu, Sep 3, 2009 at 4:17 AM, Miles J wrote: > > A few things your doing wrong and should change immediately. > > Do not call error(), text() (or the other variants, select(), radio > ()). > > The following code: > >        label('Devotion.name', 'Name of Devotion'); ? >> >      

Re: Can select forms not return an array?

2009-09-02 Thread Miles J
A few things your doing wrong and should change immediately. Do not call error(), text() (or the other variants, select(), radio ()). The following code: label('Devotion.name', 'Name of Devotion'); ? > error('Devotion.name'); ?> text('Devotion.name', array('size' => '80'

Re: Can select forms not return an array?

2009-09-02 Thread Michael Gaiser
$form->input('Disciplines.0.discipline_id', array('label'=>'Discipline 1', 'type'=>'select', 'selected'=>$html->value('Disciplines.0.discipline_id'), 'options'=>$disciplines, 'multiple'=>'false', 'empty'=>'Choose One')) There are multiple selection boxes in the view so thats why I needed to add

Can select forms not return an array?

2009-09-02 Thread Michael Gaiser
I am using a select field and even though I have it set to single selection only, it still saves its post data as an array. I want : $this->data['User']['setting'] = 3 instead of : $this->data['User']['setting'][0] = 3 Is there something I need to do for this to be formatted correctly, or do I j

Re: Can select forms not return an array?

2009-09-02 Thread Miles J
Thats not what im asking for. Im asking for the $form->input() code that generates the select in the view. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php

Re: Can select forms not return an array?

2009-09-02 Thread Michael Gaiser
This is what is being generated: Array ( [Devotion] => Array ( [name] => testcase [description] => A cool Test case ) [Disciplines] => Array ( [0] => Array ( [discipline_id] => Array

Re: Can select forms not return an array?

2009-09-02 Thread Miles J
Well it would be nice to see the $form code generating the select. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from th

Re: jQuery with Cake forms

2009-08-27 Thread Mike
Thanks a ton for the tip - this worked out great! The only thing I'd want to warn other people about (just in case someone else is following these same footsteps) is that the text input appeared to be a normal, everyday text input until I clicked on it, whereupon the DatePicker control nicely sli

<    1   2   3   4   5   6   7   >