extjs

X-Frame-Options: DENY is not working for spring boot REST API

♀尐吖头ヾ 提交于 2020-02-06 07:55:26
问题 My Project has ExtJs as Front end and Spring boot as backend. ExtJs will call spring boot which will respond with JSON. I wanted to prevent clickjacking attack in my project. I have a simple html script, which will just load the website in an iframe.If the website is loaded within iframe, then it means it is not secure.I have added the following flags X-Frame-Options: DENY and Content-Security-Policy: frame-ancestors 'none'; in spring boot REST API response to prevent that.But even then, it

X-Frame-Options: DENY is not working for spring boot REST API

烈酒焚心 提交于 2020-02-06 07:54:07
问题 My Project has ExtJs as Front end and Spring boot as backend. ExtJs will call spring boot which will respond with JSON. I wanted to prevent clickjacking attack in my project. I have a simple html script, which will just load the website in an iframe.If the website is loaded within iframe, then it means it is not secure.I have added the following flags X-Frame-Options: DENY and Content-Security-Policy: frame-ancestors 'none'; in spring boot REST API response to prevent that.But even then, it

Changing Extjs 4 default MVC folder structure

我的梦境 提交于 2020-02-05 03:48:12
问题 I am writing an application that has both extjs and sencha touch version. my current folder structure is like root ...extjs4application ......app .........model .........store .........view .........controller ...senchatouch2application ......app .........model .........store .........view .........controller model and store are similar in both application so i need to organize my folder structure in such a way that both application could share single/common model and store folders. What

How to change image on panel when doing mouseover using CSS - ExtJs?

久未见 提交于 2020-02-03 08:45:06
问题 I'm trying to change images when doing mouseover/mouseleave using CSS or SASS. However, to acomplish this I can always do: header = panel.getHeader().getEl(); and then do this: //mouse enter event header.on('mouseover', function (e) { ....... ....... }, me); //mouseleave event header.on('mouseleave', function (e) { ........ }, me); However, I'm trying to accomplish the same functionality using CSS or SASS . Basically: a) All images should be displayed by default when loading the accordion. (

How to change image on panel when doing mouseover using CSS - ExtJs?

僤鯓⒐⒋嵵緔 提交于 2020-02-03 08:44:31
问题 I'm trying to change images when doing mouseover/mouseleave using CSS or SASS. However, to acomplish this I can always do: header = panel.getHeader().getEl(); and then do this: //mouse enter event header.on('mouseover', function (e) { ....... ....... }, me); //mouseleave event header.on('mouseleave', function (e) { ........ }, me); However, I'm trying to accomplish the same functionality using CSS or SASS . Basically: a) All images should be displayed by default when loading the accordion. (

Is there Global variables in EXT JS

给你一囗甜甜゛ 提交于 2020-02-03 04:22:27
问题 In java and C++ we could store a variable globally and access its value from any where in the project. Say, i am inside a class called Residence and i am saving the residenceNumber which is a INT to a global variable called houseNumberGlobalVariable . Now, i could access houseNumberGlobalVariable from any class in the project. In a similar fashion, is there a Global variable in EXTJS that i could use. I need to set a value from one class and access it from another. What is the equivalent in

Ext.JSON.decode(): You're trying to decode an invalid JSON String

无人久伴 提交于 2020-01-30 08:19:07
问题 I'm pretty new at this and have been trying to fix my problem since 2 weeks now hope you can help. It seems my json output is not valid but I'm not sure if my problem is coming from my php or my extjs script. I have a combo box wich should show me a list of choice when I click on it. The list is basically comming from a Sql table. When I check in my console in Chrome I see my output and it seems fine. ext-all-rtl-debug.js?_dc=1525825768241:10025 [E] Ext.JSON.decode(): You're trying to decode

Why is my ExtJS datagrid populating as empty?

ぐ巨炮叔叔 提交于 2020-01-25 22:36:17
问题 I am trying to make a proof of concept ExtJS datagrid en route to moving to a server-based store. At present my code is as follows: var arrayData = [ ['', 'Held', '', '', 'abc', '', '100.00', '0.00', 'Internal Approval'], /* 11 similar rows deleted for sanitization's sake */ /* I've tried with and without quotes around the monetary amounts. */ ]; var nameRecord = Ext.data.Record.create([ {name: 'approved_date', mapping: 1}, {name: 'approval_status', mapping: 2}, {name: 'approval_id', mapping:

Why is my ExtJS datagrid populating as empty?

自作多情 提交于 2020-01-25 22:34:11
问题 I am trying to make a proof of concept ExtJS datagrid en route to moving to a server-based store. At present my code is as follows: var arrayData = [ ['', 'Held', '', '', 'abc', '', '100.00', '0.00', 'Internal Approval'], /* 11 similar rows deleted for sanitization's sake */ /* I've tried with and without quotes around the monetary amounts. */ ]; var nameRecord = Ext.data.Record.create([ {name: 'approved_date', mapping: 1}, {name: 'approval_status', mapping: 2}, {name: 'approval_id', mapping:

EXTJS 5: Get the current cursor position in a textfield or lookupfield

自闭症网瘾萝莉.ら 提交于 2020-01-25 21:28:10
问题 I need to find the current position of the cursor so I can store it in a variable. I've looked at a few SO answers and none have been successful. What I have so far: function getCaretPos(id) { var el = Ext.getCmp(id); var rng, ii=-1; var currSelection = window.getSelection(); if(currSelection){ currSelection.modify("character", el.value.length); // get the current position // ii = currentPosition } return ii; }; For example: I have a textfield displaying data. MYWORD When I place the cursor