Anyone know how to disable polymer iron-autogrow-textarea input? - textarea

Can't find any info on this.
Simply trying to use 'disabled' on my iron-autogrow-textarea with no avail. Doesn't work anyway i try it, javascript or directly on element. Documentation also doesn't seem to give any insight.
Anyone have any info? Am i missing something simple?
<iron-autogrow-textarea disabled style="border:none; width: 80%;" bind-value="{{bookingDetails}}"></iron-autogrow-textarea>
Thanks everyone,
Ryann.

Ok guys,
Here's the solution, i noticed there is a child textarea which i need to select directly, in my situation i used the code below. 'job_details' is the id of the autogrow-textarea.
this.$.job_details.querySelector('textarea').disabled = true;
Thanks for checking it out.

Related

set the datatype dropdown value in umbraco?

I'm hoping some one can help. I've create an new page with an umbraco datatype drop down. I have a form in the front end which will create a new page. I was wondering is there a way I can set the value of the dropdown. atm I have just been passing in the value but to no avail. any help given will be greatly appreciated.
kind regards,
H
I think I found a good solution not too sure if it is the "right" solution but it seems to work
https://our.umbraco.org/forum/developers/api-questions/54462-Set-value-of-UmbracoDropDown-programatically

nokogiri and the href label

I am not sure how to access the label part of the anchor href tag. The other question that looks at this doesnt really answer it for me.
I have this code:
#name = page.css("#content").css("a")[1]
Which gives this result
generation xerox
I want to get at the "generation xerox" bit
I wouldnt mind getting at the href, I dont understand that either. I have read several other SO questions but I can't get it to work
Thanks in advance all
You can access the label with #name.text and the link with #name['href']
See doc

How can I get jqzoom position absolute?

I'm trying to make JQzoom's zoompad absolute positioning on my page. I did try to change the CSS but it doesn't work.
Can anyone please help?
problem solved, I have found another image-zoom plugin to solved the position need. The plugin call Easyzoom if you like to know. link: http://cssglobe.com/jquery-plugin-easy-image-zoom/

DNN jQuery conflict - pop up window won't close

I'm working on a DNN site that has been set up before my time here.
There's some conflict with the jQuery I believe, which prevents the modal pop up window in the attached calendar (link) events to not close properly:
http://www.sim-one.ca/NewsandEvents/calendar-of-events.aspx
I tried eliminating one script call at a time to see which one could be messing this up to no avail.
When I test this with the default theme it works like a charm.
Any ideas? Anyone came across something like this before?
Thank you!
You've got plenty of 404 errors on that page, ensure first, that files are in their place.
For example, http://www.sim-one.ca/NewsandEvents/Portals/_default/Skins/SimTwo/includes/js/jquery.listnav-2.1.js was not found. Ensure this path exists.
I agree with Anrie that your references are broken. For example, http://www.sim-one.ca/NewsandEvents/Portals/_default/Skins/SimTwo/includes/css/custom-theme/jquery-ui-1.8.9.custom.css is showing 404 but http://www.sim-one.ca/Portals/_default/Skins/SimTwo/includes/css/custom-theme/jquery-ui-1.8.9.custom.css
You can just use links like :
/Portals/_default/Skins/SimTwo/includes/css/custom-theme/jquery-ui-1.8.9.custom.css in order to fix this in skin file or use <%= SkinPath %>.
Try adding return false; on your event after calling the dnnModal.show()

Youtube API - Order newsubscriptionvideos by publishdate

can someone tell me how to order this feed by date?
http://gdata.youtube.com/feeds/base/users/USERNAME/newsubscriptionvideos?alt=json
This does not work oO
http://gdata.youtube.com/feeds/base/users/USERNAME/newsubscriptionvideos?orderby=published&alt=json
Thanks in advance!
Peter
Not sure if you've figured this out. But it seems to work fine for me. I just added the orderby=published.
And I'm using "users/default/newsubscriptionvideos" instead of actually specifying the username. Maybe that makes a difference.

Resources