Search the Community
Showing results for tags 'parameters'.
-
BACKGROUND: Please find below a portion of a PHP class used to create an RSS feed. Included are only the constructor function and the function used to create the actual document. All other functions have been omitted so as to focus on the question at hand. My reason for posting this code is to better understand the proper way to create a class. As you can readily see from the __construct( ) function of this class each new instance of the class requires six parameter values. Although the author lists these parameters at the beginning of the class definition, he comments them out, rathe
- 12 replies
-
- php
- class structure
-
(and 2 more)
Tagged with:
-
var xmlhttp; var Staff, obj; var url = "staff.json"; function init() { xmlhttp = (window.XMLHttpRequest) ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP") ? new ActiveXObject("Msxml2.XMLHTTP") : null ; xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { Staff = JSON.parse(this.responseText); var table = document.createElement("table"); document.body.appendChild(table); obj = Staff.Staff[0]; for (var y in obj) { var header_row = document.createElement("th"); var column = document.createElement
- 2 replies
-
- function
- parameters
-
(and 1 more)
Tagged with:
-
I was able to complete a live search with a T-SQL database similar to the design found here on W3Schools, though now I am running into some difficulties passing multiple arguments/parameters to the JavaScript search page. Basically, we thought it would be a good idea to let people search by just a first name or last name if they wanted, as well as searching by their affiliation. Here is an excerpt from the form that appears to be giving me the problems: <form><input type="text" name="name" id="nameID" size="40" maxlength="64" onKeyUp="showNames('nameID', 'typeID', 'firstLastID')"
- 3 replies
-
- arguments
- parameters
-
(and 6 more)
Tagged with:
-
hey folks,im totally confused with trying to create a search section on my home page which allows users to narrow their search by using small drop boxes, ie, <select country>, then, <select city> and so on.its a pretty big part of my site so iv been searching for a long while now trying to figure it out.anyone know how to do this?
- 11 replies
-
- 5
-
-
<!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=utf-8" /><title>Untitled Document</title><script>function show(start,end,str){clearTimeout(display);end += 1;document.getElementById("div").innerHTML = str.substring(start,end);if(end < str.length){ var display = setTimeout(show,100); } else { clearTimeout(display); }}window.onload = function(){show(-1,-1,"abcdefghij"