...

View Full Version : Force maxlength



TrainReq
12-06-2006, 02:07 AM
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

A1ien51
12-06-2006, 04:27 AM
address bar:

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

Eric

TrainReq
12-06-2006, 04:51 AM
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?

A1ien51
12-06-2006, 05:01 AM
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

TrainReq
12-06-2006, 06:01 AM
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

TrainReq
12-06-2006, 09:08 PM
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.

A1ien51
12-06-2006, 09:35 PM
javascript:document.formName.elementName.property='asdf';void(0);

TrainReq
12-07-2006, 01:40 AM
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.

A1ien51
12-07-2006, 03:08 AM
how about maxLength

Eric

TrainReq
12-07-2006, 03:30 AM
EDIT: HA.. it works.. thanks much



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum