Posts

Showing posts from May, 2012

Download Visual Studio 2012 RC

Image
Visual Studio 2012 RC is made available along with .NET framework 4.5 RC and are available for download now. Microsoft released both products in parallel to Windows 8 Release Preview and Windows Server 2012 RC. Visual Studio 2012 is fully Metro now and so after the Visual Studio 11 beta release this is major release.
Changes so far made after the beta release can be seen from its UI easily and Microsoft also changed the naming of so called Visual Studio 11 to Visual Studio 2012. Even logo of Visual Studio 2012 is changed and made as per Metro design principles. Have a look of the logo: More Story

Using JavaScript to Control the Playback of Audio Tag in HTML5

Image
Download
In this post you will learn how to control the audio playback of <audio> tag in HTML5 by using JavaScript logics.
HTML5 defines a new element which specifies a standard way to embed an audio file on a web page using the <audio> element.
To play an audio file in HTML5, this is all you need:
<audiocontrols="controls"> <sourcesrc="http://domain.com/inanhq.mp3"type="audio/mp3"/> <sourcesrc=" http://domain.com/inanhq.mp3"type="audio/mpeg"/>           Your browser does not support the audio tag. </audio>
Above <audio> element adds audio controls like play, pause and volume automatically on the web page. Here is the output.

We can use text content between the <audio> and </audio> tags for browsers that do not support the <audio> element.
The <audio> element allows multiple <source> elements. <source> elements can link to different audio files. The browser will use the…

Attribute Starts with Selector in jQuery

Image
In this quick post you will learn how to find elements in the DOM that have the specified attribute with a value beginning exactly with a given string.


Actually, this problem was asked by my one of the friend Md Ibrahim Rashid, who is from Kolkata at Kolkata Geeks Developer Conference 2012.

Let’s look at the HTML Markup and a problem:-
<div> <aid="abc"href="#">Link 1</a><br/> <aid="bdc"href="#">Link 2</a><br/> <aid="acd"href="#">Link 3</a><br/> <aid="cca"href="#">Link 4</a><br/> <aid="adc"href="#">Link 5</a><br/> </div>
In the above markups, I have 5 links with id attribute. If you look at id attribute’s value, you will find 3 id’s value starts with char ‘a’.

Now the question is how to apply the style to the links which has id attribute starts with character ‘a’?

image from zazzle.co.uk

Look at the…

AssociatedControlID Property in ASP.NET

Image
I can see many websites today having no such feature like when user clicks on label control textbox gets focus. As you can see in animated image given below, in first login set when I clicked on label control text box not getting focus and the same in another login set textbox gets focus and we can start typing.



Reason: Such websites not using AssociatedControlID property.
Use of AssociatedControlID property
We use AssociatedControlID property to associate a Label control with another server control on a Web form. When a Label control is associated with another server control, its attributes can be used to extend the functionality of the associated control. You can use the Label control as a caption for another control, or you can set the tab index or hot key for an associated control. When the AssociatedControlID property is set, the Label control renders as an HTML label element, with the for attribute set to the ID property of the associated control. You can set other attributes of the…

Introduction to Visual Basics 6

Visual Basic(VB) is thethird-generationevent-driven programming languageandintegrated development environment(IDE) fromMicrosoftfor itsCOMprogramming model. Visual Basic is relatively easy to learn and use.
Visual Basic was derived fromBASICand enables therapid application development (RAD) ofgraphical user interface (GUI)applications, access todatabasesusingData Access Objects,Remote Data Objects, orActiveX Data Objects, and creation ofActiveXcontrols and objects.Scripting languagessuch asVBAandVBScriptare syntactically similar to Visual Basic, but perform differently. A programmer can put together an application using thecomponentsprovided with Visual Basic itself. Programs written in Visual Basic can also use theWindows API, but doing so requires external function declarations. The final release was version 6 in 1998. Microsoft's extended support ended in March 2008 and the designated successor wasVisual Basic .NET(now known simply as Visual Basic). Like theBASICprogramming languag…

Popular posts from this blog