• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Object doesn't support this property or method

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I Developed a struts1.2 application , In one of the jsp function called on button(<input TYPE="button" name="action" value="Submit" ALT="BTN_SUBMIT" onclick='javascript:onSubmit("<bean:write name="dResult" property="completeFilePath"/>")'>) click I am calling below code :
function onSubmit(filename){
document.forms[0].action = "/CordellSearchProject/SubmitIt.do?filename=" + filename;
document.forms[0].name = "searchForm";
document.forms[0].setAttribute("method", "post");
document.forms[0].submit();
}
Its working fine in every browser(IE 9, Firefox,Chrome), but in IE 8 its throwing an error "Object doesn't support this property or method"

Please help, any kind of help would be appreciated.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic