Ajax form

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Manaus

Manaus

18/05/2008 17:38:00
Quote Anchor link
Beste, ik heb het volgende:
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
    $('myForm').addEvent('submit', function(e) {
    /**
     * Prevent the submit event
         */

            new Event(e).stop();
        
            /**
             * This empties the log and shows the spinning indicator
             */

            var log = $('log_res').empty().addClass('ajax-loading');
        
            /**
             * send takes care of encoding and returns the Ajax instance.
             * onComplete removes the spinner from the log.
             */

            this.send({
                update: acties,
                onComplete: function() {
                    log.removeClass('ajax-loading');
                }
            });
        });
    
?>

Maar nu wil ik deze send naar een andere pagina versturen, hoe doe ik dat?
 
PHP hulp

PHP hulp

26/04/2024 18:45:41
 
Hipska BE

Hipska BE

18/05/2008 17:48:00
Quote Anchor link
Welk framework gebruik je?
 
Manaus

Manaus

18/05/2008 17:49:00
Quote Anchor link
mootools
 
Erwin Nieuwenhuis

Erwin Nieuwenhuis

18/05/2008 18:22:00
Quote Anchor link
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
<?php
    this.send(
    'paginawaarjenaarwiltzenden.php', //dit is denk ik je oplossing
    {          update: acties,
                onComplete: function() {
                log.removeClass('ajax-loading');
    }

?>
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.