Geeks With Blogs
Hani Amr Javascript
CSS Hassle for different browsers
Even been into the hassle of an HTML table displaying differently on different browsers ? of course every UI developer have been into it. I've found a very interesting solution to this problem. Suppose that you have a CSS class called "TableLayout" and you want this class to have different attributes according to the client browser. You only need to write it like that in the CSS file: .ie .TableLayout { margin-left: 15px; } .webkit .TableLayout { margin-left: 0px; } This is very simple as it defines ......

Posted On Tuesday, April 24, 2012 11:23 AM

Google Maps in .NET Problem
Hello, I've been struggling with Google maps till I found that someone implemented a wrapper so that you can use Google Map as an ASP.Net user control which is a great effort indeed. You can download it from this link. However, after using it for a while, I've found out that it is storing the Google map object only once in the session and getting it from there whenever needed which was a problem for me that when you update the map in some page, you'll find it updated on another page. So, I've digged ......

Posted On Wednesday, November 9, 2011 6:46 PM

Google map problem in jQuery popup
Hani Amr Normal Hani Amr 1 4 2011-10-12T15:22:00Z 2011-10-12T15:26:00Z 1 91 525 Microsoft Corporation 4 1 615 14.00 Clean Clean false false false false EN-US X-NONE AR-SA /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; ......

Posted On Wednesday, October 12, 2011 5:25 PM

Validate that a Checkbox is checked using javascript
I was facing a challenge yesterday that I was creating a Visual webpart and I wanted to validate the a submit button is only visible if the user checked a "I agree to terms" checkbox. Something was weired that I tested my code on a normal website and it worked perfectly while it had a different behaviour inside the webpart which is whenever I check the checkbox, the button is enabled but it will not fire the validators in client side. It posts back the page and then the validators ......

Posted On Thursday, March 10, 2011 12:05 AM

jQuery .Flv Player
I've recently used a cool .Flv player to play video files that are uploaded by site admin and thought it's good to share. Download from: Using this control is very simple, just follow those steps : 1. Create an anchor with href equals to the video url <a href="Video.flv" id="MyPlayer" ></a> 2. Add path to the player's javascript file <script type="text/javascript" src="flowplayer-3.2.4.min.j... 3. Simple call to a function named flowplayer with ......

Posted On Monday, March 7, 2011 12:11 AM

Copyright © H@Ni | Powered by: