Project

General

Profile

Actions

Feature #1633

closed

Question about possibility of embed Wt to an existing website (case scenario)

Added by Anonymous about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
-
Start date:
01/15/2013
Due date:
% Done:

0%

Estimated time:

Description

Let's say, I have a web server, with the specification below:

OS: Debian

Web server sw: Apache

Database: Postgresql

CMS: Drupal

Script: PHP

I want to make an web application by C, that allow guest and logged in user to use.

The user simply click a button, and the web application appear in a new tab (pop-up).

This web application is for user to input some value in some movable icon (javascript,Ajax things), save it, store the value in backend database.

C mainly responsible to retrieve those value from backend database and do some calculations, store the calculated result in backend database.

The result post back to the website and let user to see it.

What I suppose is, I want all those user-related things are handle by PHP,Ajax,etc.

Only the calculation part is handle by C.

What I concern is:

  1. Is Wt has function use to connect Postgresql ?
  2. Except for store the user's input value to the database first, is there any Wt function can directly receive the value that post by PHP?
  3. Is Wt has function to make movable icon (animation)? If possible, then concern 2 is not a problem anymore, because user's input value receive by C instead of PHP.

Questions above is not ask for the method of how to make it, I just want to know "Can Wt do it or not".

Since using C to make web application is a new thing to me, really need more brainstorm at the beginning.

Actions #1

Updated by Wim Dumon about 11 years ago

Hello,

You can make Wt cooperate with other frameworks in a number of ways:

  1. What you suggest, i.e. putting an anchor in the origin page and forward to a Wt application in a new window/tab. You can pass data to the Wt application by means of URL parameters (you can query these in WEnvironment).
  2. Like e.g. google maps can be embedded in a drupal CMS page, a Wt application can also be an integrated part of a plain webpage. See the 'widgetset' examples in the Wt distribution.
  3. Other traditional approaches such as an iframe

Wt can connect to a postgres database, either by using the postgres api directly, or by using Wt::Dbo's postgres backend.

You can use static WResources deployed at a fixed URL to add a webservices interface to Wt through which you can use POST to communicate with it.

I'm not sure what you mean by 'movable icon' but anything you can do in PHP, you can do in Wt.

Note that I wouldn't do the communication of input values and the computations through the database; let the user input the values directly in the Wt application. It will give you a method where your application can interact with the user and you can interactively display validation, status, results, ...

Wim.

Actions #2

Updated by Koen Deforche about 11 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Koen Deforche about 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF