Tuesday, September 3, 2013

Learn How to Create jQuery Dialog Box

A dialog is a floating window that contains a title bar and a content area. The dialog window can be moved, resized and closed with the 'x' icon by default.

If the content length exceeds the maximum height, a scrollbar will automatically appear.

A bottom button bar and semi-transparent modal overlay layer are common options that can be added.

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>jQuery UI Dialog Box</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script>

//by Narendra Singh - www.oyetrade.com, mr.nsjayas@gmail.com
$(function() {
$( "#dialog" ).dialog(
    {    
    //basic attributes
    position: [225,30],    //x,y position
    width: 800, //dialog width
    height: 300,
    modal: true, //if this is set to 'true' the dialog'll be open on grey overlay bagkground
    title: "My Dialog", //dialog title
    dialogClass: 'ffsWarningDialog no-close', // add runtime additional CSS class
    resizable: false, //true or false
    draggable: true, // true or false  
    //end basic attributes
  
    //animation effect
    show: {
        effect: "blind",
        duration: 1000
        },
        hide: {
        effect: "explode",
        duration: 1000
        },
    //end animation effect
  
    //custom buttons
     buttons: {
        "Delete all items": function() {
        $( this ).dialog( "close" );
        },
        Cancel: function() {
        $( this ).dialog( "close" );
        }
    }
    //end custom buttons
  
    });
});
</script>
</head>
<body>
    <div id="dialog">
    <p>Want to learn more about the dialog widget? Check out the <a href="http://api.jqueryui.com/dialog/" target="_blank">API documentation.</p>
    </div>
</body>
</html>

Saturday, August 31, 2013

Top 5 Frameworks for Mobile Development

Mobile developers today are widening the scope of their expertise; they are not only solving these issues but are developing mobile websites that have impressive layouts, are touch-friendly and are based on frameworks that work flawlessly on smartphones and tablets.

Generally, JavaScript has made it easy to use touchscreen devices. With it, we can enable websites to respond to finger gestures such as tap, scroll and zoom. JavaScript has not only resolved cross-browser compatibility issues but has made it easy to develop cross-platform websites, which increases the number of users.

Most JavaScript frameworks are lightweight, which makes web browsing fast without compromising the look of a website. Mobile websites increasingly use HTML5 and CSS3, adhering to the W3C specifications—which are another boon to JavaScript frameworks.

If you are not using a CSS framework in your current workflow, you should seriously consider it. To work with a framework, you will of course need to learn how to use it, but once you learned the advantages are quite huge.

Not only working with a framework will let you build websites faster, but it will also encourage you pay more attention to things some web designers overlook, like using a grid, including a print stylesheet, or making your site responsive, among other things. Now let’s take a look at the best and most popular CSS frameworks.

jQuery Mobile: Touch-Optimized Web Framework for Smartphones & Tablets
A unified, HTML5-based user interface system for all popular mobile device platforms, built on the rock-solid jQuery and jQuery UI foundation. Its lightweight code is built with progressive enhancement, and has a flexible, easily themeable design.

Seriously cross-platform with HTML5
jQuery mobile framework takes the "write less, do more" mantra to the next level: Instead of writing unique apps for each mobile device or OS, the jQuery mobile framework allows you to design a single highly-branded web site or application that will work on all popular smartphone, tablet, and desktop platforms. Device support
The-M-Project is a Mobile HTML5 JavaScript Framework that helps you build great mobile apps, easy and fast. The-M-Project is Open Source Software published under the MIT License. This gives you total flexibility for your development. Build great free and commercial apps with it.

With its model-view-controller (MVC) architecture, The M Project is popular among mobile developers for several reasons. The open source module, which is based on MVC, allows developers to isolate the data from the business logic. Moreover, the JavaScript framework supports multiple devices, making it easy to develop apps and websites that for smartphones, tablets and desktop computers.




Deliver a real-time view of all your mobile apps 
The Appcelerator Dashboard displays all relevant information about your portfolio of mobile apps. It enables developers, architects, testers, managers, project teams, and business owners to view, analyze and take action to get their job done. Whether it is getting an aggregate view of all applications or drilling down into an individual project or app, Appcelerator’s Dashboard, through a “Single System of Engagement”, enables all parties involved in the Continuous Mobile Innovation Lifecycle to get the information they need, when they need it, and take action. 

Appcelerator Studio allows the creation of native apps across the widest range of devices and operating systems (e.g., iOS, Android, BlackBerry, Tizen, Denso mobile web and more). Designers and developers can work together in Appcelerator Studio to rapidly prototype the real app.

Appcelerator Cloud pre-built services provide developers with the widest set of scalable mobile services. This includes push notifications, photos, social connections, authorization and much more. Our Cloud unifies the development environment for connecting apps to the mobile cloud.  

Appcelerator Cloud custom services enable custom data integration with back end systems. Using our Node.js offering, developers can quickly and easily create mobile-optimized APIs that orchestrate data from multiple data sources such as SAP, Salesforce.com, Oracle, Sharepoint and others.



Counted among the best JavaScript frameworks, Sencha Touch is also a preferred framework among mobile web developers. The full-featured widget library is based on the Ext JS JavaScript library and targeted for Class A WebKit browsers. This high-performance HTML5 framework can be used for developing apps for multiple mobile operating systems, including iOS, Android, BlackBerry OS and Kindle.
The latest from Sencha Touch boasts an easier API, enhanced MVC and increased speed with native packaging, which is easy to use.


 

 

Free JavaScript Mobile Framework for HTML5 Web Apps
DHTMLX Touch is a free open source JavaScript library for building HTML5-based mobile web apps. It's not just a set of UI widgets, but a complete framework that allows you to create eye-catching, robust web applications that run on iOS, Android, and other mobile platforms.

If you are looking for a framework that advocates minimal coding, choose DHTMLX Touch. The user interface is easy to use and the framework lets developers churn out different kinds of apps for different mobile platforms.


 

Wednesday, August 28, 2013

How to win customer referrals?


Hands down, the most profitable way to find new customers is to motivate your customers to refer others to your business. Most companies don't pour enough energy into harvesting this low-hanging fruit.
Here are eight ways to get started, but I'm confident you can think of even more - if you invest time and energy into this fruitful activity.

1. Be bold - ask for referrals: Most companies make the most fundamental mistake; they fail to even ask for a referral, or they settle for just one. Ask your customers for referrals, and when they give you one, ask for another.

2. Practice win/win/win: Offer customers a chance to do something nice for their friends, in a visible way, and also benefit themselves. For example, give your customer a discount in return for a referral, but then send their friend a gift card in the name of their friend. The friend, customer and your firm all win.

3. Engage in not-so random acts of kindness: For your best customers, surprise them with kindness. I know one gregarious business development guy who sometimes walks into a client's office with a tray of oversized cupcakes, gives them a big smile, and yells, "Have a great day!" as he runs out the door. This isn't wasteful, it's wise. When you give people something of value, they feel an obligation to you. (That something can't be too valuable, or you'll make others uncomfortable.) What matters most is that your customer perceives genuine gratitude on your part, so much so that they want to tell others about your act of kindness.

4. Celebrate: Life is short; find excuses to celebrate, and when you do, invite your customers and suggest they bring their friends. Such celebrations aren't the place to engage in hard sells, but rather to build relationships and to show your customers' friends how good it must feel to be one of your customers.

5. Support what your customers support: Raise meaningful amounts of money for charities, schools and other causes about which your customers care. Invest 95% of your time and efforts in providing support to those organizations; don't make the mistake of spending more money bragging about your generosity than in actually being generous.

6. Make your references easy to access: A friend of mine wants to renovate his kitchen, and has been meeting with contractors. He was especially impressed by one, simply because the man had all his references organized by year and type of job, and he was open to having my friend call anyone he wished. This sort of open, frictionless approach to references provides prospective customers with tremendous amounts of reassurance.

7. Show your pride: When the media or a customer glows about something special your company did, tell other customers about it and make it easy for them to pass along your success story. For example, you could share this news as a "lesson learned", and write it up in a manner so that others can learn from it, too.

8. Say thanks: After a customer's order has been delivered, be sure to write or call to say thank you. Don't forget to ask if there is anyone else they know whom you could have the honor of serving. And when you say "honor of serving," you better mean it. If you feel that way, it will show, and if it shows, you'll be rewarded with more referrals than you ever dreamed possible.

Sunday, August 11, 2013

The Role of Social Media in eLearning

This article reflects the use of social media in eLearning plus some tips on how social media can be used as learning platforms.
No one can deny the frenziness that has taken over the entire world with social media, in the last 10 years. Facebook, Twitter, LinkedIn, YouTube, Google Plus and a bunch of others have become almost everyone’s second nature. Many think that social media is just another way to minimize personal communication and contact, for others an effective way to legitimately peek through people’s lives, and for others a pure waste of time with no value. Personal opinions are of course respected, yet we got to take a look at the other side. This article reflects the use of social media in eLearning

Teachers, instructional designers, educational institutions, companies, and even organizations have started to heavily rely on the use of social media in formal learning, to share practices, promote information and educational material, share opinions, views and comments, embodying them in training programs and individual courses.

One of the best outcomes is that learning has become learner-centric and not teacher-centric, which is the way it should have been all along. 

How Social Media Can Been Used As Learning Platforms?

Social media is basically a structure that consists of individuals, communities, companies or organizations with similar interests, attitudes, values, lifestyles, visions and friendships and in the field of eLearning this structure can be used in various ways and through a number of tools.
Let’s see the most popular ones: 
  • Facebook
    The instructor can effortlessly create a closed or an open group, to share information, ideas, quizzes, questionnaires, materials, pictures, or even an entire page on a specific course or module. Students can freely talk about various course-related issues, questions they might have, post mutually interesting information and generally things they want to share. For more info please see the use of Facebook for social learning.
  • Twitter
    In eLearning it can be used as a backchannel to connect learning communities or smaller classrooms over a specific topic or event, to share highlights, make statements, upload pictures, etc. All instructors have to do is create an account and communicate its #hashtag to their students/followers. Twitter is heavily used for social learning
  • LinkedIn
    This is a purely professional, yet still social network, which has proven to be extremely useful in eLearning. Currently there are thousands of discussions and groups in various languages, where instructors, educators and influencers share views, problems, developments and how-to tips. It has an even higher value compared to the previous social platforms, since students/participants can actually see everyone’s professional profile and accomplishments, something that usually determines the status of the discussion leader, organizer, or expert. If you are interested in eLearning and Instructional Design I highly encourage you to join the Instructional Design & E-Learning Professionals' LinkedIn Group.
  • Google Plus
    Google plus is an upraising star for social learning. Several eLearning professionals including me believe that Google Plus is going to be the most popular social media that is used as a learning platform. But why?  Google plus communities have been used heavily as learning platforms and one of the major reasons is that both learners and facilitators are getting less distracted versus Facebook and Twitter.  In addition, Ronald L raised an interesting issue “Students don’t like to use their social networks for their studies. They want to keep their private life and faculty life separated”. Last but not least, I very much agree with Steve Rayson who said: “The ability of G+ to host communities with video embeds, comments plus Google hangouts surely makes it the strongest social media platform for social learning”. For more valuable comments concerning eLearning and Instructional Design like the comment above I highly encourage you to join Instructional Design & e-Learning Professionals Google Plus community!
  • YouTube
    An excellent resource for eLearning. It’s free and can be used to support a class, while viewers can also rate the video’s content and quality, as well as comment. These videos can be part of a course, but instructors can also use it to broadcast entire tutorials or just teasers to attract the audience they want. 

Bottom line: Originally taken from e-learn Industry.

Attn. Health and Safety Training Providers - Convert your classroom courses into e-learn

Convert your classroom courses to e-learn


We have a special affinity for HSE e-Learning and are looking forward to delving deeper into the world of Online Training. We thrive in an environment with passionate individuals, challenging problems and collaborative spirit.

Courses successfully delivered

  • IOSH Managing Safely
  • NEBOSH International Diploma
  • NEBOSH International General Certificate
  • NEBOSH Oil and Gas
...and many other Health and Safety courses

IOSH Managing Safely for just US $2199 only
 

NARENDRA SINGH
+91 987 143 3826 | naren@oyetrade.com | www.oyetrade.com

53A Dayanand Vihar, Delhi, India - 110092

Few of our HSE business clients are...

Legi Safe Learning (UK) CHSS India (India) HSE Institute 

Saturday, July 27, 2013

Business Benefits Of Responsive Design


As we all know by now, mobile is the new black, pink and whatever other color you can think of. Mobile is not going away anytime soon and it is increasingly becoming integrated into our lives. In fact, studies show that mobile web browsing will outpace traditional desktop browsing within 2-3 years. Some studies say even sooner.
For business owners and marketers, this shift can seem daunting as it ads in a huge layer of complexity and perceived cost. What approach do you take? Where do you start, and when?

The when part is really up to you, but for the how piece of the puzzle, I would look no further than Responsive Design.

Here are few reasons why you should consider updating your company site to utilize Responsive Design.

1. You Will Save Money

Before the practice of Responsive Design was widely adopted (it still isn’t, really), if companies wanted to have an optimal mobile experience of their website a separate set of templates or a device-specific app had to be designed and developed.

As you might guess, this can get quite costly. One site for iPhone, one site for iPad, another for Android etc. Then, what happens when a new device comes out? Make another website or app specific to that device? I’m guessing most business owners don’t want to spend that kind of cash just to keep up.

The beauty of Responsive Design is in the fact that it enables your site to fit perfectly in any screen size. One website, all devices. That means that your website only has to be developed once, significantly reducing the cost.

2. You Will Save Time

The fact that you can have the ability to design and build your site in one project will also free up your time. Less meetings, less approvals and less wondering if you’re just going to have to do this process all over again once a new device comes on the market.

3. You Can Beat Your Competition

Since Responsive Design is still in its infancy, there is a strong chance that your competition is not implementing it. Redesigning your website to fit optimally in all devices would take your competition by surprise. Visitors will get a much better experience on your site than on your competitors, and will likely take more action.

4. Your Site Will Be Relevant Longer

When adopting Responsive Design, your site will stand the test of time for longer. You wont be playing ‘catch up’ all the time. Your website will be future friendly, as they say.

5. Your Conversions Will Increase

When people visit your site, they are typically more likely to take action if they have a good experience. This means, giving them what they want with the least amount of ‘friction’. Using Responsive Design, you can greatly reduce the amount of friction involved and give your users a great experience—thus, increasing conversions.

6. You’ll Stress Less

All of the above reasons will help you sleep better at night knowing that your site is actually working at it’s optimal level on all devices. This will give you peace of mind when it comes to your online presence.

Tuesday, July 9, 2013

vertical-align: middle not working

I had three buttons in a single div with uncommon height. I was asked to vertical align the buttons to the middle of parent div. After long time of googling and putting my head into PC, I got the solution:

HTML
<div class="wrapper">
            <div class="block" style="border: solid 1px red;">The red box's height can be dynamic too ;)</div>
            <div class="block" style="border: solid 1px green;">The green box's height is dynamic<br>fdfd</div>
            <div class="block" style="border: solid 1px green;">The green box's height is dynamic</div>
        </div>

CSS
.wrapper {
                border: 2px solid #007EFD;
                display: inline-block;
                white-space: nowrap;
            }
            .block {
                color: #000000;
                display: inline-block;
                font: 12px/1.5 Arial,sans-serif;
                margin: 5px 2px;
                padding: 5px 5px 5px;
                text-align: center;
                vertical-align: middle;
                white-space: normal;
                width: 180px;
            }

Output