Custom Confirm Box Programming JavaScript CSS Tutorial

preview_player
Показать описание
Learn to create custom confirm boxes using core JavaScript and CSS. We supply handy tips for using the custom confirm box to perform specific operations via Ajax. We also show how to externalize your JS and CSS for improved modularity and compartmentalization. This tutorial follows the custom alert box programming tutorial, which individuals should view if they wish to fully comprehend code applied to this tutorial.
Рекомендации по теме
Комментарии
Автор

Cheers ... Great that you explain each step in so much detail, very helpful for JavaScript noons like myself

MrJontyJohn
Автор

Good stuff, enjoy your style of explaining things. Very easy to follow without dumbing down too much.

forgetfulLlama
Автор

Amazing tutorial thanks so much. How do you make the dialog box to be responsive to screen size? Since this is set using JS and not CSS

abdiag
Автор

Once again, Thank You so much Adam for another interesting and useful tutorial. God Bless you!

YannisStarwalker
Автор

with that video i understood what AJAX is thks again!!!!

riberycr
Автор

Cool, vro, your like the only dev Ive seen that uses Adove DreamWaver!!

bojacksworldwideweb
Автор

Thank you very much, it was very useful !

royegabrieli
Автор

Question: can i use this to pause form submission until I click yes or no without stopping it completely and then artificially re-submit it using JS ?

RomanBorowinski
Автор

<button onclick="Confirm.yes(\''+op+'\', \''+id+'\')">Yes</button>
I just didnt understand why we put + sign before and after references inside the parenthesis? Great tutorial by the way

mardin
Автор

Nice video, maybe an idea for improvement: instead of sending an operation to the yes method, why not sending the name of the function? By doing this the yes method do not need adjustments (check for op) everytime a new confirmation action is required.

benstuijts
Автор

This works really nice, thank you very much! 
I added a function that automatically clicks "OK" when pressing the return-key and I fit the CSS. 
The only thing I don't like is on screen size change.
Do you have an idea how to dynamically change the position/size onScreenSizeChange (or something like that)?

petrowolke
Автор

Adam Khoury is there way to do it like ... 
var x =
if(x==true) .... else
and the confirmation message should return boolean 

OsamaAhmed-ktgz
Автор

After practicing for awhile with this amazing code, I came up with a question, something similar to Ben Stuijts's point just with a different approach. Instead of asking the "yes" function to do something and then adding several "else if", couldn't the code just return true (yes) or false (no) and then we can handle the situation as we see fit regarding the instance which requires the confirmation? Sometimes a confirmation is required through javascript (I mean not directly from a button or link). Excuse my english and please, please, please bear with me if the question is stupid, I'm an old man but so young to this coding thing :) Thanks in advance

YannisStarwalker
Автор

Anybody use is this custom confirm box to delete records from the database after click yes button. I am struggling with that. Please if possible help me. Thanks. 

anamikaenterprise
Автор

instead of deleting, how can i change the function into just navigating to other tabs in my website?
Thanks in Advance..
Nice Tutorial :)

genbocala
Автор

Dear sir, it is really nice and useful tutorial. Thanks. But i have a question is how can i use it to delete specific data from mysql database dynamically instead of removing child ?  Please help me. 

anamikaenterprise
Автор

Please could you make a video of shopping cart in HTML, using JavaScript

sabirkothiya
Автор

hey Admin can you do some tutorials on php framework thank you

collinrobinson
Автор

And Product order form in HTML using JavaScript. Please

sabirkothiya
Автор

App not working don't download this application it doesn't work

arzanahmad