Saturday, September 26, 2009

Not so plane simple visit to home

Hi All,
this happened on 4th of september 2009. I was about to go home for that i had to catch a flight around 5:40 PM. I was about to leave office around 4:30 but some how it got delayed as usual nothing goes according to the plan. After so much efforts i left around 4:50 PM from office. I was unable to get auto then for airport. airport is only 15-20 minutes away from my office. around 5:10 PM i got the auto and due to the indian traffic i reached the airport on exact 5:35 PM. now i have to get on the flight within 5 minutes which is not possible at all. But like always i had to give a chance to my luck and i entered to the airport with no hope and there u go. Flight is delayed by 1 hour. there was an accident on airport one plane cought into fire. i collected my boarding pass and rushed to security check and holla.... how can everything go smooth. My handbag is not cleared from security. Police asked me to come to X-Ray machine for cross check the doubtful item. He asked me to drag that item. I tried to find out the object removed all clothes and given back back for security check. Again i got the same item in bag now three police fellows gathered around me and people near me was trying to get a good view of possible criminal. Now this time i removed my all of the credit cards from the bag and all chargers and other wires from bag once again doubtful object still there in bag. By looking to those credit cards [10 cards] security fellows asked why u have these many cards again raising question for me being a threat. Now this time i have to squeeze my bag with my hands to figure out what there in my bag. Wow i got my lost iphone dock in my bag yes this is the object which our police was thinking to be a suspicious object.

Now i was free to go and other people who were watching this with full hope of watching a criminal has a strange expression on there face. Like they have lost something. like this have missed a chance.
After this my trip to home was quiet silent and nothing much happened till i decided to visit ram in chandigarh. I hired a cab and started my journey to chandigarh on saturday evening around 4'O clock. I asked my cab driver to stop the cab on any ATM so i can withdraw the money as i was having only 40/- Rs in my pocket. But this cabbie was in high spirit and started driving the car in high speed so we passed by nearly 3-4 ATMs. Later on i asked him to stop and come back for one punjab national bank ATM. Lucky me this ATM is out of order. Once again we start with nearly no money and we got one toll gate. He asked for 20/- Rs which i gave him and we proceed during this time my cabbie told that there is one more toll so we should have money. I asked how much he has. And here it is we have only 60/- Rs now as he has only 40/- with him. Now till the next toll we didn't got any ATM reason is again the speed of cab. On next toll we asked the toll collector that we have only 60/- with us and toll is 75/- Rs. He was surprized that how come a person in car can asked like this to lay off the toll. He was staring at us like we are some person from belonging to any other planet. anyway some how he got ready to manage only with 60/- Rs. Now we were happy that we can get money in chandigarh as there is no more tolls. But how can everything go smooth with me. From nowhere we got another toll [My cab driver doesn't had the latest info about tolls]. Now we have to pay 25/- Rs of toll and we have no money with us. This time we have to tell the toll collector we have no money with us and if he can swipe the credit card we can pay the toll. Again we got the same look which means which kind of fellows u r who don't have any money but travelling in car. After few minutes he let us go with promise of paying the toll while coming back. So overall this trip to home is somehow giving me totally diff exp. which i had never expacted.

Ok while concluding i would like to inform on delhi airport also security had to stop me for the same object and i have to tell them this is not something dangerous thing it's only iphone dock. After making an entry in the security log they let me walk for writing this blog.

Monday, September 7, 2009

Mom Says....

Lajj marenda andar wadeya.. Moorakh kayee mere kol darya..
Means If you are avoiding any situation a fool can say you are afraid of me.

booee te aayi jann te vinno kudi de kann..
Means Avoiding the tasks till the moment it's really not required and one has to do that in hurry

Tuesday, September 1, 2009

JS Menu Over Drop down

hi all,
this time i am back with a technical blog. I have been working with one javascript menu. Everything was going fine till we have seen a notorious issue at our screen. This was about java script menu was going below select/dropdown control. As shown in image.








I found this is happening because select control is a windowed control and it has higher z-index over simple div which were used for creating the popmenu. Later i found a simple solution to overcome this issue. Similar to select control there is another control which has a high z-index but unlike this control respect the normal html control's z-index. Hence this control allow other html control's like div to come over itself. And this special control is IFRAME. One can see once i have used that control i can have menu over the drop down.








following is the code i have used to remove the ie bug [Note : This bug is removed in IE8]
function showPopUpMenu(elemID)
{
var divPopup;
if(document.all) { divPopup = document.all(elmID); }
else if(document.getElementById) { divPopup = document.getElementById(elmID); }
var iFrame = document.createElement("IFRAME");
iFrame.setAttribute("src", ""); //Match IFrame position with divPopup iFrame.style.position="absolute"; iFrame.style.left =divPopup.offsetLeft + 'px'; iFrame.style.top =divPopup.offsetTop + 'px'; iFrame.style.width =divPopup.offsetWidth + 'px'; iFrame.style.height =divPopup.offsetHeight + 'px';
document.body.appendChild(iFrame);
divPopup.style.visibility="visible"; g_PopupIFrame = iFrame;
}
function hidePopUpMenu(elmID,mmObj)
{
var ID = .. code to get div id;
if(document.all)
document.all(ID).style.visibility="hidden";
else if(document.getElementById)
document.getElementById(ID).style.visibility="hidden";
document.body.removeChild(g_PopupIFrame); g_PopupIFrame=null;
}
Virat....