Is there a way in javascript or jquery to disable image before page is fully loaded? I'm trying to make my own lazy loader (because the original isn't usable) and I'm stuck with this.
The point is to save src attribute to longdesc and put some placeholder, and this has to be done before all image loads. If the placeholder is set originally in html then users with disabled javascript won't see the images.
User Profile
Collapse
-
Disable image load with Javascript or jQuery
-
Dynamic equal height with jQuery
Hi everyone!
I have a problem with dynamic height. I've made an equal height function which basically works when it's called, but the problem is with jquery animations, to be more precise with slideDown function in combination with ajax.
The right side (see image below) is a place for comments, and after each submitted comment with ajax it's added with slideDown function. I don't know how to make that both section heights... -
How I concept it... If someone sends a new message, all users have to be checked, and based on settings of every user to determine whether to grab an email (and send an email to user later) and append the notify column to that user.
So if e.g. new message setting is the 3rd char, then that char has to be converted to bin to check bin values of the email and notify settings.
entire settings column:
82b3ff4ab4
... -
Search, grab & append the rows
I don't know how to create the fastest query for the next situation:
The goal is to search the database of users by their settings column, append a notification column and grab an email from an email column depending on the settings column. Problem is that the settings column is consisted of 10 hexadecimal chars (which means that one char is four 0 or 1 settings, which is total of 40 binary settings).
This is the lite example... -
...Code:class Message { private $message = array(); private $exists; public function __construct($db, $id) { // expends memory location ini_set('memory_limit', '64M'); $query = 'SELECT ID, Type, Locked, Title, DateCreated, DateModified, Sender, Recipients, ReadBy, Message FROM ' . Session::Get('GROUP') . '_MessagesLeave a comment:
-
Why won't Longtext data type display?
I have a problem with reading data from database. Everything displays correctly except the 'Message' row which doesn't show up at all.
Problem is in the longtext data type. If I change it to mediumtext (or text) it works. Below is a table conf and a query.
ID mediumint(8)
Type tinyint(1)
Title varchar(100)
DateCreated datetime
DateModified datetime
Sender char(10)
Recipients... -
It's not helping. It is declared, but the clear style clears only the .rel elements, it doesn't affect the elements after them (the one that have float left declared)Leave a comment:
-
IE7 float & clear bug
Below is the HTML and CSS. What I can't manage it is to make IE7 to display it right. Here is also the link how it looks in any other browser and in IE7.
Please help me out!
/* HTML */
<div class="box"><p class="rel">Con tact:</p>...
<a href="tel:12345 6789" class="phone">1 23 456 789</a>
<p class="rel">Alt ernative:</p> -
Thanks guys, but I managed to do it.
What I did is that I've put position relative to .box, position absolute and height 100% to .day-info and the left margin to .shifts by the size of .day-info and that's it.
Cheers!Leave a comment:
-
Sorry, i's my bad. I tried to simplify the structure and I mixed the container and content divs.
I managed to do it with some jquery, which is quite simple, but can't do it using pure css.
Visit http://beta.zamjene.com/ which is a jquery version what I want to achieve, and http://beta.zamjene.com/noscript.php without jquery. (Try resizing the browser window)
The site is in Croatian, but entire coding is done...Leave a comment:
-
How to display two divs side by side inside a parent div?
I have a situation as drawn above.
- Container contains undefined number of boxes.
- #container expands to entire browser width and can contain undefined number of divs
- .shifts expands to #container width
- .day-info has fixed width
The problem is that I don't know how to make that .shifts alway sticks left to the .day-info. If nested divs inside the .shifts have smaller width than... -
Ok, I got it. But how to make if labels are nested anywhere inside the div and then to select the first of them?Leave a comment:
-
Yes, h3 is the first child, but if I put
it won't work. Not even with input, but if I put more h3's it works normally.Code:.box-title label:first-child{}
--
i've tested without h3 and it works normally. will have to find how to select the first label beside the elements before him.Leave a comment:
-
first-child on form elements
I have a situation as above where...Code:<div class="box-title"> <h3>Login</h3> <label>Username:</label> <input type="text" name="username" /> <label>Password:</label> <input type="password" name="pass" /> </div>
No activity results to display
Show More
Leave a comment: