puja shaw

Ranch Hand
+ Follow
since Nov 06, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by puja shaw

Raj Kamal wrote:
What are you trying to achieve here?
Do you want to pass the object to another page after a FORM submit (request-response cycle)?
Or is the new page a popup from the original page?

Cheers,
Raj.



form submit
is it possible to send a string object to another page from javasript.?

if so how and how can i retrieve the same string object in the other page.?

please help



how i wish this forum has a chat application where i can chat with the experts and get instant solutions
11 years ago

Eric Pascarello wrote:because td elements do not have values.

Eric




next time when you point out the mistake ,kindly tell me where and how to solve it.Thankyou.
the problem is that when i i am trying to get the cell value its showing 'undefined value'.What is the problem and how to get the value?





[code=html]

<html>
<form action="seecookies">
<table onClick="Clicking();">
<tr id="cookierow">
cookie value: mypassword
<td>+"mypassword"+</td>
cookie value: myUsername
<td>+"myUsername"+</td>
<script>
function Clicking(){
alert("infunction");
var row=document.getElementById("cookierow");
alert("infunction2");
var cells =
row.getElementsByTagName("td");
alert("infunction3");
alert("infunction4");
alert(cells.val());
alert("infunction5");}
</script>
</form>
</html>

[code]
please tell me the syntax for how to insert a value into table

String ss="ddd";

now i want to insert this ss into table cell in html directly


Bear Bibeault wrote:What class variable? In a Java class? Please TellTheDetails -- we can't guess what you are doing.




java class variable.Mr bill i am getting only questions and suggestions from you rather than solutions.Sorry to say this but its true.
is there a way in which i can convert class variable to javascript variable.If so how..?

Bear Bibeault wrote:Please be sure to UseCodeTags, and to make sure that the code is properly formatted and indented when you post it.



yes i used the code tags

Bear Bibeault wrote:Showing us the server-side code is not helpful (And why are you creating HTMl from a servlet in the first place? That's a really poor practice.)

Please post the HTMl that is sent to the browser. You can find it using View Source in the browser.



the only new code here is out.println() and a for loop.The rest is all html.I need to write in a servlet as its my requirement.And thanks to the code tags that my html content is shown clearly away from the other part.So what is the problem.?
i am trying to insert multiple values into a select item in html.Please Help me.The following code is inserting only one item.I am not understanding where the code has gone wrong.




can anybody please tell me how to add multiple rows to a textfield in html?
i am trying t use cookies in servlets.Everytime i am trying to check the condition such as if(cookie==null).This condition is never getting satisfied even after clearing all the cookies of that browser and sending request for the first time.How do i satisfy the condition???

Cookie[] cookie = request.getCookies();

if(cookie==null){out.println("there are no cookies in the browser");}

the above if condition is never getting satisfied.
11 years ago

Bear Bibeault wrote:In the future please let us know when a question is a school assignment that has strict requirements. Otherwise, time is wasted trying to find out why you are trying to do things the wrong way.



oops..ok.

Bear Bibeault wrote:

puja shaw wrote:But my current requirement is using html in servlets.


Why? Is this a school assignment?



unfortunately yes.So please help me to make it work.