WPCAPI.processLoginThis is a featured page


void WPCAPI.processLogin()
This method is overridable.

This method handles login requests. It must be overridden, even if it simply redirects the user to a separate login page.


Usage


Example 1
if( window.WPCAPI ) {
WPCAPI.processLogin = function() {
location.href = "http://www.mysite.com/login.html";
};
}

Example 2
if( window.WPCAPI ) {
WPCAPI.processLogin = function() {
revealLoginWindow();
document.getElementById(
"username").focus();
};
}





superwomyn
superwomyn
Latest page update: made by superwomyn , Oct 29 2008, 2:03 PM EDT (about this update About This Update superwomyn Changing overload to override. - superwomyn

1 word added
1 word deleted

view changes

- complete history)
More Info: links to this page
Started By Thread Subject Replies Last Post
exoot WAPI status check 1 Feb 10 2009, 12:39 PM EST by boe_wetpaint
Thread started: Feb 7 2009, 12:49 AM EST  Watch
I want my users know whether I'm online or not. for example when i logged in it returns the value 1 so i can process the value to an image or text using php.

I also want my app know whether im sign in on wetpaint. for example at wetpaint wiki, when you sign in you'll able to see the Sign in:exoot(sign out) at the top of the wiki. i want to add that feature in my site when returns a values that can be process to output as text or images.

In other word, i want an API hich tell me whether im online or not. I can do this check if I able to access the cookie, but it seems like it only allow .wetpaint.com to access it.

Help pls
Thanks in advance!
Do you find this valuable?    
Keyword tags: None
Show Last Reply
Showing 1 of 1 threads for this page

Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)