Forum Moderators: open

Message Too Old, No Replies

simple javascript in address bar

         

shotjes

2:10 pm on Feb 24, 2009 (gmt 0)

10+ Year Member



hello,

a while back there was an javascript that you can paste in the adress bar.

i am looking for one that it fills in form fields automaticly when pasted in adres bar.
it needs to be for multiple forms (text and image)

if someone can show me some example of this it is really appriciated. thanks!

shotjes

9:47 am on Mar 2, 2009 (gmt 0)

10+ Year Member



anyone?

coopster

3:12 pm on Mar 2, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, shotjes.

Are you talking about a browser extension or something?

shotjes

6:20 pm on Mar 2, 2009 (gmt 0)

10+ Year Member



no like this:
javascript: alert(2+2);

if you paste that in the adress bar it gives an box that says 4
but i need an javascript that fills in a form

i need this because i am placing advertentions on an dutch ebay like site. but they get deleted after 7 days so i want to make an way to speed this process up :)

coopster

7:24 pm on Mar 2, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Every form is going to be different, different number of fields, different type of fields, etc. So if you are in control of the form you are going to be the programmer that needs to populate any form input values in this fashion with custom JavaScript code.

shotjes

7:29 pm on Mar 2, 2009 (gmt 0)

10+ Year Member



sorry i meaned fields.

for example in form 1 i need to fill in:
field1: example 1 product
field2: this product is an test
field3: c:/picture.jpg

i just need an basic one that i can edit to the field names and values that i want to input

T0ast

8:10 pm on Mar 3, 2009 (gmt 0)

10+ Year Member




javascript: document.[form_name].[field_name].value="[whatever]";

Something like that?

[edited by: T0ast at 8:11 pm (utc) on Mar. 3, 2009]

shotjes

9:00 pm on Mar 3, 2009 (gmt 0)

10+ Year Member



yeah but then for multiple fields