Show Posts
|
Pages: [1] 2 3 ... 29
|
3
|
General Category / General Discussion / Re: Filebox - Limit Displayed Files by File Extension
|
on: March 05, 2021, 04:40:27 PM
|
Jarry, thanks, that does NOT work. in chrome (osx) the finder window that is opened to select a file still shows all files and not only files with the extension set in accepts. UPDATEOK, I just checked the generated html, and it appears that even though I have defined the 'accept' param in the javascript def, it does not get added to the <input type="file"> as an attribute, but it does get added to another input generated by the control ?? $('#myfile').filebox({ multiple: false, accept:'.xyz', onChange: function(nv,ov){ ... more code });
html: <input class="easyui-filebox filebox-f textbox-f" id="myfile" accept=".xyz" style="display: none;"> ... more code
### Shouldn't this be the input that the accept attribute is attached to ??? <input type="file" class="textbox-value" id="filebox_file_id_6" name="">
If I then manually add the accept attr to the type=file it works as expected, I think this is a bug ?! <input type="file" class="textbox-value" id="filebox_file_id_6" name="" accept=".xyz">
I can fix this issue with: $('#myfile').next('span.filebox').find('input[type="file"]').attr('accept','.xyz');
|
|
|
6
|
General Category / EasyUI for jQuery / Re: cloning a control to a new control.
|
on: November 23, 2020, 03:14:17 AM
|
@jarry - this multibox control seems to work except for when using form.load() function.
I have created a setValue() function for this control, and for debugging purposes, I logged some text to the console when the setValue() function is called.
If I call this from the chrome javascript console, then the value is updated correctly and I see the text logged to the console, however when I use form.load() the text is not logged to the console and it looks like form.load() does not call setValue() on the control.
Any suggestions on what the cause / fix may be ?
|
|
|
12
|
General Category / EasyUI for jQuery / Re: CSP Violation when clicking any Combobox Dropdown
|
on: June 13, 2020, 03:11:35 AM
|
This appears to be the jquery function that is triggering the error, but I have no idea why: function () { var t, n, r = N.createElement('div'); for (t in { submit: !0, change: !0, focusin: !0 }) n = 'on' + t, (c[t + 'Bubbles'] = n in e) || (r.setAttribute(n, 't'), c[t + 'Bubbles'] = !1 === r.attributes[n].expando); r = null }(); var V = /^(?:input|select|textarea)$/i, J = /^key/, Y = /^(?:mouse|pointer|contextmenu)|click/, G = /^(?:focusinfocus|focusoutblur)$/, Q = /^([^.]*)(?:\.(.+)|)$/;
specifically, this is the line that gets highlighted when the error occurs: (c[t + 'Bubbles'] = n in e) || (r.setAttribute(n, 't'), c[t + 'Bubbles'] = !1 === r.attributes[n].expando);
|
|
|
13
|
General Category / EasyUI for jQuery / Re: Latest Chrome Causing Ajax Form Issues
|
on: June 12, 2020, 03:46:58 PM
|
I managed to solve this in my case on version 1.4.4: jquery.easyui.min.js//_51c.attr("src",window.ActiveXObject?"javascript:false":"about:blank"); _51c.attr("src","javascript:false");
But I am only allowing chrome / webkit browsers, no IE. It is indeed caused by chrome cancelling requests on frames.
|
|
|
14
|
General Category / EasyUI for jQuery / CSP Violation when clicking any Combobox Dropdown
|
on: June 12, 2020, 06:00:37 AM
|
I am trying to implement CSP on my application, I have succeeded and are using sha256 digests on my inline scripts and the page now load without any error.
But as soon as I click on an element, such as a combobox, or open a panel I get a violation.
Any body else experienced / solved this problem while maintaining security ?
|
|
|
|