tags:

views:

26

answers:

3

Hello there, i have a JSP page that surprisingly stops rendering when its deployed to a server.But when i place javascript alert() at different positions on that page the page starts rendering as it should.Eventually , when i remove those alerts the page keeps on rendering.When i run that page on my eclipse as localhost it runs fine and i dont need to include javascript alerts().I pretty much hope that u guyz get my question.

A: 

Also plz lemme know how javascript alert forces this page to render

Mubbashir
You can edit your question do provide more information. (You should not do that by posting an answer.)
Šime Vidas
A: 

without seeing you code its almost impossible to tell whats the problem - but there's one thing i can think of:

yiu're doing some ajax-stuf without understanding what asynchonus requests are - by insering an alert() somewhere, the code is stoped and the ajax-request is completed in the time you need to klick 'ok'. if so:

  • please try to set your ajax-requests to behave 'synchonous' (thets a bad idea in most cases, but maybe helps to find the problem)

if that works:

  • reset it to behave asynchronous and search for the failure

if not / you aren't using ajax:

  • post the relevant code-parts

generally:

  • try to use something like firebug and look for javascript-failures
oezi
A: 

thnks for ur help, i will do that

Mubbashir
if you want to comment something, please use the comment-function - don't post your statements as answers. and, if my answer was helpful, please accept it by clicking the tick-mark next to it.
oezi