Wednesday 9 January 2013

Flash object reloads when css properties changes

Hello every one,


Whenever you work with flash embed element in html page design. I observed two thing
1) whenever you move or re-position flash embed element with css & javascript flash embed object reloads in web-kit browsers like (chrome,safari,maxthon).

2) whenever you hide flash containing div flash object get reloaded when you show the hidden div. It happens in web-kit browsers like (chrome,safari,maxthon).

Tuesday 8 January 2013

HTML absolute and relative positioning

Hi all,
Today i want to share some tips when developing css for web page "All ways enclose absolute positioned elements in relative or absolute one" other wise absolute positioned elements will align according to screen window, if you want to position your element according to screen window ten do not wrap in any relative or absolute one.

Example 1:-
Parent div
child div positioned to parent window

<html>
 <body>
   <div class="parent" style="border: 1px solid; padding: 5px; position: relative;height:40px;">
      Parent div
      <div class="child1" style="left: 10; padding: 5px; position: absolute; top: 20px;border:1px solid;">
      child div
      </div>
   </div>
 </body>
</html>


Example 2:-
Parent div
child div positioned to screen window
<html>

 <body>
   <div class="parent" style="border: 1px solid; padding: 5px;height:40px;">
      Parent div
      <div class="child1" style="left: 10; padding: 5px; position: absolute; top: 20px;border:1px solid;">
      child div
      </div>
   </div>
 </body>
</html>

Sunday 18 November 2012

iPhone simulator for windows

Hello every one,


To day i will share you how to install iPhone simulator on windows  in two steps.


This is for web site developers who want to test web sites and  make phone calls from laptop using iPhone simulator on windows.
 
Step1: Download and install Adobe air from http://get.adobe.com/air/ 

Step2: Download and install AIR Phone from http://www.merhl.com/?page_id=3

That's it, You installed iPhone on your windows.

Note:- Actually this is not original iPhone simulator developed by Apple but this was developed with the help of  Adobe air application. Original iPhone simulator runs in only intel OS X machine.
This is like an iPhone simulator with few functionalities, But the thing is working functionalities are accurate according to my knowledge i.e
1. Browser is stand alone (safari).
2. Phone call app is also stand alone.

Thank you.

Wednesday 10 October 2012

Handling flash player on multiple divisions

Hello all,

If you got a situation to handling flash player on multiple div on same page, Then i have a better idea to handle the situation.
i.e.
Don't hide the div's containing player. if you hide the div except in fire-fox, all other browser's removes the player from the page and whenever you shows div player is again downloaded from the server.
Instead of hiding div move div to off screen.        

Handling json data on ajax

Hi all,

Whenever you send json data on ajax you should use encodeURIComponent() method to encode json data other wise special chars in json data like '&,?' may disturbs the url data posting to the server.
i.e
$.ajax({

url: 'ajax/test-page.php',
data: 'usr_data='+encodeURIComponent(frmdata)

});