19 Commits

Author SHA1 Message Date
Emmanuel Briot
30e53aaf68 Implement Draft76 protocol for websockets.
Improve the websockets demo so that the websocket is not started on page load.
 This makes it easier to look at packets that are exchanged, without reloading
 the full javascript each time. Also change javascript so that new status do
 not replace the message on the page, but add to it (so that we can see "open"
 and "close", not just "close" for instance)
L629-010
2012-08-23 15:23:30 +02:00
Pascal Obry
2ff328da30 Integrate WebSocket into AWS.
Add a WebSocket demo.

For L608-003.
2012-06-26 15:41:55 +02:00
Pascal Obry
eaff6db33e Move to GPLv3.
For KC20-036.
2012-01-03 18:55:45 +01:00
Pascal Obry
0ec2e80e4c Add three new XML Ajax actions (disabled, read_only, reset).
Part of this has been contributed by Ali Bendriss.
Use those new features into the Web_Elements demo.
--
For J930-037.
2010-10-01 08:30:14 +00:00
Pascal Obry
fb2f15f02e New implementation of the Web_Block context support.
This new implementation separate the context from the session handling.
This new context is now content based. A context id depends on the
content in the context. Each page generated will have a different context
id if the context has been updated.

This fix a serious problem with the browser's tab or back button which
could corrupt an application by using a wrong context.
--
Work for I804-012.
2009-11-18 17:55:35 +00:00
Pascal Obry
0849192758 Minor reformatting. 2009-11-18 17:55:23 +00:00
Pascal Obry
a0373ee896 Minor reformatting. 2009-07-03 16:22:09 +00:00
Pascal Obry
fbc060431e Handle properly internal location url (starting with #). 2009-07-03 16:22:05 +00:00
Pascal Obry
0ba90ec721 Add support for handling client's timezone.
The Javascript AWS runtime can now compute and send the timezone
offset to the web browser using a cookie.
2009-07-03 16:22:00 +00:00
Pascal Obry
46dd8d6918 Fix condition to insert context when non exists.
The condition was wrong and we failed to insert
a context into a FORM when non context was present.
This was causing a loss of context in some cases.
2008-11-20 09:17:23 +00:00
Olivier Ramonat
2eefd2b8a1 Keep an old context to revert last changes when duplicating context
When the user open a link in a webpage in a new tab, the original tab
had is context modified. To avoid this, we should keep the old context
and revert the last changes when a new tab creation is detected.
2008-11-03 11:30:36 +00:00
Pascal Obry
b4cb854872 Update prototype framework to version 1.6.0.2.
At the same time aws_kernel.tjs has been updated
to properly work with this new version. A change
in the way the serialize routine was implemented in
the new framework was causing problem.
2008-10-13 11:53:59 +00:00
Pascal Obry
ce0512668a Better support for new context on different browsers. 2008-06-19 15:11:36 +00:00
Pascal Obry
297fee4b70 Add support for clearing IFRAME.
* web_elements/javascripts/aws_kernel.tjs:
  (handler_clear): Specify action for clearing
   and IFRAME.
2008-01-15 14:01:18 +00:00
Pascal Obry
8f2c224b42 (serialize): Add a name parameter to be able to stream
a simple elment under a specific name. This is needed
 to better control the name used on the Ada side and
 unrelated to the naming convention in the template.
2007-11-14 16:00:22 +00:00
Pascal Obry
1ebeca129a Workaround a bug in IE where the href returned by getAttribute('href')
is the derived absolute URL. So to detect local URL we look at the
hostname if URL is prefixed by "http:".
Check for null id for the replace action.
Minor reformatting.
2007-09-25 12:35:12 +00:00
Pascal Obry
f6b74ab970 Add support for the XML refresh Ajax command. 2007-09-24 19:30:16 +00:00
Pascal Obry
32caffafd9 * src/aws-services-web_block-registry.adb:
Update Web_Block framework to properly order the translations
table update. The last update is now done by the user's callback.

* web_elements/javascripts/aws_kernel.tjs:
Update framework to support per-windows context.
2007-09-20 12:45:00 +00:00
Pascal Obry
a3a996a549 Update the AWS's Ajax support in many ways.
- The HTTP validate.
- The AWS runtime is not loaded in every pages.
- The framework has been clean-up to use a more
  "object oriented" implementation. The global namespace
  is not polluted anymore.
There is no end-user visible changes.
Work for G215-018.
2007-02-15 16:09:07 +00:00