Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About ther

  • Rank
  1. ther

    media dependencies

    Please, how to decide whether to use '@import/media' or element 'link' attribute 'media'? Thanks.
  2. Thank you for your interpretation into a language I can understand. So now I have to decide on php or karoo...decisions decisions:)
  3. http://www.zwartberg.com/cave.html
  4. >Unfortunatly, you still can't avoid using a server side scripting language.But the cave system proposed by Zwartberg does not show any script, or am I wrong?
  5. >I suggest you read W3C's XForms for HTML I am already aware, thanks.>Exactly how do you process the form depends on the actual language you'd use, and sometimes may depend on the XForms processor on the client. Some implementations store the XML in a predefined $_POST variable, while others use the whole response body (as per the XForms spec).What do you mean by 'actual language'? Do you mean an example of an xform module embedded within an xhtml document?Does 'whole response body' mean the 'post' attribute of the element 'submission'?>If it's a $_POST variable, check out the documentation of the implementation to see the name of the variable it uses. In this case, the documentation for apache httpd? I have read how php could be embedded into an html document which is then put in the web server folder 'var/www/html', but I have not been able to find a description of how sql commands to connect to the database may be also similarly embedded into an xhtml xform document.>If it's a "standard" implementation... check out the $HTTP_RAW_POST_DATA variable or use file_get_contents('php://input'). But I want to avoid the use of any script language (because I don't know any! ) and investigate the possibility to use only mark-up languages.
  6. Thank you for your very clear explanationI am thinking about the following systemApache as the web serverPostgresql as the database(GNU/)LinuxXforms of Openoffice to act as the front-end.I suppose this could be shortened to a mnemonic such as APLEX :)Anyway I have read about the concept of connecting to postgresql using xml via Zwartberg (http://www.zwartberg.com/cave.html). I am seeking to be able to perform the following task:1. Create an xform2. Connect to database by submitting the xform the web server3. Submit data in the xform to the database via the web server4. The database processes the data and returns the result5. The web server converts and sends the database result into a format to be viewed in word processor or web browserI am at stage 2 I can create a simple xform with a sign-in and password text boxes, but I do not know how to send this to the web server and then the database. Any advice please?
  7. >The problem is no database server supports XML as input on login. Many support it as an actual datatype to insert into the DB, but that's only after you login with an SQL client. The kind of SQL client that languages like PHP have, not an HTTP client. Browsers don't have any kind of DB client capabilities.Does this mean that to sign in to the database from a web browser, would require the creation of a php code within the xhtml page?>Also, on the client (browser) side. Even browsers supporting XForms (and there are too few of those) can't send it as a data to a database. XForms provides to way to connect to traditional RDBMS systems. It only gives you the ability to send the data to a certain URL via HTTP with the generated XML file as the body of the HTTP request.So far I have tried to use opera to view an xform element within an xhtml page. I could create a text box for the user name, but have not yet understood how to use the 'secret' element for the password submission.>If you want to get the most of XForms, create a nice form that validates its XML with an XML Schema. Send the data to a server side page like a PHP one, validate the XForm instance against the same schema you validated against on the client (you do a second validation for security reasons; using a single schema is one more extra with using XForms; traditionally you'd do validation with JavaScript plus PHP), and then do whatever you want with the XML.Yes. My first test is to create a php page and learn how to connect to the database via php. The test environment will be apache as the web server, with the xforms, php, apache and postgresql parts all one a local machine.Thanks. What about the idea of using xslt to convert the xforms data into a csv file? Could the database be configured to import this file automatically and return the relevant response (e.g. confirm successful connection to database)?
  8. I understand that php can be used to gain access to a database (e.g. postgresql), but I would like to know if it possible to submit and retrieve data without a scripting language, using xforms as a 'client' to connect to the database.Thanks.xformsatconference.jabber.org
  • Create New...