The included file is html-rich, and if included in default.asp, it displays as such. However, as I am attempting to make my website accessible, I wish to be able to strip out the html tags on the included page dynamically.
I have used the following function (and have called it with the above statement) but am getting an error in my functions.asp file: Unexpected quantifier. This is on the line that states Code:
I have a database in which i store questions and answers, but the questions are about HTML, Javascript, ASP...... So i store into my database a question like 'How do you make a letter/word in HTML bold? Code:
I have created a JavaScript function to validate values of a parameter. Let's say validate(parm). I have saved the entire file as validate.inc and included in my ASP page as: <!--#include virtual="/Validate.inc"-->
Now from an ASP page I want to call JavaScript validate function and pass on a parameter, X, to validate. How do I call a JavaScript function from an ASP page?
I've been playing with the idea of just how to use an ASP page to provide a remote function call. In an ideal world this would be a web service but how can you do it if restricted to ASP 3.0 ?
Idea 1 was to write an ASP page that accepted arguments using the classic ?X=1&Y=2 type of strings and have the page return an ADO disconnected record set containing the results of the action. This is call very well, and works, but you do have to allow the browser to create an ADODB.RecordSet in which to place the results which goes against some security principles. Code:
I have a pop-up window with a search button. If click on this button then a record list is made on this pop-up window. Each record have field with a href link. If you click on the href link next function is executed: Code:
i wanna convert the HTML tags in the Textarea with help of the ASP code. Means i m getting some value form DB which comes in the format of ------------ this is text <br><br><ul><li> list-1 value</li><li>list-2 val</li></ul> ------------ i wanna conversion of the above text in textarea
I have constructed a simple guestbook application using ASP and a SQL server backend. My problem is that when a person post a message and it displays on the site, if they paste HTML code or any other scripting languages in there, it will post and execute on the site which is what I don't want to happen.
Is there a way or a script out there using ASP that when the user post the message it will scan for key scripting tags and filter them out?
In my website I've created an admin login with some ASP pages, so I can edit and update stories.I use an acces database and installed HTMLarea for WYSIWYG editing. When I update text, all the HTML tags show als plain text in my website.For example: I make a headline bold in my wysiwig editor and I update my text, it just shows: <B> here's a new story </B>If I look in my database I have a field 'text' wich is a memofield and I can see the html tags have been stored into my database. <B>here's a new story</B>
It looks like it doesnt recognize the html tags as HTML, but just as plain text... The same problem occurs when I try to use html-tags in my database... so I don't think the editor is the problem... it's just the way my asp-pages retrieve the data from my database..Can I use HTML-tags in an acces database and how do I get them to show up right in my website? So I can make text bold and use breaks and paragraphs?
I'm trying to display a record that has html tags, but I dont want the HTML tags to be written to the source code as tags, I want them to be displayed as regular text. Kind of like this forum right here.
<head> </html>
These displayed correctly, they weren't written to the source code of this page obviously.
I have an asp email applciation that will be used to create a newsletter. I want to me able to enter a few lines of text into the textarea part of the form. Then if I want to add a hyper link to the textarea. I just want to click a buttom and add the html tags into the body of textarea along with the text I enter above the hyper link.
I'm querying a text field with an 8000 character limit. The text also contains HTML tags like <p> <br> and more. Is there a way to strip all HTML tags in the resulting recordset, or do I have to replace each tag individually?
I've written a script which is still trying to concated couple of messages then send an email. Those messages are a reuqest objects coming from another form as demonstrated below: Code:
I need to display a lengthy html source code within a text area. The problem is, a part of html source code is displayed in the text area and the later part is displayed in the actual html page in which I have the text area. i.e the the html source code is treated as a part of the actual page.
I want to show the whole html source code (which is from the database column) in the text area. Is there any special way to display the html tags in a text area. Hope I have made myself clear enough. how to achieve this?
One of my client requires a technical test with 15 questions, one of the question is given below: Write the code to access the name element in the XML example below.
<XML ID=MyXMLDocument> <class> <student studentID=13429> <name>Jane Smith</name> <average>65</average> </student> </class> </XML> ------------------------------------------------------------- The candidate has to write the code for the above giveb question in the textarea box, and since the code contains html tags , i have been facing problems in retrieveing the data from the textareabox in the exact manner has entered by the candidate.
Is there any solution to retrieve the exact code with the html tags.
The following pattern is used to strip HTML tags from a string. I need to remove the tags only if they contain a colon. Is it possible? How can I modify this regexp pattern to match only if a colon exists between the "<" and ">" ? Code:
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, ">", ">", , , 1) sTemp = Replace(sTemp, "<", "<", , , 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??
for debugging purposes, I am wondering if it is possible to have an ASP script that:
-creates a tabel with two columns -writes a var name in the first column -writes its value in the second column
is this possible? Right now, I have manually created this tabel for myself, but everytime a new var is defined, I have to update my 'debug' table. Can this be automated?
I have a form which checks email addresses. On submitting the form i have some JavaScript checking the format of the email address, once this has been completed successfully I would like my asp function to run. On successful completion of that I would like my form to be submitted to another page. Is this possible?
I'm trying to call asp function just simply by clicking a button But could i do this method? or how could i pass the function and values.It should be something like this:
<script LANGUAGE='VBSCRIPT'> <!-- function btnClick_onclick Dim strID Dim strName strID = document.form.txtID.value strName = document.form.txtName.value
I used this method to get the datas from array. After that, i call the function ora_login) by passing parameter but it doesn't work. It comes out 'Type mismatch' . it's there any method to do it?
for i=0 to ubound(cnn_ikh) if i=0 then ora = "'" &cnn_ikh(i)& "'," elseif i = ubound(cnn_ikh) then ora = ora & "'" & cnn_ikh(i) & "' " else ora = ora &"'" & cnn_ikh(i) & "'," end if next
I would like to call a C function (Unix server) from a dll (VB) based on a Windows server (ASP - II5). Is it possible? If yes, can you show me how to do it?
I have a class. I create an instance of this class in Page_Load event. Somewhere in the page I'd like to execute an a function (public) member of this class. This function return a string. How can I call this function ?
trying to do an asp page for downloading contents. i want to update into database,while user click for download.
i coded like this
<a herf="filepath" >download</a>
i want to cal a update function while cilick on dat link. Now i coded the updation in dat page itself.so whenver the page visted,the database upadting,even the user click didn't click on dat link.
I am writing a web page using ASP. I have an html form when submitted the data is validated using a javascript function. BAsed on the results from the data validater is it possilbe to call a function within that same page instead of calling another URL using the Form Action statement? Or can the form action point to another .asp program, perform the logic within that program but not actually load the page
I need to load some data into our oracle database after the data is validated and am not familiar with using javascript to do this. I already have code within my program that does the database call which I would like to use.