I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2006-02-28 11:59:03-08 by geoffmulhall
Javascript
I've done a couple of days of testing/playing with $ie-mechanize and on a site where there is no javascript I can log in, retrieve data from a table and log out OK. On another site which makes extensive use of javascript I can log in and out OK but get errors retrieving the data. The form created by the javascript does not want to post. I'm confident I have the form & field names all Ok because I've checked them carefully using IE Dom Inspector. The error I get is "can't call method find_input on undefined value at line 967 in mechanize.pm" I am now running vers 0.009. Any ideas please ? Is there any way to display the html created by the javascript so I can see what $ie-mechanize is getting ? Thanks again, Geoff
Direct Responses: 1868 | Write a response
Posted on 2006-02-28 15:50:55-08 by abeltje in response to 1866
Re: Javascript
Hi Geoff,
Could you try the 0.009_17 distribution? I fixed some bugs in the code that groups the input-fields with their forms.
Let me know how you get on.
-- Abe.
Direct Responses: 1871 | Write a response
Posted on 2006-02-28 20:40:58-08 by geoffmulhall in response to 1868
Re: Javascript
Hi, I'm using the version from http://source.test-smoke.org/download/Win32-IE-Mechanize-0.009.zip The mechanize.pm source is labelled # $Id: Mechanize.pm 372 2005-08-07 17:35:51Z abeltje $ Is there a later version than that ? (I need a ppd to be able to install I'm afraid - have not had any success with make). Thanks for all your help - appreciated greatly. Geoff
Direct Responses: 1875 | Write a response
Posted on 2006-03-01 09:19:33-08 by abeltje in response to 1871
Re: Javascript
Hi Geoff,
Yes, CPAN has 0.009_17 which is marked as a development version.
On my site you'll find a .zip for that version ready for use with ppm:
http://www.test-smoke.org/download/Win32-IE-Mechanize-0.009_17.zip
BTW: see 'perldoc perlwin32' to find out where to get nmake (1.5)
HTH
-- Abe.
Direct Responses: 1876 | Write a response
Posted on 2006-03-01 10:41:40-08 by geoffmulhall in response to 1875
Re: Javascript
Hi again and thanks for your quick reply ! I uninstalled the 009 and installed 009_17. Everything works happily on the non-javascript site but still fails on the java site. I can see that you have incorporate sleep(1) in your code now. I get the same error message (at line 1003 now) "Can't call method find_input" etc and additional messages saying there is no form numbered 1 named 'frmSingleShare'. Now I suspect the problem may be that the page is running 2 java scripts which separately create 2 separate forms on the page. If I specify form number only and the field name ie-mech still does not find the form. I'll try to find a site running just 1 javascript on the page to check this. Again thanks for your help - I very much appreciate it. Perhaps you can confirm my suspicion ? Geoff
Direct Responses: Write a response