Orbeon 4.7 $.browser is undefined - orbeon

I have upgraded my application from orbeon 4.4 to orbeon 4.7. On loading forms, in the browser console I'm getting $.browser is undefined.
On debugging I found that orbeon 4.7 is using jQuery v1.11.0 and $.browser is removed from jQuery v1.9.
Any idea why it is still using removed/deprecated $.browser??
How to solve this??

Per the jQuery documentation, "This property was removed in jQuery 1.9 and is available only through the jQuery.migrate plugin. Please try to use feature detection instead.". So you could:
Add the JavaScript for jquery-migrate to your project.
Change your code to check whether the feature you want to use is available, rather than rely on knowing in which browser it is available. (Most front-end developers would recommend you try to use this first.)

Related

Orbeon - saxon parse() stop working in new version

I have problem with function saxon:parse() in my form. I used it in Orbeon 2020.1.2 CE and it worked well. After update to version 2021.1.2 PE (I have prebuild) it stop working. I try same thing on orbeon.com too with same bad result (https://demo.orbeon.com/demo/fr/orbeon/builder/edit/b57d32a03929e4be3b6cc391497dc14fb48bd878)
Strange is when i try same thing saxon:parse(//xml) in xforms-inspector it work well (I change $ from form to // in inspector). Is some change in using saxon in new version or I hit some bug? Thank you
As of Orbeon Forms 2021.1, you can't use saxon:parse() anymore, and should use xf:parse(), which is a new XForms 2.0 function (see differences between XForms 1.1 and 2.0).
In new code, it is always better to use xf:parse(). However, for backward compatibility, it would be good for Orbeon Forms to also support saxon:parse(), and this is tracked as issue #5271.

How safe is it to use jQuery 2.0 beta with the latest jQuery Mobile 1.3?

I'm exploring jQuery Mobile so what I'm doing is not anywhere near production.
Q: Is it ok to use jQuery 2.0 with jQuery Mobile or should I just stick with 1.8.2 like they say to do on the download page?
From my experience it is safe. I am using jQuery 2.0.0b1 with jQuery Mobile 1.3 and currently I didn't find a problem.
Basically 2.0 is 1.9 but without support for IE 6 and 7. And lets be honest you don't need them for jQuery Mobile. And 1.9 is only a cleaner, slimmer, modern-API upgrade from jQuery 1.8.
On the other hand, like Omar told you in his comment, stick to jQ 1.8.3. Higher version will not provide you with faster or better code execution. They will only learn you to abandon all that deprecated code like bind, live, delegate .... and so on.
EDIT :
I forgot, if you want to use version 2.0 you will need to learn to bind your events with a function on. This is very important because 90 % of jQuery Mobile examples use live or bind for event binding.

jQuery Spell Checker plugin for TinyMCE in .NET

We have an app written in .NET/MVC (C#) and it uses TinyMCE as the WYSIWYG editor. Works fine except no spell checking natively. The current options are pretty limited (iespell for IE but requires ActiveX, or spellchecker for PHP).
I stumbled on this site and it looked promising until I read the documentation and saw that it also requires PHP on the backend.
So I'm looking for an alternative - jQuery plug-in that will work with a .NET backend or possibly replacing TinyMCE and using CKEditor which supports SCAYT.
Anyone have any idea if there is a good jQuery plugin to use or am I possibly stuck with ripping out TinyMCE and replacing it with CKEditor?
You can use typo.js, you can use to detect if a word is misspelled and also to get a list of suggestions, but you will have to handle the replacement yourself. I am using it with CodeMirror in my asp.net Mvc project
To anyone coming on this post later:
TinyMCE can now use the browser's built in spell checking functionality, just turn on the option as follows:
tinymce.init({
selector: 'textarea', // change this value according to your HTML
browser_spellcheck: true
});
More details in the relevant section of the official documentation.
You should then get the red squigglies in the browser:

ORBEON Forms - how to use the Profiler

Can anybody share some detailed steps on how to configure the profiler, and how to see the results. It seems that using /profiler/xpl/ or /tools-profiler/xpl/ gives the same error:
Cannot load "/apps/profiler/page-flow.xml" with webapp loader
The XPL profiler has been removed since Orbeon Forms 3.9. You can still find its source code in the "attic", in case you're interested in reviving it, but it isn't currently part of Orbeon Forms and there are no plans to take it out of the attic.

Help with PrimeFaces

I am working slowly through the PrimeFaces showcase, I am using NetBeans 7.0, JDK1.6, PrimeFaces 2.2.1, GlassFish 3.1, JSF 2.0, Win XP Prof
Some of the examples work fine, others don't work and then I get errors that a component doesnt exist in the library or the component doesn't have a specific attribute. I have not done any configuration and the purchased very lacking PrimeFaces Manual seemed to suggest I didn't need to
I keep reading about snapshots and am wondering, should I be using a snapshot:
1) Do I need to use this snapshot to get everything to work, if so HOW do I use it?
2) Is there any more documentation / tuts / examples/ books ... of using PrimeFaces components with the above requirements that I have, that have been tested and work.
I have tried other forums but get no response, I would like to eventually develop some apps using PrimeFaces, but can't get the answers or help I need.
On the Primefaces web page there is a "Showcase 2.2.1" and a "Labs Showcase 3.0". Maybe you tried some features of the Labs Showcase with your 2.2.1 installation?
If not, please give an example of a not working component.

Resources