Solved

MarkItUp! and ASP Classic - Preview

Posted on 2014-03-12
2
345 Views
Last Modified: 2014-03-12
Hello All;

OK, I have MarkItUp!, of which I really enjoy using in our sites.
The issue that I am having, and have never figured out.
Is, how to parse the editor, using Classic ASP.
Now, I can parse the code, that is not the problem.
The problem that I am having, is getting the page to show up at all.

Right now, I just have
This is a test
Written in the file, just to show something, so I can make sure that it is working.
And I cannot get it to show up.
I even changed the filename ext, to .html, to see if that was the issue, and no go.

This is what I have in the jquery.markitup.js
previewTemplatePath:      '~/parsers/Preview.asp',

Do I need to add or so anything else to the settings within the file, to make the preview display?
Right now, the only thing that is happening, is that it is showing a blank window.

This the the entire section.

		options = {	id:						'',
					nameSpace:				'',
					root:					'',
					previewHandler:			false,
					previewInWindow:		'', // 'width=800, height=600, resizable=yes, scrollbars=yes'
					previewInElement:		'',
					previewAutoRefresh:		true,
					previewPosition:		'after',
					previewTemplatePath:	'~/parsers/Preview.asp',
					previewParser:			false,
					previewParserPath:		'',
					previewParserVar:		'data',
					resizeHandle:			true,
					beforeInsert:			'',
					afterInsert:			'',
					onEnter:				{},
					onShiftEnter:			{},
					onCtrlEnter:			{},
					onTab:					{},
					markupSet:			[	{ /* set */ } ]
				};

Open in new window


Carrzkiss
0
Comment
Question by:Wayne Barron
  • 2
2 Comments
 
LVL 30

Accepted Solution

by:
Wayne Barron earned 0 total points
Comment Utility
I found it.

You have to look at the top of the set.js file.
There you will find:
 previewParserPath:  "~/sets/bbcode/preview.php",

Change this to the path and filename of your file.

In my case, it is
 previewParserPath:  "~/sets/bbcode/preview.asp",

That is it.
Carrzkiss
0
 
LVL 30

Author Closing Comment

by:Wayne Barron
Comment Utility
Found the information when I used the developer tool within Google Chrome.
When I clicked on the Preview link, it showed me the file did not exist, and then I did a search for it, within Dreamweaver's power search feature.
(You do not have to have the file(s) open, in order to search through them, when it is found, DW opens it up for you.
People bash DW, but it comes in handy for a lot of really cool things.
Just NOT coding. That is best left done on your own.)

Carrzkiss
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now