This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Modern JavaScript for the Impatient and have Cay Horstmann on-line!
See this thread for details.
Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

multiple HTML popup windows

 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my web application i am popping up servlet window with the help of window.open.but i have a problem.When i am trying to pop up the servlet window with two different windows or tabs of same browser than it is popping up only once means while i have popped up servlet from one window or tab link for servlet is not working at second tab or window.
But it's not a issue with windows of two different browsers.What is the reason behind???I am using tomcat 6.0.20 and Oracle 10g.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets don't popup windows, they only responds to requests with HTML text and browsers create windows.

Try to get your idea working with a plain HTML mockup first.

Bill
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am talking about popping up a servlet from a JSP.........
 
Marshal
Posts: 67445
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSPs don't pop up windows either -- JavaScript in an HTML page does that. Whether the HTML is generated from a servlet, or a JSP, or PHP, or Fred' Fantastic Framework is irrelevant.

Moved to the HTML forum.
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir meaning was same as you replied!!!thanks
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help if you showed the code, I am guessing you used the same window name.

Eric
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok.........
I think i should redefine my problem


In my web application i am popping up servlet window with the help of window.open.but i have a problem.When i am trying to pop up the servlet window with two different windows or tabs of same browser than it is popping up only once means while i have popped up servlet from one window or tab link for servlet is not working at second tab or window.
But it's not a issue with windows of two different browsers.What is the reason behind???I am using tomcat 6.0.20 and Oracle 10g.



process.jsp is the page from where i am popping up "MainChatServlet"

Directory Structure-
chat->images->abc.jpg
->src->MainChatServlet.java
->WEB-INF->classes->ankit->MainChatServlet.class
->index.html
->img.html
->theory.html
->process.jsp

index.html


Process.jsp



MainChatServlet.java



 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'chat'

Same name.

Eric
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where & where???
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
myPopup('MainChatServlet', 'chat'
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not getting yet......I have also tried changing it but doesn,t work!
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you make it unique for each window?

Eric
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how it can be done?
 
Paper jam tastes about as you would expect. Try some on this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic