How to order the textboxes in an html document by using HTML tag tabindex
Tech-Today

How to order the textboxes in an html document by using HTML tag tabindex


In Visual Studio TabIndex is a property that is accessible in each control, I thought there was no equivalent in plain html. So what I did was to manually captured the control's (example textbox) onblur event. It was working well until I found a bug, when I have several sets of controls that are toggleable, means some could be hidden. I've encountered a locking event wherein the focus was lost and only F5 (refresh) is the solution.

On further googling, I've found out that tabindex is a property that is existing on > html 4 document. So I tried, fortunately it worked and all my problems were gone.

Sample implementation:

<input type="text" name="c1" tabindex="1" />
<input type="text" name="c2" tabindex="3" />
<input type="text" name="c3" tabindex="5" />
<input type="text" name="c4" tabindex="4" />
<input type="text" name="c5" tabindex="2" />





- Html Scraping With Java
One rainy Sunday afternoon since I can't get out to go somewhere I've decided to create an organized excel file (for now) for the list of birds commonly found in the Philippines. I found a good site to start with, http://www.birding2asia.com/tours/reports/PhilFeb2010_list.html,...

- How To Pass And Post Back User Defined Variables In Paypal Ipn
With paypal api, payment operation such as buy, donate, subscribe has never been easier. For simple cases, you just need to define a button inside paypal and embed it in your website, usually on blog sites that ask for donation. For cases that requires...

- How To Upload A File In An Mvc3 C# Ajax Form
It's easy to upload file in a synchronous form, where you just post the file and read a HttpPostedFile variable in the server side: In plain html form, take note of the form enctype property: //the view (index.cshtml) @using (Html.BeginForm("Upload",...

- Clear The Values Of Html Input Fields No Cache
There are times when you don't want to show the values previously entered and process of a certain html form. For example on a public PC that is used by anybody, if you type in your email address on any email site like gmail, yahoo you will notice...

- Select All Checkbox Or Element In A Form Html
Creating a form dynamically at run time – this also means we should give unique names to each html controls. For example we have a datagrid like object and its first column is checkbox, how should we check all of the rows. Here is my code that iterates...



Tech-Today








.