can you please give me the exact solution of this problem
On Sunday, September 17, 2006 12:37:42 PM UTC+5:30, Troy Schmidt wrote:
>
> AH! Alias setup. Yes you need the RewriteBase rule. I had to use
> this on my Windows setup for mod_rewrite to work properly. Also since
> webroot isn't my doc
"If your form is in the div you update, just send back the form with
the modification. Your original form will be updated by the one you
send back.. "
The issue is that in this one case I DON'T want the form to be sent
back at all, I want another completely different page to load instead.
You ga
If your form is in the div you update, just send back the form with
the modification. Your original form will be updated by the one you
send back..
This is exactly what append when you submit a form that has error in
it, you send back the form with the errors tags ..and this form
replaces the one
This is the bit I don't get.
The ajax->form is already coded in the view, with the $options array
all set up.
Then the user clicks a submit button, an ajax request is made, the
logic takes place on the server. The logic now needs to somehow
conditionally modify the setup of the ajax->form, which
Well you can set the "controller/action" using $this->Set(..) in
controller and build up your javascript string with the variable ..
hth
On May 16, 1:24 pm, Dovdimus Prime <[EMAIL PROTECTED]> wrote:
> Okay, I get the idea of using callback functions to get the ajax->form
> to do additional stuff.
Okay, I get the idea of using callback functions to get the ajax->form
to do additional stuff. But the stuff I need it to do depends upon
which button in the form is pressed.
How can I dynamically specify things in the $options array?
For example, how can I get my ajax->form to call
window.loca
Something like :
$js .= 'window.location.href="'.router::url('/controller/action',
true).'";';
echo $javascript->codeBlock($js);
There might be a better way, according to the "beforeRedirect" of
RequestHandler, this code is quite "old" for me (but working)..
hth
On May 14, 8:16 pm, Dovdimus Pri
You can pass all kinds of parameters to the ajax helper including
javascript you want executed:
http://book.cakephp.org/view/208/ajax#ajaxhelper-options-209
On May 14, 2:16 pm, Dovdimus Prime <[EMAIL PROTECTED]> wrote:
> Errr... sorry but how would I go about doing that? How do I get some
> java
Errr... sorry but how would I go about doing that? How do I get some
javascript function to run when the ajax function returns?
The callback function which modifies the div is all wrapped up in the
framework so I've got no idea how to add to it.
Thanks
David
--~--~-~--~~
Return back a status message to the ajax call with a redirect URL and
then use window.location to redirect the user from the client side.
On Wed, May 14, 2008 at 10:25 AM, Dovdimus Prime <[EMAIL PROTECTED]> wrote:
>
> I have an ajax form which does some processing and returns data to a
> target
Thank you for posting back with your solution. Hopefully others will find it helpful as well.
--~--~-~--~~~---~--~~
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@googlegrou
AH! Alias setup. Yes you need the RewriteBase rule. I had to use
this on my Windows setup for mod_rewrite to work properly. Also since
webroot isn't my documentroot (because of the whole alias thing).
--~--~-~--~~~---~--~~
You received this message because you
Hi!
I was doing this:
I added in file .htaccess in app/webroot this line:
RewriteBase /
And in file index.php in app/webroot this line:
if (!defined('WEBROOT_DIR')) {
define('WEBROOT_DIR', basename(dirname(__FILE__)));
}
Change to:
if (!defined('WEBROOT_D
On 9/16/06, kacperix <[EMAIL PROTECTED]> wrote:
Still this same problem. On provider's server still is bad redirecting.I don't know what is wrong. Maybe some constant, module or sth else inapache or sth like this is wrong?? HELP!!!
If mod_rewrite is enabled on the host, all the .htaccess files are
Still this same problem. On provider's server still is bad redirecting.
I don't know what is wrong. Maybe some constant, module or sth else in
apache or sth like this is wrong?? HELP!!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
> 1. What hosting company are you with?
I am with hosting company from Poland. It's was NetArt:
http://www.nazwa.pl
2. Have you tried to run it locally; like on Windows with a WAMP
setup? It so are you having the same problem?
Yes I run it localy on Windows with a WAMP and all is OK!!
P.S.
On 9/16/06, kacperix <[EMAIL PROTECTED]> wrote:
>1. What is your Operating System?It's Linux, but what distribution I don't know because my hostingprovider dosn't wrote this.>2. How did you install Apache/PHP/Database? (
i.e. on Windows XAMPP/>WAMP/ individual installers, etc...)All was
>1. What is your Operating System?
It's Linux, but what distribution I don't know because my hosting
provider dosn't wrote this.
>2. How did you install Apache/PHP/Database? (i.e. on Windows XAMPP/
>WAMP/ individual installers, etc...)
All was instal by my hosting provider.
>
On 9/15/06, kacperix <[EMAIL PROTECTED]> wrote:
mod_rewrite is install on 100% and all .htaccess files are valid. But Ihave still this problem. PLEASE HELP.All caps don't really help.But if you describe your environment someone can help you sort it out.
What is your Operating System?How did you i
mod_rewrite is install on 100% and all .htaccess files are valid. But I
have still this problem. PLEASE HELP.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to ca
Also with some tools that people use to uncompress the cake files to
begin with the .htaccess files are not uncompressed or their file
permissions are set in such a way that the web server can not read
them.
Sam D
On 9/3/06, nate <[EMAIL PROTECTED]> wrote:
>
> Either you don't have mod_rewrite
Either you don't have mod_rewrite enabled, or one of Cake's .htaccess
files got misplaced. This can happen if you're on OSX and moving
directories around. If you think mod_rewrite is enabled, try doing a
fresh install of Cake, otherwise go into /app/config/core.php and
uncomment the line that st
22 matches
Mail list logo