Questions tagged [yui]
A set of utilities and controls, created by Yahoo in JavaScript and CSS, for building richly interactive web applications using techniques such as DOM scripting, DHTML and AJAX
1,781
questions
0
votes
1
answer
62
views
YUI3 Get children of a element
I'm trying to get all children of a YUI3 Element like this
Y.one(document.body).children
// results in undefined
But I see a children attribute here: https://clarle.github.io/yui3/yui/docs/api/...
1
vote
1
answer
99
views
How to enable a checkbox using AUI script
This is the code to get the value of a checkbox
var email = A.one("#<portlet:namespace/>email").attr('checked');
What is the code to set/enable the checkbox with a tick ?
...
0
votes
1
answer
153
views
How to use Yahoo YUI in SuiteCRM
I am learning SuiteCRM and have a longway to go. I have never used Yahoo's YUI library.
I am wanting to create a popup dialog in the AOS_Quotes Edit View page with some ajax calls and noticed in some ...
0
votes
1
answer
351
views
Run Code After Squarespace Popup Event Listener/Trigger
I need to run some custom JS after the modal popup is loaded into the viewport. What's the best way to piggy-back onto whatever event is triggered?
Once the pop-up is loaded, I need to execute ...
-1
votes
1
answer
119
views
YUI (YAHOO) blocking my UI when i show the panel
i have a problem with this YUI modal , when i clic the button , it show the panel but is blocking the UI , and i cannot understand how to configure or prevent that behavior this is the code :
<asp:...
2
votes
2
answers
1k
views
Page layout rendered differently on github-pages
I created a user site on github-pages. For the layout, I am using yui to specify proportions. The layout seems to render correctly when viewed locally (opening index.html in a browser) but incorrectly ...
0
votes
1
answer
305
views
Set Default SquareSpace Product Variants failing to get YUI element
I'm trying to set the default options on a product on my Squarespace website.
I'm using the brine template.
Here is the website:
https://pear-nectarine-6mdf.squarespace.com/childrens-subscription
...
0
votes
0
answers
278
views
how to set aria-readonly to false for a table using jquery? i want to wrap the <td> inside <span> in document.rady function
Below code is copied from the chrome developer console , i want to enclose each td inside a span programmatically . i tried many was . i think aria-readonly atrribute of table is preventing me to wrap ...
0
votes
1
answer
636
views
Why do I get the error Y Not Defined Error in Squarespace
I am using a Javascript code to inject into a squarespace website but when I do, I get the error "uncaught referenceerror y is not defined". I'm trying to use Squarespace's Forms to write to ...
1
vote
1
answer
254
views
Change a datatable cell value to an input text with YUI
I'm working on a project with a javascript library YUI and JSP.
I'm trying to manipulate a YUI datatable, some cells of the table are select options and input text:
What I'm trying to do is to ...
1
vote
1
answer
86
views
Show Data in grid from DataSource in YUI?
I have attached my code in this question.
I am using YUI-3 for showing data in grid format from DataSource
I could not get data from datasource.But data passing from URL.
My grid showing No data ...
0
votes
1
answer
533
views
How to bundle js/css in legacy java web application
We have some older java web app's which are struts mvc based and we are using Maven for our build. We are looking into ways of bundling the static content such as js, css etc.
Ideally what we want ...
1
vote
0
answers
119
views
Override Javascript Function Expression
I have a scenario where I want to override/modify the javascript function expression. This is how the function expression looks like.
var func_1 = function func_1(){
// 300 lines of code
var ...
1
vote
2
answers
129
views
array of callbacks as Promise?
I am working through some old legacy code dealing with network requests using RPC/YUI library. It essentially creates tags to handle network requests. There are no promises for these.Also, because ...
0
votes
0
answers
41
views
response object is not defined in some scenarios
I am fixing a bug in this code. In some scenarios responseObj is null and says that
responseObj is not defined
Backend of this application is written in perl. Can anyone give a solution or any ...
1
vote
3
answers
99
views
Fnd links containing particular string in href and remove href between slashes with javascript only
I have a use case, where i have to select all <a>, containing string in url like "/web/local" and remove "/web/local" from all href of all these links.
Note: i can't use jQuery. I can use ...
0
votes
0
answers
89
views
Alfresco community 4.2.c pagination
In our old project we're using Alfresco 4.2.c community version.
There's a task page there, were you can use predefined filters to manage data you want to see.
I was able to add some extra filters ...
1
vote
0
answers
30
views
Why is using Y.all with each (function) returns only one element translated
I'm working with SquareSpace and I am trying to translate blog posts meta dates in French, on the summary page where all the posts appear. I was using a logic where I get all the elements within a ...
0
votes
0
answers
404
views
Yahoo.util.connect.asyncRequest POST with callback STOPPED WORKING SUDDENLY
I am using Yahoo.util.connect.asyncRequest POST with callback.
but it stopped working suddenly on UAT environment giving 500 internal server error as "Page not found"
However same code is working ...
1
vote
1
answer
266
views
Week Picker CSS
The date picker we are using does not have week picker feature we need. I wonder if we can fake a week picker through CSS since the only day users can choose is Saturday.
I cannot just simply target ...
0
votes
1
answer
109
views
Is it possible to set first day of alloy-ui scheduler weekview to monday insted sunday?
I'am using alloyui scheduler and weekview. I want to show from monday to sunday, not sunday to saturday.
Is it possible to set first day of alloy-ui scheduler weekview to monday insted sunday? I want ...
1
vote
1
answer
640
views
YUI rich text editor broken on latest Firefox
Well, it been few days I'm observing that YUI 2.9 rich text editor is grayed out in latest Firefox version 58.
As per few Stackoverflow links I tried to patched the YUI library javascript files but ...
0
votes
1
answer
70
views
Multiple tabview in same webcontent - LIFERAY - YUI library
I want to include 2 tabviews (2 individual groups of tabs) in the same webcontent in Liferay.
I don't know is it possible to instance twice the YUI().use('aui-tabview'...) or how I could do it.
...
0
votes
0
answers
135
views
Wrapper upgrading in JavaScript (YUI )
Firstly, I am doing a case study in upgrading in YUI library from YUI 2.9 to YUI 3.18.
Here is a wrapper which is using YUI2 declaration in this way
var MyButton = function (parentWindow, buttonElem) ...
1
vote
1
answer
86
views
YUI doesn't fire on.change when using bootstrap multiselect
I'm in a position where I am having to use jQuery and YUI within the same project. I am using Bootstrap multiselect - http://davidstutz.github.io/bootstrap-multiselect/
I am trying the below YUI code:...
0
votes
1
answer
95
views
YUI SchedulerEventRecorder popup
hope you are well.
What I need to build is a calendar allowing my users to provide me their availability via a calendar and save that into the db.
I'm playing with the SchedulerEventRecorder and so ...
0
votes
1
answer
240
views
Comparing YUI2 and YUI3
I was using YUI 2.9 version before and now to upgrade it to YUI 3.18.1 what are the benefits that I will be getting from it. From where can I get those things which got improvised with YUI up-...
0
votes
1
answer
44
views
Load a link inside a SELECT tag in YUI
I have a SELECT with many option items like this:
<select>
<option data-link="http://www.foo.com">Link to Foo website</option>
<option data-link="http://www.bar.com">Link ...
0
votes
0
answers
68
views
YUI Autocomplete Editing Issue
I am creating a webform and am in need of a textarea with autocomplete that pulls from a list of streets I've created. I have been using YUI3 Autocomplete widget and it has been working great, but I ...
0
votes
0
answers
93
views
How to maintain the context in javascript async call?
I'm working with moodle version 3.2, and i want to catch all the ajax requests and delay them. I can catch them, but i can't maintain the context in which they were called.
Example: I have 2 ...
0
votes
1
answer
115
views
How to show Total number of pages in YUI Paginator?
I am using YUI Paginator API for pagination and I need to show Total number of pages on screen. I saw that there is a function getTotalPages() in API but I am unsure about how to use it, there isn't ...
0
votes
1
answer
87
views
Only display 1 article in RSS feed YUI
I only want to display one article but when I change the (0,2) to (0,1) nothing appears. Is there a quick solution?
YUI().use('yql', function(Y){
var query = 'select * from rss(0,2) where ...
1
vote
0
answers
109
views
Onclick handler not firing on YUI MenuButton MenuItem when inside a YUI DataTable header
so this one is super-specific, but I'm hoping someone will have an insight.
I've been tasked with adding inline-filter buttons to the header of a YUI DataTable. It's YUI 2.7, I'm stuck with it as I'm ...
0
votes
2
answers
205
views
Custom tables in the workflow details page
In addition to the currentTasks and workflowHistory tables I want to add two another tables. I added two blocks with the headers in workflow-form.get.html.ftl and two widgets in workflow-form.js. Also ...
1
vote
1
answer
758
views
AlloyUI Scheduler - add custom attribute after loading from database
I've been struggling with this issue for a couple of days now, basically what I'm trying to accomplish is to add a custom attribute to each event that I load from the database.
I searched around for a ...
0
votes
0
answers
858
views
YUI Compressor Minify all JS in a specific folder
is there a way to minify all the JS file into a specific folder and output it into another file path? because currently i'm using a single process like this:
java -jar yuicompressor-2.4.7.jar "C:\QG\...
0
votes
1
answer
175
views
How to add https on Yui libraries links?
How can i add https to yui library links, i have used (https://yui-s.yahoo...) but unfortunately it is not working with every script as it is not working with gallery and editor scripts. Even i have ...
0
votes
1
answer
89
views
YUI Library not working on SSL (secure server)
I use YUI Library for cropping image, but it works on http:// but not work on https://.
Any possible solution to solve this issue?
0
votes
0
answers
139
views
YUI library to get contents of a website in a popup modal
Library : http://yuilibrary.com/
YUI().use('panel', function (Y) {
var dialog = new Y.Panel({
contentBox : //Need to get content from external website,
bodyContent: '',
...
0
votes
2
answers
462
views
Moodle Atto 'plugin not found'
I've been trying to use the Atto plugin template (https://github.com/justinhunt/moodle-atto_newtemplate) to try and create my own Atto plugin. I've made the changes outlined in the README, and got ...
0
votes
1
answer
88
views
Asterisk at the end of CSS property
What is the Asterisk at the end of CSS property (font and font-family)?
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/...
0
votes
1
answer
214
views
How to open a folder in a new tab in Alfresco using AJAX?
I have View Policy button in my custom-toolbar.js. When I click the button it has to open the Policy folder in a new tab. This is what I have done so far.
/**
* View Policy button click ...
0
votes
2
answers
696
views
How to refer to a child nodeRef in Alfresco-share?
I am working on a custom doclib javascript. I have a folder structure which is similar to A --> B --> C where A and B have multiple children. I have the noderef of the folder A which I have found out ...
1
vote
0
answers
182
views
YUI Compressor on Windows 7 - unable to minify multiple files
I can minify individual files with the command
java -jar yuicompressor-2.4.8.jar <file to compress> -o <output file>
But I cannot minify multiple files. I tried:
java -jar yuicompressor-...
2
votes
1
answer
2k
views
Save, Edit, Delete, and Cancel events in AlloyUI Scheduler
How can I listen for the Save, Edit, Delete, and Cancel events from AlloyUI's Scheduler? I need to save the value in our database for future use, but I don't see any documentation for this.
The ...
0
votes
1
answer
767
views
Why does not open AlloyUI modal dialog in the second time?
I am trying to load external URL into modal AlloyUI dialog in Liferay Portal. If I open dialog at the first time the contents are showing but at the second time the contents are not showing. If ...
0
votes
1
answer
2k
views
How can I recreate Squarespace's Product Quick View in standard Product View?
Overview
So I'm trying to take functionality from one part of Squarespace's Galapagos commerce template and add it to another but it's proving to be more difficult than I thought.
I need the image-...
0
votes
1
answer
2k
views
How to Run cssnano from Command Line
I'm not completely familiar with node JS, but I see that cssnano is a JS tool to minify CSS that completes this task in a more advanced way than the deprecate YUI compressor. Only problem is, that I ...
1
vote
0
answers
102
views
How to change the index of YUI tabview - YII
I'm trying to reassign the index of selected YUI TabView in jquery tabview.on('SelectionChange') , I could not get any idea to reassign the tabindex in jquery, please look into the below code.
<...
1
vote
1
answer
154
views
YUI CSS template class .yui-t7 gap at top of page
Hoping someone who is familiar with YUI's CSS templates can help me debug a CSS problem. I'm using a free html resume template I found on the net, and I want to print it on paper via the browser's ...