Category Archives: Technical

Different ways to hide an HTML Element

There are different ways to hide an HTML element from the client, just hiding not removing.

We need to hide p.hide element, so the user can’t see it. Display: Display css property, display is the most important and most … Continue reading

Posted in Technical | Tagged , | Leave a comment

Simplest menu using CSS

Many web designers I met had problems while  creating menus, specially which contains nested sub menus. In some cases it is a real pain, but in most of cases it is simple, and the problem come when the designer start … Continue reading

Posted in Technical | Tagged , | Leave a comment

Avoid sending Ajax request parameters in query string style

While reviewing some code, I found someone calling jQuery Ajax like this: $.ajax({       type: “POST”,       url: “/AddPost”,       data:  “postText=”+ PostText ,       dataType: “json”,       success: function (status) {        }}); //$.ajax({ And as you see in the previous code, it is … Continue reading

Posted in Technical | Tagged , , | Leave a comment

Javascript based Data Grids

  I found in this blog post some good javascript based grids http://www.queness.com/post/7300/7-robust-and-feature-packed-javascript-grid-plugins   Here are their links: 1- http://flexigrid.info/ 2- http://www.webismymind.be/editablegrid/ 3- http://www.trirand.com/blog/ 4- http://tablesorter.com/docs/ 5- http://www.datatables.net/ 6- https://github.com/mleibman/SlickGrid/wiki 7- http://blog.jqueryui.com/2011/02/unleash-the-grid/

Posted in Technical | Comments Off on Javascript based Data Grids

Ajax loading gif images generator

I used to use this web site http://www.ajaxload.info/ to generate ajax loading gif images. Today I found another nice website and it gave me more options to generate custom images: http://preloaders.net   another simple tool: http://fgnass.github.com/spin.js/

Posted in Technical | Comments Off on Ajax loading gif images generator

List of Colors in System.Drawing.Color

Few lines of code to print all System.Drawing.Color colors on a web page. loop on System.Drawing.Color using KnownColor

  Demo

Posted in Technical | Comments Off on List of Colors in System.Drawing.Color

How to hide users files and folders on your website?

Sometimes you want to hide some files or folders on your website, so that no one can access them directly. If you have an upload feature in your website, and your website users upload their files or images to your … Continue reading

Posted in Technical | 2 Comments

Javascript hints and intro to JQuery

High performance websites session1 View more presentations from amr elgarhy.

Posted in Technical | Comments Off on Javascript hints and intro to JQuery

Submit form using javascript

Simply to submit a form using javascript you can write:

In the following code you will see a special case where the form is not appearing directly on the page but through an iFrame element.

  This code … Continue reading

Posted in Technical | 2 Comments

Call container page function from child iframe

The simplest way i got to call a function that exists in the iframe container page is using:

  <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title>title> head> <body>     <form id="form1" runat="server">     <div>         <script language="javascript" type="text/javascript">             function AlertFromParent() … Continue reading

Posted in Technical | Comments Off on Call container page function from child iframe