jQuery.create() – jQuery plugin to create HTML elements

יום חמישי, אוגוסט 21, 2008

jQuery.create() - it's a featured plugin for jQuery JavaScript Library. You can create any types of HTML elements, set attributes and context or HTML using jQuery.create(). See below the HTML example declaration. I think it make easy and fast your programming in JavaScript. jQuery.create = function() { if (arguments.length == 0) return ; var args = arguments || {}, elem = null, elements = null; var siblings = null; // In case someone passes in a null object, // assume that they want an empty string. ...
תגיות: , , , ,
26 תגובות

JavaScript Repeater Control (dataRepeater) – from jQuery.Presenter.1.0.8 – UIControls Library

יום רביעי, אוגוסט 20, 2008

In this post, I want to present a new JavaScript Repeater Control from my latest UIControls Library jQuery.Presenter 1.0.8. This control like (ASP.NET Repeater Control) created using jQuery Library 1.2.3 and support for later versions. It's a free open source script... Enjoy... /* * jQuery.Presenter 1.0.8 * Author: (basil.goldman@gmail.com) * Description: developed and tested on jQuery 1.2.1, * support and fixes for jQuery 1.2.6 */jQuery.fn.presenter = function() { if (arguments.length == 0) return ; var args = arguments || {}; // Global arguments var controlType = args.controlType; ...
10 תגובות

How to set absolutePath using CSS expression for AlphaImageLoader (IE) *.png files

יום שני, פברואר 25, 2008

TIP: "Set absolutePath using CSS expression for AlphaImageLoader (IE) *.png files".So what you can do to write absolute path in CSS files not like "HARD CODE" Here attached below examples CSS syntax. Before: _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/ machine/app_resources/ui/images/wrapper.png',sizingMethod='image'); After: _filter: expression("progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ absolutePath +"wrapper.png', sizingMethod='image')"); DESCRIPTION: The absolutePath - is javascript variable get this value "/machine/app_resources/ui/images/" and declared between HTML <head></head> block of page.NOTE: JavaScript variable must to be declared before including CSS files see the next example. <head>     <title>...</title>        <script type="text/javascript">        var absolutePath = "/machine/app_resources/ui/images/";        </script>        <link href="<%=ResolveUrl("~/") %> Read more about CSS Expression
תגיות: , ,
אין תגובות

JavaScript String.format & StringBuilder

יום שני, פברואר 18, 2008

// String.Format String.format = function() { var s = arguments; for (var i = 0;i<arguments.length-1;i++){ var reg = new RegExp("\\{"+i+"\\}","gm"); s = s.replace(reg,arguments); } return s; } String.prototype.format = function() { ...
תגיות: ,
תגובה אחת