It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
in my project I have a list of project names and I'd like to edit the names with dynamic textboxes using angular.js. I'd like the textboxes of my projects names to become editable if I click on a button next to my project titles, and confirm the edition with another button when I'm done typing. Can I do such thing with angular.js ? I just finished the tutorial and am quite noob with it.
Actualy it is one of my most favorite example when I am doing AngularJS presentations to public :)
There is a code without single line of JS code:
http://plnkr.co/edit/ZwYA6R2e6kdhHBJAYf3V?p=preview
<span ng-hide="editing">
{{name}} <button ng-click="editing = true">Edit</button>
</span>
<span ng-show="editing">
<input type="text" ng-model="name">
<button ng-click="editing = false">Save</button>
</span>
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
i need your suggestions about my idea with my team:
we want to create a platform or let me named it a framework the roll of this "framework" is:
make desktop application so easy and powrfull specially in styles cause it is based on HTML5, css, and the logic side base on c++, we want to create an intermediate tag-language (base on XML namespaces); to create the GUI and to bind the c++ code with, if we create this "framework", how about it's powerfull and usability, ....
we want to create this "framework" cause we are mastered c++, we hate the requirements of .net, java, ..., and we want to use the powerfull of html, css, javascript, c++, the main part in my idea is to make all the of the javascript, css and html under one tag-language 'gml' to make the UI creation and styling animating so easy for developers, ex: in HTML we should type:
<input id="gobutton" type="submit" value="Go!" />
and in css code:
input#gobutton{
cursor:pointer; /*forces the cursor to change to a hand when the button is hovered*/
padding:5px 25px; /*add some padding to the inside of the button*/
background:#35b128; /*the colour of the button*/
-moz-box-shadow: 0 0 4px rgba(0,0,0, .75); ... }
/***NOW STYLE THE BUTTON'S HOVER AND FOCUS STATES***/
input#gobutton:hover, input#gobutton:focus{
background-color :#399630; ....}
and in the framework that we aim to build: we create so easy ex "first view":
<button id="btn" content="Hello" margin="1,5.2,3,6" background="Red" Foreground="White" ... > <Button.HoverStyle>
// here we can make css code or
<CssStyle> .... </CssStyle>
</Button.HoverStyle>
</Button>
this is the firt look on the idea, but we will make it with more care and study.
my question is: how about this idea? and it's usability. I do not have a great view on the web, i think whene i share this idea you will help me to decide. thanks
thanks before ...
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I'm new at using Microsoft Visual Studio, but I have some knowledge about C++ language. I'd like to create object can be found in Toolbox, such as Labels, Button, etc., but without putting them onto the window by hand.
How can I do it?
Objects/Controls like labels and buttons are simply a special type of window, with associated window class and window procedure. As such, you call CreateWindowEx and supply for the second parameter, lpClassName, the class name of object/control you want to create (eg. for a label use the class name STATIC).
Check out the following tutorial for a complete example, using the BUTTON class
To create a button:
HWND hWndButton=CreateWindowEx(NULL,
"BUTTON",
"OK",
WS_TABSTOP|WS_VISIBLE|WS_CHILD|BS_DEFPUSHBUTTON,
50,
220,
100,
24,
hWnd,
(HMENU)IDC_MAIN_BUTTON,
GetModuleHandle(NULL),
NULL);`
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Quite new to Sitecore. I need to develop a sliding image as shown on sitecore website below:
http://www.sitecore.net/
I'm cool with front-end Javascript. Could someone please help me design a template, items, components that's required to build on Sitecore? User should be able to change the images and text descriptions for the sliding content.
Thanks.
Create a new TemplateItem called e.g. SlideshowImageTemplateItem.
It should have a set of Fields that are necessary: Image, Description, Link, etc.
Now each of the images in the slideshow should be a separate Item in Sitecore tree created using the SlideshowImageTemplateItem.
Then create sublayout Slideshow and add a MultiList field to its rendering parameters which will allow you to select which slides should be displayed in the particular slideshow.
Did you take a look at the Nicam or JetStream demo sites available from Sitecore Partner Network (assuming you/your company have access)? Both have good examples of slider controls with editable text, all the Sitecore items and the related code to go with it. They also have the code changes required for a slightly different action in Page Editor mode, since you do not want the rotating action when you are editing.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How can i retrieve the facebook post with the commnts and the profile pictures of the user through the single graph api call?
No need to fetch the image if you have the user_id of the commentor.
The URL to get the profile picture is
http://graph.facebook.com/{user_id}/picture
Infact, you can get three types of profile picture by using the graph API. That is,
http://graph.facebook.com/{user_id}/picture?type=small
http://graph.facebook.com/{user_id}/picture?type=square
http://graph.facebook.com/{user_id}/picture?type=large
P.S: I guess the types are self explanatory.
You must use batch requests in order to do that, the first request gets the comment and the seconds uses its results to get the pictures.
You should provide the batch parameter with the request as following:
batch=[
{
"method":"GET",
"name":"get-comments","relative_url":"<SOME POST ID>/comments",
},
{
"method":"GET",
"relative_url":"?ids={result=get-comments:$.data.*.from.id}&fields=picture"
}
]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm working on a Facebook application and I need to select all my friends that are not fan of a specific page: any idea on how can I build the query?
UPDATE
I apologise, I'll try to be much more clear.
In my application I want to select all the friend that are not fan of a page, because I want to invite them to I Like the page.
Looking into the developer guide I read that is not possible to execute the SQL NOT IN, so using the FQL how is it possible to retrieve those friends who Not Like the page?
run this FQL query:
SELECT uid,name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()) AND uid IN (SELECT uid FROM page_fan WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()) AND page_id='YOUR_PAGE_ID')=''
Edit:
You must has user_likes and friends_likes permissions in order to get this data