Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function process(id) {
- switch(id) {
- case 1:
- data = { username: document.getElementById('username').value, password: document.getElementById('password').value };
- break;
- default:
- return false;
- }
- jifGetJSON('/framework.php', { 'id': id, [{ data }] }, function(o){alert(o)} );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement