Voytek Eymont wrote: > I've logged in to a web page with > > wget > --post-data='user=xxx&pass=yyy&_action_login=Login&_module=login&_template=login&_action=_login' > --save-cookies=my-cookies --keep-session-cookies > http://domain.tld/main.htm > > I can get items that I want OK > > BUT, additionally, I also need to push button(s) on new items > > 'selected source' on buttons I wish to push has like: > > <input class="albttn_red" name="Accept" onclick="javascript: return > Al_Click_Button(active_list, '21583679','page_generator', 'default');" > value="Accept" title="Accept" type="button"> > > I've tried: > > wget --post-data='Accept=Accept' --load-cookies=my-cookies > --save-cookies=my-cookies --keep-session-cookies > "http://domain.tld/main.htm?_module=active_list&_template=advanced"
Sorry, but wget has no way to deal with JavaScript. The best you can do is reverse-engineer the JavaScript and try to emulate what a browser would do, which requires you to be very familiar with JavaScript, HTML, and possibly HTTP. -- Micah J. Cowan http://micah.cowan.name/
