Solved

MarkItUp! and ASP Classic - Preview

Posted on 2014-03-12
2
355 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
ID: 39925553
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
ID: 39925556
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 Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
This article discusses how to create an extensible mechanism for linked drop downs.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to count occurrences of each item in an array.

831 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