Rev | Line | |
---|
[2] | 1 | /*
|
---|
| 2 | * FCKeditor - The text editor for internet
|
---|
| 3 | * Copyright (C) 2003-2006 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 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.