sexta-feira, 11 de dezembro de 2015

jQuery - Only Numbers


jQuery - Only Numbers in the input(textbox) field.

jQuery code that changes the input to accept just numbers.

How it looks like:

http://jsfiddle.net/rogeriohsjr/cye3Lh33/

Code Example:

jQuery(document).ready(function () {

    ApplyNumberAllFields();

});

function ApplyNumberAllFields() {

    var objListValue = GetFields();

    for (var i = 0; i != objListValue.length; i++) {

        jQuery(objListValue[i]).keypress(function (event) {
            return /\d/.test(String.fromCharCode(event.keyCode));
        });
    }
}


function GetFields() {
    var objListObjects = [];

    objListObjects.push("#txtNumber1");
    objListObjects.push("#txtNumber2");
    objListObjects.push("#txtNumber3");

    return objListObjects;
}


domingo, 6 de dezembro de 2015

Tags to Post

Tags to use on the blog.

C#
<pre class="brush:csharp">

HTML, XML
<pre class="brush:xml">
<pre class="brush:html">

CSS
<pre class="brush:xml">

SQL
<pre class="brush:sql">


Source: http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/

Interesting Websites

My bookmarks. =)

Here we can find some of my favorite links.


Regular Expression
Link: http://tools.netshiftmedia.com/regexlibrary/#
Comments: Website that executes Regular expression.
Tags: exp

Join Me (Free)
Link: https://www.join.me/
Comments: Website for you have a meeting.
Tags: Meeting

JSFiddle
Link: http://jsfiddle.net/
Comments: Website for you create your script and execute.
Tags: Javascript, jQuery.

Tutorial Point
Link: http://www.tutorialspoint.com/index.htm
Comments: There is a lot of good tutorials and also you can execute your code.

ColorHexa
Link: http://www.colorhexa.com/7c7064
Comments: Discover the colour your are looking for by using many types such as RGB, #45678
Tags: CSS, Color

Best CSS Button Generator
Link: http://www.bestcssbuttongenerator.com
Comments: The name says for itself, really nice tool to create a design.
Tags: CSS, Color

iMIS

iMIS Documentation, Manual
http://www.advsol.com/ASI/SupportPortal/SupportPortal/Documentation_archives.aspx
Comments: Some of the documentation from iMIS, all the versions.

iMIS Community
http://www.imiscommunity.com/
Comments: iMIS Forum

iMIS Objects
http://www.imiscommunity.com/imiscommunity/docs/ibonet/api/index.html
Comments: List of Objects on the iMIS iBO, some descriptions.




terça-feira, 15 de setembro de 2015

iMIS - Development

Tips for me before publish a page.


- Use class TextButton for the buttons.


<asp:Button ID="btnSave" runat="server" Text="Clear Content" OnClick="btnSave_OnClick" CssClass="TextButton" CausesValidation="False" />

- Apply the spaces between the input fields


Ignore Validation
if (Request.Url.AbsoluteUri.Contains("ContentRecordEdit.aspx") || Request.Url.AbsoluteUri.Contains("ContentDesigner.aspx") || Request.Url.AbsoluteUri.Contains("ContentItemEdit.aspx"))
{
    rfvAddress.Enabled = false;
    rfvDescription.Enabled = false;
    rfvDisplayUntil.Enabled = false;
    rfvStartDate.Enabled = false;
}