FAQ Database Discussion Community


working with classes and ids

html5,css3,class,frontend
I will have to preface this question with that I am a relatively young and new developer. I have five points with which I am trying to place them in specific areas around a page. I know that with these five points I can create five specific classes, and then...

Modal/dialog for login/signup for an Angular app [closed]

javascript,angularjs,twitter-bootstrap,web,frontend
I'm trying to implement a login/signin dialog for my app (something like that of Medium) I have searched a lot about it online and I think I will go with the $modal from angular ui-bootstrap. I'm wondering if someone can direct me to a tutorial for making something like that...

Slow rasterization in Dev Tools

javascript,performance,google-chrome-devtools,frontend
I'm optimising a site with some fairly simple parallax scrolling. The animated elements are on separate layers (backface-visibility:hidden) and the scripting and rendering steps seem fairly quick. However I'm seeing a lot of time spent on painting: The actual drawing is fine but those huge hollow green bars represent rasterization...

How can I isolate the css classes of my embeddable Web component

css,web,frontend
I have written an embeddable Web component for data visualization. There are of course associated css classes in addition to the js and html. I need to isolate the css classes so they do not override and/or clobber css class names of the larger Web app context it gets embedded...

Change CSS class of a
using dojo

javascript,html,css,dojo,frontend
I would like to change the element's CSS class depending on the if statement. This is what I have: HTML <div data-dojo-attach-point="waitIcon" class="rightNode"> CSS .rightNode{ float: right; height: 75px; width: 60px; margin-top: 20px; } .noWaitIcon{ float: right; height: 75px; width: 60px; margin-top: 34px; } JS if (value == 0){ domClass.remove(this.waitIcon,...

Why Susy gives 49.15254% in output CSS instead of 50%?

css,grid,sass,frontend,susy-compass
I've made decision to get started with Susy, because I wanted good framework just for grids. Unfortunately I found myself trying hard to make exact what I want. After all I want to know why Susy gives so strange math rules. There are my Susy's simple setings: $susy: ( columns:...

Get position of one image in another image

node.js,image,image-processing,imagemagick,frontend
I have a screenshot of my browser that displays a website. Now I want to find out where the website (viewport) is positioned (relative to the whole screenshot). As seen as a rectangle with a black border in this image: I have the possibility to add anything to the DOM...

Cross-Browser simulator for testing

google-chrome,internet-explorer,firefox,browser,frontend
I need to test my application on several browser versions, is there any smart way to do that? I need a browser simulator in order to switch between browsers and versions.

displaying nested json data using each in Emberjs

javascript,json,ember.js,frontend
I have successfully displayed JSON objects unto my template thanks the answer on my previous stackoverflow post setting data from route to controller error in Emberjs Now, I am trying to display a nested JSON data objects to my template using the {{#each}} helper. here is my code: http://screencast.com/t/3fhpckr4E It...

Joomla Front-End User Editing Content in One Area

joomla,wysiwyg,frontend
On my website, I have an area where a user can create a team profile page. On the top of this page, is a header area that is 960px width x 170px height. This header, I would like to make a customizable area (like a user WYSIWYG) for the users....

Floating Placeholder

jquery,css,user-interface,frontend,user-experience
I am trying to implement floating label for the forms on my page. I referred a couple of sources and came across this link in codepen and Fiddle. I could implement this but these approaches needs re doing all the forms as I need wrap the input field in a...

Polymer 1.0 in Ember-cli, wrong appearance

javascript,ember.js,polymer,frontend,ember-cli
I have managed to integrate Polymer 1.0 to my Ember-cli project. This my Brocfile var vulcanize = require('broccoli-vulcanize'); var pickFiles = require('broccoli-static-compiler'); var mergeTrees = require('broccoli-merge-trees'); var EmberApp = require('ember-cli/lib/broccoli/ember-app'); var app = new EmberApp({ compassOptions: { sassDir: "app/styles/main", outputStyle: 'expanded' } }); //app.import("./bower_components/webcomponentsjs/webcomponents-lite.min.js"); var polymerVulcanize = vulcanize('app', { input:...

Label position is changing everytime I change the size of the window

java,html,css,frontend
I have a label and a textarea, I want to display the label at the top of the textarea, the label is currently placed in the top of textarea but when I maximize / resize the window the label is synchronized with the textarea anymore. How can I fix this?...

Sort an array with JS objects in it by two values

javascript,arrays,sorting,object,frontend
I have an array with roughly 50 JS objects inside, each object in the array has a name, catname, dish_sort_id and sort_id currently i am trying to sort it so that in the array it goes group objects via catname and if dish_sort_id < then dish_sort_id of next object. Below...

JQuery: Defining a variable is stopping my script from running

javascript,jquery,html,html5,frontend
<script> $(document).foundation( var count = 1 $("button.test").click(function(){ if ($("p.change-me").text() === "OFF") { $("p.change-me").text("ON") count = count + 1 } else if ($("p.change-me").text() === "ON") { $("p.change-me").text("OFF") count = count + 1 } $("p.counter").text(count) }) ) </script> Very simply, I want to show the count as I am pressing this On...

Speeding up Angular $compile function

javascript,angularjs,angularjs-directive,angularjs-scope,frontend
I'm manually compiling a template against a new scope: var scope = _.assign($rootScope.$new(true), { foo: 1, bar: 2 }) var element = angular.element('<my-element foo="foo" bar="bar"></my-element>') $compile(element)(scope) element.appendTo(container) After running a basic profile, the slowest part of this code is $compile, which takes ~1ms per compilation. I need to compile ~100...

should I handle validations errors and messages in front end mobile app?

android,ios,frontend,mobile-application
then should clients update their app every time these texts has been changed? I am new in mobile app and it is a little strange for me. doesn't this make updating these texts hard? the most frequently change part of web app in my experience was front end. how should...

What is used to do this effect in webpage/javascript?

javascript,jquery,html5,css3,frontend
I found this website: http://www.vazco.eu/ What is used to do the animation (http://cl.ly/image/41100r2F401N) behind "Our Latest Projects" with dots and line - is not the only place where I see this but since now no idea how to achieve something similar! can be done with pure javascript or with any...

Autocentering Flipclock.js object on all screen sizes

javascript,html,css,frontend,flipclock
I'm trying to find a way to dynamically center my flipclock.js on a page regardless of screen size. Every solution I have found so far seems to not be working (due to some inner specifications in flipclock.js code in my opinion). I'm using github pages to host this clock here:...

Vertically centering an image with auto height and max-height

html,css,html5,css3,frontend
I'm trying vertically center an image that use height auto because I'd like fill the horizontal width (100%). Its container is defined with an max-height value and overflow-y hidden. HTML: <figure> <img src="http://lorempixel.com/500/500/" alt="Imagem" /> <figcaption> <p>Sapien elit in malesuada semper mi, id sollicitudin urna fermentum.</p> </figcaption> </figure> CSS:...

Objects as variable containers in JavaScript

javascript,frontend
Recently I saw something like this in some code from a project I'm working on... var domObjects = { $body: $('body'), $someDiv: $('.some-div'), $someOtherDiv: $('.some-other-div') } var constants = { CONST_ONE: 'some value', CONST_TWO: 'some value', CONST_THREE: 'some value' } As you already may notice this code intents to replace...

How do I delay the start of some clouds on this webpage?

html,css,web,css-animations,frontend
I'd like to delay some clouds from starting on http://therealrohanm.me/Falcon-Hacks-Website/, neither animate delay nor transition delay seem to work. How would I accomplish this? View the code here: https://github.com/Meeshbhoombah/meeshbhoombah.github.io...

Front-end development with conditional HTTP and HTTPs routes

angularjs,http,https,frontend
I am currently using MEAN stack for web development. My questions is how do I mix/redirect HTTP and HTTPs pages on the same website? For most scenarios I am communicating with the back-end using HTTP protocol. And for some pages I absolutely need to use HTTP (For example /shop route...

Routing requests to multiple backend servers Dropwizard and Elasticsearch

http,nginx,elasticsearch,frontend,dropwizard
I have to backend servers : A dropwizard server that serves as a mainly application server. This server is used by the frontend for all operations except searching. An elasticsearch server feeded by the dropwizard server which serves the frontend for all search queries. Knowing that dropwizard is running on...

Is it right to use two or more different front-end frameworks in a single web app?

twitter-bootstrap,web-applications,frameworks,frontend
i'm starting to learn about web development, by now i'm learning some front-end skills, by now i'm trying to use frameworks like Bootstrap, Foundation, Semantic UI, etc... but i've got a question, is it possible to use two frameworks for a single app? if so, is it worth? if not,...

Custom class if in edit mode in EPiServer

frontend,episerver-7
I am wondering if there is a way to set a class to a container div ONLY if in edit mode in EPiServer? I found this way to add a html-element: @if (PageEditing.PageIsInEditMode) { <p>I am in edit mode!</p> } But is there a way to do like this: <div...

change margin if margin < “0px”

javascript,jquery,frontend
I use this code function moveContent(px) { var top = $('.scroll').position().top; $('.scroll').css('top', top+px); } function keyHandler(event) { try { //some code here... else if (code == stb.KEY_PPLUS) moveContent(20); else if (code == stb.KEY_PMINUS) moveContent(-20); //some code here... And I have a point, the block moves out of the screen. I...

Set Wordpress post status to 'Draft' from front end similar to get_delete_post_link

wordpress,post,delete,frontend,status
I am using the below code to allow a logged in user to set delete their own posts from the front end. Is there a way to do the same thing but setting the post to 'draft' rather than deleting it completely? <?php if ($post->post_author == $current_user->ID) { ?> <p><a...

How to build a web page with flexible component?

javascript,gruntjs,less,frontend
I have an idea of building web page (without backend, because sometimes I just need to build a static page) with flexible component. But I have met some problem. I assumed the folder structure like this: components |__________header |______header.tpl(any js template is ok) |______header.less |______header.js |__________footer |______footer.tpl |______footer.less |______footer.js |__________news-list...

Front End of Wordpress Plugin

wordpress,plugins,frontend,shortcode
This is my first plugin that i am developing. I have only one file in my plugin folder which has all the code that is handling my admin part. I have my own custom tables. I'm not using any wordpress table for it. Structure: plugin/amt amt.php (This file has all...

jQuery .toggle() making button disappear

jquery,html,css,frontend
I have a filter nav bar that when each button is clicked, it only shows those projects with the corresponding category. When the all button is clicked, it displays all of them. Furthermore, when button is clicked, it adds the selected class, which changes the background color. The goal: To...

How to test a front-end JavaScript library and integrate with Travis?

javascript,integration-testing,frontend,travis-ci
I have already experimented testing NodeJS libraries using Jasmine or Mocha, but I don't know how to test front-end projects. I have found tutorials online, but everything includes a task manager in the workflow and I would like to know how to do this without one. I found the following...

setting data from route to controller error in Emberjs

javascript,model-view-controller,ember.js,frontend
i am a newbie in Emberjs.. I am trying to set data content from Emberjs route to controller to display in template.. i followed the suggestions here.. Access content inside a controller function ember works perfect.. but now i am getting this error Uncaught Error: Assertion Failed: The value that...

semantic-ui sortable table not getting sorted

jquery,frontend,semantic-ui
I am using semantic-ui 1.8.1 I created a sortable table as documented at http://semantic-ui.com/collections/table.html#sortable The table however does not get sorted when i click on the table column headers. I have included the file I was able to reproduce this on jsfiddle also. The link is http://jsfiddle.net/4woemsjt/5/ This despite that...

Flags.log.split is not a Function - Polymer

javascript,polymer,frontend
I'm having this error on a web project using Polymer. The exact line is the following. var parts = flags.log.split(","); -> Is not a function I have read in some forums that the problem is caused by the order of the scripts imported, and that webcomponents.js must be the first...

About Airbnb video jumbotron for iPad

javascript,css,html5,frontend,user-agent
When visiting Airbnb from PC/MAC browsers, the homepage jumbotron will use HTML5 video as background even you resize browser to a quite small size (meaning it's not just media query). But when you use a tablet like iPad, the jumbotron will use image carousel instead. Is it something like user...

Front-end : html/css+javascript, Backend : perl

javascript,perl,frontend,backend
Want to create a web application (using html/css + javascript) that logs in to a linux based storage device, Process some logs of the storage device (using perl) and return the result to the web application. What/How to use as a connector between them? And which one would be the...

Front end javascript testing using Require and Resharper

javascript,unit-testing,requirejs,frontend,durandal
So I've been trying to figure out how front end testing works (unit testing) but I am getting stuck on some point. So I have my jasmine test set up as follows: describe('Blabla', function () { it('returns true', function () { var people = require(["people"], function(ppl) { return ppl; });...

How to loop through a ul recursively and find out how many ul's it has in it

javascript,jquery,html,recursion,frontend
I'm trying to write a function in jquery that will loop through a ul with nested ul's inside of it. I'd like it to keep track of how many ul's or "layers" in I am, and give a class label to the li children of a ul that correspond to...

If/Else statement in Jquery

jquery,css,if-statement,frontend
JSFiddle I have a navigation filter that when clicked, each project will be highlighted depending on what category they are under. I would like that when clicking the #all-btn, all the items will be highlighted their respective color. Right now, they are set to highlight black, but I would like...

CSS rotate animation with pulse

html,css,animation,rotation,frontend
I am trying to make an animation using CSS. It should rotate an image and give it a pulse (something similar to Shazam's button animation). The following is my code. Image is rotating but if I add 'scale' to try and make it pulsate as well, it has a pulse...

Semantic UI - UI Search DropDown not showing up

frontend,semantic-ui
Ref: http://semantic-ui.com/modules/dropdown.html When i try to build a searchable select dropdown, the DropDown does not even show up on the page. This is easily reproducible. Please refer to the fiddle at http://jsfiddle.net/4woemsjt/6/ <select class="ui search dropdown"> <option value="">State</option> </select> Appreciate if someone could help me get past this error. Am...

Use img tag inside a div as the divs background image with text over

html,css,frontend
I have the following html: <div class="article"> <img src="..." class="article-bg"> <h1 class="heading">Article Heading</h1> <h2 class="author">Author Name</h2> </div> The article divs background image gets set dynamically, so setting the divs background in css is out, I have to use an image tag. I'm not too sure though how to use an...

Fluid Powered TYPO3 FLUX Fluidcontent - No Output in Frontend?

output,typo3,frontend,fluid,flux
I've made a TYPO3-Installation 6.2.9 with Fluid powered TYPO3 - the first steps with the Pre-configured Distribution "Site" were fine. My Site/Page-Template is installed and I added all the TypoScript stuff. Now I want to use FLUIDCONTENT (FCE) with FLUX. I've added a new Template-File TeaserOne.html and I try to...

Is using singleton pattern in angularjs a bad practise?

javascript,angularjs,singleton,frontend
I have been coding in Angular JS for a while now. A friend of mine suggested me not to use singleton pattern in AngularJS, as it is a bad practise. I was totally unaware of that. Is it so?

Java project, include frontend library(Polymer)

javascript,java-ee,dependencies,frontend
I try to work on apache2 licensed project on github, it is a j2ee webap, as user UI I want to use Polymer libraries... Now I don't know to include all needed js/html files in depository or to leave only bowler file ? If i will include all files it...

Jquery Resize: how to check if a screen has been resized at any point

javascript,jquery,function,frontend,web-frontend
I'm using the jQuery .resize() event listener, and understand how to use it to trigger an action whenever the screen is re-sized. However, I'm wondering if there is a way in jQuery to allow one not just to listen for when a screen is re-sized, but to check whether or...

Problems centering absolute positioned div with top: 50% margin-top: - (height/2)

html,css,layout,frontend,web-frontend
I'm trying to absolute center a div like I did a million times before. The problem is that the top:50% seems to take the value of the viewport height and not the document height. I made sure the parent element of my div has a min-height of 850px while my...

What is a full-stack developer?

frontend,backend
If I understand a full stack developer is someone who is developing both the front-end and back-end part of a program. What is the goal of this? Why is it good? I guess in small projects like a small mobile app or so it is OK that one developer makes...

Form button not responding and badly aligned [Refactoring Ruby on Rails]

ruby-on-rails,ruby,forms,refactoring,frontend
I'm working on an assignment for a course I'm doing on refactoring some version of the typo blog. I need to add a new form to a page in order to get some information, the problem is that the submit button is not responding and the form is also badly...

javascript FOR don't change class

javascript,class,for-loop,frontend
I'm trying to build a JavaScript function for this code, but when I click: <input class="boton" type="button" onclick="VerConsultas('BusquedaPorFecha', 'ConsultasEmpleado');" value="Busqueda por Fecha" /> And before: <input class="boton" type="button" onclick="VerConsultas('BusquedaPorDepartamento', 'ConsultasEmpleado');" value="Busqueda por Departamento" /> The first div does not change its class. I think the problem is caused by the...

Wordpress custom register form errors filters and prev values

wordpress,filter,registration,frontend
I created a front end registration form, I used the filters 'registration_errors' to customize the messages. After WP detects the error and use 'wp-redirect' to return to the registration page and display an error if the email or the user exists for example. My question is: how I can keep...

How can I add a consistent left margin to a checkbox label?

html,css,web,frontend
I am working in a situation where I cannot easily modify my HTML, so I need a CSS solution to my margin/padding problem below. Code HTML <dd id="rr-element"> <label for="rr-1"> <input type="checkbox" value="1" id="rr-1" name="rr[]"> Do you agree to these terms of service? Note that agreeing to these terms of...

CSS - Odd issue with centering a div with percentages

html,css,margin,frontend
I'm building a fairly simple static frontend-only webpage. I have the following css rules for my wrapper div (everything else in the page is in it) and the body: body { background-image: url(../img/background.jpg); background-attachment: fixed; background-repeat: no-repeat; background-size: cover; margin: 0; } #content_wrapper { margin: 15px 10%; /*Client wants 20%...

What is the correct way of aligning this menu?

html,css,frontend
http://jsfiddle.net/rctdzdsm/ I'm trying to align the menu to the logo. Do I have to manually margin it till I align correctly? Or is there a better/proper way of doing this? Because manually margining till I align it correctly, feels kinda kinda dumb. * { margin: 0; padding: 0; } header...

Nesting flex box

css,performance,responsive-design,frontend,flexbox
I find flex box really useful, and since I discovered it I am tempted to use it everywhere. Question Is it a good practice to nest flex-boxes? Does having a lot of them and especially nested ones has an impact on performance?...

Front-end JavaScript program [closed]

javascript,frontend,google-chrome-app,web-frontend
I am relatively new to web development. If you are creating a front-end JS application, is it always the case that a page refresh incurs a new JavaScript program? Is it possible to keep the same JavaScript runtime going during a page reload? I know there are many solutions to...

What technique is used to create a div limited by the page fold?

javascript,html,css,frontend
Skipping the discussion about the importance of the fold in web design, I'd like to know which technique is used to limit a specific section (could be a div, for example) exactly on the browser fold considering a responsive design. Some websites even use both the mouse scroll and the...

Is there common template engine for html to be used in php, python and java

javascript,html,frontend
I am front end developer. I work for different platforms like php, django and java. Is there a template engine that can be used for all of these?

How to evaluate Polymer 1.0 published on Google i/o 2015?

javascript,html,google-chrome,frontend
Will it be widely used in front-end engineering? How to evaluate the potential of Polymer 1.0?

How to ensure that the hibernate version number stays immutable in a javascript client?

javascript,rest,frontend,javascript-security
I have a Rest backend with Java and Hibernate and im using Optimistic Locking with the version property. For concurrency control, this version property must go to the client and again to the server with post request. But, in a javascript client i lose control over the integrity of this...

Safari webpage layout messed up

html,css,safari,frontend
I have been working on this for a few days now. I cannot seem to get my website to display correctly in Safari (desktop or mobile) but it works in IE, Chrome, Firefox, and Opera. I am not too worried about the mobile yet; taking it one step at a...

Twig and atomic pattern — Clean twig rendering

symfony2,twig,frontend,twig-extension
I'm trying to follow the atomic design pattern with twig. When rendering a simple atom, I need to do something like: {% include '@MyBundle/Resources/views/atoms/button/button.html.twig' with { href: '/section1', text: 'Example text' } only %} This approach starts getting messy when the atom or component has more variables, or the directory...

A good way to link front-end to Symfony2 API?

.htaccess,symfony2,frontend
I'm having a Symfony2 API, which I want to call from a single page front-end application. My current url is pointing to the /web directory of Symfony. So I can call the API trough app.php or app_dev.php. That works. Now I want to couple my front-end app to the Symfony...

React keyboard events not firing

javascript,web,reactjs,frontend
I have a simple React component that should play audio via the Web Audio API on keyDown, and stop the audio on keyUp. I have a JSFiddle that shows the same behavior I'm seeing on localhost. Here's the code inline: var Keyboard = React.createClass({ componentDidMount: function () { var context...

Better way to make the child element's border to overlap with parent's

jquery,html,css,css3,frontend
I'm working on a project that demands this effect with the help of CSS: Here is the description of what exactly I want to achieve: The parent element (the title) has some padding and 2px border at the bottom. It also has a child (title-inner) which also has some padding...

Can anyone tell me why when I add a value in this part of my form it doesn't show up on the screen?

wordpress,forms,user-interface,frontend,gravity-forms-plugin
This is the form that I am talking about. Everything works fine with the exception of the quantity option in the " Additional Student section. It works properly when I submit the form. It calculates whatever integer you place into the box, but It does not show up on the...

What kind of CSS preprocessors is more popular and usable SASS or SCSS? [closed]

css,sass,preprocessor,frontend
I think that SASS is better than SCSS. In SASS not needed to use brackets and have the other good features. What do you think about it? Which of them is better for you?

From developer to designer [closed]

twitter-bootstrap,responsive-design,frontend,web-frontend
Well, this is a really common and "wide" question. I'm a web developer and I have experience in solving server side problems. How can I start to learn Front-End world? I need to become as soon as possible a "Bootstrap-aware" developer!

AngulasJS {{ }} codes show for a split second [duplicate]

angularjs,web,frontend
This question already has an answer here: Prevent double curly brace notation from displaying momentarily before angular.js compiles/interpolates document 6 answers How to avoid {{ }} codes from showing when the page is just starting up or loading AngularJS resources? In my case, the {{ c }} is showing...

What are some common uses of immutable data structures?

javascript,frontend,immutability,immutable.js
What motivates the increasing usage of immutable data structures such as those provided in ImmutableJS and SeamlessJS? I know there are debugging and memory benefits. I'm interested in uses across the JavaScript stack, but I'm also thinking of common front-end tasks that are made easier to work with or reason...

Clone divs, then fill them with arrays

javascript,jquery,clone,frontend
with the aim to speed-up my prototyping phase, I want to clone my divs and then fill them with some content stored into an array. Here is some generic content who needs to be cloned: <li class="shots--li"> <img class="image" src="images/dribbble.png"> <h1>Title</h1> <p>Description</p> </li> I already know how to clone: $(document).ready(function()...

javascript loaded from a path; how to use document.getelementbyid

javascript,html,asp.net,frontend
` function init() { var a = 'output of my processing'; alert('I am here'); // alert pops up document.getElementById("<%=hdnField.ClientID %>").value = a; } <head> <script src="../Scripts/myscripts.js"></script> </head> <body onload="init()"> <asp:HiddenField ID="hdnField" runat="server" /> </body> `I have a page with lot of javascript; I am trying to clean it up by...

How front-enders should work with Razor View files? [closed]

asp.net-mvc,asp.net-mvc-4,razor,frontend,team
I will start a new .Net MVC project with a small team. It have five members, two back-end devs and three front-end devs. The front-end members will work separately, building a html version of this project using tools like gulp/grunt, less/saas, jade and others frameworks. They prefer to use editors...

Custom editText on android

android,android-layout,android-edittext,frontend,android-custom-view
I'm newbie with android layout, so i need some help. I want create a custom editText, something like this: I'm want to fix that with the best possible way. Someone? Thanks....

How to get picture to align with the left set of paragraphs/go to right of?

html,css,user-interface,frontend,user-experience
Here is a prototype of what I am trying to implement Here is what I currently have : JsFiddle I am trying to get the picture of the guy on the laptop to align correctly with and to the right of the paragraph components - Business Traveller, Office Supply Purchases,...

Responsive Web Desgin Without Grid System

web,responsive-design,media-queries,frontend
I am doing a project on Responsive Web Design (RWD). Framework like Bootstrap or Foundation or 960 is using grids system as base layout. I am specifically looking for solution (framework) beside the ones with grids system, but still achieving the responsive components. And if there is a pro and...

How does underscore replace variables?

javascript,templates,underscore.js,frontend
I have following row in code: terminalsListHtml += this.compiled(_.extend(this.terminals[i], {clazz: 'all'}, obj)); Behaviour of execution this row is surprising for me. I evaluate argument value of this.compiled method. It looks like this: more details: compiled: _.template($('#terminal-template').text()) Lets return to first row whos result is surprising for me: it returns following...

jQuery: how to get the index of an element in the selection array?

javascript,jquery,frontend
I have an HTML structure like this: <div class="container"> <div class="item"> <a href="#">1</a> <a href="#">2</a> <a href="#">3</a> </div> <div class="item"> <a href="#">4</a> <a href="#">5</a> <a href="#">6</a> </div> </div> I select all the A-s with jQuery, and get a total of 6 objects here. I want to get the index of...

What should be mentioned as “Front-end” of my simple iOS Application?

ios,objective-c,cocoa-touch,uikit,frontend
For example, suppose I created a simple iOS project that get data from server using NSURLRequest and store using CoreData. Is Front-end should be marked as Cocoa Touch or iOS or Objective-C or UIKit Framework or something else ? I am desperate to the term I should use while mentioning...

How to properly separate frontend and backend?

angularjs,playframework,gruntjs,frontend,backend
I have a project which was built on playFramework. It has much busines logic, which involves actors, different parsers, works with three services through API, etc. Frontend is written with angularJs (single web page application). We also use coffeScript and less, and for that i added sbt plugins to compile...

Why is a PNG file often larger without transparency?

web,png,transparency,frontend,photoshop
Often when I am saving a PNG-24 file with transparent areas for web in Photoshop, the file size gets larger when I deselect the transparency option. On the file I was just working on, the file size with transparency was 45.28k, but without transparency it was 53.71k, which is not...