Page 6 of 6 FirstFirst ... 3456
Results 51 to 60 of 60

Thread: javascript

  1. #51

    nope! a wise man will ask and learn. so what have you learned so far?

  2. #52
    Wise man knows how to copy and paste?? lols....

  3. #53
    Quote Originally Posted by romano2717 View Post
    nope! a wise man will ask and learn. so what have you learned so far?
    so,don't tell me,you didn't ask something from the expert.mao di your sending a wrong code.

  4. #54
    Quote Originally Posted by istoryansucks View Post
    so,don't tell me,you didn't ask something from the expert.mao di your sending a wrong code.
    first of all I did not post any code, I just gave you a hint on using getElementById and its not even a code.
    If I remember correctly, I have ask experts a hundred times for a solution to my problem but I never asked for
    the actual code. I am solving it myself with reference to "the experts advice"

    Ikaw gi tagaan nkag code ni mark mo reklamo ka na firstname ray mo gana, e debug gd na di kay mg huwat ka
    nga e debug na sa ng hatag nmo ana. pastilan!

  5. #55
    Quote Originally Posted by romano2717 View Post
    Ikaw gi tagaan nkag code ni mark mo reklamo ka na firstname ray mo gana, e debug gd na di kay mg huwat ka
    nga e debug na sa ng hatag nmo ana. pastilan!
    Explanation: (Ngano firstname ra ang mo gana...) lols

    - kay paggamit nimo sa document.write() function gi clear niya ang document, mao sa next time gamit nimo sa document.write() wla na nakita ang element nga imo dapat ipa display.

    - so sa first document.write() nagtawag ka sa firtname na element, so ok ra kay wla pa man na clear out ang document, then second time wala na nakita ang element na dapat ipa display kay gi clear out na sa first document.write()...

    - bisaya na ha... reply lang if wla kasabot... lolss.....

  6. #56
    Jquery sample

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Advance Javascript Using JQuery</title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
    <style type="text/css">
        body, input, select{
            font:11px tahoma, Verdana, Arial, "Times New Roman";
        }
        
        p label{
            width:200px;
            float:left;
        }
        
        #result, #form{
            float:left;
            margin-right:20px;
        }
    </style>
    
    </head>
    
    <body>
        <div id="form">
            <p id="id"><label>id</label>                 <input type="text" id="txtid" /> </p>
            <p id="address"><label>Address </label>        <input type="text" id="txtinsaddress" /> </p>
            <p id="contact"><label>Contact</label>        <input type="text" id="txtcontact" /></p>
            <p id="faxno"><label>Fax No</label>         <input type="text" id="txtfaxno" /> </p>
            <p id="mobile"><label>Mobile</label>        <input type="text" id="txtmobile" /> </p>
            <p id="email"><label>Email</label>            <input type="text" id="txtemail" /> </p>
            <p id="age"><label>Age</label>                 <input type="text" id="txtage" /> </p>
            
            <p id="***"><label>***</label>            
                                                        <select id="txtsex"> 
                                                                <option value="male">Male</option>
                                                                <option value="female">Female</option>                        
                                                        </select></p>
    
            <p id="civilstatus"><label>Status</label>       
                                                        <select id="txtstatus">
                                                            <option value="single">single</option>
                                                            <option value="married">married</option>
                                                            <option value="head">head of the family</option>
                                                        </select>
                                                        </p>
            <p id="birthplace"><label>Birth Place</label>    <input type="text" id="txtbirthplace" /></p>
            <p id="birthdate"><label>Birth Date</label>        <input type="text" id="txtbirthdate" /></p>
            <p id="address2"><label>Address</label>             <input type="text" id="txtbusaddress" /></p>
            <p id="contact2"><label>Contact</label>             <input type="text" id="txtbuscontact" /></p>
            <p id="faxno2"><label>Fax no</label>               <input type="text" id="txtbusfaxno" /></p>
            
            <input type="button" id="print" value="Print Info" />
        </div>
        
        <div id="result">
            
        </div>
        
        <script type="text/javascript">
            $("#print").click(function(event){
                /* @result */
                $("#result").html("");
                $("#result").hide();
                
                var selected = new Array("civilstatus", "***");
                 var label = "";
                var id ="";
                var value = "";
                
                $("#form p").each(function(event){
                    id = $(this).attr("id");
                    
                    label = $("#"+id+" label").html();                    
                    if (jQuery.inArray($(this).attr("id"), selected) >= 0)
                        value = $("#"+id+" select").val();    
                    else
                        value = $("#"+id+" input:text").val();    
                    
                    value = (value=="")? "&nbsp;":value;
                    
                    $("#result").html($("#result").html()+"<p><label>"+label+":</label>"+value+"</p>");
                });            
                $("#result").show("slow");
            });
        </script>
    </body>
    </html>

  7. #57
    ok!!!cge go....

  8. #58
    you have to understand taha na im in the process of learning.I'm still a student not an expert mao bitaw ni ask ko help ninyu.hope u understand and it will serve as moral lesson on my part sad as a student.

  9. #59
    @istoryansucks
    keep your own phase of learning. You can just have your own algorithm, manipulate current codes, make better program. Don't let other people force you to learn it. If you discover your own greatest script... I'd be happy to copy/steal it from you. hehehehehe *evil*

  10. #60
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    Whenever two good people argue over principles, they are both right. Ignorance is no excuse-it's the real thing. Once you start asking questions, innocence is gone.

  11.    Advertisement

Page 6 of 6 FirstFirst ... 3456

Similar Threads

 
  1. Javascript : How to POST variable using JS
    By emailroy2002 in forum Programming
    Replies: 5
    Last Post: 03-11-2008, 10:38 AM
  2. javascript?
    By pboy in forum Websites & Multimedia
    Replies: 2
    Last Post: 11-10-2007, 05:04 AM
  3. Replies: 5
    Last Post: 04-22-2007, 11:09 PM
  4. JAVASCRIPT: how to object value from window.open()
    By hybrid_X in forum Programming
    Replies: 0
    Last Post: 04-09-2007, 01:45 PM
  5. wat does javascript:void means?
    By etgo in forum Computer Hardware
    Replies: 3
    Last Post: 09-12-2005, 07:36 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