Paragraph Finder

I have a query about ASP with Javascript, I am trying to automate a form whereby when you type in some text in a form and hit the return key on your keyboard the asp/javascript places a <p> html marker in that paragraph space so when you hit the submit button the text is display correctly, i.e. the paragraphs are displayed and the text does not come out in one block. I have created a very simple form and button using ASP/VbScript and it works. For some reason I cannot work out how to do this with ASP/Javascript. This is so when in future all text is sent to a database we do not have to input the <p> markers manually. Obviously there is more to this, like connecting to a database to drag the text off first, but the code I have created is merely for testing purposes first.

here is my ASP/VBScript code below: ...

View Replies


ADVERTISEMENT

Location Finder Over WAP

tell me anything they know about locating WAP users. I assume that there must be some information on their current cell sent in the WAP request headers, but i'm not sure. I want to make a WAP site that appears differently depending on the users cell location.

View Replies View Related

Canada ZipCode Finder

I am writing an asp application using US Zipcodes.....I was wondering...apart from the zipcode format being different between Canada and the USA.....is the logic the same....I can't see any difference....but I was wondering if anyone else had encounter this.

View Replies View Related

Take A Paragraph Out Of String

I don't know Regular Expressions At All And I Could Really Use Your Help.
Is there a way to extract the paragraphs out of a string?

View Replies View Related

Format Paragraph

I've had some excellent help before on this forum and hoping for some more.
This is probably very basicbut I'm kind of muddling along a bit and it's a miracle I got so far.I have a memo text field in a table form and I'm wanting to enter text into it but all a small amount of formatting. Just basic paragraph breaks would be a start. This is kind of following on from a previous post of mine where I was trying to include line breaks. This was the solution.

Code:
<textarea name=whatever WRAP="HARD">

View Replies View Related

Paragraph Using CDONT

I am trying to send an email with the values from a form. I want to send the text field values as paragraphs on the email. It comes as one paragraph and there is no break.

View Replies View Related

Paragraph/<br> Tag In TEXTAREA

I am using TEXTAREA as input. While entering texts sometimes I am creating paragraph and save them .But when I retrieve from database it comes without paragraph.

Is there any way we can create paragraph in TEXTAREA?

View Replies View Related

Extracting The First Paragraph

Is it possible to extract the first paragraph in a mysql text field? my code line to display all text:

<%=replace(Recordset.Fields.Item("article").Value, vbcrlf, "<p>")%>

I want to separate the 1st paragraph (article lead) from the others (article), without having one table for 1st paragraph and a second one for the rest of the text.

View Replies View Related

Paragraph Breaks In Forms

I am building a small CMS for my son's school. Ideally I want to build the system for them and hand it over so that all updates can be done through web-based forms.

So far so good. However I'm having a problem with fields designed to take multi-paragraph stories or articles. I'm using a text area field on the form which saves the data in a memo field in the database. Teachers would typically cut and paste stories from word documents into the text area field.

However when the data is loaded back into the website from the database all the carriage returns have been removed and the story consists of one long paragraph.

View Replies View Related

Textarea Paragraph Breaks

I have a form with a textarea input. The form then stores the text in a database. I want that text to be written to a web page (not a textarea).

Well if I don't put a <p> in between paragraphs, of course the paragraph breaks don't show up on the web page. How can I make it, so when I hit return in the text area, a paragraph break shows up in the asp page?

View Replies View Related

How To Extract Email Ids From A Text Paragraph

I ve a text paragraph something like

sample sample sample sample Join Bytes! <ee@ss.comsample sample
sample sample sample sample sample sample sample sample
Join Bytes! sample sample sample <ww@example.comsample sample
sample sample sampl Join Bytes!


i want to extract email ids from the above text paragraph.. using
Active server pages or php can u give me some clue to find a
solution.

i ve tried some regular expression technique to sort out this problem
but.i cant get the proper output

View Replies View Related

Problem Stripping Paragraph Tags

I have an asp page that reads the contents of a database and creates an xml news feed. I have code that strips out the <BR> and <P></P> tags, but it looks one of the databases I'm trying to read from uses only <P> without the closing tag.

So the make a long story short, I can't figure out what to add to my code to strip out these tags (or if that isn't the problem at all!) Code:

View Replies View Related

Response.Write Into Paragraph Form?

I have a scrolling text box where people input a list of information, using the <ENTER> key between lines.

The submit button transfers this information into the Access DB into a memo field.

When I try and pull up the information using Response.Write, all of the line breaks are gone, its just moshed together.

What better way is there to do this so my line breaks are intact?

View Replies View Related

Striping HTML Tags From String, But Leaving Paragraph Formatting

I have a string of HTML (used for a specific purpose) that I'd like to
use somewhere else but as plain text. Rather than introduce a
specifically created plain text version I'd like to strip the tags code
from the HTML version. This in itself is easy, using a function such
as:

Function HTMLDecode(Expression)
Dim sTemp
sTemp = Expression
sTemp = Replace(sTemp, "&gt;", ">", , , 1)
sTemp = Replace(sTemp, "&lt;", "<", , , 1)
'Repeat for each defined entity
HTMLDecode = sTemp
End Function

However, the difficulty comes when trying keep each paragraph seperate.
For example, the string "this is<p>my name" shows on screen as:

this is

my name

if I use the above function, it strips out the <p> tag and shows the
result on one line:

this is my name

I thought I could use something like:

str = replace(str, "<p>", chr(10))

but that doesn't seem to work. Can anyone help me replace <br> and <p>
tags with something that's recognised as "plain" text but will keep the
paragraphs and new lines formatted correctly??

View Replies View Related

"simple" Paragraph Formatting

I have the below mentioned code that I am using to send a simple html email via ASP. Please do let me know how I could modify the code so that the carriage returns are captured and the paragraphs that are entered within the text area are preserved. I do not need any fancy hmtl formatting - just the paragraphs. Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved