javascript


yureka

This another day to get into struts. See, I have an input type as image and onclick function.

<input type=”image” name=”" src=”/teller/images/close.gif” onclick=”del(200);”>

The 200 given as parameter should be passed from struts form bean. Different type of combinations lead to error. finally defining a variable helped as follows.

<bean:define id=”myID” name=”resultI” property=”id”></bean:define>

<html:image src=”/teller/images/close.gif”  onclick=”<%=”del(“+myID+”);” %>”></html:image>


I got the following error in Firefox, while opening a new window with specified parameters, “the data area passed to the system call is too small”. there is some limitation in the length of the query string that is being passed (GET) request. automatically it gets screwed and the error is simply written in the browser. with Internet Explorer, we cant figure-out the error, since its error message is not at all helpful!!!

Next Page »