i have written a JSP page
and there i have an inline script where i print an alert
now i try to open this jsp page
i get the alert
but the data after the alert is not getting printed
there is no error on my server console
and there are no error on mozilla error console
and this issue is in Mozilla only, in IE it's fine!
can any one please explain me
(2)I have made an observation, while fetching data from database and printing it through a JSP.
I tried printing more than thousand rows from DB to the browser(the client side).
now when the content was getting printed at client side it was not in one go
i could actually see the data getting printed slowly on browser, and while data was getting printed at client side
the query on the server side was not completely executed it was still fetching data from database.
so i believe that servlet engine doest not wait for the java code to get completely executed, it will render the page as an when
it gets the data, so if web server takes time to fetch the data that delay will be reflected at client side,
so i am not able to visualise , what will happen if there is an alert , will web server stop fetching data till ok on alert is press
or server will fetch the data but wont print it until we press okay key!
thanks in advance.
Ankit you are rite
but in your case there is no rendering of page from an web server to client
what you are doing its on client side only.
in my case the data is getting rendered from web server(Jboss) to client(Mozilla).
and even if you code it in JSP that will work because its really fast for web server to generate static HTML.
i have a doubt , that what will happen if the page to be rendered on client is not completely ready,
and by observation i see that web server keeps on rendering the page as an when the static HTML is generated.
what will happen if there is an alert , will web server stop fetching data
As Eduardo said, the alert has nothing to do with the server side processing. Only the browser is concerned with that. The browser might not render anything unless you press ok but the server will keep sending the output...
Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the button on your post.
I don't have any issue with the bug , if i delay the alert for some time
or if i change the location of alert to last page then the page is displayed properly
so i do have a work around.
but how all these things are happening , i am not able to digest .
Why mozilla wont print the page which is already fetched from web server?
I am displeased. You are no longer allowed to read this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss