On 2 jul, 13:29, "Colin Ramsay" <colinram...@gmail.com> wrote:
> This isn't really a Monorail problem, but try debugging your Action code and
> check the Request values - you may see that the values that FCK is passing
> has a different name than you'd expect.
>
In the end I used TinyMCE instead of FCKEditor. TinyMCE also has
better support for other browsers. I would suggest you take a look at
that editor instead.
cheers!
Sean
On Jul 3, 4:08 am, altahay <alta...@gmail.com> wrote:
> > > to the controller.- Hide quoted text -
>
> - Show quoted text -
that's what I have in the View:
<textarea name="Event.Observations" id="Event.Observations" cols="31"
rows="7" class="formTextmultilinea"
onchange="javascript:toggleModify('modifycheck');">$!
Event.Observations</textarea>
that's the debug code that I have in the Controller:
foreach (string input in Request.Form)
{
System.Console.WriteLine ("element:"+input);
System.Console.WriteLine
("contentent:"+Request.Form[input]);
}
In i.e if I write "Observation content" in the "Event.Observations"
text area I obtain the following:
element:Event.Observations
content:
So in the Controller, I could access to the element Event.Observations
defined in the View, but the content of Event.Observations was not
sended.
probably not, but I can't think of any other reason it wouldnt be in
there.
You said your're submitting the form with Ajax. Can we see the how
your submitting it with ajax? Are you using a custom js function to do
that?
Also,
can you submit via normal post with it working? then that would point
to ajax being the problem
i think im clutching at straws =P
that's the ajax submit:
<form onsubmit="new Ajax.Updater('dia', '/schedule/checkoverlap.
$EXTENSION', {onLoading:function(request)
{ javascript:waitPointer('schedule') } , onComplete:function(request)
{ javascript:defaultPointer('schedule'); setGreaterHeight('lateral',
'central'); } , asynchronous:true, evalScripts:true,
parameters:Form.serialize(this)}); return false;" enctype="multipart/
form-data" name="newEvent">
and that's the submit button:
<input type="submit" value="$l10n.SEND"
onclick="javascript:alert(document.getElementById('Event.Observations').value);">
but I found something new:
If you look at the submit button code I put an alert to debbug the
textarea, the alert have no data... so.. now I don't think that the
problem were between the View and the Controller... the data was lose
previously...
What do you think?
--
Cheers,
hamilton verissimo
ham...@castlestronghold.com
http://www.castlestronghold.com/
I know in one instance I was having a problem with that and had to
tell it what method to use.
On Jul 6, 11:25 am, altahay <alta...@gmail.com> wrote:
> Hi
>
> that's the ajax submit:
>
> <form onsubmit="new Ajax.Updater('dia', '/schedule/checkoverlap.
> $EXTENSION', {onLoading:function(request)
> { javascript:waitPointer('schedule') } , onComplete:function(request)
> { javascript:defaultPointer('schedule'); setGreaterHeight('lateral',
> 'central'); } , asynchronous:true, evalScripts:true,
> parameters:Form.serialize(this)}); return false;" enctype="multipart/
> form-data" name="newEvent">
>
> and that's the submit button:
>
> <input type="submit" value="$l10n.SEND"
> onclick="javascript:alert(document.getElementById('Event.Observations').value);">
> > > > > > > - Show quoted text -- Hide quoted text -
On 7/6/07, Colin Ramsay <colin...@gmail.com> wrote:
--
Fábio David Batista
fabio.dav...@gmail.com
http://nerd-o-matic.blogspot.com