Jayasri Alaparthi

Ranch Hand
+ Follow
since Aug 14, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jayasri Alaparthi

HI,


Can you please terminate my account.


Thanks,
13 years ago
Hi Friends,

Can some one help me for the cause of this exception-
org.hibernate.exception.SQLGrammarException: could not execute query.

with regards
Hi Friends,
I am using struts tags I got the above error
<logic:equal name="menu" property="url" value="request.getSession().getAttribute("menuSelection")">
<html:link href='<%=menu.getUrl()%>'>
<bean:write name="menu" property="description" /></html:link>
</logic:equal>
Please some one help me in correcting the above

value="request.getSession().getAttribute("menuSelection")">
With regards

with regards,
Bhargavi.
16 years ago
hi friends,

When I see error log I didn't find any error information
Thanks Brent for giving me idea as how to proceed.

with regards,
The save button which I need to write ajax functionality has to submit the form. Can you give any url or sample for this.
Hi ,
I know basics of Ajax, so can you guide me as how to write save button.

with regards.
Hi Friends,
I am using struts MVC framework, where the data is taken from dao in action and kept in form for save process but the page is refreshing but, I want the save button to be an ajax call can some one guide me as how to proceed.


with regards,
Bhargavi.
Hi,
These is the code I wrote till now, its showing and show and hide only for the first product, I want it for all the products

function toggleRows(parentid)
{

debugger;
var nodes = document.getElementById(parentid).parentNode.childNodes;
for( var i=0;i<nodes.length;i++)
{
if (nodes[i].id.length > 4 && nodes[i].id.substring(0,4) == parentid) {
if(nodes[i].style.display =='' || nodes[i].style.display =='none'){
nodes[i].style.display ='block';
document.getElementById("show").style.display="none";
document.getElementById("hide").style.display="block";
}
else{
nodes[i].style.display ='none';
document.getElementById("show").style.display="block";
document.getElementById("hide").style.display="none";
}

}
}
}



<td colspan='3'>
<div id="show" style="display:block"><a href='<%="javascript:toggleRows(\""+prodTree.getKey()+"\")"%>' class="subproducts">See All Subproducts</a></div>
<div id="hide" style="display:none"><a href='<%="javascript:toggleRows(\""+prodTree.getKey()+"\")"%>' class="subproducts">Hide All Subproducts</a></div>
</td>
Hi Bear,


If you understand my code can you give me some idea.


with regards,
Hi,
These is the code I wrote till now, its showing and show and hide only for the first product, I want it for all the products

function toggleRows(parentid)
{

debugger;
var nodes = document.getElementById(parentid).parentNode.childNodes;
for( var i=0;i<nodes.length;i++)
{
if (nodes[i].id.length > 4 && nodes[i].id.substring(0,4) == parentid) {
if(nodes[i].style.display =='' || nodes[i].style.display =='none'){
nodes[i].style.display ='block';
document.getElementById("show").style.display="none";
document.getElementById("hide").style.display="block";
}
else{
nodes[i].style.display ='none';
document.getElementById("show").style.display="block";
document.getElementById("hide").style.display="none";
}

}
}
}



<td colspan='3'>
<div id="show" style="display:block"><a href='<%="javascript:toggleRows(\""+prodTree.getKey()+"\")"%>' class="subproducts">See All Subproducts</a></div>
<div id="hide" style="display:none"><a href='<%="javascript:toggleRows(\""+prodTree.getKey()+"\")"%>' class="subproducts">Hide All Subproducts</a></div>
</td>
Hi friends,

Can some one help me in writing the javascript funtion for toggle rows.
I have 17 products in html check box, for each products there are subproducts for example
Product 1
See all subproducts
[Item1
Item2
Item3
Item4
Item 5
Hide all subproducts]
when I click See all subproducts it has to display all the items with hide all subproduct, and when I click Hide all subproducts
it has to show
Product 1
See all subproducts


with regards,
Hi Friends,
I am using RAD IDE, when I am running in debugging mode, I am getting this problem.

An error has occured, see errorlog for more details.


with regards,
Bhargavi
Hi Friends,

I have a check box and the information of if it is checked or not, comes from Actionform get, I want the div tag to be displayed when the jsp is first loaded and the check box is checked, and the inforamtion of it I get from Action-dao-bean.

I am using logic:iterator and getting the value and property form bean

Can some one help me in sending the sample code for this.

with regards,
Bhargavi.
16 years ago
Hi Friends,

I have a check box and the information of if it is checkedor not comes from Actionform get, I want the div tag to be displayed when the jsp is first loaded and the check box is checked.

Can some one help me in sending the sample code for this.


with regards,
Bhargavi.