~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckurlparams.js

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
Import upstream version 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * FCKeditor - The text editor for internet
 
3
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 
4
 * 
 
5
 * Licensed under the terms of the GNU Lesser General Public License:
 
6
 *              http://www.opensource.org/licenses/lgpl-license.php
 
7
 * 
 
8
 * For further information visit:
 
9
 *              http://www.fckeditor.net/
 
10
 * 
 
11
 * "Support Open Source software. What about a donation today?"
 
12
 * 
 
13
 * File Name: fckurlparams.js
 
14
 *      Defines the FCKURLParams object that is used to get all parameters
 
15
 *      passed by the URL QueryString (after the "?").
 
16
 * 
 
17
 * File Authors:
 
18
 *              Frederico Caldeira Knabben (fredck@fckeditor.net)
 
19
 */
 
20
 
 
21
// #### URLParams: holds all URL passed parameters (like ?Param1=Value1&Param2=Value2)
 
22
var FCKURLParams = new Object() ;
 
23
 
 
24
var aParams = document.location.search.substr(1).split('&') ;
 
25
for ( var i = 0 ; i < aParams.length ; i++ )
 
26
{
 
27
        var aParam = aParams[i].split('=') ;
 
28
        var sParamName  = aParam[0] ;
 
29
        var sParamValue = aParam[1] ;
 
30
 
 
31
        FCKURLParams[ sParamName ] = sParamValue ;
 
32
}
 
 
b'\\ No newline at end of file'