Click here to Skip to main content
14,425,214 members
Rate this:
Please Sign up or sign in to vote.
Well I am developing a lookup using window.open object for the web apps which runs on the webkit browser of android tablet.Now the problem is the object is not displaying to its given height & width on the tablet while it is displaying good on the windows desktop.Following is my code.

function ADShowLookup(Title,For,Obj,ObjDesc,Text,WeDate, Focus,FunName,Height,Width,UserGroup)
    {
        URL = "Height="+Height+"&hObject=" + Obj + "&hObjDesc=" + ObjDesc + "&hFor=" + For + "&Text=" + Text;
        if(Focus != undefined)   URL += "&nextfocus=" + Focus ;
        if(FunName != undefined)   URL += "&hFunName="  + FunName ;        
        if(UserGroup != undefined)   URL += "&hUserGroup="  + UserGroup ; 
        if(WeDate != undefined)   URL += "&WeDate=`dtWeDate`" ;
        doOpenWin('calltc2?title=' + Title + '&report=showLookup¶ms=' + escape(URL),Height,Width);
    }

    function doOpenWin(URL, Height, Width)
    {
        Att = "dialogWidth:" + Width + "px; dialogHeight:" + Height + "px; status:no; center:yes;scroll:no";
        //showModalDialog(URL,window,Att);
        var hwin;
        hwin = window.open(URL,'win1','toolbar=no,statusbar=yes,width=400,height=600');
        hwin.moveTo(300, 400);
    }


<img src="/michel/lookup.gif"  önclick=" ADShowLookup('CC Search','cc16','CcCode','CcDesc','`cJobNo`','County','',600,300)" style="cursor:pointer">


So can anyone help me in this?

Your help will surely appreciated.

Thanks in Advance!!!!!

Regards,

Arvind
Posted
Updated 19-Aug-11 4:08am
v2

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Where did you get your dialogWidth, dialogHeight? Must be width, height. Find correct samples here: http://www.javascript-coder.com/window-popup/javascript-window-open.phtml[^].

There are million of documents describing such Javascript function, why not looking at them? As you asked this question, you have Internet access.

—SA
   
Comments
123arvind123 22-Aug-11 1:42am
   
well thanks SAKrykove for reply...I am doing this task on the android tablet.I know what is window.open it properties and parameters.On the desktop its working good but not working on the android tab.It just pop up on the whole screen which is my problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100