Abort Google Analytics when I print if there is no internet

I Couldn't find specifically what I need on the net. The problem is: When a user's machine doesn't have an internet connection and tries to load Google Analytics the page waits for about 1.5 minutes depending on the natural time out of the browser. This is a problem for a network that prohibits connecting to Google and only allows connection to the web server. There is a good ch

如果没有互联网,我打印时中止Google Analytics

我无法具体找到我需要的网络。 问题是: 当用户的计算机没有互联网连接并尝试加载Google Analytics时,该页面会等待大约1.5分钟,具体取决于浏览器的自然时间。 对于禁止连接到Google并仅允许连接到Web服务器的网络,这是一个问题。 我们很有可能会以这种方式迎合客户。 现在,当用户正在等待www.google-analytics.com/analytics.js的回复时,用户按下我们的打印按钮,该按钮会创建页面的打印格式,然后调用Javascript w

Add fields in DevExpress Pivot using AngularJS

I'm looking at this template to build a web application: https://js.devexpress.com/Demos/WidgetsGallery/Demo/PivotGrid/FieldChooser/AngularJS/Light/ In the example there are static data. I have to retrieve them from the server. So, I wrote this: $scope.testData = []; $scope.pivotGridDataSource = new DevExpress.data.PivotGridDataSource({ fields: [{ caption: "Nome", dataField:

使用AngularJS在DevExpress Pivot中添加字段

我正在寻找这个模板来构建一个Web应用程序:https://js.devexpress.com/Demos/WidgetsGallery/Demo/PivotGrid/FieldChooser/AngularJS/Light/ 在这个例子中有静态数据。 我必须从服务器中检索它们。 所以,我写道: $scope.testData = []; $scope.pivotGridDataSource = new DevExpress.data.PivotGridDataSource({ fields: [{ caption: "Nome", dataField: "fullName", area: "row" }, { captio

Angular : DevExtreme DataGrid State Storing

I'm using the DevExtreme DataGrid widget under my Angular app. here is the view of my datGrid: <dx-data-grid id="gridContainer" [dataSource]="employees" [allowColumnReordering]="true" [allowColumnResizing]="true" [columnAutoWidth]="true"> <dxo-column-chooser [enabled]="true"></dxo-column-chooser> <dxo-column-fixing [enabled]="true"></d

Angular:DevExtreme DataGrid状态存储

我正在使用Angular应用程序下的DevExtreme DataGrid小部件 。 这里是我的datGrid的视图: <dx-data-grid id="gridContainer" [dataSource]="employees" [allowColumnReordering]="true" [allowColumnResizing]="true" [columnAutoWidth]="true"> <dxo-column-chooser [enabled]="true"></dxo-column-chooser> <dxo-column-fixing [enabled]="true"></dxo-column-fixin

Angular DevExtreme DataGrid Widget Service

I'm experimenting DevExtreme Datagrid Widget under my Angular App. To get the DataGrid working i'm following the demo documentation from : https://js.devexpress.com/Demos/WidgetsGallery/Demo/DataGrid/BatchEditing/Angular/Light/ Where i should declare a service to injects its data to my widget component. Here is my service: app.service.ts import { Injectable } from '@angular/core'

Angular DevExtreme DataGrid Widget服务

我在我的Angular App下试验DevExtreme Datagrid Widget。 为了让DataGrid工作,我按照以下演示文档:https://js.devexpress.com/Demos/WidgetsGallery/Demo/DataGrid/BatchEditing/Angular/Light/ 我应该在哪里声明一个服务来将其数据注入到我的小部件组件中。 这是我的服务: app.service.ts import { Injectable } from '@angular/core'; export class Employee { ID: number; FirstName: string; LastNa

DevExtreme DataGrid with Angular: Remove automated save after edit

I'm using a dataGrid widget (from DevExtreme lib) for my Angular app. The dataGrid works well, and any editing actions are automatically saved. I want to cancel this automated save action and replace it with: a simple button which does the SAVE when clicked. Here is the code: app.component.ts import { NgModule, Component, enableProdMode } from '@angular/core'; import { BrowserModul

带有Angular的DevExtreme DataGrid:在编辑后删除自动保存

我为我的Angular应用程序使用了一个dataGrid小部件(来自DevExtreme lib)。 dataGrid工作正常,任何编辑操作都会自动保存。 我想要取消此自动保存操作并将其替换为: 一个简单的按钮,点击时可以进行保存。 代码如下: app.component.ts import { NgModule, Component, enableProdMode } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { platformBrowserDynamic } from

Number format in devextreme datagrid for Angular2

In my dexextreme datagrid I'm using fixedPoint as the format for a cell with a number. The numbers are formatted like: 1,234,567.12 I want them to be formatted like 1.234.567,12 My feeling says it has something to do with the locale, but I'm not sure how to set it in my Angular2 application. Can anyone help me out? It looks like the only thing you can do is to edit the numbers.js

Angular2的devextreme datagrid中的数字格式

在我的dexextreme datagrid中,我使用fixedPoint作为数字单元格的格式。 数字格式如下:1,234,567.12 我希望他们被格式化为1.234.567,12 我的感觉表明它与语言环境有关,但我不确定如何在我的Angular2应用程序中设置它。 谁能帮我吗? 看起来你唯一能做的就是编辑devextreme / localization中的numbers.js文件。 当然这是一个可怕的解决方案; 软件包的更新将会破坏它,但它似乎是目前唯一的解决方案。

Bind JSON to DevExtreme datagrid

I have problem with loading data to DevExtreme datagrid. If i trying example, with this example code: var orders = new DevExpress.data.CustomStore({ load: function (loadOptions) { var deferred = $.Deferred(), args = {}; ​ if (loadOptions.sort) { args.orderby = loadOptions.sort[0].selector; if (loadOptions.sort[0].desc) args

将JSON绑定到DevExtreme数据网格

将数据加载到DevExtreme datagrid时遇到问题。 如果我试着用这个示例代码示例: var orders = new DevExpress.data.CustomStore({ load: function (loadOptions) { var deferred = $.Deferred(), args = {}; ​ if (loadOptions.sort) { args.orderby = loadOptions.sort[0].selector; if (loadOptions.sort[0].desc) args.orderby += " desc";

using webpack's chunking with es6

I'm building a web app (react app written in es6) that is starting to get pretty big. As a result, I'm seeing unacceptably long download times for my JS file on mobile. I'm trying to wrap my mind around chunking large JS applications into chunks that are loaded on-demand. I'm using webpack, and have read this article: https://webpack.github.io/docs/code-splitting.html Using

使用webpack与es6分块

我正在构建一个开始变得相当大的web应用程序(反应用es6编写的应用程序)。 结果,我看到我的JS文件在手机上的下载时间令人无法接受。 我正在试图将大型JS应用程序分块为按需加载的块。 我正在使用webpack,并阅读了这篇文章: https://webpack.github.io/docs/code-splitting.html 使用这篇文章,我将我的代码拆分为app.js和vendor.js,其中vendor.js包含所有第三方模块/插件。 我想更进一步,将app.js文件分成几个入

Oracle Apex: Javascript code in PL/SQL Block

Is it possible to have JavaScript code in the PL/SQL block. I want to execute the pl/sql block containing JavaScript code on submit in oracle Apex page process. DECLARE v_count NUMBER; BEGIN select count(*) into v_count from summary where prd_items = 'Total'; HTP.p ('<script type="text/javascript">'); HTP.p ( 'alert(''The value of Total for BU is ' ||v_

Oracle Apex:PL / SQL块中的Javascript代码

是否有可能在PL / SQL块中拥有JavaScript代码。 我想在oracle Apex页面进程中执行包含JavaScript代码的pl / sql块。 DECLARE v_count NUMBER; BEGIN select count(*) into v_count from summary where prd_items = 'Total'; HTP.p ('<script type="text/javascript">'); HTP.p ( 'alert(''The value of Total for BU is ' ||v_count|| '.n' || 'You have to enter correct val

How to sort filter items in DevExtreme data grid's headerFilter?

I am using the Data Grid of DevExtreme to display a large amount of data in a table with several columns. One of the columns is used to filter the data. Clicking on the filter icon shows a popup with all possible filter items as checkboxes. I want these items to be sorted alphabetically. How do I do this? Let's consider the data source of the grid is an array of objects like this: [{

如何在DevExtreme数据网格的headerFilter中对过滤器项进行排序?

我正在使用DevExtreme的数据网格在包含多列的表格中显示大量数据。 其中一列用于过滤数据。 点击过滤器图标显示一个弹出窗口,其中包含所有可能的过滤器项目作为复选框。 我希望这些项目按字母顺序排序。 我该怎么做呢? 让我们考虑网格的数据源是这样一个对象的数组: [{ name: 'Luke Skywalker', movie: 'Star Wars' }, { name: 'Rantanplan', movie: 'Luky Luke' } ...(much much more)... ] 我创建