[[PageOutline]] = Introduction = This is a central location for users to share useful code samples for !MapGuide, be they JavaScript, .Net, PHP, Java, or something entirely new... == Code Samples == === !JavaScript === * [wiki:CodeSamples/JavaScript/AJAXViewerEventHooking Hooking to events in the AJAX viewer] === ASP.Net === * [wiki:CodeSamples/ASP.Net/ScribbleApp Dennis' Scribble Application] * [wiki:CodeSamples/AspDotNet/TemporaryMarkupsDotNet Creating Temporary Markups] === PHP === === Java === == Creating New Pages == === Page Title === When creating a new page, please use the following convention for the page location: !CodeSamples/TechnologyType/YourPageName for example: !CodeSamples/JavaScript/AJAXViewerEventHooking This is to ensure that pages are easily found via the TitleIndex, and may allow for an automated index at some point. You can easily do this by editing the the CodeSamples page, copying another entry, and then modifying it to fit your title. Once you have saved the page, you will have a handy link to follow to edit your own sample. === Header Section === Please include the following on every Code Sample page. It allows users to easily navigate the page, and if they come in off a search engine link they can get to the code samples index more easily. {{{ [[PageOutline]] This page is one of the !MapGuide Community CodeSamples. Visit the CodeSamples page to view more! }}} === Syntax Highlighting === Trac has some really cool [wiki:WikiProcessors syntax highlighting] built into it. The !MapGuide Trac doesn't have all of these set up, but at least the text/html one works, and does a reasonable job with both HTML and JS. For example: {{{ #!text/html }}} Please use this where possible to make your inline examples more readable.