filling forms automatically generated using javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    filling forms automatically generated using javascript


    Is there an automatic way of filling forms that have been generated
    using javascript?
    I tried to use python+mechaniz e but am having trouble with javascript
    forms.

    This is the way the form is created:

    <script
    src="/WebResource.axd ?d=uz45jgd0NVyz sVJV_sZDrjxBvvX 2yHd3hs2IGgfXLN 3pPD65PTl8Gec4q FJa35leX_j-S-HQNzQg1sDk82eQY afpf0w9zI7HaoMU nMjb9ihQ96Tf0qv T-Air__85j5db0&am p;t=63297297472 0000000"
    type="text/javascript"></script>



    Thanks in advance for your help,
    --j

  • David Golightly

    #2
    Re: filling forms automatically generated using javascript


    John wrote:
    Is there an automatic way of filling forms that have been generated
    using javascript?
    I tried to use python+mechaniz e but am having trouble with javascript
    forms.
    >
    Yes, it depends on what you're trying to do of course, but usually you
    just set the input element's "value" property. (The exception here is
    <input type="file">, where the value property is read-only for security
    reasons.) This can be done even without javascript; just set the value
    attribute in the HTML code if you want default values. It shouldn't
    matter what your backend language is.
    This is the way the form is created:
    >
    <script
    src="/WebResource.axd ?d=uz45jgd0NVyz sVJV_sZDrjxBvvX 2yHd3hs2IGgfXLN 3pPD65PTl8Gec4q FJa35leX_j-S-HQNzQg1sDk82eQY afpf0w9zI7HaoMU nMjb9ihQ96Tf0qv T-Air__85j5db0&am p;t=63297297472 0000000"
    type="text/javascript"></script>
    We really can't do anything with that. The url is useless because it's
    not absolute, so we can't look at your code. Please post a working
    link if you want help.

    Thanks,

    David

    Comment

    Working...