Guys .. how can i declare a variable and set it to 1 if the image has been
clicked ???

this is the listing
<INPUT  TYPE="image"
        SRC="/admin/images/goes.gif"
        VALIGN="top"
        WIDTH="36"
        HEIGHT="23"
        ALT="Search for Stocks"
        BORDER="0"
        ONCLICK="Search(); return false;">

i try like this but not working .. ONCLICK="Search; return false; <% int _X
= 1 %>">

i wanna use the _X like this if the var work :

<tr><td>
             <% search=request.getParameter("search");%>
                 <% if (_X = 1){%>
                <input type="button" value="Add"
onclick="AddList('<%=search%>','<%=szFreq%>');">
                <%}else
                {%><input type="button" value="Add" disabled><%}%>
</td></tr>


reagrds

a Beginner

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to