js

Swampcritter's picture

Compression -- Drupal side or Apache side or both?

Which would produce a better compression rate -- using mod_deflate on the Apache instance side for css/js files and/or using Gzip for Javascript/CSS on the Drupal side?

I am looking for overall site performance aspects as well (i.e. additional CPU time, memory allocation, etc).

16 comments
baykush's picture

Drupal Site Tasarımcısı | 5dakika

· · · · · · · · ·
Employment type: 
Full time
Telecommute: 
Not allowed

Merhabalar,

Beşiktaş'ta bulunan ajansımıza

Uygulama alanları

-web uygulamaları
-portallar
-özel proje siteleri
-alışveriş siteleri e-commerce

olmak üzere

-ingilizce sorunu olmayan
-gerektiğinde kendi modülünü yazabilecek derecede Drupal bilen
-PHP, SQL, HTML, XHTML, CSS, JS konularına hakim
web tasarım ve programcısı aranmaktadır. (program ağırlıklıdır)

ilgilenen kişilerin yaptıkları çalışmaları da gösteren/anlatan özgeçmişlerini 5dakika2009@gmail.com adresine Zeynep hanım dikkatine göndermeleri rica olunur.

Read more
bflora's picture

Advice for a novice Drupal developer hitting javascript problems?

Hi folks,

I'm developing an online news site that uses the Drigg module, panels, OG and views.

Somewhere along the way, I've picked up some nasty problems that I believe are javascript related.

They have to do with how forms work on my site.

Problems:

  1. The CCK Imagefield forms no longer works as designed. When I browse for an image and DON'T click "upload" it works. If click the upload button, the image info is not saved.
6 comments · Read more
Chris Charlton's picture

FITC 'Get A Job Event'

Start: 
2007-10-22 18:30 - 19:00 America/Los_Angeles

This is a FREE event.

Monday, October 22, 2007 ~ 6:30 PM - 9:00 PM

Hilton Los Angeles Universal City
555 Universal Hollywood Drive
Universal City, California 91608

Interested in getting a job in the rich media industry? Then this is the event for you!

Login to post comments · Read more
Chris Charlton's picture

Rich Media firm accepting Drupal interns - Los Angeles | Almer/Blank

Employment type: 
Full time
Employment type: 
Part time
Employment type: 
Contract
Telecommute: 
Allowed

Almer/Blank is an interactive media agency, specializing in high end Flex & Flash video application development looking for any students/interns who currently have working knowledge of Drupal and would like to learn how to integrate it with RIA’s.

We create amazing, award-winning work for clients including E! TV, Clear Channel, Apple, and Mattel. We work out of an awesome, bright, open warehouse, just off Abbot Kinney in Venice, complete with a 50-seat digital technology theater and a bar. When you work at Almer/Blank, you’ll get exposure to the highest-level of interactive application development practices, and have great extra learning opportunities, like our Intern Romps, user group meetings, and sitting in other special training sessions or courses at the Rich Media Institute.

Read more
silence's picture

Arrays, Serialization, JSON and such....

In the story here, It was finally decided that we will be using JSON for passing the "data" from client to server. As discussed, we'll be storing details in a JS object array in client. Robert had said that it is preferable to convert JS to php on server.

  1. What are the scenarios where serialized JS is prefered over php on server? Basically that answers why we should transfer the data in JS format instead of PHP?
  2. Now, once we have the "data" to transfer, What are the possible ways to transfer this from client to server? Is form POST enough or is thr something else that can be used?
Login to post comments · Read more

Heartbeat pattern

Once the iframe is created and after the design mode is activated I call the activateHearBeat() function. This function does the refresh loop of the document calling itself with the setTimeOut() js function and calling the updateDocument() on each iteration.

<?php
function activateHeartBeat()
{
   
updateDocument();
 
setTimeout(function () { activateHeartBeat(); }, 3000);
}
?>

The updateDocument() is now very simple but it will have to set all post vars to send them to the server in each async call.

<?php
function updateDocument()
{
// set post vars
// (...)
.
// do async call

Login to post comments · Read more
Syndicate content