JavaScript Breadcrumbs navigation

23 בינואר 2010

In this code listing I want to demonstrate how to implement "Breadcrumbs" in JavaScript for the pages collection, where page object have a two main key's pageId and parentPageId, and create a new collection sorted by current parents.   Listing 1:  function page(pageId, parentPageId, title) { return this.constructor(pageId, parentPageId, title); }page.prototype = { // properties pageId: null, parentPageId: null, title: "", setPageId: function(pageId) { this.pageId = pageId; ...

"Run as Administrator" – Run an application in Vista with Administrator rights using app.manifest

13 באוקטובר 2008

With the new version of Microsoft's Windows Vista - you and me as a software developer confronted with the problem of "How to run the application with Administrative rights under VISTA - a decision use app.manifest file with follow configurations.Just add new item "Application Manifest File" into your project and replace all to this one. (See below) <?xml version="1.0" encoding="utf-8" ?><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" > <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="someExecName" type="win32" /> <description>Program description</description> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level="requireAdministrator" /> ...
5 תגובות

Windows Hosts File Manager

7 באוקטובר 2008

Hi Guy's I'm wrote some little server component (tool) Windows Hosts File Manager for Web Developers & IT Administrators, QA and others... This application tool for Web Developers & IT Administrators, QA and others who are time to time make some changes in the HOSTS file of the Windows OS.Using this application you might to edit HOSTS file, add & delete some configurations in that file.     Download from MSDN Code Gallery - Windows Hosts File Manager (Setup + Open Source) or from CodePlex.com - Open Source Community * The last release is support...
תגיות: , , , , ,
10 תגובות

Defining your own functions in jQuery

22 בספטמבר 2008

Defining your own functions in jQuery. In this post i want to present how easy define your own functions in jQuery and using them. As you know, jQuery it's a very rich JavaScript library and it's a pity not to use all it resources. Ok. Do you want to create your own jQuery function to work with elements look like this: $(element).yourfunctionname() What is your steps to define it? At first, define "jQuery.fn" and add to this object your function name see below. (jQuery.fn is a prototype of jQuery object) jQuery.fn.yourfunctionname = function() { var o = $(this) // It's your element}; Now you...
תגיות: , , ,
22 תגובות

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 תגובות

Understand prototype in JavaScript (JavaScript prototype)

26 בפברואר 2008

Understand prototype in JavaScript Hi Guy’s Sorry on this syntaxed post, but I think for understand syntax you will read. Follow my comments Hope!!! // Namespace core function core() { return this.constructor('1.0.0.0'); } core.prototype = { // String type version:'', constructor: function(version){ this.version = version; }, remote:{ // Empty }, web:{ ui:{ controls:{ ...
תגיות:
תגובה אחת

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
תגיות: , ,
אין תגובות