473,398 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Using bbc code with results

Bam
Hey all. Hope everyone is doing fine.

Question...

I know how to display results that contain html code on a page. (ie. <br>
<b>...)

what i would like to know, is if a result contains bbc code (ie.. [code]
[url]..)
how would i display that to be readable?

This is not for a forum, but would be the same as if i was writting a forum.
I think there is a script that the page has to contain to be able to read it
correctly, but I can't find it.

or can i be directed to the correct NG to post this. Not sure where i would
need to post.

--
Thanks,
Bam
Feb 26 '08 #1
2 1731
Bam wrote on 26 feb 2008 in microsoft.public.inetserver.asp.general:
Hey all. Hope everyone is doing fine.

Question...

I know how to display results that contain html code on a page. (ie.
<br<b>...)

what i would like to know, is if a result contains bbc code (ie..
[code] [url]..)
I often listen to the BBC, those are not their words. ;-)
how would i display that to be readable?
Isn't displaying a browser thing?
ASP runs serverside so does not display anything.
This is not for a forum, but would be the same as if i was writting a
forum.
wher you want to use it for?
I think there is a script that the page has to contain to be
able to read it correctly, but I can't find it.
A script where?

You/one could write an ASP-vbs or ASP-js script converting a text file or
textstream any way you choose and then sending the resulting stream down
the line tot the browser for display. That is an essential part of what
ASP and other serverside coding is all about.
or can i be directed to the correct NG to post this. Not sure where i
would need to post.
Do you want to tackle this serverside with one of the ASP languages?

ASP-vbs perhaps:

t = replace(t,"
Expand|Select|Wrap|Line Numbers
  1. ","<script type='text/javascript'>")
  2. t = replace(t,"
","</script")

"there is a script"? Where? On the web? Perhaps someone already did some
work on this, but I have never seen that.

Why not write decent HTML in the first place?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 26 '08 #2
Bam wrote on Tue, 26 Feb 2008 03:48:02 -0500:
Hey all. Hope everyone is doing fine.
Question...
I know how to display results that contain html code on a page. (ie.
<br<b>...)
what i would like to know, is if a result contains bbc code (ie..
[code] [url]..)
how would i display that to be readable?
This is not for a forum, but would be the same as if i was writting a
forum. I think there is a script that the page has to contain to be able
to
read it correctly, but I can't find it.
or can i be directed to the correct NG to post this. Not sure where i
would need to post.
First up, it's BBCode, not BBC code.

Search Google and you'll find code already written, for instance this simple one:
http://forums.aspfree.com/code-bank-54/simple-bbcode-script-90019.html

--
Dan
Feb 26 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: wallacej | last post by:
Hello Can anybody explain to me why the following four FPRINTF lines of code yield different results to their Console counterparts on the next line? By my reckoning the results should be te same...
13
by: Stumped and Confused | last post by:
Hello, I really, really, need some help here - I've spent hours trying to find a solution. In a nutshell, I'm trying to have a user input a value in form's textfield. The value should then be...
0
by: Mike Knight | last post by:
(I've also posted this problem on microsoft.public.excel.programming) I have a MS Access 2003 Database named "AS400 Fields.mdb". This database contains links to tables on an AS400. In MS...
7
by: Clint Herron | last post by:
Howdy! I posted this question on CSharpCorner.com, but then realized I should probably post it on a more active newsgroup. This will be my only cross-post. I'm creating a game engine, and...
0
by: Peter Conrey | last post by:
I have a perl web service (using SOAP::Lite) with a method called "Detail" that returns a strucure (hash reference to be exact). It works fine when consumed by a Perl client, but when I try to...
1
by: xcelmind | last post by:
Hello Dev. Guru, I want to at this time introduce myself. I am Stanley Ojadovwa by name. I’m a freelance and a newbie in web application development. I’m currently using ASP as my application...
1
by: tomlebold | last post by:
Having problems displaying query results from combo boxes on a sub form, which is on the same form that is used to select criteria. This has always worked form me when displaying query results on...
0
by: napolpie | last post by:
DISCUSSION IN USER nappie writes: Hello, I'm Peter and I'm new in python codying and I'm using parsying to extract data from one meteo Arpege file. This file is long file and it's composed by...
1
by: Lars B | last post by:
Hey guys, I have written a C++ program that passes data from a file to an FPGA board and back again using software and DMA buffers. In my program I need to compare the size of a given file against...
5
by: rohitkumar | last post by:
I am trying to build a web application which can execute dos print command on the client machine. This application will read a file stored in server and it will create a folder on client machine...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.