Trying to access javascript elements inside a page -


I hope someone can help me, I'm trying to access the text box inside a webpage, so I can do some script, eg To automate the workflow of my employees, placing text in the field, checking a box and clicking on submit it is confusing as a cat because I can not find the name / id / which I want to manipulate the form Will allow. I can see the name of the field that I am trying to use on firebug ("history [comment]") and id, if it helps ("history_comment"), but I do not make any difference The form will not be manipulated. Based on other scripting I have done this, Applescript:

  javascript "document.forms [1] .history_comment.value = 'testing';" In Document 1,  

should work, the browser should ask to "test" in the appropriate area. I have substituted other names which I think is what he wants, and trying to refer to any other form (form [2], form [3]), for all zeros. I'm really a little confused because there is no statement in HTML, so maybe I'm screwing it there.

I have posted an HTML dump with the dummy information exactly) If any kind of spirit can take a laugh and give me some direction, my goal is to be able to keep information in the comment area. Is there a script that I can run that tells me the full name of each element in the form (as far as the browser is concerned)?

If you can use jquery, you can do it very easily by using the following command

  $ ("history_comment"). Val ("hello");  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -