Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10

Thread: Force maxlength

  1. #1
    TrainReq
    Guest

    Force maxlength

    I was wondering if their is a bookmarklet i can use to bypass or extend the maxlength of a feild. The maxlength of the feild atm is 50 , and i would like to extend it to 150

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    address bar:

    javascript:document.formName.elementName.property='asdf';

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    TrainReq
    Guest
    what is the "Eliment name" ... the name of the text box? and is the form name the name of the form? and what do i put as asdf?

  • #4
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Man you are not a good hacker...

    change the names to the names of the form and textbox, change property to maxLength and the asdf is the length you want. Not that hard...

    iF THE FORM IS CODED CORRECTLY, THERE WILL BE VALIDATION ON THE SERVER so all of this is just a waste of time.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #5
    TrainReq
    Guest
    yeah, there is something called a hashcode, that is why i cant just copy/paste the source and subdmit it that way... I know it is possible to manual submit, as well as change the type of the form (like password, text, textarea,etc) with a bookmarklet, and keep the same hash, etc... and i thought it would be pretty possible to change the max value

  • #6
    TrainReq
    Guest
    hmm... when i do that... It takes me to a page with my max lenght (for example, if i put 150 as the maxlength) it takes me to a page with just the words: 150 on it.

  • #7
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    javascript:document.formName.elementName.property='asdf';void(0);
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #8
    TrainReq
    Guest
    I am using javascript:document.form1.interest.maxlength='250';void(0);

    With form1 being the form name, and intrest being the name of the textbox.. and it still does not make it to where i can put more text in their.. the current maxvalue is 50.. i can use the above javascript function to change the type of the form (from text to password, etc), as well as set the width on the form... but it wont let me extend the maxlength.

  • #9
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    how about maxLength

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #10
    TrainReq
    Guest
    EDIT: HA.. it works.. thanks much
    Last edited by TrainReq; 12-07-2006 at 03:42 AM.


  •  

    Posting Permissions

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