Showing posts with label AJAX. Show all posts
Showing posts with label AJAX. Show all posts

Tuesday, March 13, 2012

Is really visible JQuery Selector

Sometimes you will face a challange with jQuery Selectors that a DOM element is really visible or not.
Lets take following example

A Parent div is hidden and there is a txtname inside it which is not visible to the viewer as its parent div is not visible and based on this you need to take a action
so now you can use this extender selector to find out this is really visible or not




$.extend(
$.expr[":"],
{
reallyhidden: function (a) {
var obj = $(a);
while ((obj.css(“visibility”) == “inherit” && obj.css(“display”) != “none”) && obj.parent()) {
obj = obj.parent();
}
return (obj.css(“visibility”) == “hidden” || obj.css(‘display’) == ‘none’);
}
}
);
$(document).ready(function()
{
if($(‘#something’).is(‘:reallyhidden’)){

alert(‘yes’);
$(‘#something’).parent().show();
}
else{
alert(‘no’);
}
});

Friday, July 15, 2011

AspNet 4.0 Samples Released

I have released a new project on codeplex which shows many example of ASP.NET 4.0 Features
All Examples have code snippets and you can download and immediately get started.

Just download from

http://aspnet40samples.codeplex.com/

And Enjoy learning the best of ASP.net Webform Features

Chart Controls
Meta Data (SEO)
Permant Redirect
URL Routing With Coding
URL Routing With Declaring
URL Routing Outbound
Auto start
Clean Web.Config files
Predictable ClientIDS
Selective ViewState
Htm The HtmlEncoder Utility Medthod
New Rendering Option for Check Box and Radio Button Lists
Persistent GridView Row Selection
Table Free Templated Controls
Easy State Compression
Tableless Menu Control
Imperative JavaScript Syntax
The ScriptLoader
jQuery Syntax for Microsoft Ajax
AJAX Data Templates
Hidden Field Divs
Disabled Control Styling
Managing ViewState with ViewStateMode

Thursday, July 30, 2009

Chat Application Based On SQLITE

Wanted to have my small AJAX based application which can be deployed
anywhere so created that in application in asp.net Microsoft AJAX +
Session And Application objects

Worked fine but then i though it
will add additional load on the server as it uses the Application
object Also i was using the Asp.Net AJAX Update Panel for the same
which was not a good idea at all for a slick AJAX application

So.........
did some re-thinking of on this application and changed the way to
store the chat i used the sqLite DB for storing the chat log and to
slick down the AJAX call i used AJAX.Net pro i have not provided the
links cause i want you guys to google it a bit

This chat application Includes a Captcha Control Also to avoid machine attacks

The Demo you can see on
www.saket.somee.com

And Download the same from
www.saket.somee.com/ChatClient.zip

Final List of tools used to create this chat application

Asp.net 2.0
Ajax.net Pro
Jquery
Jquery ScrollTo PlugIn
Sqlite db
Firefox Sqlite Manager Add on
Sqlite DB provider

Tuesday, July 28, 2009

Great Javascript IDE Aptana

Hi folks

I Would love to share this info on a great IDE which is eclipse based

http://www.aptana.com/

Download it and use it for many purpose

the coolest feature which i like that it tells me that this javascript will work on IE or FF It include many popular js libs like JQuery

you can also use it for
PHP
Ruby On rails
Python
Adobe Air
And IPhone Development


Regards
Darshan Marathe