Application Name | Fun to Type |
Publisher | FTW Innovations, Inc. |
Date Entered | 04/26/2013 |
Date Modified | |
webNetwork Version | 6.1.1.110 |
Delivery Method | Virtual server |
Configuration | Host Object
----------- Host Address : www.funtotype.com Host Port : 80 Web Application Object ---------------------- Web App Type : HTTP(S) Virtual Server Virtual DNS Name : funtotype.example-cloud.com Startup URL : /?wnsso=y Rewrite Browser Cookies : Enable Host Authority : Disabled Single Sign On -------------- Form Type : Client Form Name : loginForm Form Trigger : /\?wnsso=y Script : var script = ""; script += "var lightBox = document.getElementById( \"lightBox\" );"; script += "var loginLB = document.getElementById( \"loginLB\" );"; script += "var loginForm = document.getElementById( \"loginForm\" );"; script += "lightBox.style.left = \"100\";"; script += "lightBox.style.top = \"0\";"; script += "lightBox.style.backgroundImage = \"url('/default/images/lightbox.png')\";"; script += "loginLB.style.display = \"block\";"; script += "var userIDField = document.getElementById( \"loginemail\" );"; script += "userIDField.value = \"YOUREMAILADDRESS\";"; script += "var passwordField = document.getElementById( \"loginpassword\" );"; script += "passwordField.value = \"YOURPASSWORD\";"; script += "var inputs = loginForm.getElementsByTagName( \"input\" );"; script += "for( i=0; i < inputs.length; i++ ) {"; script += " if ( inputs[i].type ) {"; script += " if ( inputs[i].type == \"image\" ) {"; script += " inputs[i].click();"; script += " }"; script += " }"; script += "}"; var loginOptions = document.getElementById( "loginOptions" ); setTimeout( "if( loginOptions.innerHTML.indexOf('Log Out' ) >= 0 ) {} else { " + script + "}", 3000 ); Form Method : Post |
Notes |
Basically what happens is the front page loads. If it doesn't see the words Log Out after 3 seconds in the top right (because it doesn't change from Log In to Log Out immediately upon page load), then it attempts the login. The login pops up the login box, then puts in the creds and clicks the button. When the page reloads, it waits 3 seconds to see if the words Log Out appear in the top right... if they do, then it quits messing with the page. When you log out, it will auto log back in - there isn't anything we can do about that right now due to lack of things that change in the page's DOM that we can watch. |