js

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Danielajj's picture

Panels para crear un efecto parallax en el home

Hola a todos!!

Soy nueva (pero solo en el registro de mi perfil porque vivo sumergida aquí resolviendo dudas y problemas)
Tengo varios días tratando de dar con la solución a lo que quiero hacer, les explico:

Read more
perusio's picture

Nginx HTTP concat module

This might be of interest to you.

Of course there's a Drupal module to be made. This will void most of the issues around CSS and JS aggregation. Making it simpler and more
efficient. Nothing beats C for speed and efficiency.

The module should work also with modconcat, that is, if you're still using that type of legacy web server technology ;)

Read more
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).

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.
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?
Read more
ernestd's picture

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

Read more
Subscribe with RSS Syndicate content