Hello,
I have a webpage that contains (among other things) this;
The code above is resposible for defining and creating a table that displays customer info...
works great....everytime I open the webpage the table generates fine.
Now I have included a user login <div> and would like the table to be loaded only AFTER the user has been verified.
(note: I would like one page to handle all of this. for this reason I am using XMLHttpRequest to asynchronously verify the user)
within my login script I have a function that executes when a valid user is detected...looks something like this:
Any suggestions would be greatly appreciated.
Thanks,
atsea
I have a webpage that contains (among other things) this;
Code:
<div id="table1" class="table1">
<script type="text/javascript">
var cust = new Grid("Customer", 30, 10);
cust.init(Def);
cust.doAction();
</script>
</div>
The code above is resposible for defining and creating a table that displays customer info...
works great....everytime I open the webpage the table generates fine.
Now I have included a user login <div> and would like the table to be loaded only AFTER the user has been verified.
(note: I would like one page to handle all of this. for this reason I am using XMLHttpRequest to asynchronously verify the user)
within my login script I have a function that executes when a valid user is detected...looks something like this:
Code:
function login(){
if (loggedIn){
document.getElementById('username').disabled = 'disabled';
document.getElementById('password').disabled = 'disabled';
loginPanel.className = 'login2';
collapseDiv('login_container');
//I need to somehow execute the code (in the HTML above) here. also the result must appear in that specific <div>
}
Any suggestions would be greatly appreciated.
Thanks,
atsea