Coder Social home page Coder Social logo

backplanejs's People

Contributors

fdintino avatar

Watchers

 avatar

backplanejs's Issues

Compressed CSS files are unusable

The compressed CSS files are unusable in all browsers.

A temporary workaround has been placed into the build process that simply 
overwrites the compressed file with the uncompressed one.

In other words, backplane-min.css is not actually compressed.

Original issue reported on code.google.com by [email protected] on 1 Dec 2009 at 4:12

Add CSS support to the decorator object

Most of the rules for adding components to the library are defined in 
'generate-css.css'. This file is 
very difficult to maintain because it contains rules for both HTML and XTML 
mode.

Instead, we should specify the rules programmatically, as part of the call to 
the decorator object, 
and the decorator itself can add the rules to the stylesheets.

Original issue reported on code.google.com by [email protected] on 19 Dec 2009 at 11:35

Optimise the rewire phase of xforms-refresh

The first step of xforms-refresh event handling is to reevaluate all UI 
bindings:

http://www.w3.org/TR/xforms11/#evt-refresh

This is handled by the Model.rewire() method which in turn calls the 
Control.rewire() method for each control. Currently the control is being forced 
to rewire, regardless of whether any dependent data has changed.

The Model.rewire() needs to check whether a dependent value has changed, 
and only call the Control.rewire() method if there is anything to do.

Original issue reported on code.google.com by [email protected] on 25 Apr 2010 at 3:08

Only toggle classes in setState() if the state is actually changing

The first thing that the setState() function does is to remove the 'on' and 
'off' 
classes for the state that it is dealing with.

This is as a precursor to setting the correct state, but is wasteful in the 
situation where the class is already present (when enabling) or already absent 
(when disabling).

It would be better to only remove the 'off' class when enabling, and remove 
the 'on' class when disabling, and further, to check whether the class is 
present.

Original issue reported on code.google.com by [email protected] on 24 Apr 2010 at 5:02

  • Blocking: #45

xf:submission response with Content-Type header of application/soap+xml is not recognised as XML

When using xf:submission with @replace='instance', if the response XML has
a Content-Type header set to application/soap+xml (the product of a SOAP
request), the library generates an xforms-submit-error with an error type
of 'resource-error'.

It's expected that any XML with a Content-Type of application/*+xml would
be treated as XML and not generate xforms-submit-errors.

Example form to follow.

Original issue reported on code.google.com by [email protected] on 10 Dec 2009 at 12:21

submission.contentTypeIsXML() fails to take charset into account

The method submission.contentTypeIsXML() aims to establish whether data 
received from a submission is XML.

The method checks for 'text/xml' and 'application/xml', but fails to take into 
account whether there is a charset, as defined here:

http://www.w3.org/International/O-HTTP-charset

Original issue reported on code.google.com by [email protected] on 24 Apr 2010 at 7:08

Move Ant tasks for Drupal into their own build.xml

The Ant tasks to create a Drupal module and upload it to the download area, are 
currently in the 
main build.xml.

It would be useful to create a 'local' build.xml that resides in the Drupal 
directory, so as to make the 
Drupal module self-contained, and also make the master build.xml easier to 
manage.

Original issue reported on code.google.com by [email protected] on 13 Jan 2010 at 9:39

Set Drupal module to use version numbers instead of URLs, and one library

The Drupal module was written to cope with the numerous Ubiquity libraries, but 
since these have 
all been merged into backplanejs, this module can be simpler.

The first change is therefore to only use one library, and the second is to use 
version numbers for 
the library to load, rather than a full URL.

Original issue reported on code.google.com by [email protected] on 12 Jan 2010 at 10:55

Move RDFa loader file to RDFa directory

The RDFa loader file is currently in the build directory, whilst the source is 
in the RDFa directory.

To assist YUI Doc processing, the loader file needs to be moved alongside the 
source.

Original issue reported on code.google.com by [email protected] on 10 Jan 2010 at 10:08

HTTP Basic authentication with xf:submission doesn't work in Firefox

What steps will reproduce the problem?

1. Open the following URL in Firefox
http://67.202.30.116/basic-authentication.html
2. Click 'Submit' trigger to trigger submission
3. Submission fails to get beyond xforms-submit

What is the expected output? What do you see instead?

I expect two separate modal xf:messages, one each for xforms-submit and
xforms-submit-done followed by the display of a list of financial product
names.

Please use labels and text to provide additional information.

The submission tries to retrieve the following file that is protected by
HTTP Basic authentication
http://xforms.localhost/protected/inst-product-list-complex.html.

The form xf:submission includes an xf:header element child element that
supplies the 'Authorization' header details and username/password details
as a base64 encoded string.

The form does what's expected when it's loaded with Internet Explorer
(tested with IE 7).

Firefox version tested with was 3.5.5.


Original issue reported on code.google.com by [email protected] on 20 Nov 2009 at 12:28

Support any Ajax library as the 'core' platform

An important long-term goal for both backplanejs and Ubiquity XForms is to be 
able to use any 
Ajax library as the foundation.

The library currently works with YUI, but Dojo, jQuery and Prototype are also 
important targets.

To achieve this, all YUI modules will need to be loaded via platform-specific 
loader files, so that 
these files can easily be switched out.

Also, all current YUI-related functions will need to be moved to a common 
object, to make it easy 
to replace them.

Original issue reported on code.google.com by [email protected] on 16 Dec 2009 at 9:42

Create YUI-specific modules

The modules that load other files, such as core.js, xforms.js, and so on, also 
load YUI files.

Move all of these references to a common file (called platform-yui.js) to make 
it easy to replace it 
with the equivalent, for a different Ajax library.

Original issue reported on code.google.com by [email protected] on 16 Dec 2009 at 9:46

select and select1 controls are broken in Safari

Using Safari 4, select and select1 controls, in their various guises, all 
suffer from differing levels of appearance problems. Also, possibly as a 
side-effect of these display issues, in many cases they do not work as 
expected, e.g. selecting items has no effect.

Original issue reported on code.google.com by [email protected] on 5 Nov 2009 at 9:51

Irrelevant controls and switch/case are subject to apparent delayed refresh problems in Safari



In Safari 4, XForms documents that contain non-relevant controls styled to 
be display:none or visibility:hidden, have the appearance of not working 
until some other seemingly unconnected event causes the browser to repaint 
the window. For instance, invoking an XForms message or opening the Web 
Inspector both have the effect of hiding the irrelevant controls, all of a 
sudden.

The same issue can be observed in forms that contain switch/case 
constructs.

I believe this may be a browser issue that we need to work around, because 
I've verified that we are correctly setting the appropriate CSS classes on 
the items in question at the correct juncture.

Original issue reported on code.google.com by [email protected] on 5 Nov 2009 at 9:49

Add support for YUI Doc

YUI Doc is the YUI tool for creating documentation from comments in source 
code. It's very similar 
to JSDoc, but I've read good things about YUI Doc, so I'm going to go with that.

Original issue reported on code.google.com by [email protected] on 10 Jan 2010 at 10:00

Empty safe CURIEs are not being ignored

An empty safe CURIE looks like this:

  @about="[]"

When used in a document the CURIE should be ignored because it's unknown, and 
therefore the 
currently in-scope subject used instead.

See http://backplanejs.appspot.com/rdfa?
url=http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0121.xhtml 
and note 
that the last subject is the XHTML namespace, rather than 'http://example.org'.

Original issue reported on code.google.com by [email protected] on 22 Jan 2010 at 11:26

Ant tasks are inconsistent and difficult to remember

As the build.xml file has grown, and the number of build targets has increased 
(we now build 
Drupal modules as well as roll-up files), then the target names have become a 
little disorganised.

There seem to be a number of best practices for naming and organising targets, 
so we should 
follow them.

On how to structure build files, The Elements of Ant Style is useful 
(http://wiki.apache.org/ant/TheElementsOfAntStyle). Nothing in our build files 
goes against this 
guidance at the moment, but it's good to have the reference.

On how to name and organise targets, it might be wise to follow those used in 
the Maven 
(http://maven.apache.org/) project.

Original issue reported on code.google.com by [email protected] on 23 Jan 2010 at 10:39

@replace="instance" does not work

When using @replace="instance" on xf:submission, any retrieved data should 
overwrite the identified instance, and then cause the display to update.

This is not happening in IE and Chrome.

Original issue reported on code.google.com by [email protected] on 5 Apr 2010 at 12:15

Allow Ant tasks to be callable from other Ant tasks

Some of the recently added tasks, such as starting and stopping a local 
Google App Engine server, would be useful when developing applications that 
use backplanejs. This issue is about making some changes that will allow the 
tasks to be 'called' from elsewhere. (Mainly it's about making sure that all of 
the paths are set explicitly, but there are a few other minor changes that are 
needed.)

Original issue reported on code.google.com by [email protected] on 28 Jan 2010 at 8:51

Add support for native XML DOMs

The XForms processor currently uses Google's Ajaxslt XML parser, in order to 
provide cross-browser support.

However, this parser is extremely slow in Internet Explorer, so should be 
replaced with native XML support.

Original issue reported on code.google.com by [email protected] on 25 Apr 2010 at 4:42

Add support for XForms namespaces to module code

Although the Drupal module loads the script files automatically, administrators 
still need to add the 
XForms and XML Events namespaces to their site (usually via an update to their 
templates).

Instead, the Drupal module should automatically add the namespaces to any page 
that includes a 
library.

Original issue reported on code.google.com by [email protected] on 12 Jan 2010 at 11:01

Empty attributes aren't included in submitted data

Reported by Alex Sansom:

When submitting an XML instance using IE (7.0.6002.18005) node elemets 
that are empty do not get included in the submitted data.

E.g., if you send:

<data xmlns=""> <currency-amount currency="GBP" 
amount=""></currency-amount> </data>

Verifying via Fiddler, only:

<data xmlns=""> <currency-amount currency="GBP"></currency-
amount> </data>

gets sent to the resource you've submitted to.

Maybe it's helpful to note that if using the serialize() function with 
xf:output to display the contents of an instance, empty attributes in 
instance data are not shown then either.

Original issue reported on code.google.com by [email protected] on 5 Apr 2010 at 5:20

Replace Sprocketize with YUI Combiner

Although Sprocketize is a useful piece of code, its use of Rails adds an extra 
dependency.

Instead, we should use Nicholas C. Zakas's Combiner, at:

  <http://github.com/nzakas/combiner>

Original issue reported on code.google.com by [email protected] on 28 Feb 2010 at 10:33

Source files need to be organised into modules

YUI Doc requires that files are grouped into modules. Since the current code 
layout is for a couple 
of master files in the build directory to 'load' source files located in other 
directories, there is a 
conflict.

To make it easier for YUI Doc, we need the 'loader' files to be in the same 
directory as their 
corresponding source files.

Original issue reported on code.google.com by [email protected] on 10 Jan 2010 at 10:04

Add library scripts and CSS files using Drupal methods

The Drupal module adds the script tag for the libraries, but uses its own 
methods to do so. This can 
come into conflict with other scripts that are loaded by Drupal itself, so we 
should use the built-in 
method 'drupal_add_js()'.

(Also, when adding CSS support in issue 24, we should also use 
'drupal_add_css()'.)

Original issue reported on code.google.com by [email protected] on 13 Jan 2010 at 7:52

  • Blocked on: #24

Request for formsPlayer like HTMLSerialise() function

When developing and debugging client-side xforms, one of the most handy
things to be able to see is the current state of the form instance data. 

In the formsPlayer implementation there is a proprietary function,
HTMLSerialise(), that can be used with an xf:output control that can show
the current state of a form instance/part of an instance.

Using formsPlayer you can do something like:

<xf:output value="fp:HTMLSerialise(instance('inst-data'))">
    <xf:label>Current inst-data contents:</xf:label>
</xf:output>

I'm requesting to be able to do something similar with the backplanejs library.

Original issue reported on code.google.com by [email protected] on 16 Dec 2009 at 10:54

xf:submission[@replace="instance"] fails if response content type is text/xml



Alex Sansom reports:

"A test form that replaces an empty instance with some XML served from a 
URL doesn't work. It was mentioned that both the form and the replacement 
data had to be served from the same server and they are.

The test form: http://67.202.30.116/submission.html

The XML that's trying to be inserted: http://67.202.30.116/product-list.xml

The files are located on the 'Drupal websites (Drupal 5.10 + 6.10 v1)' 
server at '/var/www/html/arc_work'."

Original issue reported on code.google.com by [email protected] on 5 Nov 2009 at 9:44

backplane module does not take Windows paths into account

What steps will reproduce the problem?
1. Generate the tests, using 'ant test-compile'.
2. Run the backplane unit-tests (in 'target/unit-tests/backplane').

What is the expected output? What do you see instead?

All tests should pass, but testFileGetPath is failing with the following 
message:

  FAIL: testFileGetPath: Values should be equal.
  Expected: file://C:/Documents and Settings/Mark Birbeck/My 
Documents/My Projects/backplanejs/target/unit-tests/backplane/test-
file.txt (string)
  Actual:C:\Documents and Settings\Mark Birbeck\My Documents\My 
Projects\backplanejs\target\unit-tests\backplane\test-file.txt (string)

Original issue reported on code.google.com by [email protected] on 3 Apr 2010 at 12:45

Allow tests to be run from Ant

Currently the unit-tests (YUI) and the functional and end-to-end tests 
(Selenium) are run manually 
be developers. It would be better to be able to run the tests from Ant, which 
would make it more 
useful for developers doing TDD, and also allows the tests to be run in CI 
scenarios.

(Note that we do have some level of automation already, from the Buildbot work. 
However, the 
command-line technique used doesn't return the number of tests passed, so it's 
not ideal for TDD 
use by developers.)

Original issue reported on code.google.com by [email protected] on 24 Jan 2010 at 6:10

Create roll-up file for YUI test driver

Although we use roll-up files for the YUI library, we don't bother for the 
testing framework (they are loaded from a CDN).

This would be a problem when testing offline, but a more pressing issue is 
that we need to use a newer version of YUI Test (see issue 35).

We therefore need to copy the newer version, and create a test driver roll-up 
file.

Original issue reported on code.google.com by [email protected] on 25 Jan 2010 at 10:29

Improve performance of XPath evaluation

This is a significant issue with Internet Explorer.

Functions that are repeated frequently, such as getBoundNode() rely on 
EvaluateXPath() to obtain the node that they are bound to. Since this function 
is very slow on IE, overall performance is significantly impacted.

Original issue reported on code.google.com by [email protected] on 24 Apr 2010 at 1:01

  • Blocked on: #50

Default library version number is not being initialised correctly.

When installing the Drupal module a default entry is made in the database for 
the 0.6.2 version of 
backplanejs. However, the keys are wrong, so the entry is not actually usable.

The fix is probably to just remove this initialisation altogether, since we 
don't know which version of 
backplanejs administrators will install, anyway.

Original issue reported on code.google.com by [email protected] on 13 Jan 2010 at 10:10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.