Solved

custom html wizard

Posted on 2008-10-01
5
151 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
  • 3
  • 2
5 Comments
 
LVL 44

Expert Comment

by:scrathcyboy
Comment Utility
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
Comment Utility
Alright that worked, is there anyway i can use vbscript instead of java?
0
 
LVL 44

Expert Comment

by:scrathcyboy
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now