Web programming - Script for window control (Java? ASP?)
-
Scenario: I am upgrading an intranet app and need a chunk of code to handle a specific window action. The log-in page (index.htm) has one field and a submit button. The action= page is an ASP page that requires the info from the index.htm field. Currently, when SUBMIT is clicked, the window loads the ASP page. Need: To load the ASP page in the original (parent/focus) window, but limit the window controls to just scrollbars. I don't want a popup window. Summary: Please supply a code chunk that will allow me to load a new page in the open window while also limiting the window controls to just scrollbars. The page that will load is an ASP page. Misc: I will supply the code I am using if needed. Please advise.
-
Answer:
Thanks krickles-ga. Here's just a repeat of what we discussed. target="_self" can be used to open a page in the same window. However, to faciliate scrollbar only flexibility, the client would like to have a popup and then close the parent window. Thus: <INPUT type="submit" value="LOG IN" id="login" name="login" style="WIDTH: 75px; HEIGHT: 24px" onClick="window.open('home.asp','PopupWindow','toolbar=no,scrollbars=yes');self.close()"> does the trick.
krickles-ga at Google Answers Visit the source
Related Q & A:
- How do I make a window in Java?Best solution by Stack Overflow
- How to start programming a game in java?Best solution by Game Development
- What would be the best book to Help me learn web design in C# and asp.net?Best solution by Stack Overflow
- How can I enable Java script?Best solution by eHow old
- Computer Science Java Programming?Best solution by AllExperts
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.