Coder Social home page Coder Social logo

jqueryfunctions's Introduction

jQuery Function

In the words of Bill Gates:

Software innovation, like almost every other kind of innovation, requires the ability to collaborate and share ideas with other people, and to sit down and talk with customers and get their feedback and understand their needs.

The aim of this library is to integrate all the jQuery UI widgets integration within a simple, scalable an well-coded document that allow us to save time and save time for the front end.

Version

0.0.1

Installation

Make sure to add the reference to this library in your HTML5 document or dynamic page as following.

Note. I assume you include the original css, js and images files but feel free to change it if you want.

<link rel="stylesheet" type="text/css" href="style.css">

<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery-ui-1.7.3.custom.min.js"></script>
<script src="js/jQueryFunctions.js"></script>
  1. First form. Invoke on the onLoad Event of the body tag as following:
<head>
...
<meta>
...
	<body onLoad='setupJQuery()'> ... </body>
  1. Second form. Invoke on the document ready event as following:
<head>
...
<meta>
...
<script>
$(function(){
   setupJQuery();
   ...
});
<script>

Integration DIVs

Please be sure of add the following divs tags at the bottom of your html boyd . Could it be below your footer tag

<div id="errores" style="display: none" title="jQuery Dialog" class="ui-state-active ui-corner-all"></div>
<div id="confirms" style="display: none" title="jQuery Dialog" class="ui-state-active ui-corner-all"></div>
<div id="mensajes" style="display: none" title="jQuery Dialog" class="ui-state-active ui-corner-all"> </div>
<div id="alerts" style="display: none" title="jQuery Dialog" class="ui-state-active ui-corner-all"></div>
<div id="prompts" style="display: none" title="jQuery Dialog" class="ui-state-active ui-corner-all">
	<div id="promptMessage">
	</div>
   <div id="promptInput">
    <label for="prompt">Prompt</label>
	<input type="text" name="prompt" id="txtPrompt" class="ui-widget-content ui-corner-all" />	
  </div>	
</div>

For including a Single Date Picker, you need to invoke the setUpDate function on the document ready event or onload event from body tag.

<script>
$(function(){
   setupJQuery();
   ...
   //1. First form
   setUpDate('singleDatePicker')
});
</script>
...
<!-- 2. Second form -->
<body onload="setUpDate("singleDatePicker")">
...
<label for="singleDate">Single Date</label>
<input type="text" readonly="true" name="singleDatePicker" id="singleDatePicker" />
</body>

For including a Date Picker Range, you need to invoke the setUpDateRange function on the document ready event or onload event from body tag.

<script>
$(function(){
   setupJQuery();
   ...
   //1. First form
   setUpDateRange('startDate','endDate');
});
</script>
<!-- 2. Second form -->
<body onload="setUpDateRange('startDate','endDate')">
...
<label for="startDate">Start Date</label>
	<input type="text" readonly="true" name="startDate"  id="startDate" /> <br />
<label for="endDate">End Date</label>
	<input type="text" readonly="true" name="endDate"  id="endDate" />
</body>

Readmes of the libraries used, can be found here:

License

MIT

Please contact me by mail for either comments, doubts or any suggestions you might have.

Originally, this was a development of Ricardo Rodriguez Perez that I forked and re-used for personal purposes

jqueryfunctions's People

Contributors

jairaviles avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

grupoinfotech

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.