473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Can't create DOM Document

Hi,

I'm trying to create a php form which is auto completed after onchange
action of a drop down.
I've created a js file and linked it to a PHP file, which is linked
with a XML file.

Inside the PHP - after i tried to print the response and got a blank
one:

var response = xmlHttp.responseText;
alert(response);

I've tried to print after creating the DomDocument, but it probably
doesn't work, because it doesn't print anything:

<?
$q=$_GET["q"];
$xmlDoc=new DomDocument();
print $q;
.....
.....
?>

If i put the print $q before the Dom creation: $xmlDoc=new
DomDocument(); it does print.

How can i create the DOM without an error? where is my mistake?

I need any reply/advice,

Gil H.

Apr 17 '07 #1
1 1891
On Apr 17, 3:10 pm, Gil_H <gil.ho...@gmail.comwrote:
Hi,

I'm trying to create a php form which is auto completed after onchange
action of a drop down.
I've created a js file and linked it to a PHP file, which is linked
with a XML file.

Inside the PHP - after i tried to print the response and got a blank
one:

var response = xmlHttp.responseText;
alert(response);

I've tried to print after creating the DomDocument, but it probably
doesn't work, because it doesn't print anything:

<?
$q=$_GET["q"];
$xmlDoc=new DomDocument();
print $q;
....
....
?>

If i put the print $q before the Dom creation: $xmlDoc=new
DomDocument(); it does print.

How can i create the DOM without an error? where is my mistake?

I need any reply/advice,

Gil H.
I rarely see such confusing and disorganised questions. Could you
please rephrase your question? What is a "php form"? What is that AJAX
thing doing in the middle of PHP code? Is it just me, or is this more
a question for PHP group than for JS?

Apr 17 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: TGOS | last post by:
Here's a little question to MySQL Gurus. Two tables. One called 'document' one called 'page'. Needles to say, a document consist out of multiple pages (1:n). The primary (P) and foreign (F) keys...
4
by: Mark | last post by:
Hi - my code below works in IE6, but not in NN7 - I thought it was using the correct standards, but could anyone please tell me where I'm going wrong? Thanks, Mark <HTML> <HEAD> <SCRIPT>...
1
by: Jenny | last post by:
Hi, Can I create an array of tags by assigning same name to these tags? For example, I have two <p> tags with the same name t1. But document.all.b.value=document.all.t.length does not...
13
by: Geoff Cox | last post by:
Hello, How do I create a form without using document.write() which opens a new window? I imagine it has to do with using a <SPAN ID='idvalue' etc element and...
7
by: Quentin Huo | last post by:
Hi: I created a web-form user control. And in client-site, there is a link which will create a Input element object when it is clicked. <script language=javascript> ....... var nameInput =...
10
by: lamxing | last post by:
Dear all, I've spent a long time to try to get the xmldocument.load method to handle UTF-8 characters, but no luck. Every time it loads a document contains european characters (such as the...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
14
RMWChaos
by: RMWChaos | last post by:
Firebug is reporting "too much recursion" when I attempt to create a child element in a parent that doesn't exist yet. The script should automatically create the missing parent before going on to...
4
by: Michael Munch | last post by:
Hi I want to read the value of af text-field, create dynamic, in a form. Se below a small test-site to do that (but readning fails): I use the function Test_Read for reading the value from the...
4
by: zion4ever | last post by:
Hello good people, Please bear with me as this is my first post and I am relative new to ASP. I do have VB6 experience. I have a form which enables users within our company to do an intranet...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.