Home > Cameras & related items > Camera Combo

Camera Combo

July 16th, 2010 admin

Camera Combo

Sending data from Combo box to server asynchronously

In this article, we will learn to send the options selected in the Combo box to the server asynchronously i.e. through AJAX. Through AJAX, we don’t have to select Submit button in the form to get response from the server instead, we get the response asynchronously (immediately) on selecting an option from the combo. For this article, we will make three files by namely: comboajax.php, comboajax.js and showcat.php :

  • comboajax.php – PHP script that will display a combo box
  • comboajax.js – JavaScript file that creates XMLHttpRequest object to send request to the server asynchronously
  • showcat.php – Server side PHP script to display the response

The coding of comboajax.php is as under :

comboajax.php

Above program displays a combo box of name “Category” with three items : Camera, Mobile and Book displayed in it. If any change takes place, that is if any option is selected from this combo box, a method itemdisplay() will be invoked and the selected option is passed to it as argument. Also an element is defined with id : info for displaying the server response

The coding of comboajax.js is as under:

comboajax.js

function makeRequestObject(){

var xmlhttp=false;

try {

xmlhttp = new ActiveXObject(‘Msxml2.XMLHTTP’);

} catch (e) {

try {

xmlhttp = new

ActiveXObject(‘Microsoft.XMLHTTP’);

} catch (E) {

xmlhttp = false;

}

}

if (!xmlhttp && typeof XMLHttpRequest!=’undefined’) {

xmlhttp = new XMLHttpRequest();

}

return xmlhttp;

}

 

function itemdisplay(cat)

{

var xmlhttp=makeRequestObject();

xmlhttp.open(‘GET’, ’showcat.php?&Category;=’+cat, true);

xmlhttp.onreadystatechange=function() {

if (xmlhttp.readyState==4 && xmlhttp.status == 200) {

var content = xmlhttp.responseText;

if( content ){

document.getElementById(‘info’)[removed] = content;

}

}

}

xmlhttp.send(null)

}

 

Above program makes an XMLHttpRequest object and places request to the server (by GET method) for the file showcat.php, sending the category of product selected by the user (from the combo box) to it. This category is retrieved in showcat.php file using $_GET array.

Since an asynchronous request is made to the server, the state of the request and the response to the request is checked. If the value of readyState property becomes 4 (meaning the request is complete) and the value of the status of the HTTP Request is 200 (which means there is no error), the response is then retrieved from the response stream and is assigned to variable : content which is then applied to the innerHTML property (property  used to display results) of the element with id : “info” . It is the same

element with id : “info” we have defined in web page for displaying server response. Hence, the response retrieved from the server is displayed at the place of element : “info”.

Note the response generated by the server is based on the execution of the file : showcat.php. Lets analyze what it returns

showcat.php

echo “Category selected is : ” . $_GET['Category'] ;

?>

Above file returns the text : “Category selected is ” and the category name selected by the user. The category selected by the user is passed while making the XMLHttpRequest for the file showcat.php in the following command :

xmlhttp.open(‘GET’, ’showcat.php?&Category;=’+cat, true);

The output of the program comboajax.php may appear as shown in below given figure.

Combo Box displaying various options

The moment, we select an item from the combo box, the message displaying the selected option appears on the screen as shown in below given figure.

The selected items is displayed on the screen

For more information, refer my book: “Developing Web Applications in PHP and AJAX” available at: http://www.amazon.com/Developing-Web-Applications-PHP-AJAX/dp/0070707103/ref=ntt_at_ep_dpt_4

For more articles, visit my blog, http://www.bmharwani.com/blog

 

 

 

 

 

About the Author

B.M.Harwani is founder and owner of Microchip Computer Education (MCE), based in Ajmer, India that provides computer education in all programming and web developing platforms. He graduated with a BE in computer engineering from the of Pune, and also has a ‘C’ Level (master’s diploma in computer technology) from DOEACC, Government Of India. Being involved in teaching field for over 16 years, he has developed the art of explaining even the most complicated topics in a straight forward and easily understandable fashion. He has written several books on various subjects that includes JSP, JSF, EJB, PHP, .Net,  Joomla, jQuery and Smartphones. To know more, visit his blog, http://bmharwani.com/blog

High-Tech Security Credit Cards! – Anybots, Camera-Projector Combo, Phones That Learn – GeekBeat

eBay Logo  

Epic Action POV Sports Video Camera PRO STEALTH CAM- Waterproof Combo Kit- MINT!


Epic Action POV Sports Video Camera PRO STEALTH CAM- Waterproof Combo Kit- MINT!


$54.99


Vintage Kodak Brownie combination wide angle telephoto finder camera lens


Vintage Kodak Brownie combination wide angle telephoto finder camera lens


$9.99


DIGITAL CAMERA & PHOTO PRINTER COMBO SOLD AS IS   NO RESERVE


DIGITAL CAMERA & PHOTO PRINTER COMBO SOLD AS IS NO RESERVE


$19.99


FUHO DVR-442B/CCTV-IR908-1TB 4CH 1TB HDD DVR/Camera combo kit


FUHO DVR-442B/CCTV-IR908-1TB 4CH 1TB HDD DVR/Camera combo kit


$448.97


FUHO DVR-442B/CCTV-IR919D-1TB 4CH 1TB HDD DVR/Camera combo kit


FUHO DVR-442B/CCTV-IR919D-1TB 4CH 1TB HDD DVR/Camera combo kit


$438.77


FUHO DVR-442B/CCTV-IR908/CCTV-IR919D -1TB 4CH 1TB HDD DVR/Camera combo kit


FUHO DVR-442B/CCTV-IR908/CCTV-IR919D -1TB 4CH 1TB HDD DVR/Camera combo kit


$439.79


FUHO DVR-442B/CCTV-IR908-1TB 4CH 1TB HDD DVR/Camera combo kit


FUHO DVR-442B/CCTV-IR908-1TB 4CH 1TB HDD DVR/Camera combo kit


$448.97


FUHO DVR-442B/CCTV-IR919D-1TB 4CH 1TB HDD DVR/Camera combo kit


FUHO DVR-442B/CCTV-IR919D-1TB 4CH 1TB HDD DVR/Camera combo kit


$438.77


FUHO DVR-442B/CCTV-IR908/CCTV-IR919D -1TB 4CH 1TB HDD DVR/Camera combo kit


FUHO DVR-442B/CCTV-IR908/CCTV-IR919D -1TB 4CH 1TB HDD DVR/Camera combo kit


$439.79


FUHO DVR-442B/CCTV-IR908-1TB 4CH 1TB HDD DVR/Camera combo kit


FUHO DVR-442B/CCTV-IR908-1TB 4CH 1TB HDD DVR/Camera combo kit


$448.97


FUHO DVR-442B/CCTV-IR919D-1TB 4CH 1TB HDD DVR/Camera combo kit


FUHO DVR-442B/CCTV-IR919D-1TB 4CH 1TB HDD DVR/Camera combo kit


$438.77


FUHO DVR-442B/CCTV-IR908/CCTV-IR919D -1TB 4CH 1TB HDD DVR/Camera combo kit


FUHO DVR-442B/CCTV-IR908/CCTV-IR919D -1TB 4CH 1TB HDD DVR/Camera combo kit


$439.79


FUHO DVR-442B/CCTV-IR908-1TB 4CH 1TB HDD DVR/Camera combo kit


FUHO DVR-442B/CCTV-IR908-1TB 4CH 1TB HDD DVR/Camera combo kit


$448.97


FUHO DVR-442B/CCTV-IR919D-1TB 4CH 1TB HDD DVR/Camera combo kit


FUHO DVR-442B/CCTV-IR919D-1TB 4CH 1TB HDD DVR/Camera combo kit


$438.77


FUHO DVR-442B/CCTV-IR908/CCTV-IR919D -1TB 4CH 1TB HDD DVR/Camera combo kit


FUHO DVR-442B/CCTV-IR908/CCTV-IR919D -1TB 4CH 1TB HDD DVR/Camera combo kit


$439.79


07~11 Sierra Silverado Door Chrome 4 Handle +1Tailgate Covers with camera


07~11 Sierra Silverado Door Chrome 4 Handle +1Tailgate Covers with camera


$47.00


07~11 Sierra Silverado Door Chrome 2 Handle +1Tailgate Covers with camera


07~11 Sierra Silverado Door Chrome 2 Handle +1Tailgate Covers with camera


$42.00


3.5 channel i-Combo Camera i Phone Android Helicopter No.S215 with Video Camera


3.5 channel i-Combo Camera i Phone Android Helicopter No.S215 with Video Camera


$29.99


COMBO Kit Camera Connection SD MMC Card Reader + USB AV Cable for iPad 2 2G AC19


COMBO Kit Camera Connection SD MMC Card Reader + USB AV Cable for iPad 2 2G AC19


$27.89


Hot!! HOLGA Black 135BC Film Camera +15B Electronic Color Flash Combo Hotshoe


Hot!! HOLGA Black 135BC Film Camera +15B Electronic Color Flash Combo Hotshoe


$57.45


ALware Advanced 3-axises FB Camera Mount Combo Quad Flyer AL330XA3CM


ALware Advanced 3-axises FB Camera Mount Combo Quad Flyer AL330XA3CM


$130.00


White USB&Camera/SD Connection combo for iPad  2in 1


White USB&Camera/SD Connection combo for iPad 2in 1


$16.95


2 in 1 SD SDHC Card Reader Camera Connection Kit Combo For Apple iPad 1 2 2G New


2 in 1 SD SDHC Card Reader Camera Connection Kit Combo For Apple iPad 1 2 2G New


$4.01


FaceVsion FVexpress Combo Camera HD USB 720p TouchCam


FaceVsion FVexpress Combo Camera HD USB 720p TouchCam


$45.00


Camera Case Kenneth Cole Leather Wallet Combo -


Camera Case Kenneth Cole Leather Wallet Combo -


$7.99


Stylish Cool Camera Lens Silicone Wristband Nikon Canon Zoom 50 85 24-70 70-200


Stylish Cool Camera Lens Silicone Wristband Nikon Canon Zoom 50 85 24-70 70-200


$11.86


Stylish Cool Camera Lens Silicone Wristband Nikon Canon Zoom 50 85 24-70 70-200


Stylish Cool Camera Lens Silicone Wristband Nikon Canon Zoom 50 85 24-70 70-200


$16.60


Stylish Cool Camera Lens Silicone Wristband Nikon Canon Zoom 50 85 24-70 70-200


Stylish Cool Camera Lens Silicone Wristband Nikon Canon Zoom 50 85 24-70 70-200


$22.92


Stylish Cool Camera Lens Silicone Wristband Nikon Canon Zoom 50 85 24-70 70-200


Stylish Cool Camera Lens Silicone Wristband Nikon Canon Zoom 50 85 24-70 70-200


$33.99


Burris Shotcam Camera Laser Light Combo Rail 300225


Burris Shotcam Camera Laser Light Combo Rail 300225


$695.00


Brand New HP Photosmart 7850 Digital Photo Printer & E317 Digital Camera Combo


Brand New HP Photosmart 7850 Digital Photo Printer & E317 Digital Camera Combo


$219.99


Mercedes-Benz : M-Class ML350, Rare color combination.  NAV, Backup Camera, Premium Package, 19


Mercedes-Benz : M-Class ML350, Rare color combination. NAV, Backup Camera, Premium Package, 19″ Wheels


$30,990.00


EPIC ACTION POV ACTION SPORTS VIDEO CAMERA GO PRO STEALTH CAM COMBO NEW


EPIC ACTION POV ACTION SPORTS VIDEO CAMERA GO PRO STEALTH CAM COMBO NEW


$51.00


(2) 125FT PREMADE COMBO CCTV CAMERA DVR SYSTEM


(2) 125FT PREMADE COMBO CCTV CAMERA DVR SYSTEM


$30.59


Canon 5D MK III COMBO Camera + 28-135 IS Lens & 75-300 III Lens + Value Offered


Canon 5D MK III COMBO Camera + 28-135 IS Lens & 75-300 III Lens + Value Offered


$4,235.99


Small Black Zero Halliburton Camera Case w/ Combo Lock


Small Black Zero Halliburton Camera Case w/ Combo Lock


$39.00


Polaroid i-Zone Instant Camera Combo - Tested & Perfect!


Polaroid i-Zone Instant Camera Combo – Tested & Perfect!


$6.19


2 in 1 iPad Camera Connection Kit USB/SD Combo adapter for iPad 1


2 in 1 iPad Camera Connection Kit USB/SD Combo adapter for iPad 1


$12.99


2in 1 iPad Camera Connection Kit - USB SD Combo adapter


2in 1 iPad Camera Connection Kit – USB SD Combo adapter


$17.99


 X35 Combo 5.0 Infrared  Wildview Deer Camera Batteries & SD Card Retail $139.99


X35 Combo 5.0 Infrared Wildview Deer Camera Batteries & SD Card Retail $139.99


$41.00


X'mas Promo On Board TV Car DVD Combo Player Radio+BT MP4 7


X’mas Promo On Board TV Car DVD Combo Player Radio+BT MP4 7″ Touch Screen+Camera


$149.99


 X35 Combo 5.0 Infrared  Wildview Deer Camera Batteries & SD Card Retail $139.99


X35 Combo 5.0 Infrared Wildview Deer Camera Batteries & SD Card Retail $139.99


$79.99


Camera Case Kenneth Cole Leather Wallet Combo


Camera Case Kenneth Cole Leather Wallet Combo


$8.99


Combo Pack 50x Male and 50x Female DC Pigtail for CCTV Camera Power


Combo Pack 50x Male and 50x Female DC Pigtail for CCTV Camera Power


$55.95


Combo Pack 10x Male and 10x Female DC Pigtail for CCTV Camera Power


Combo Pack 10x Male and 10x Female DC Pigtail for CCTV Camera Power


$13.95


3*Speed USB Hub Camera Connection Kit SD/MMC/MS Card Reader Combo Kit for ipad/2


3*Speed USB Hub Camera Connection Kit SD/MMC/MS Card Reader Combo Kit for ipad/2


$16.79


Camera Accessory  Combo


Camera Accessory Combo


$18.99


COMBO DEAL: BRAND NEW NIB Panasonic LUMIX DMC-LX5 Digital Camera + 8GB SD Card!


COMBO DEAL: BRAND NEW NIB Panasonic LUMIX DMC-LX5 Digital Camera + 8GB SD Card!


$260.00


Battery & Charger Combo For Sanyo Digital Camera DB-L20


Battery & Charger Combo For Sanyo Digital Camera DB-L20


$28.80


Rydeen MV301K REARVIEW MIRROR MONITOR MINy Camera Combo Kit Reverse


Rydeen MV301K REARVIEW MIRROR MONITOR MINy Camera Combo Kit Reverse


$259.00


8CH Standalone DVR H.264  Kit Combo UOI608 (No HDD)+ 8X IR D&N Cameras/Brackets


8CH Standalone DVR H.264 Kit Combo UOI608 (No HDD)+ 8X IR D&N Cameras/Brackets


$305.10


AD QRS Company camera- combination of movie camera and projector   advertising


AD QRS Company camera- combination of movie camera and projector advertising


$9.99


50 FT Combo Security Camera Power and Video Cable DigiVue EC-VPC50 BNC CCTV OEM


50 FT Combo Security Camera Power and Video Cable DigiVue EC-VPC50 BNC CCTV OEM


$24.95


Rear Camera Combo Car Stereo DVD Media Player 7


Rear Camera Combo Car Stereo DVD Media Player 7″ TouchScreen Radio MP3 Bluetooth


$177.48


RoadContrl Car Stereo DVD Combo Player iPod TV Bluetooth USB Radio 7


RoadContrl Car Stereo DVD Combo Player iPod TV Bluetooth USB Radio 7″ LCD Camera


$156.00


Digital Indoor/Outdoor Wireless USB Camera and Receiver Combo ReWL1193


Digital Indoor/Outdoor Wireless USB Camera and Receiver Combo ReWL1193


$243.99


Vivitar DVR 380 digital COMBO camera/Camcorder - Red...***L@@K, GREAT DEAL****


Vivitar DVR 380 digital COMBO camera/Camcorder – Red…***L@@K, GREAT DEAL****


$29.99


Camera Connection Kit USB SD MS AV Composite Cable Combo Adapter for iPad 2


Camera Connection Kit USB SD MS AV Composite Cable Combo Adapter for iPad 2


$23.99


3.5 channel i-Combo Camera iPhone Android Helicopter No.S215


3.5 channel i-Combo Camera iPhone Android Helicopter No.S215


$29.99


High Definition 1080p Helmet Camera Accessory Combo


High Definition 1080p Helmet Camera Accessory Combo


$199.99


MINOLTA HI-MATIC 5 CAMERA FLASH COMBO


MINOLTA HI-MATIC 5 CAMERA FLASH COMBO


$24.99


NP-F330 Battery+Charger Combo For Sony Camera+Free Pen


NP-F330 Battery+Charger Combo For Sony Camera+Free Pen


$15.23


Vintage Q-R-S Combination Movie Camera & Projector 1928 Needs Repair


Vintage Q-R-S Combination Movie Camera & Projector 1928 Needs Repair


$23.00


EPIC WIDE ANGLE POV ACTION VIDEO CAMERA 168


EPIC WIDE ANGLE POV ACTION VIDEO CAMERA 168″ GO PRO STEALTH CAM COMBO NEW


$61.00


Lens Cap Combo Kit for Gopro Cameras *BUY 1 GET 1 FREE*


Lens Cap Combo Kit for Gopro Cameras *BUY 1 GET 1 FREE*


$11.99


COMBO SAMSUNG 19


COMBO SAMSUNG 19″ TV VCR CENTER REMOTE A/V INPUT RCA GAME CAMERA EXCELLENT


$44.97


Premade Security Camera Cable Video Power Combo 150 FT


Premade Security Camera Cable Video Power Combo 150 FT


$24.95


Diamond Black AluminumBriefcase 6


Diamond Black AluminumBriefcase 6″x14″x18″ w/Combination Lock-NICEc for cameras


$68.03


FUHO DVR-842B /CCTV-IR908-1TB 8CH 1TB HDD DVR/Camera combo kit


FUHO DVR-842B /CCTV-IR908-1TB 8CH 1TB HDD DVR/Camera combo kit


$663.26


FUHO DVR-842B /CCTV-IR919D-1TB 8CH 1TB HDD DVR/Camera combo kit


FUHO DVR-842B /CCTV-IR919D-1TB 8CH 1TB HDD DVR/Camera combo kit


$653.05


FUHO DVR-842B /CCTV-IR908/CCTV-IR919D -1TB 8CH 1TB HDD DVR/Camera combo kit


FUHO DVR-842B /CCTV-IR908/CCTV-IR919D -1TB 8CH 1TB HDD DVR/Camera combo kit


$658.15


In Dash 1 Din Stereo Car Combo Player AVH-P6300 7


In Dash 1 Din Stereo Car Combo Player AVH-P6300 7″ TOUCH SCREEN DVD/CD Camera


$134.80


COMBO 13


COMBO 13″ TV DVD INSIGNIA APEX REMOTE A/V GAME CAMERA MANUAL INSTRUCTION


$49.89


Digital Camera Battery & Charger Combo For NP-900 NEW


Digital Camera Battery & Charger Combo For NP-900 NEW


$31.50


4CH DVR Kit Combo UOI503 (No HDD)+ 4X IR D&N Cameras/Brackets/Cables/PSU


4CH DVR Kit Combo UOI503 (No HDD)+ 4X IR D&N Cameras/Brackets/Cables/PSU


$215.10


8CH DVR Kit Combo UOI608 (No HDD)+ 4X IR D&N Cameras/Brackets/Cables/PSU


8CH DVR Kit Combo UOI608 (No HDD)+ 4X IR D&N Cameras/Brackets/Cables/PSU


$260.10


09-12 Dodge RAM Chrome Mirror+4 Door Handle+Tailgate w/Camera+Gas Cover COMBO


09-12 Dodge RAM Chrome Mirror+4 Door Handle+Tailgate w/Camera+Gas Cover COMBO


$117.95


2 in 1 Camera Connection Kit-USB/SD Combo Reader 4 iPad


2 in 1 Camera Connection Kit-USB/SD Combo Reader 4 iPad


$23.99


Video+Power Combo Premade Cables for CCTV Security Cameras, 100 FT, Pack of 4


Video+Power Combo Premade Cables for CCTV Security Cameras, 100 FT, Pack of 4


$62.95


Canon 5D MK III COMBO Camera + 4 Lens, 2 IS: 28-135 & 70-300 + 24GB $ Saving PKG


Canon 5D MK III COMBO Camera + 4 Lens, 2 IS: 28-135 & 70-300 + 24GB $ Saving PKG


$4,455.99


3.5 channel i-Combo Camera iPhone Android Helicopter No.S215


3.5 channel i-Combo Camera iPhone Android Helicopter No.S215


$29.99


Audio Technica ATW-1823 1800 Series Camera-mount UHF Wireless Systems (Combo Lav


Audio Technica ATW-1823 1800 Series Camera-mount UHF Wireless Systems (Combo Lav


$1,995.01


COMBO PANASONIC 13


COMBO PANASONIC 13″ TV VCR REMOTE A/V INPUT RCA GAME CAMERA EXCELLENT 69W


$48.89


Tiny DVR Button Camera Combo Pack Covert Hidden Spy Camera Kit


Tiny DVR Button Camera Combo Pack Covert Hidden Spy Camera Kit


$264.99


COMBO KLH 13


COMBO KLH 13″ TV DVD SILVER REMOTE A/V INPUT RCA GAME CAMERA MODEL KDT133UY


$48.89


In Dash 1 Din Stereo Car Combo Player AVH-P6300 7


In Dash 1 Din Stereo Car Combo Player AVH-P6300 7″ TOUCH SCREEN DVD/CD Camera


$134.70


Security innovation H.264 / DVST HQ-16C 8 camera(#IB 5624) combo


Security innovation H.264 / DVST HQ-16C 8 camera(#IB 5624) combo


$900.00


5D MK III COMBO Camera +2 Canon IS Lenses: 28-135 & 70-300 $ Saving PKG


5D MK III COMBO Camera +2 Canon IS Lenses: 28-135 & 70-300 $ Saving PKG


$4,665.99


Barbie Fabulous Fuzzy Camera - Pink Plush Combo


Barbie Fabulous Fuzzy Camera – Pink Plush Combo


$19.99


Digital Indoor/Outdoor Wireless USB Camera and Receiver Combo ReWL1193


Digital Indoor/Outdoor Wireless USB Camera and Receiver Combo ReWL1193


$189.60


Mini Gadgets Button Camera w Audio & DVR Combo Pack NEW


Mini Gadgets Button Camera w Audio & DVR Combo Pack NEW


$219.99


Bonica Snapper 1080P Camera & G8V15 Video Light Combo


Bonica Snapper 1080P Camera & G8V15 Video Light Combo


$799.00


Bonica Snapper 1080P Camera & Video Light Combo Plus


Bonica Snapper 1080P Camera & Video Light Combo Plus


$1,099.00


Bonica Snapper 1080P Camera & Video Light Combo Pro


Bonica Snapper 1080P Camera & Video Light Combo Pro


$1,499.00


Nikon L22,L24 Camera & Housing Combo by Ikelite 6280.24


Nikon L22,L24 Camera & Housing Combo by Ikelite 6280.24


$359.95


EPIC ACTION POV ACTION SPORTS VIDEO CAMERA GO PRO STEALTH CAM COMBO NEW


EPIC ACTION POV ACTION SPORTS VIDEO CAMERA GO PRO STEALTH CAM COMBO NEW


$41.00


NEW LOWEPRO ORION II DARK GRAY CONVERTIBLE SHOULDER / WAISTPACK COMBO CAMERA BAG


NEW LOWEPRO ORION II DARK GRAY CONVERTIBLE SHOULDER / WAISTPACK COMBO CAMERA BAG


$109.95


Canon 5D MK III COMBO Camera with 28-135 IS & 70-300 IS +32GB + $ Saving PKG


Canon 5D MK III COMBO Camera with 28-135 IS & 70-300 IS +32GB + $ Saving PKG


$4,465.99


Olympus Camera body cap and rear lens cap combo


Olympus Camera body cap and rear lens cap combo


$9.81


Tiny DVR Button Camera Combo Pack Covert Hidden Spy Camera Kit


Tiny DVR Button Camera Combo Pack Covert Hidden Spy Camera Kit


$264.99


Comments are closed.