php-jquery-html-css

1 answer

Adding and showing tags added to a post using php

I am working on a social news website where user posts anything, website provides the tag option to the users, the tags can be "Politics" or "Entertainment" anything which depends on users and they …

32 secs ago
3 answers

I have used the following code to incease the iframe height.This code working fine in Mozila and ie.But this is not working in Google Chrome

<script type="text/javascript"> function calcHeight() { the_height=document.getElementById('the_iframe').contentWindow.document.body.scrollHeight; ...

46 secs ago
1 answer

Where to load scripts or css from CDN, head or body?

Where should I put the code for CDN scripts or styles? In the head element or before the closing body tag?

1 answer

having an issue with deleting entry from database on my website

i have echoed my database table onto my website and have tick option next to the table where you can tick it and delete any of the entries from the website, it should delete it from the database. for …

1 min ago
0 answers

Strings separated by two commas php/sql

I am writing from my js function to a hidden field and pass this via phpMyAdmin to my database. Now the strange thing is: I do that with numbers, fine. But with a string variable, I always get ...

1 min ago
0 answers

Working with z-index and opacity not giving desired result (Image and Text layout)

I'm a learner in HTML and CSS. I'm trying to put a text with image on its top. My requirement is to be able to hide the image (possibly using opacity). The sample that I've picked to imitate (just for …

1 min ago
4 answers

How do I chain methods in PHP?

jQuery lets me chain methods. I also remember seeing the same in PHP so I wrote this: class cat { function meow() { echo "meow!"; } function purr() { echo "purr!"; } } $kitty = new cat; ...

1 min ago
3 answers

Website Display's ?'s instead of Korean

I uploaded my website to the new server. It works perfectly on my test server at home, there is not a different setup the databases were copied over word for word. But on the site anything that is in …

3 mins ago
5 answers

jQuery AJAX Call to PHP Script with JSON Return

I've been smashing my head against a brick wall with this one, i've tried loads of the solutions on stackoverflow but can't find one that works! Basically when I POST my AJAX the PHP returns JSON …

1 answer

@font-face not displaying expected result

I've created a template in html and imported a text named as "abc.ttf" in css using @font-face. But its not working properly as it is displaying the default text not the one that is imported. I am ...

3 mins ago
0 answers

HTTP REFERER isn't set

i have some error, why HTTP_REFERER isn't set, this is my code, this is in index.php if(!isset($_GET['p'])){ include '_include/start.php'; }else{ switch …

4 mins ago
2 answers

Sending back a PHP object to an ajax call

I'm learning PHP OOP, and getting used to all of these objects. I can't find the answer of a little question (maybe it's obvious, but I m new to objects...) : When I create an object in a PHP file …

4 mins ago
1 answer

Overflow, is not working when positioned absolute.

I have a div positioned relative and inside it there is another div positioned absolute. I have gave the main div overflow:hidden and also border-radios... however, the edge of the div inside are not …

5 mins ago
0 answers

Getting “Class 'ConnectionManager' not found” error with CakePHP 2.4.7

I get the following error after a fresh installation of cakePHP 2.4.7 and configuring the database.php file Error: Class 'ConnectionManager' not found File: ...

5 mins ago
6 answers

How to get selected text in textarea?

I'm trying to make my own WYSIWYG editor. Is there any way, how to get the text which has user selected in textarea? For example, if user selects some word and then clicks button, how do I find out …

5 mins ago
2 answers

Extract chromaticness/relative chroma from HSV

I am trying to figure out how to get chromaticness out of HSV (alternative RGB). Problem is; I barely know what chromaticness is. According to the small information available on the net it is usually …

6 mins ago
2 answers

Bootstrap Styling issue when browser re sized below 767 pixels

I have this bit of bootstrap code below: <form class="navbar-form "> <div class="form-group"> <input type="text" class="form-control" ...

6 mins ago
0 answers

Ruby on Rails not detecting comment field

I'm trying to build a very basic Rails app for posting images with a comment. The comment is a required field and the image upload should only go ahead if the comments section has a value, displaying …

1 answer

jquery roundabout(“getChildInFocus”) return false;

I am trying to get current child in focus in roundabout, but it returns false. Here is my code: $(document).ready(function(e){ $(".carousel").roundabout({btnNext: ".next", btnNext: ".next", …

8 answers

Center text in div?

I have a div 30px high and 500px wide. This div can contain two lines of text one under the other, and is styled (padded) accordingly. But sometimes it only contains one line, and I want it to be ...

7 mins ago
0 answers

Input Radio type with same name attribute getting checked

I am using for loop to populate setting_id from database. And using this setting_id as the name attribute for input type radio. But both radio buttons are getting checked when clicked. Here is my ...

7 mins ago
0 answers

png image transition on click with stable background

I am unable to make it, I have used several things and I have wasted almost 2 days making this thing but still not get what my client wants after seeing the image you might get the idea what I am ...

2 answers

Simple regex to match word in the format variable = [[ word ]] in php

I have to search a lot of text with format example traded_as = {{NASDAQ|GOOG}}<br>{{NASDAQ|GOOGL}}<br>[[Company name]]<br>. the general format of the text is variable = some text …

8 mins ago
2 answers

ng-grid: vertical bar not as high as it should be

On my website, ng-grid looks like this: I've found out that this disappears, when I manually do: .ngVerticalBar { line-height: 30px; } I have commented out all irrelevant stylesheets of ...

1 answer

Getting ID from get_posts within a loop in Wordpress

My first question here, so please feel free to direct me elsewhere (yes, I did try searching for duplicates, but my stackoverflow skills may be limited). I'm building a Wordpress plugin that creates …

0 answers

Why use always while loops to fetch mysql results?

The funny thing is that I can't find a good Explanation for this question. Is there any disadvantage when I don't use a "while-loop" to fetch a mysql result? Everywhere I see this line of code: ...

1 answer

what is wrong for embedded form?

There are two entity (person n:1 phone) and I want to embed phoneEntity in personEntity. I did any thing based on symfony2 embedded form tutorial but I caught this error: A new entity was found …

9 mins ago
1 answer

Fix position of div

This is a CSS / JQuery layout related question. I have a layout composed by three stacked divs from top to bottom: header, main section and footer. Main section, has a tiny form inside. The ...

9 mins ago
3 answers

Parent - Jquery

Im trying to make it so when I click the exit button, it goes through the parents and selects the wrapper class, then removes and adds a class. HTML <div class="app-icon-container"> ...

10 mins ago
2 answers

php form that requests data based on user select

I am trying to set up a form in PHP. The form itself has 2 dropdown box's where users select an option.Once the option is selected and the user presses go i want it to initiate some more php script. …

10 mins ago
15 30 50 per page
1 2 3