Question:

How to Page Trigger?

by  |  earlier

0 LIKES UnLike

hi i have problem.

here is the description of my problem.

i hv a website which has login system. this login system uses ajax to log ppl in. the problem comes here..

i render everything thru index.php which means my menu appears after login.

so now problem is wen i use ajax to login .. i manage to login but how do i trigger my menu.php to either refresh back or some other codes tat i can use to show my menu as login using ajax...

need help if you guys wan my current codes for index.php & menu.php & login.php i can provide it to u personally. coz its long.

i have tried this but it doesnt work...

document.getElementById('menu').innerT... = '<?php include('menu.php'); ?>';

So how can i do another way in ajax? bcoz i dun wan the login to be normal php.. i wan to use ajax for my login

 Tags:

   Report

1 ANSWERS


  1. You are close.  Your ajax response needs to be the menu page.

    Like:

    &lt;script type=&quot;javascript&quot;&gt;

    Ajax.onResponse = function(response) {

        document.getElementById(&#039;menu&#039;).innerHTM... = response;

    }

    &lt;script&gt;

You're reading: How to Page Trigger?

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.