Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.307.630 Times

javascript and CSS reloader 6.x-1.0

  Date Added: July 10, 2013  |  Visits: 387

javascript and CSS reloader

Report Broken Link
Printer Friendly Version


Product Homepage
Download (45 downloads)



This is a utility module for developers deals with a specific problem: If a module loads its own javascript and/or CSS files in hook_form_alter() - and then there is an error when the form is submitted the hook will not be called again (the form is cached) which means that, on page reload, the javascript and CSS files are not reloaded.The module, attachments (http://drupal.org/project/attachments), had this problem but it can also be found in the Node Expire module (which is no longer being maintained but is the best of the node expiration modules) and it's bound to exist in other modules.There are two ways of using this module: * A developer can simply insert the necessary settings for the Stylistics module into their hook_form_alter(), instead of loading their JS and CSS files at that point and let the Stylistics module handle all the file loading whether first load, reload or on error; * Create some override code which adds the JS and CSS files for some other modules but only to be loaded on form error (to avoid problems with JS settings being loaded twice);Other people's modulesThe 'js_skip' array does not load any javascript in its list the first time the form is loaded, but does on any subsequent page load. This would normally be used if you wanted to ensure that javascript settings or inline code are loaded correctly. The situation would be that there's a faulty module, such as the Node Expire module, which uses hook_form_alter() to load its javascript settings. Stylistics must not load the settings the first time the form is rendered, because that will corrupt the settings (already loaded by Node Expire), but every time thereafter, if there's a form submission error, the settings must be reloaded.It doesn't matter if there's multiple attempts to load normal JS, CSS and jquery_ui files, Drupal ignores the multiple requests and just does it once. The javascript settings and possibly inline javascript are the problems.Work on this module was facilitated by the Workshop.

Requirements: No special requirements
Platforms: PHP
Keyword: Developer Error Files Form Hook Form Alter Loaded Loading Module Modules Modulesthere Problem Reload Settings Stylistics Vascript
Users rating: 0/10

License: Freeware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


JAVASCRIPT AND CSS RELOADER RELATED
Modules  -  Early Form Alter 6.x-1.0
Provides a new Drupal hook: hook_early_form_alter.This hook is identical to Drupal's hook_form_alter in every way except that it should always be called before any other module's hook_form_alter is called. Also provides...
10 KB  
Modules  -  Late Form Alter 6.x-1.0
Provides a new Drupal hook: hook_late_form_alter.This hook is identical to Drupal's hook_form_alter in every way except that it should always be called after every other module's hook_form_alter is called. Also provides...
10 KB  
Modules  -  Form Alter UI 6.x-1.x-de
New module that provides a UI for altering forms. This module will also support export/import operations and generating module code for a static hook_form_alter module.
10 KB  
Libraries  -  Tk::form 804.027
Tk::form is a Perl module with a geometry manager based on attachment rules. SYNOPSIS $widget->form?(args)? $widget->formOption?(args)? The form method is used to communicate with the form Geometry Manager, a geometry manager that arranges...
5.7 MB  
Libraries  -  Tie::Form 0.02
Tie::Form is a Perl module to access a machine readable database file that minics a hardcopy form. SYNOPSIS require Tie::Form; ##### # Using support methods and file handle with # the file subroutines such as open(), readline() # print(),...
89.09 KB  
Modules  -  Contact form fields 6.x-2.2
This module allows to add additional fields to site wide contact form like the profile module interface. Admin can define the fields and those will be available on site wide contact form. Please note that these fields will not be available to...
20.48 KB  
Security Tools  -  Encrypt4all Home Edition 1.4
Encrypt4all is a powerful encryption software used to store your private documents into a single encrypted archive, implements a real bit-per-bit data encryption, encrypt any types of file, encrypt files larger than 4 gigabyte, folder protection...
1.26 MB  
Security Tools  -  Encrypt4all Professional Edition 1.4
Encrypt4all is a powerful encryption software used to store your private documents into a single encrypted archive, implements a real bit-per-bit data encryption, encrypt any types of file, encrypt files larger than 4 gigabyte, folder protection...
1.53 MB  
File Management  -  Parsing binary files with regular expressions 1.0
This script allows you to use the regular expression engine to parse binary files, especially those for which the struct module alone is inadequate.The typical way to parse binary data in Python is to use the unpack method of the struct module....
 
Libraries  -  Hook::PrePostCall 1.2 Alpha
Hook::PrePostCall is a Perl module that can add actions before and after a routine. SYNOPSIS require 5.000; use Hook::PrePostCall; sub try { print STDERR "in try: @_n"; @_; } PrePostCall->new( try, sub { print STDERR "pre: @_n"; #...
3.07 KB  
NEW DOWNLOADS IN SCRIPTS, MODULES
Scripts  -  Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The...
1.44 KB  
Scripts  -  MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and...
368.54 KB  
Scripts  -  Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2....
938.87 KB  
Scripts  -  Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS....
371.09 KB  
Scripts  -  PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud...
1.41 MB  
Modules  -  TinyMCE Node Picker 6.x-2.1
This module will de discontinued and replaced with Node Picker as soon as a stable release is available.TinyMCE Node Picker provides a button in TinyMCE that displays a list of links to content. Choosing a link inserts it into the editor.The...
20.48 KB  
Modules  -  Fapilicious 5.x-1.x-de
Fapilicious is a collection of FormAPI goodies.I hope to make it a repository of reusable FormAPI trickery and short cuts. Currently it has small collection of powerful FormAPI element validators.Please submit your favorite tricks as patches so we...
10 KB  
Modules  -  Donation Goals 6.x-1.x-de
The Donation Goals module lets you create nodes of the type "Donation Goal." These goals allow you to set an amount of money you'll need for whatever you're saving up for. Visitors of the site can then donate money through PayPal. Once the target...
20.48 KB  
Modules  -  Plica Twitter 1.0.1
Plica TwitterInstallation : * Download, unzip, and install plugin dir in /wp-content/plugins * Activate * All right now
10 KB  
Modules  -  Page Array 5.x-1.x-de
The pagearray module is a small (single function) helper module that can be used whenever there is a need to load the output of any Drupal path in data form. Based on the code in index.php, Page Array bypasses the theme('page') call, instead...
10 KB