html

How to define meta tags for each container in single html?

For now I am concerned regarding any way or approach to define meta tags for each container in one single html file. I will explain in more details. We created web site, which is literally consist of one single-page (all sub pages are inside this long scrolling page). So, when you navigate through the link in left menu, first page…
Read more

Filter Submenu Dropdown by Search-box

I have some problem here. Please help me and thanks in advanced. Here the jsfiddle. Questions: I have search box in my dropdown menu and I also have multiple sub-menu. But the search box only filter on the first dropdown, the sub-menu can’t work. So, how to make the search box can filter the sub-menu and show their parent like…
Read more

How to upload multiple files with fileupload.js

!function ($) { “use strict”; // jshint ;_ /* FILEUPLOAD PUBLIC CLASS DEFINITION * ================================= */ var Fileupload = function (element, options) { this.$element = $(element) this.type = this.$element.data(‘uploadtype’) || (this.$element.find(‘.thumbnail’).length > 0 ? “image” : “file”) this.$input = this.$element.find(‘:file’) if (this.$input.length === 0) return this.name = this.$input.attr(‘name’) || options.name this.$hidden = this.$element.find(‘input[type=hidden][name=”‘+this.name+'”]’) if (this.$hidden.length === 0) { this.$hidden =…
Read more

Cannot load css/js for html loaded from Ajax call

I am using CGI scripting for a very small application where I send a request to a DB from a text box and receive some data and display it on the same web page. I have the following HTML for the text box page: <html> <head> <title>Viral Text Search</title> <script src=”https://code.jquery.com/jquery-1.10.2.js”></script> <script src=”https://code.jquery.com/ui/1.11.4/jquery-ui.js”></script> <link rel=”stylesheet” href=”https://jqueryui.com/resources/demos/style.css”> <script type=”text/javascript”> function xmlhttpPost()…
Read more

How to adjust the opacity of CSS background image instead of radio button with an icon overlay

I need advice with a code I am writing in CSS. Basically, I am replacing/hiding three radio buttons with background images. When one of the images is selected a check icon appears on top of it. I used parts of this code here to make this happen. Code works ok, except one little thing – I want to reduce the…
Read more

select tag of angularjs

I try to fill a select in angularJS but it doesn’t work and I don’t understand why. So in my controller I use an http request to fill cShops property of an historic object. I use a Console.Dir() on my property to display the content and my variable is good filling. So I Tried to use this list of object…
Read more

Remove spacing from left of menu links

I have this basic JSP form on which I place Bootstrap TABs. As soon as I started playing with the BOOTSTRAP GRID system, I got this silly spacing on the left side of the menus. Following is the architecture I am using <form:form> <div class=”container-fluid”> <div class=”row”> <div class=”col-md-9″> <div class=”col-md-3″ id=”tabs”> /* some JSP and HTML code here */…
Read more

how website running after countdown timeout with codeigniter

I made a countdown timer, how do I connect to the website after the time runs out? I’m using CodeIgniter framework this my script for countdown timer <script> var target_date = new Date(‘Sep, 18, 2015 15:02:00 GMT-0700’).getTime(); var days, hours, minutes, seconds; var countdown = document.getElementById(‘countdown’); setInterval(function () { var current_date = new Date().getTime(); var seconds_left = (target_date – current_date)…
Read more

Array of input from HTML

I am working with django 1.8. I have the following input form: <!DOCTYPE html> <html> <head> <h1>Post Requirements</h1> </head> <body> <form action=”{% url ‘recruiter:create_requirement’ %}” method=”post”> {% csrf_token %} {% for i in num_reqs %} <h2>Requirement {{i}}</h2> <label for=”profession”>Profession</label> <select name=”profession”> {% for profession in professions %} <option value=”{{profession.id}}”>{{profession.profession}}</option> {% endfor %} </select> <br/> <label for=”sub_profession”>Sub Profession</label> <select name=”sub_profession”> {%…
Read more

Generate URL based on JSON id

I’m making a web application with jQuery and JSON. The API I’m using provides the IDs of each person and their information. Here is my question. Whenever I request my webpage, (e.g http://example.com/person/id ) I want to show the person’s information. I’m ok with extracting data from JSON, the problem is how to automate this process of generating IDs from…
Read more