www.webdeveloper.com
Results 1 to 7 of 7

Thread: [RESOLVED] need some help getting a textfield filled in

  1. #1
    Join Date
    Jan 2009
    Posts
    2

    resolved [RESOLVED] need some help getting a textfield filled in

    I'm using google chrome browser and you can add javascript to your bookmarks value.

    i visit a forum frequently www.callofduty.com

    the problem is they don't have a keep me signed in feature so i would like to create a bookmark that would sign me in.

    i'm not to familiar with javascript but i gave it a try and it does work quite correctly.

    my code:
    javascript:window.location.href="http://www.callofduty.com/login"; this.registration.password.value="password";

    problems- it loads the page correctly but doesn't fill in the password box, BUT if i click the button again it will fill it in for me then reload the page. so i guess my question is there a wait till page loads to fill it in?

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    I see a date login?
    It won't work like that anyway. You may have more luck with Greasemonkey

  3. #3
    Join Date
    Jun 2004
    Posts
    316
    You would be better off looking up the source code for the page, finding the login information spots, copying down the names of the input fields, and the form action and method, creating your own .html file, making the form with hidden value fields with the fields filled in and adding a script to the onload portion that submits the form and using that to login... I've done it before, it's not that hard...

  4. #4
    Join Date
    Jan 2009
    Posts
    2
    thanks for the replies, i actually did it without javascript by simply using html

    Code:
    http://www.callofduty.com/login?email=username&password=password&action=ProcessLogin

  5. #5
    Join Date
    Jun 2004
    Posts
    316
    well that seems real secure... i mean, if somebody were to look up your history (or temp. internet files) for that site, they have your p/w...

  6. #6
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Quote Originally Posted by TheTeenScripter View Post
    well that seems real secure... i mean, if somebody were to look up your history (or temp. internet files) for that site, they have your p/w...
    That's not a problem, the callofduty site not being https is insecure.

  7. #7
    Join Date
    Jun 2004
    Posts
    316
    yeah, but http:// vs. https:// is transaction-link security, only really needed for credit-card transactions, where as in this case, you don't need to be a hacker to get into his account...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles