WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 [XLoadTree] dynamic created xml not working?, Skaah, August 10, 2003
     Re:[XLoadTree] dynamic created xml not working? , Guilherme Blanco, August 12, 2003
     Re:[XLoadTree] dynamic created xml not working?, Erik Arvidsson, August 10, 2003
         Re:[XLoadTree] dynamic created xml not working?, Skaah, August 11, 2003
             Re:[XLoadTree] dynamic created xml not working?, Erik Arvidsson, August 11, 2003

Subject: Re:[XLoadTree] dynamic created xml not working? From: Guilherme Blanco Date: August 12, 2003

Well, should work well, if you wrote your code well.

Take a look if you've done something like this:

<?php
  // Adding the recieved data in a variable with the same identity
  // You have to look that the variable in PHP is case-sensitive (sometimes)
  $id = $_GET['id'];  // Recieved data index.php?id=3

  Now, load the document.
  print "<script ...>"
          ."...something..."
          ."function_that_open_the_xml_file('static".$id.".xml');"
          ."...something..."
          ."</script>";
?>


This should work perfectly, as I tested here. Just check the variable that you're using (sometimes PHP behaviors weird)... One example you can test, is this:
<?php
  $capital = 67;
  print("Variable capital is $capital<BR>");
  print("Variable CaPiTaL is $CaPiTaL<BR>");
?>


The return (in most cases), will be this:
Variable capital is 67
Variable CaPiTaL is


Take a look corectly to your code... pay attention if you're not using variables in upper case. Other think you should look is that register_globals is disabled in PHP. You need to get data using or $HTTP_GET_VARS['variable'] or $_GET['variable'] (in recent versions).

Regards,
Guilherme Blanco

From: Skaah
Sent: August 10, 2003
Subject: Re:[XLoadTree] dynamic created xml not working?

I am having a problem with you XLoadTree.

A source xml file with a question mark, for example, 'tree.xml.php?Id=3' gives an error. Using the contents of that file in a static xml file (for example 'static3.xml') works perfectly.

Could you help me sort this out?





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX