Menawhile I've find out that I can give header information in the view
section. But the problem still exists, but a new information I've got
is that the user uses only http 1.0 communications. But now I really
don't have any idea what has been going wrong?!!!
By Alex
On nov. 5, 14:52, carstep <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I've just set up our CP application to a Linux server and it seems
> that several XMLHttpRequest won't fire correctly. I get in the subject
> meant Errors, and I don't know why.
>
> When I get the site not using an XMLHttpRequest it fires as expected,
> but with XMLHttpRequest is fails, I get only a HTML site with the
> description of the 411 status code.
>
> Meanwhile I've find out that the missing Content-length of the Ajax
> request can cause this, but I don't know exactly where to add this
> header information to the request in CP.
>
> Does anybody have an idea for this, or a tip where to go on?
>
> thx in advance
> Alex
>
> Example is where I try to create a menu for Extjs and build a
> json_data for it!:
> fucntion menu(){
> vendor('json');
> $obj_json = new Services_JSON();
> $user = $this->Session->read('User');
> $x = str_replace('"MN_menuClick"', 'MN_menuClick',
> $obj_json->encode($this->user->getmenu($user['id'],$user['username'])));
>
> $this->set('result',$x);
> $this->render('saveuseraccess','ajax');
>
> }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---