Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Return code of a servlet


Message #1 by "Juan Espino Campos" <juan.espino@s...> on Tue, 22 Jan 2002 11:17:42 +0100
This is a multi-part message in MIME format.

------=_NextPart_000_00F7_01C1A336.688FA390
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello, i've got this code:

    window.location.href =3D "https://"+ window.location.host 
+"/TickerUpdate?NIF=3D<%=3Dnif%>&TICKER=3D" + cadena;
    parent.parent.opener.location.reload();
    parent.parent.close();

The first line call a servlet that save some data on a database, the 
second line reload the parent window taking the new data from the 
database and the last line kill the actual window.

My problem seems like the servlet doesn't save the data before the 
reload function, and sometimes the servlet isn't called (i did probe 
this with a log), so i think that if i get the return code form the 
servlet between the two first lines, then i'll be sure that data is in 
the database.

How can i get that return code? Plz, can anybody help me or tell me 
another way to do this stuff?

thx everybody

------------------------------------------------------------------
This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions
presented are solely those of the author and do not necessarily represent those of SchlumbergerSema. 
If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination,
forwarding, printing, or copying of this email is strictly prohibited.
------------------------------------------------------------------



  Return to Index