Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

nth92

@nth92
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Question
    N nth92

    i have a questions you can help me ??

    Q1) If you have two definitions for embedded CSS classes; classA , and classB. Write a
    JavaScript statement that will be responsible for changing the DIV tag CSS class shown
    below to classB ?
    <div name=”section1” class=”classA”> …… </div>

    A. section1.style.className="classB"
    B. section1.class="classB"
    C. div.className="classB"
    D. section1.className="classB"

    Q7. Which of the following is the correct JavaScript syntax to assign the file "bird.jpg" to the src property of an Image object called newImage? A. newImage = "bird.jpg"; B. newImage.open("bird.jpg"); C. newImage.src("bird.jpg"); D. newImage.src = "bird.jpg"; Q8.The following code will: var str="welcome in web"; document.writeln(str.link("www.web.com")); A. display on the browser www.web.com as a hyperlink. B. display on the browser welcome in web as a hyper link. C. not display anything on the browser. D. it is an error to write this javascript code.

    Q11. For a webpage containing only one form shown below how can we obtain the value
    entered inside the textbox in JavaScript?

    <form name="sub">
    First Number: <input type = "text" name = "first" size = "5"/> </form>

    A. document.forms[1].first.value
    B. sub.first.value
    C. window.forms[0].first.value
    D. sub.text.first.value

    Q12. If we have the following radio buttons in form named Form1, which line of code
    below could be used to determine if the Female option is checked?

    Male <input type = "radio" name="gender" value="M" checked/>
    Female <input type = "radio" name="gender" value="F"/>

    A. Not checked since the Male option is already checked and cannot be changed.
    B. Form1.gender[1].click();
    C. Form1.gender.checked;
    D. Form1.gender[1].checked;

    Q13. Suppose that a JavaScript function was called upon pressing a form’s Submit
    button. Which one of the following JavaScript code lines could prevent the action
    of sending the form’s data to the server?

    A. window.event.returnValue = false;
    B. window.event.returnValue = true;
    C. confirm( "Are you sure you want to reset?" );
    D. window.event.formValue = false;

    Q19) The output of the following html document is:
    <html><head>&l

    JavaScript help question javascript html css

  • help me please
    N nth92

    Leon Munir ... thanks 4 u

    JavaScript javascript php html database design

  • help me please
    N nth92

    please help me to write ... A) Write the code for the login.html document (Client side) which gives the following interface. When the user clicks on the button you must check if the user enters data or not, if the fields are empty you must present an alert message and do not send the data to the server side. If the user entered login and password, then your program must call the validate.php document. B) Write the code of the server side validate.php page such that. 1) The validate.php checks if the login is valid or not. A valid login must start with a letter and followed by any one or more of the characters:_, 0-9, A-Z, a-z For instance, a1, ab_1, and Z_2d are valid logins while _a1, b*, and c23_@2 are invalid logins. But, there are no restrictions on the password; the user can use any character in the keyboard. (hint. You must use the regular expression in php). 2) The validate.php page reads the login and passwords from a database named"students" to verify whether the student is a valid user. The "students" database contains two tables named "login_pssword" and “marks”. The login_pssword table has three fields “Student_Id”,"login" and"password”. Check if the user name and passwords exist. If it exists print the message "Thank you for logging in". If the password or login is not in the database, display the alert message "wrongpassword and/or login please try again". The “marks” table has five fields: student_Id, course_name, first_mark, second_mark, Final_mark. 3)if a valid user logged in, give him/her two choices: 1. Add a new student 2. Remove a student Design two different forms, one for each choice above to enable the student to perform the choice he/she selected. the header code :-

    <html> <head> <script type = "text/javascript">
    Function validate(){
    Winow.event.returnvalue = false;
    If ((f1.login.value == "") || (f1.password.value ==""))
    alert("you must enter your name and password");
    else
    window.event.returnvalue = true;
    }
    </script> </head> <body>
    <form id ="f1" action = "validate.php" method = "post" onsubmit ="validate()">
    User Name <input type ="text" name = "login"/> <br />
    Password <input type ="password" name ="password"/> <br />
    <in

    JavaScript javascript php html database design
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups