Ho lavorato in questa vacanza per scoprire che il mio codice non funzionerà su HTTPS. My LOCALDEV è HTTP e il nostro server di produzione è HTTPS.YUI 3 sta per yui.yahooapis.com per ottenere il codice. Sono HTTPS e contenuto bloccato
Per qualche motivo YUI uscirà per ottenere JS, quando lo ho localmente.
ce l'ho sul server ...........
E infine il mio codice:
YUI().use('autocomplete', 'autocomplete-filters', 'autocomplete-highlighters', function (Y) {
var notes = [
"Dr Follow Up Complete Notes",
"Fax Document Notes",
"Event Notes",
"Email Information Notes",
"Corresponding Document Notes",
"Return Call Notes",
"Admit Notes",
"Discharge Notes",
"Other Notes",
"Excellent Resource Notes",
"Good Resource Notes",
"Neutral Resource Notes",
"Poor Resource Notes",
"Unacceptable Resource Notes",
];
var inputNode = Y.one('#name');
inputNode.plug(Y.Plugin.AutoComplete, {
resultFilters : 'phraseMatch',
resultHighlighter: 'phraseMatch',
source : notes,
minQueryLength : 0
});
inputNode.ac.get('boundingBox').setStyle('zIndex', 50);
inputNode.on('focus', function() {
inputNode.ac.sendRequest('');
})
=== ================================================== =============================
Questo dopo che ho aggiunto: base: 'include/javascript/yui3/build'
non ho quella directory nel mio build.
Ha funzionato ma ora sta chiedendo BUILDAUTOCOMPLETE e non ce l'ho. –
Ci scusiamo per la risposta tardiva - sembra che tu abbia dimenticato di includere la barra finale ('base: 'include/javascript/yui3/build /'', non 'base: 'include/javascript/yui3/build'') – Caspar
Aggiornamento di richieste non protette refernce: https://developers.google.com/web/fundamentals/security/prevent-mixed-content/ fixing-mixed-content? hl = it – Sanka