Do you find yourself with few minutes to spare, and a desire to help other CompShackers?
Submit a tip, code or an SQL snippet. Start an article about topics you are familier with, or edit a Wiki page. Help the community grow larger by sharing a little bit of what you know!
Reasons why this is great:
Note: Registration required. Guests can edit Wiki pages.
AJAX is used for interactive communication with an XML file. Website may provide information from an XML file using AJAX search technology, if you select an item in a list box.
Select a CD:
TITLE: One night only ARTIST: Bee Gees COUNTRY: UK COMPANY: Polydor PRICE: 10.90 YEAR: 1998
This is the JavaScript code stored in the file "selectcd.js":
[code]
var xmlhttp
function showCD(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
{
alert ("Your browser does not support AJAX!");
return;
}
var url="getcd.php";
AJAX can be used for interactive communication with an XML file. A web page can fetch information from an XML file with AJAX technology, e.g when you select an item from a dropdown box.
TITLE: One night only ARTIST: Bee Gees COUNTRY: UK COMPANY: Polydor PRICE: 10.90 YEAR: 1998
The PHP script loads an XML document, "cd_catalog.xml", runs a query against the XML file, and returns the result as HTML:
[code]
<?php
$q=$_GET["q"];
$xmlDoc = new DOMDocument();
$xmlDoc->load("cd_catalog.xml");
$x=$xmlDoc->getElementsByTagName('ARTIST');
Local File &fle;
&fle = GetFile(GetCwd() | "/files/Test.xml", "W", %FilePath_Absolute);
&fle.WriteLine("Hi");
&fle.Close();
Test.xml can Found in...
Web Server: psoft > appserv > DATABASENAME > files > Test.xml
| Title | Under | Posted on |
|---|---|---|
| special caracters are not translated correctly when ftp from windows to unix | Programming | 03/09/2010 - 3:23pm |
| SQR Code for converting the data from .CSV into Peoplesoft Tables | PeopleSoft Technical | 03/08/2010 - 9:25pm |
| How to view the employees from particular country in peoplesoft? | PeopleSoft Technical | 03/03/2010 - 1:56am |
| PeopleSoft, How to Disable Advanced Search or Saving Search Criteria for Component | PeopleSoft Technical | 03/01/2010 - 1:31pm |
Recent comments
10 min 14 sec ago
18 hours 54 min ago
4 days 10 hours ago
5 days 6 hours ago
5 days 13 hours ago
5 days 13 hours ago
5 days 15 hours ago
6 days 6 hours ago
6 days 14 hours ago
6 days 17 hours ago