473,382 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

javascript dialog boxes

I want to make a text game using javascript dialog boxes.
i learned about confirm boxes but its not helpful(http://
www.javascriptmall.com/learn/lesson6.htm)
1. for ex, in the confirm boxes, instead of ok and cancel, i would
like to replace them with (yes, i would like to go the path A and No,
i would like to go in path B)
2. And when user clicks on either button it should close and another
dialog box should pop open with another question and two custom
buttons
3. And i also would like to know how to make some pseudo buttons, for
ex: clicking on the no or the second button should do nothing.
Feb 25 '08 #1
2 3186
on*******@gmail.com writes:
I want to make a text game using javascript dialog boxes.
i learned about confirm boxes but its not helpful(http://
www.javascriptmall.com/learn/lesson6.htm)
1. for ex, in the confirm boxes, instead of ok and cancel, i would
like to replace them with (yes, i would like to go the path A and No,
i would like to go in path B)
You can't change the buttons in any of the standard modal dialog boxes.
2. And when user clicks on either button it should close and another
dialog box should pop open with another question and two custom
buttons
You can do that. What part are you having problem with?
3. And i also would like to know how to make some pseudo buttons, for
ex: clicking on the no or the second button should do nothing.
Can't do that. See above.

If you need anything more fancy than the standard dialog boxes, you'll
have to "fake" them yourselves, probably by putting a <divbox with
onlick handlers/buttons on top of the target page or using a pop-up (and
pop-ups are annoying).

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Feb 25 '08 #2
On Feb 25, 4:51*pm, Joost Diepenmaat <jo...@zeekat.nlwrote:
one.1m...@gmail.com writes:
I want to make a text game using javascript dialog boxes.
i learned about confirm boxes but its not helpful(http://
www.javascriptmall.com/learn/lesson6.htm)
1. for ex, in the confirm boxes, instead of ok and cancel, i would
like to replace them with (yes, i would like to go the path A and No,
i would like to go in path B)

You can't change the buttons in any of the standard modal dialog boxes.
2. And when user clicks on either button it should close and another
dialog box should pop open with another question and two custom
buttons

You can do that. What part are you having problem with?
3. And i also would like to know *how to make some pseudo buttons, for
ex: clicking on the no or the second button should do nothing.

Can't do that. See above.

If you need anything more fancy than the standard dialog boxes, you'll
have to "fake" them yourselves, probably by putting a <divbox with
onlick handlers/buttons on top of the target page or using a pop-up (and
pop-ups are annoying).

--
Joost Diepenmaat | blog:http://joost.zeekat.nl/| work:http://zeekat.nl/
Nevermind. I decided to do it using plain html and buttons in a mini
popup window (400 x 100).
much easier it seems.
Feb 25 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.