Hi

I'm a MOSS (sharepoint) developer and in my current project the design-
layout from the advertising agency included fancy menu using Prototype
and scriptaculous.
MOSS has a HTML editor (webbased). When the user tries to activate the
editor by clicking a link "EDIT CONTENT" it generates a JavaScript
error.

function AP_PopulateFromSerializedObjectQString( objectToPopulate,
queryStringSegment )
{
        var currentWorkingQString=queryStringSegment
        var indexOfQStringStart=queryStringSegment.indexOf("?");
        if( -1 !=indexOfQStringStart )
        {
        
currentWorkingQString=queryStringSegment.substr(indexOfQStringStart);
        }
        var propArray=currentWorkingQString.split("&");
        for( var i in propArray )
        {
                var nameValuePair=propArray[i].split("="); //THIS IS THE ERROR
                if(nameValuePair.length==2)
                {
        
objectToPopulate[nameValuePair[0]]=decodeURIComponent(nameValuePair[1]);
                }
        }
}

Visual Studio says the error occurs in a files called
"AssertPicker.js". this is a Sharepoint file.

The onclick code of the "Edit Content" link is=
"var params=new Array(); params[params.length] = new
Array('ValidationContext', 'FONTS=true\u0026REUSABLECONTENT=true
\u0026HEADINGS=true\u0026HYPERLINKS=true\u0026IMAGES=true
\u0026LISTS=true\u0026TABLES=true\u0026TEXTMARKUP=true
\u0026ISREQUIRED=false\u0026RESTRICTURLSTOSITECOLLECTION=false
\u0026'); params[params.length] = new Array('CurrentWebBaseUrl',
'\u002fHOME'); params[params.length] = new
Array('DefaultAssetLocation', ''); params[params.length] = new
Array('DefaultAssetImageLocation', ''); params[params.length] = new
Array('AllowHtmlSourceEditing', 'True'); params[params.length] = new
Array('EnableExtensions', 'True'); params[params.length] = new
Array('EditorBackgroundColor', ''); params[params.length] = new
Array('DisableCustomStyles', 'False'); params[params.length] = new
Array('DisableBasicFormattingButtons', 'False'); params[params.length]
= new Array('PrefixStyleSheet', 'ms-rte'); RTE2_LaunchEditor(params,
'ctl00_PlaceHolderMain_Content_ctl00_RichHtmlField',
'ctl00_PlaceHolderMain_Content_ctl00_RichHtmlField_DisplayHtmlPanel',
'ctl00_PlaceHolderMain_Content_ctl00_RichHtmlField_EmptyHtmlPanel',
'ctl00$PlaceHolderMain$Content$ctl00$RichHtmlField',
encodeURI('\u002fHOME'), 'False');if (window.event)
{ window.event.returnValue = false; window.event.cancelBubble =
true; } return false;"

When I remove the       <script type="text/javascript" src="/Style Library/
js/prototype.js"></script>
everything works fine (except the fancy menu of cause ;-)

Any ideas????


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to