Re: Getting Forbidden Error with Ajax

2007-08-23 Thread maulik.9

Hi All,

The problem is solved, it was due to the Encoding Method. got solution
from jacet's post @  http://surmunity.com/showthread.php?t=22080

Just need to change one line in the prototype.js file,

In Prototype code (class Ajax.Request.Events method setRequestHeaders)

from:

headers['Content-type'] = this.options.contentType +
(this.options.encoding ? '; charset=' + this.options.encoding : '');

to:

headers['Content-type'] = this.options.contentType;

that should work well.


On Aug 23, 1:13 pm, "maulik.9" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am getting some weird problem and have no clue what to do.
> Here is the Situation:
>
> I have added two select boxes for province and city, the city box gets
> populated once the user selects the province. I have 
> referredhttp://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-usi...
> and it works well in my local system(windows 2003 server).
>
> Now when i uploaded this application on the server, this part is not
> working. When i tried to debug code, in prototype.js giving alert on
> the server response text gives me text that "You don't have permission
> to access {file name} on this server. "
>
> The Path of the file is valid and opening that in browser gives the
> output.
>
> should i be making any changes in the configuration file while
> uploading the application on the server ?
>
> Thanks,


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Getting Forbidden Error with Ajax

2007-08-23 Thread maulik.9

Hi All,

I am getting some weird problem and have no clue what to do.
Here is the Situation:

I have added two select boxes for province and city, the city box gets
populated once the user selects the province. I have referred
http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/
and it works well in my local system(windows 2003 server).

Now when i uploaded this application on the server, this part is not
working. When i tried to debug code, in prototype.js giving alert on
the server response text gives me text that "You don't have permission
to access {file name} on this server. "

The Path of the file is valid and opening that in browser gives the
output.

should i be making any changes in the configuration file while
uploading the application on the server ?

Thanks,


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Populate Model Fields Combo box to put with search text box

2007-05-21 Thread maulik.9

Hi,

I am trying to built up a search section on each page of application,
where user has text box along with all the fields of the specific
model in select box. User can enter the search term and select in
which field he wants to search.

I was wondering if such component already available ? if not from
where should i start building it up ? i am new to cakephp.

Thanks,
Maulik


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---