urvi patel

Greenhorn
+ Follow
since May 30, 2003
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 urvi patel

yaa.. i got the answer.
First i include that page and after that i am forwarding that page to another.
so it gives the error. Afetr that when i include that page after forward tag, so now it's works.
Thanks for ur. suggestions.
urvi
20 years ago
JSP
I am getting error in this code..
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<%@ page language = "java" import="java.sql.*,java.io.*" %>
<%@ page autoFlush="true"%>
<%
String regid="1";
String cat_name=request.getParameter("cat_name");
%>
<form name="form1" action="admin_papercat.jsp" method="post">
<jsp:include page="menu.jsp" flush="true">
<jsp aram name="regid" value="<%= regid %>" />
</jsp:include>
<p>
<%
try
{
if(cat_name==null)
{

String cflag="no";
if(cflag.equals("no"))
{
%>
<jsp:forward page="admin_qview.jsp">
<jsp aram name="cat_name" value="<%= cat_name %>"/>
<jsp aram name="regid" value="<%= regid %>" />
</jsp:forward>
<%
}
else
{
out.print("in else");
}
}
}
catch(Exception e1){out.println(e1.getMessage());}
%>
</BODY>
</HTML>
This is the code.... and it's gives error..
Thanking you
urvi
20 years ago
JSP
Hi...
I am using jsp:include for including code of one page
and i used the syntax.
<jsp:include page="menu.jsp" flush="true">
</jsp:include>
now i also used jsp:forward to forward this page to another page...and i have also
written that
<%@ page autoFlush="true"%>
But it still geves the error that
"Attemt to clear buffer that's already been flushed"
I think problem is beacuse of that jsp:include tag.
please help me.
urvi
20 years ago
JSP
Hi..
For that timer, I had done with that Java Script code.. and i have
to display time in minute, so i have done the
window.setTimeout( "timer()", 60000 );
So it displayed the time in minute. But now my problem is that, Suppose
i had created timer for 5 minutes and when the remaining time is
3 and half minute and i submit that page, so at that time it will
pass 4 minutes only because i pass it, so now the timer again
started with 4 minutes. So it will create problem and the timer is again
loaded with 4 minutes.
so give me the solution.
Thanking you.
urvi
20 years ago
JSP
Hi
thanks for the reply... It's working..
but in window 98, i got the that message..
urvi
20 years ago
JSP
From Parent window, i am opening one new window without toolbar and menubar.. and now i want to close that parent window.
I have already tried, window.opener.close() but my problem is that it ask for permission before closing the parent window and i don't want this permission to be asked.

so, how can i get that??
Please help.
urvi
I have already tried, window.opener.close() but my problem is that it ask for permission before closing the parent window and i don't want this permission to be asked.

so, how can i get that??
urvi
20 years ago
JSP
From Parent window, i am opening one new window without toolbar and menubar.. and now i want to close that parent window.
Please help.
urvi
[ June 09, 2003: Message edited by: urvi23 patel ]
20 years ago
JSP
Thanks For ur. answeres...
urvi
20 years ago
JSP

Originally posted by Ashish Kothari:
Urvi:
I also never tried this approach ,this is just a suggestion .
I was asked in interview ,what if javascript is disabled?then what to do?
Ashish


Hi..
It's ok... I just asked..
[ June 02, 2003: Message edited by: urvi23 patel ]
20 years ago
JSP

Originally posted by Ashish Kothari:
What if javascript is disabled by user?
You can make a timer bean,and get current time in mili seconds as well as elapsed time using System class methods.
give it a try ,I think this would be better approach.
Though script is ok,but try to do it with pure jsp would be better approach.
Ashish


Hi..
You made me confused.. so now tell me answer also that,how to display the actual remainig time On the clients computer ?
urvi
20 years ago
JSP
i an application for taking online examination using jsp and orcle,
the person taking the exam gets questions on different pages.After he has answered one question he cannot come back to the previous question.for that the backspace key needs to be disabled.please help me in getting this thing done.
send me the detailed code...
Thanking you....
urvi
20 years ago
JSP
i an application for taking online examination using jsp and orcle,
the person taking the exam gets questions on different pages.After he has answered one question he cannot come back to the previous question.for that the backspacekey needs to be disabled.please help me in getting this thing done.
Thanking you....
urvi
20 years ago
JSP

Originally posted by Bear Bibeault:
That's a bit of a tough one since you're trying to impose real-time response on top of a protocol (HTTP) which is most definitely not real-time capable.
My initial thought is to use a frameset: one frame with the timer and one frame with the questions. The page loaded into the "timer frame" would perform the countdown using Javascript.
A variant: assuming you are concerned with modern browsers only, avoid the frameset (which are a thing to be avoided if at all possible) and create a page with an embedded iframe. The "master page" can control the timer, while the iframe is used to serve the question pages.
Problems arise with these approaches if the "timer page" gets refreshed. Perhaps the "end time" is saved on the server in the session so that the timer control page can pick up the correct remaining time regardless of refresh.
There are many other approaches, but one of the above (I prefer the iframe), is the first approach I'd give a try.
hth,
bear
[ May 30, 2003: Message edited by: Bear Bibeault ]



Thank you..
For replying me...
20 years ago
JSP

Originally posted by Christian Baron:
Another possible approach:
Let JavaScript write the remaining time in a hiddenfield or use as display an inputfield.
When an answer is submitted, you write it with JSP back to Javascript again. E.g.:

[ May 30, 2003: Message edited by: Christian Baron ]


Thankx for ur. reply...
i am doing in that way only but somewhat confused..so now it's clear to me.
Again thank you.
20 years ago
JSP