Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11

    Default Re: need help html calculator....


    Quote Originally Posted by prokops View Post
    TS: Kay naka include naman nang jquery dha why not use it nalang sakto si salbahis sabta kung unsay gamit sa jquery mo lessen pa na imong javascript code ug masabtan nimo ang jquery

    @salbahis: sakto imo sulti but yaw kasab.e ang TS ky dili na motuo nmo ug kasab.an nimo taronga lang pd ug pagsabot
    Dli mn toh si salbahis. Hehe.

    Ang point mn gd sa ako comment is if in-ana rka mangita ug solution sa imo problema. Maayo pag ayaw nlng pag programmer. Kay gawas sa dli ka malingaw, mka hasol pajd kag lain. And although, dli jd toh ingon na kasaba ako-a. Angay sad jd na sila sulti-an ghapon.

  2. #12

    Default Re: need help html calculator....

    Quote Originally Posted by kamahak View Post
    Dli mn toh si salbahis. Hehe.

    Ang point mn gd sa ako comment is if in-ana rka mangita ug solution sa imo problema. Maayo pag ayaw nlng pag programmer. Kay gawas sa dli ka malingaw, mka hasol pajd kag lain. And although, dli jd toh ingon na kasaba ako-a. Angay sad jd na sila sulti-an ghapon.
    sakto pud ka sir.. mao bitaw nangutana ko diri kay galisod kog pangita og solution nya ganahan sad ko makat-on..pero wa mn ko mamugos naa rana nmo kung motabang ka o sa dili ok raman nako... pasensya na kaayo kung nahasol ka...

    @prokops
    ang kanang jquery sir kay ad2 ra nako magamit sa android nga emulator.. ako na gisuwayan og gamit para makahibaw ko kung unsa ang resulta and kana pod diay nga jquery para ra sa iyang interface...pero ako nalang gi comment kay ang emulator sa ako pc hinay kaayo mo load mag pa abot pa kog 20-30mins para mahuman og load nya lag pod siya... mao ga html lang sa ako..

  3. #13

    Default Re: need help html calculator....

    Quote Originally Posted by kamahak View Post
    Dli mn toh si salbahis. Hehe.
    aw kamahak diay...

    Quote Originally Posted by kamahak View Post
    Ang point mn gd sa ako comment is if in-ana rka mangita ug solution sa imo problema. Maayo pag ayaw nlng pag programmer.
    Nagpatabang gani si TS para matudloan sya sa saktong pamaagi ingnon naman nuon nga dili mag programmer.

    Quote Originally Posted by kamahak View Post
    Kay gawas sa dli ka malingaw, mka hasol pajd kag lain.
    Lisora cguro nimo kung ikaw maoy ikauban noh hehe
    Last edited by prokops; 07-18-2012 at 02:11 PM.

  4. #14

    Default Re: need help html calculator....

    Usa ra akong ma sulti! If dili nimo makuha ang sakto nga output gamit ang imong kaugalingong codes! why not comparing it to others... Go to google and search for basic calculator codes on the web. Compare the functions and character , in that way... maka pin point jud kas imong na miss sa imong code. Diba?

  5. #15

    Default Re: need help html calculator....

    Quote Originally Posted by prokops View Post
    Nagpatabang gani si TS para matudloan sya sa saktong pamaagi ingnon naman nuon nga dili mag programmer.
    Mao na siyay problema dri. If imo pa toh gibasa ako post ug tarong. Makakita unta ka na ang ako issue is the way niya gi handle ang problema. Dli ang fact nga nangutana sya. Kung dli ang iyaha pangutana mismo. Mu post kag code, then mangayo kag tabang. Walay info on unsa imo na suwayan, unsa ang imo wala ma sabtan except ngano dli mugana imo code.

    If dli ka malingaw ug problem solving, if ang imo response to logical error sa imo code kay ask someone to fix it for you then there is no reason nga mag programmer ka. Kay 1. dli ka malingaw and 2. makahasol rka. Mao rana ako point. If that discourages him, then good. Kay if ma discourage kag in-ana ka mabaw na sturya wala ghapon kay ma abtan. If that encourages to do better, then good, kay then we'll have more competent cebuano programmers. Either way, I'd have done my job.

  6. #16

    Default Re: need help html calculator....

    Quote Originally Posted by wongfeihong View Post
    good day mga master...practice2 ko ... og himo og calculator sa htmlgalibog ko kung unsaon ni nga problem...if mag add kog numbers for ex. 2+4=6 nya ang 6 kay plusan nakog 2 (6+2 = then mo click ko sa '=' nga button ang display niya sa textbox as answer 10 niya og mo click pa gyud ko sa '=' nga button mahimo na siyang 12click nasad mahimo siyang 14 and so on....mao diay ni ako code mga master.. salamat


    HTML
    Code:
    <html>
    <title>Calculator</title>
    <head>
        <script type="text/javascript" charset="utf-8" src="js/cordova-1.9.0.js"></script>
        <style = "text/css">
            input.btn{
                width:68px;
                height:50px;
            }
            .txt{
                width:280;
                height:50;
                font-size:30;
            }
            font{
                font-size:40px;
                font-weight:bold;
            }
        </style>
        <!--<link rel="stylesheet" href="jquery/jquery.mobile-1.1.0.min.css" />
        <link rel="stylesheet" href="jquery/jquery.mobile-1.1.0.css" />
        <script src="jquery/jquery-1.1.0.min.js"></script>
        <script src="jquery/jquery-1.7.1.min.js"></script>-->
    </head>
    <body>
    <!--calculator-->
    <form name="calculator" action="">
    <table border=1 align="center" bgcolor="black">
    <tr>
    <td>
        <table border=1 align="center">
            <tr>
                <td>
                    <input type="text" id="box1" class="txt" size=20>
                </td>
            </tr>
        </table>
        
        <table align="center">
            <tr>
                <td>
                    <input type="button" name="clear" style="width:140px;height:50px;" class="btn" value=" C " onclick="Clear()">
                </td>
                <td>
                    <input type="button" name="delete" style="width:140px;height:50px;" class="btn" value=" Delete " onclick="Delete()">
                </td>
            </tr>
        </table>
        
        <table align="center">
            <tr>
                <td>
                    <input type="Button" data-role="button" name="seven" class="btn" value=" 7 " onclick="NumPressed(7)">
                </td>
                <td>
                    <input type="button" name="eight" class="btn" value=" 8 " onclick="NumPressed(8)">
                </td>
                <td>
                    <input type="button" name="nine" class="btn" value=" 9 " onclick="NumPressed(9)">
                </td>
                 <td>
                    <input type="button" name="divide" class="btn" value=" / " onclick="Operation('/')">
                </td>
            </tr>
            
            <tr>
                <td>
                    <input type="button" name="four" class="btn" value=" 4 " onclick="NumPressed(4)">
                </td>
                <td>
                    <input type="button" name="five" class="btn" value=" 5 " onclick="NumPressed(5)">
                </td>
                <td>
                    <input type="button" name="six" class="btn" value=" 6 " onclick="NumPressed(6)">
                </td>
                 <td>
                    <input type="button" name="multiply" class="btn" value=" * " onclick="Operation('*')">
                </td>
            </tr>   
            
             <tr>
                <td>
                    <input type="button" name="one" class="btn" value=" 1 " onclick="NumPressed(1)">
                </td>
                <td>
                    <input type="button" name="two" class="btn" value=" 2 " onclick="NumPressed(2)">
                </td>
                <td>
                    <input type="button" name="three" class="btn" value=" 3 " onclick="NumPressed(3)">
                </td>
                 <td>
                    <input type="button" name="subtract" class="btn" value=" - " onclick="Operation('-')">
                </td>
            </tr>
             <tr>
                <td>
                    <input type="button" name="zero" class="btn" value=" 0 " onclick="NumPressed(0)">
                </td>
                <td>
                    <input type="button" name="decimal" class="btn" value=" . " onclick="Decimal()">
                </td>
                <td>
                    <input type="button" name="equals" class="btn" value=" = " onclick="Operation('=')">
                <td>
                    <input type="button" name="add" class="btn" value=" + " onclick="Operation('+')">
                </td>
                </td>
            </tr>   
        </table>
    </td>
    </tr>
    </table>
    </form>
    <script type="text/javascript" src="js/operations.js">
        </script>
    </body>    
    </html>
    Javascript
    Code:
    
    	
    	var Calculator1 = document.calculator;
    	var Total = 0;
    	var FlagNewNum = false;
    	var PendingOperation = "";
    	
    	function NumPressed(Num) {
    		if (FlagNewNum) {
    			Calculator1.box1.value = Num;
    			FlagNewNum = false;
    		}
    	else {
    		if (Calculator1.box1.value == "0")
    			Calculator1.box1.value = Num;
    		else
    			Calculator1.box1.value += Num;
    		}
    	}
       
       function Operation(Op){
    		var newbox1 = Calculator1.box1.value;
    		FlagNewNum = true;
    		
    			if ( '+' == PendingOperation )
    				Total += parseFloat(newbox1);
    			else if ( '-' == PendingOperation )
    				Total -= parseFloat(newbox1);
    			else if ( '/' == PendingOperation )
    				Total /= parseFloat(newbox1);
    			else if ( '*' == PendingOperation )
    				Total *= parseFloat(newbox1);
    			else
    			{
    				Total = parseFloat(newbox1);
    				Calculator1.box1.value = Total
    			}
    				Calculator1.box1.value = Total;
    				PendingOperation = Op;	
    	}
    	
    	function Decimal () {
    			var curbox1 = Calculator1.box1.value;
    			if (FlagNewNum) {
    			curbox1 = "0.";
    			FlagNewNum = false;
    		}
    		else
    		{
    			if (curbox1.indexOf(".") == -1)
    			curbox1 += ".";
    		}
    			Calculator1.box1.value = curbox1;
    	}
    	
    	function Clear(){
    		Total = 0;
    		PendingOperation = 0;
    		Calculator1.box1.value = '';
    	}
    	
    	function Delete(){
    		Calculator1.box1.value = Calculator1.box1.value.substring(0,Calculator1.box1.value.length-1);
    	}

    Unsa d i problema anang imong code bro? lisud man pag trace kay dghan mangd missing sa imong js.

  7. #17

    Default Re: need help html calculator....

    Quote Originally Posted by kamahak View Post
    Mao na siyay problema dri. If imo pa toh gibasa ako post ug tarong. Makakita unta ka na ang ako issue is the way niya gi handle ang problema. Dli ang fact nga nangutana sya. Kung dli ang iyaha pangutana mismo. Mu post kag code, then mangayo kag tabang. Walay info on unsa imo na suwayan, unsa ang imo wala ma sabtan except ngano dli mugana imo code.

    If dli ka malingaw ug problem solving, if ang imo response to logical error sa imo code kay ask someone to fix it for you then there is no reason nga mag programmer ka. Kay 1. dli ka malingaw and 2. makahasol rka. Mao rana ako point. If that discourages him, then good. Kay if ma discourage kag in-ana ka mabaw na sturya wala ghapon kay ma abtan. If that encourages to do better, then good, kay then we'll have more competent cebuano programmers. Either way, I'd have done my job.
    Sometimes bai maka encounter manjd ka ug ingon ani nga taw makasulay ka ana kung naa kay product gibaligya nya mangayo ug support bsag sayon ragd kaayo pra nato but para nila dili kakuha sabta nalang gud if dika willing mo tabang yaw nalang ug reply sa thread

  8. #18

    Default Re: need help html calculator....

    wa ta ko nakalog in samtang nagbasa2 ko ani pero nindot jud kaayo icomment! haha

    ang ako lang kay naa juy point silang master kamahak ug master prokops. agree kaayo ko, gnahan ko sa style nga "research on your own" nga pagtudlo pero mas maayo sad nga may hatag hint gamay nya medyo encouraging pud pagkadeliver ba. hehe

    @TS - mas maayo kung ikaw jud musolve ani TS, d man sa ingon nga d mi nahan mutabang, pero sa pag dili namo pagtabang, mas "natabangan" ka namo in the long run. Bahala nag muspend kag inoras trying to solve these easy problems bsta nakat-on ka, way blema na.

    advice lng nako TS, samtang nagkat-on pa ka, kung wa pa ka kaila ni "F12 sa browser" ila ilaha na siya. Promise, dako kaayong tabang jud. nagmahay ko nga mga 4th year (college) na ko nakaila ani nila.
    si "F12 sa browser" kay nana ni siya daan sa chrome ug IE(kung mapugsan ka), pero kung Mozilla Firefox imo gamit, although naa siya daan, pero installi "FireBug" nga plugin.

    Constructive criticism lang ta ninyong tnan!.

  9.    Advertisement

Page 2 of 2 FirstFirst 12

Similar Threads

 
  1. I need help from HTML tags
    By mr_kyme in forum Websites & Multimedia
    Replies: 6
    Last Post: 12-19-2007, 09:15 PM
  2. Need HELP with aikelyu.html and others!!
    By Maverick007 in forum Software & Games (Old)
    Replies: 9
    Last Post: 10-01-2007, 11:55 PM
  3. MOVED: Need HELP with aikelyu.html and others!!
    By diem in forum Computer Hardware
    Replies: 0
    Last Post: 09-18-2007, 06:21 AM
  4. needs help on HTML
    By tagaisla in forum Websites & Multimedia
    Replies: 11
    Last Post: 11-16-2005, 03:32 AM
  5. MOVED: needs help on HTML
    By vern in forum Networking & Internet
    Replies: 0
    Last Post: 11-14-2005, 04:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top