I created a simple form in typical ZF2 application. The form class code is just a modified code provided by Zend's Album example.
<?php
namespace Admin\Form;
use Zend\Form\Form;
class CityForm extends Form
{
public function __construct($name = null)
{
parent::__construct('city');
$this->setAttribute('method',…
I'm creating a website for a client in which he wants a link that people can click on to go back to the previous website design and go to that design every time they go back to that website.
How would I go about doing this?
Would I need to create a cookie and if I do how do I do that?
Hello,
I have created a drop down with JQuery that can be seen here by clicking the Preview button on top:
http://jsbin.com/ubire3/edit
It works fine except for one problem. When i hover over the main hover links (blue ones) quickly eg going horizontally quickly hovering each top menu, the some submenus don't close. How do i make it so…
I have a div which is centered in parent div, it working on all browser but not in ie, can you help me out with this.
JSFIDDLE
span.qbg3 {
display: block;
text-align: center;
background: url(http://powerblanket.com/may2014/wp-content/uploads/2014/05/qbg3.png) no-repeat center center;
background-size:cover;
padding:…
I'm using PHP for file uploads. In the PHP manual it shows an example using a MAX_FILE_SIZE hidden field, saying that it will detect on the client side (i.e. the browser) whether the file is too large or not.
I've just tried the example in Firefox, Chrome and IE and it doesn't work. The file is always uploaded, even if it is way larger…
I want to somehow place a question on the title using the url.
Actually I am building a webpage where I have placed a question input box and submit button, so I want that when I submit it should redirect me to the ask questions page and the title should contain the question that he asked.
Is there any way to do that?
Thanks.
I have some folders with special characters in their names.
I run currently at a test-computer with Windows OS, but later I will use LINUX.
My problem is that the folders with special chars in their names cannot be recognized somehow.
ex:
file_exists('../Bilar/27733691_1.jpg') // TRUE
file_exists('../Båtar/27733691_1.jpg') // FALSE…
What are pros and cons of this technique (see Softfolio for an example). Two things I personally thought of are as follows:
Impossible to tell someone where an item of interest is located (like, you probably won't say "324-th row, second column")
Broken navigation when you return back to an infinitely scrolled page.
What else can…
Can some CSS guru help me getting this layout.
What I have here is
<div class="movieList">
<div class="image" selected = true>
<img class="poster" src="image1" selected = true/>
</div>
<div class="image">
<img class="poster" src="image1"/>
</div>
<div class="image">
…
I've been looking to make things a little more DRY, both on my personal projects (django) and at work (JSP/struts,PHP).
SASS+HAML seem to be quite popular, but, do those outside of the Rails community generally use these as well, or do they opt for other similar solutions? Which do you use, and what was the reasoning behind the…
I am building a website for a radio station and want to show which presenter is currently on air. I have built a web app that contains data on the presenter: name, photo, bio and start/end times for each weekday.
<div id="presenter1">
<div class="slot">
<div id="sunday-off"> - </div>
…
Revising for php and cant seem to get this to print the values out that i want
Any ideas?
Thanks
<form action="revision.php" method="GET">
<input type=“text” name=“number[]”/>
<input type=“text” name=“number[]”/>
<input type=“text” name=“number[]”/>
<input type=“text” name=“number[]”/>
<input…
Hi everyone,
I'm looking to find the Javascript Event I need to put into jQuery's .bind function in order to have the function triggered when a selection is made from a <select> element.
At the moment I'm using .bind('change',function() { ...}) but I need the event to trigger when the selected option is chosen again.
…
I have this ajax function:
function getSearchResults(e) {
var searchString = e.value;
/*var x = e.keyCode;
var searchString = String.fromCharCode(x);*/
if (searchString == "") {
document.getElementById("results").innerHTML = "";
return;
…
hi,
here is my problem:
<input type="text" class="datepick1" id="date" />
<input type="text" class="datepick2" id="date" />
<input type="text" class="datepick3" id="date" />
then i apply datepicker on dom (by classname)
$('.datepick1').datepicker();
$('.datepick2').datepicker();…
I want to change the link-style for some of my links, like this:
a:hover
{
/* These links will be blue when hovered-over */
background-color: #3366FF;
}
However, I only want this to take effect in my Navigation Bar, and not for regular links.
I have tried variations on this:
#navbar…
I am trying to update my button. but the problem is that I can't have an ID/name with it, right, when doing this? so what if I have multiple forms on the page, and must identify the button?
<input type="submit" value="Upload my File" style="background-color:#00F; font-size:14px;…
Hello,
I have the code
<iframe width=150px height=150px src=http://yahoo.com></iframe>
Here I will have a 150x150 iframe, but I want the whole site to be reduced to a 150x150.
Is it possible to do it.
Thanks
Jean
I am developing this site http://indigonightlife.com/ The second section down is This Weeks Events. To the right of that heading is an image of the 5 little blue lines. The problem Im having is I cant get it to float to the right side of the container. As it is now, its in the…
I have been trying to highlight a radio button with CSS but have been unsuccessful to get styling to work in FireFox. I see some methods of using images to render highlighting. Is there a preferred way to handle radio button highlighting across multiple browsers?
Example
…