Hi,

I have a JS for submit the screen.

var screen=document.getElementById'newComponentDetailsEntryForm');
        screen.action="<%= request.getContextPath()%>/"+"newComponentDetailsEntryViewAction.do";
        screen.submit();

this is working fine in IE but can't work in firefox.

Kindly suggest.

Thanks in advance.

Recommended Answers

All 2 Replies

You could try

var screen = document.getElementById('newComponentDetailsEntryForm');
screen.setAttribute('action', "<%= request.getContextPath()%>/" + "newComponentDetailsEntryViewAction.do");
screen.submit();

Airshow

screen is a reserved words in javascript...
wouldn't this be a problem if u use it as variable name?
maybe it will be fine in some browser but in other browser maybe not be good....
and... if u don't mind... what error details which firefox said (press ctrl+shift+J to know it)

i hope this help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.