Solved

custom html wizard

Posted on 2008-10-01
5
185 Views
Last Modified: 2012-05-05
Hi all

I wanted to make a custom HTML page that will take input from and user and based on that input it will go to a certain page. For example, I would like to have a HTML page prompt the user for there name, they would then click a next button which would open a new window and display that information, at the same time when they click next it will close the first window.

I am stuck at the part where the first windows closes and the second one opens

Thanks
0
Comment
Question by:OTNAdmin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22618080
In the second window, but this as the body tag --

<BODY onLoad="javascript: window.parent.close();">

that will close the first window when the second opens.
0
 

Author Comment

by:OTNAdmin
ID: 22618513
Alright that worked, is there anyway i can use vbscript instead of java?
0
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22619732
You really don't want to do that if you want cross-browser compatibility.  VB script is something that is almost always limited to MS internet explorer.  Almost half the world is on other browsers now because of IE's crummy security.  Why limit your audience to only corporate types stuck on IE?  All the leading people now are runnning something like Firefox as their main browser, and essentially everyone has to run javascript these days just to see almost any modern page on the internet.  Stick with that.
0
 

Author Comment

by:OTNAdmin
ID: 22624643
alright that is fare, will, I am working on a HTA file, I want to be able to click next an have the first window close Can this done done in VB? THe only reason I want VB is because it is a Win PE script and Java in not the best in PE
0
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 500 total points
ID: 22629238
The problem is that VB will give the user a warning before closing the parent, and that is a real nuisance, because people will think you are trying to do something wrong on their system.  You can try these two --

Response.Write("window.open('','_parent','');")
Response.write("window.close();")

Don't be surprised if it doesn't work right.  Javascript is the best way to do this.  Also, explore the issue in these links, there are a lot of irrelevant (erroneous?) opinions in other blogs, but you might find something that will work.  But I think all VB will generate a warning message, as I understand it.  Good luck --
http://www.google.com/search?num=30&q=close-parent+window+in+VB
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Search Box CSS Question 16 49
Div not showing up 6 33
Sticking text to shapes in Raphael.js 6 41
Why is my combox not displaying in jqwidgets grid 14 37
This article discusses four methods for overlaying images in a container on a web page
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question