yui

YUI Datatable: custom column definitions and data

倖福魔咒の 提交于 2019-12-02 10:57:41
问题 I am trying to use the YUI datatable to display data from a JSON object which looks like this: {"results":[{"label":"Column 1","notes":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. "},{"label":"Column 2","notes":"Lorem ipsum dolor sit amet, consectetur adipiscing elit."},{"label":"Column 3","notes":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. "},{"label":"Column 4","notes":"Lorem ipsum dolor sit amet, consectetur adipiscing elit."},{"label":"Column 5","notes":"Lorem

YUI on IE8: Argument not valid on dom-style.js

六月ゝ 毕业季﹏ 提交于 2019-12-02 07:20:37
问题 I have asked this everywhere but still not getting any feedback and is getting me crazy. We are using some Alloy UI widgets on the portal im working with (Liferay 6.2) and everything works fine in all the browsers but IE8. For some reason im getting an error message regarding an invalid argument in one of the YUI core files functions regarding setStyle (what you use to add styles to a node in YUI). I have realized that IE8 is not happy with this (here's the whole YUI function) : setStyle:

YUI on IE8: Argument not valid on dom-style.js

ⅰ亾dé卋堺 提交于 2019-12-02 05:02:11
I have asked this everywhere but still not getting any feedback and is getting me crazy. We are using some Alloy UI widgets on the portal im working with (Liferay 6.2) and everything works fine in all the browsers but IE8. For some reason im getting an error message regarding an invalid argument in one of the YUI core files functions regarding setStyle (what you use to add styles to a node in YUI). I have realized that IE8 is not happy with this (here's the whole YUI function) : setStyle: function(node, att, val, style) { style = style || node.style; var CUSTOM_STYLES = Y_DOM.CUSTOM_STYLES; if

How can I create an empty namespace object without overwriting another object with the same name?

こ雲淡風輕ζ 提交于 2019-12-02 03:20:47
I have been studying as much as I can about the Module Pattern suggested by the Yahoo YUI Blog. I've noticed that the YUI offers the ability to create a new empty namespace object without overwriting an existing one of the same name like so: YAHOO.namespace("myProject"); Which can then be called and used with YAHOO.myProject (Reminder: if YAHOO.myProject already exists it is not overwritten) How can I achieve a similar effect using plain javascript, and without using the YUI? Please explain with as much detail as possible. The full YUI blog article where this is done can be found here . As I

<video>.currentTIme doesn't want to be set

有些话、适合烂在心里 提交于 2019-12-02 02:46:56
问题 I'm trying to write a piece of Javascript that switches between two videos at timed intervals (don't ask). To make matters worse, each video has to start at specific place (about ten seconds, and again, don't ask.) I got the basics working by just using the YUI Async library to fire to switch the videos at intervals: YUI().use('async-queue', function (Y) { // AsyncQueue is available and ready for use. var cumulativeTime = 0; var q = new Y.AsyncQueue() for (var x = 0; x < settings.length; x++)

<video>.currentTIme doesn't want to be set

旧街凉风 提交于 2019-12-02 02:33:38
I'm trying to write a piece of Javascript that switches between two videos at timed intervals (don't ask). To make matters worse, each video has to start at specific place (about ten seconds, and again, don't ask.) I got the basics working by just using the YUI Async library to fire to switch the videos at intervals: YUI().use('async-queue', function (Y) { // AsyncQueue is available and ready for use. var cumulativeTime = 0; var q = new Y.AsyncQueue() for (var x = 0; x < settings.length; x++) { cumulativeTime = cumulativeTime + (settings[x].step * 1000) q.add( { fn: runVideo, args: settings[x]

Submitting a form with jQuery/Ajax only works every other time

社会主义新天地 提交于 2019-12-01 22:17:47
I'm trying to submit a form which includes a file upload via Ajax/jQuery, process the form through a PHP script, and return the result in the div that the form originally resided in. My current form code is: <section id="content-right"> <form name="uploader" id="uploader" method="POST" enctype="multipart/form-data"> <input type="hidden" id="MAX_FILE_SIZE" name="MAX_FILE_SIZE" value="10485760" /> <input type="file" name="fileselect" id="fileselect" /> <input type="submit" name="submit" id="submit" value="Upload" /> </form> </section> And my current Ajax/jQuery script is: <script> $(function() {

Permission denied to call method Location.toString

蹲街弑〆低调 提交于 2019-12-01 10:31:25
I'm using YUI, and sometimes I'll see this "Permission denied to call method Location.toString" error, It's reported in connection.js, I didn't find any clue why this error occur yet. Very strange If you are dealing with any Flash through a cross-domain iframe, then it is quite possible that you are seeing a bug in Adobe's Flash Player that occurs with FF2 and FF3. The bug is in Adobe's public JIRA here: http://bugs.adobe.com/jira/browse/FP-561 There seems to be no motivation to get it fixed, unfortunately. If the script is executed from a different domain, or you are trying to access the

Automate Eclipse “Yui Compressor…”

橙三吉。 提交于 2019-12-01 04:30:37
问题 Eclipse PDT has this handy built-in Yui Compressor in the context menu for files. But when building a webapp that uses multiple such files, it becomes tedious to compress the files manually after each update. It doesn't even remember what files compress to which filenames, so you have to enter that again. Is it possible to automate this process easily within Eclipse, so you can click on "build" or something and all specified files will be compressed to their targets? There is really a vacuum

YUI Version Conflict Issue in Portlet

半世苍凉 提交于 2019-12-01 00:07:16
I'm loading yui.js 3.3.0 version file from portlet but liferay its using 3.2.0 yui.js file, so whenever i'm loading that page js errors are coming like G_ENV._loaded[VERSION] is undefined - this error is coming in yui.js which is liferay using that is 3.2.0 version. so its replacing value like G_ENV._loaded[3.2.0] and that will throw an error becoz we loaded 3.3.0 version from portlet. I replaced yui.js 3.2.0 version file in portlet but It was throwing some other js errors. How will it work same in 3.2.0 or Is there any way to update existing version of yui? This is the code of yui.js in this