Connecting Tech Pros Worldwide Forums | Help | Site Map

Form Success popup

Newbie
 
Join Date: Aug 2007
Posts: 21
#1: Sep 3 '07
Hi,
I have a form that should popup mentioning Success so i am using alert() box but it shows a yellow exclamation(!) which i dont want. Is there any other more intuitive kind of success message box i can use?

TIA

dmjpro's Avatar
Lives Here
 
Join Date: Jan 2007
Location: India (West-Bengal)
Posts: 2,451
#2: Sep 3 '07

re: Form Success popup


Quote:

Originally Posted by divingIn

Hi,
I have a form that should popup mentioning Success so i am using alert() box but it shows a yellow exclamation(!) which i dont want. Is there any other more intuitive kind of success message box i can use?

TIA

Have your own Pop-Up window, means make your own Pop-Up window using Server Side Lang or using JavaScript.
Look at dis example!

Expand|Select|Wrap|Line Numbers
  1. function show_success_message()
  2. {
  3. var success_win = window.open('','my_win_'+Math.round(Math.random()*1000),'width=x,height=y,or_may_be_your_choice');
  4. success_win.write('here will be your HTML code');
  5. }
  6.  
Have a try and Good Luck.
Kind regards,
Dmjpro.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#3: Sep 3 '07

re: Form Success popup


Quote:

Originally Posted by divingIn

I have a form that should popup mentioning Success so i am using alert() box but it shows a yellow exclamation(!) which i dont want. Is there any other more intuitive kind of success message box i can use?

If you want to avoid popup windows, you can create your own DHTML pseudo-popups using a div and set the visibility to "visible" when you want it to appear.
Newbie
 
Join Date: Aug 2007
Posts: 21
#4: Sep 4 '07

re: Form Success popup


Thanks guys. I think i would prefer the pseudo popup using div so i can customise it.
markrawlingson's Avatar
Moderator
 
Join Date: Aug 2007
Location: Bowmanville, Ontario
Posts: 329
#5: Sep 4 '07

re: Form Success popup


Quote:

Originally Posted by acoder

If you want to avoid popup windows, you can create your own DHTML pseudo-popups using a div and set the visibility to "visible" when you want it to appear.

Personally I prefer div layer popups over regular popup windows. Depending on the scenario of course, but generally. Much less annoying to the user and a heck of a lot easier to customize. Not to mention you completely avoid the pop up blocker issue!
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#6: Sep 4 '07

re: Form Success popup


Quote:

Originally Posted by markrawlingson

Personally I prefer div layer popups over regular popup windows. Depending on the scenario of course, but generally. Much less annoying to the user and a heck of a lot easier to customize. Not to mention you completely avoid the pop up blocker issue!

I agree with you there. Websites that use popups without me clicking a link are so annoying especially those that use popups onload and onunload.
Reply