dotnetspider.com
Login Login    Register      

TutorialsForumCareer DevelopmentResourcesReviewsJobsInterviewCommunitiesProjectsTraining

Subscribe to Subscribers
Talk to Webmaster
Tony John

Facebook
Google+
Twitter
LinkedIn
Online Membersnaveensanagasetti
Ranipriya
ManeeshKumar M.R
Ultimaterengan
Jivani
More...
Join our online Google+ community for Bloggers, Content Writers and Webmasters




Resources » .NET programming » ASP.NET/Web Applications

Displaying Popup using Jquery and css3.


Posted Date:     Category: ASP.NET/Web Applications    
Author: Member Level: Gold    Points: 20


A popup Box which is fully Customizable using css3 and jQuery. Generally we see in websites when a we cliked on purachse buton then it wil show beautiful confirmation dialog which is having some buttons and showing yes or no and cancel and some other messages with images. We see that how it is doing. Generally we can do it with javascript using div ( this also i will post in the next article and gave many responses regarding this already) but a small animation effect and beautifully desig



 


A popup Box which is fully Customizable using css3 and jQuery.

Generally we see in websites when a we cliked on purachse buton then it wil show beautiful

confirmation dialog which is having some buttons and showing yes or no and cancel and some

other messages with images. We see that how it is doing. Generally we can do it with javascript

using div ( this also i will post in the next article and gave many responses regarding this

already) but a small animation effect and beautifully designed one wich is fully customizable

is different than normal one. Now here i am posting a resource which is very useful and

customizable who wants to use this.

Here i used to search many resources and find a good one and changed it according to me with

small additions. I used Jquery for this.
workflow.

1)first download the application which is attached below.
2)in the downloaded zip file extract to the desktop and there in hte extracted folder contains

solution file also, you can directly run it. it is vs2010 with 3.5 framework.
3)see the folder contains confirm named folder and scripts folder.
4)scripts folder contains jquery scripts which is used to run jquery.
5)confirm folder contains the images and css and js files for showing the popup.
6)now look at the Deafult.aspx file and goto the script section there you can see the code for

creating buttons and which message and title to show in the popup. and what should happen when

you press ESC key in keyboard.

Customizing popup.

here you can add how many button you want you can and give the value and what action should be

done when it clicks.
for ex.

'buttons': { //for creating the buttons.
'Yes': {
'class': 'blue',
'action': function () {
elem.slideUp();
document.getElementById('<%=TextBox1.ClientID%>').value =

"clicked Yes";
}
},


by putting the comma you can add mutiple buttons.

see the confirm.js file there (dont do any modification until unless you want to do transition

effects.
for ex. see this statement
$(markup).hide().appendTo('body').show();

here instead of show if you want any transitions like display slow or fast or fadein or fadeout

you can do that.

so below you can see the attached files.

Attachments
  • popup in asp.net (44158-0732-popup-asp.net.rar)





  • Did you like this resource? Share it with your friends and show your love!


    Responses to "Displaying Popup using Jquery and css3."
    Author: siraj    29 Aug 2012Member Level: Bronze   Points : 0
    Thanks ...great work .i do change and reply how it fits for my application..thanks once again


    Feedbacks      

    Post Comment:




  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Next Resource: C# code for uploading multiple files on a server
    Previous Resource: Explore Razor View Engine for MVC
    Return to Resources
    Post New Resource
    Category: ASP.NET/Web Applications


    Post resources and earn money!
     
    More Resources
    Popular Tags   Tag posting guidelines   Search Tags  
    (No tags found.)



    Follow us on Twitter: https://twitter.com/dotnetspider

    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Email subscription
  • .NET Jobs
  • .NET Articles
  • .NET Forums
  • Articles Rss Feeds
    Forum Rss Feeds


    About Us    Contact Us    Copyright    Privacy Policy    Terms Of Use    Revenue Sharing sites   Advertise   Talk to Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2012 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.