Solved

MarkItUp! and ASP Classic - Preview

Posted on 2014-03-12
2
361 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 31

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 31

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

705 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