Replacing Text From RSS Feed In ASP Page

I have a rss feed that I am pulling into an ASP page. In the rss there is a url with the text 'SITEID' that I need to change to my actual id '456456'. Does anyone know how I can have the ASP page replace the text in the URL? I am pretty green on all this. Here is the asp page code I am working with: Code:

View Replies


ADVERTISEMENT

Fetching A RSS Feed Through A Proxy Server And Displaying It On ASP Page

I need to display the contents of an external XML/RSS feed in an ASP page. I have found a couple of scripts that seem to do the trick at:

(URL address blocked: See forum rules)
(URL address blocked: See forum rules)/ow.asp?ASP_Based_RSS_Reader

(any good alternatives will be much welcome)

However, my problem is that the ASP page is part of an Intranet site, so it can only access the Internet (in order to fetch the RSS) via a proxy server.

Can somebody tell me how can I modify the above scripts (or any other that does the same) so the IP/port/login/password parameters can be passed along with the feed URL?

View Replies View Related

Replacing

I read that the "?" caracter can make you trouble with some search spiders. Although I know the Spiders are upgrading to evade this indexing problem, it is still an obstacle for some search engines.How can you refrain from using "?" in urls, for example, in a dinamically runned site?. Some CMS do it replacing that caracter with the slash bar "/", that is more spider-friendly.

In brief:

1. Is "?" still giving problems?

2. In case it's still making problems. How can I replace it?

View Replies View Related

Replacing + Signs To -

Does Anybody Know Howto Switch All Positive Signs(+) For Negitive Signs(-) And Negitive Signs For Positives?

View Replies View Related

Replacing HTML

that is generated by a database that I don't have access to?

So, I use a database drived store. It is not open source, so I do not have access to adjust the HTML that is generated.

Unfortunately, the code is fairly messy, and contains un-necessary breaks, paragraphs, and other code that I don't want there! A lot of it I've been able to adjust with css, but the biggest thing that bugs me, is that there is a table and a td that are at a set width. It is set at 'width=550'. I would like to either remove that, or change it to 'width=95%'.

Is there anyway I can accomplish this? What I do is create a template .htm page that the asp uses. Is there anything I can do in the .htm to replace or remove this HTML? Javascript? A snippet of ASP code? Or should I just learn to live with it?

View Replies View Related

Dynamical Replacing

I need to replace some dynamical content away from a text, only static thing
is that it starts with <!-- Start dynamic --> and ends with <!-- End dynamic
-->. How do i dynamical remove these two tags and all the content between
them?

View Replies View Related

Replacing Submatch

I'm sure this isn't difficult, but it's Friday afternoon (!).

I'm trying to use a regular expression to match html tags in a string
and convert them to lower case. It's the RegExp object that I'm
struggling with rather then expression syntax.
So far I have this ('HELP!' denotes where I'm stuck):

private function recoverHTML(sHtml)
dim oRegExp
set oRegExp = new RegExp
oRegExp.IgnoreCase = False
oRegExp.Global = True
oRegExp.Pattern = "<(.*?)>"
sHtml = oRegExp.Replace(sHtml, HELP!)

set oRegExp = nothing
end function

I'm thinking of something like this:

"<" & lcase($1) & ">"

What syntax do I need here?

View Replies View Related

Replacing Characture

With hosting for clans, more so then not, the clan tags contain charactures
like + { [ in front of the tag letters.
what I am having a problem with is if it starts with a +, it isn't picking
up the name correctly. If in a sql statement, it looks for a tag that starts
with a +, it won't find it. And sometimes, when it is supposed to move the
tag over in a bracket, it moves it without the +.

for example, +EcK+ is the tag, it will either not find it, or move it over
as EcK without the +'s.

is there any way around this?
i know for some strings, such as things with ' you can use

replace (request.form("var"), "'", "''")

View Replies View Related

Replacing Apostrophes

I put in some code to keep apostrophes from being a problem. However, on the
display page, they have double quotes. What am I doing wrong?

Here is the code on the page which captures the data from the form, right
before it gets entered into the database:

------------------------------------------
strInternalDesc =
Replace(Replace(Trim(Request.Form("InternalDesc")),"'","''"),vbCrLf,"<br>")
------------------------------------------

then, on the page where it gets displayed, I get:

View Replies View Related

Replacing First 4 Characters?

I want to mask part of a field upon displaying it. field name is "IP", how do I mast the first 4 characters with "*" symbols?

View Replies View Related

Replacing A String

I have a printer friendly page script, that outputs the text less any includes, it works well in IE, but firefox grabs the "'<%@LANGUAGE="VBSCRIPT" %>" and outputs it to the print version page. SO i get a nice printer version - but with <%@LANGUAGE="VBSCRIPT" %> at the top.

Does anyone know how to write a conditional region like:after <body> if string is "<%@LANGUAGE="VBSCRIPT" %>" replace with ""?

View Replies View Related

Replacing Whole Words

i am having trouble getting my REPLACE fn. to replace whole words only. basically, i'm running a 'spelling checker' fn. that uses the REPLACE fn. to find incorrect spellings and replace them. problem is, the fn. seems to replace all instances of a string, and not a whole word only as I intend it to be:

Code as follows:

StrInput = Request.Form("BKM_Search")
StrInput = LCase(StrInput) 'convert all to lowercase
StrInput = Trim(StrInput)'trim all empty space b4 & after string
StrCorrect = Replace(a_StrWrong, a_StrRight,1,1,1)

Let's say I want to replace the word "sea" with "ZZZ" only:

Example input: "Sean has some neat sea shells"
Example output: "ZZZn has some neat ZZZ shells"

View Replies View Related

Replacing Return

I've got an Access database with a memo field with large amounts of text in. In Access forms the text appears with line breaks where the enter key has been pressed. I'm using ASP to display this content on a simple webpage but want it to appear with the same line breaks as in the Access forms.

This is the code that I've got but it doesn't seem to work.

<% Article = rs("Article")
Article2 = Replace(Article, "<br>", chr(13))
%>

<td valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div id="ArticleStyle" align="justify">
<% =Article2 %>
</div></td>

View Replies View Related

RSS Feed

today a client asked me for an RSS feed on their website. I've never done it before. Bascially i've just spend a while on google and worming my way around the web but just cant seem to get my head around how the heck I make this thing work.
I basically want to embed an rss feed on a website in a little section that will act like a news bar. Can anyone describe to me in the simplest possible terms how i do it. Thats an rss feed, as part of a website. Not a descktop application or anything, it needs to be embedded.Im thinking its the morning tierdness thats making me 'not get it'

View Replies View Related

Rss Feed

I would like to create a RSS feed from my Access Database.
I have an Access table for news which has the article title, date, and
story in it. What I would like to do is pull the data from there into an
xml file to create the RSS feed, so when users upload a news story it
automatically updates in the xml file. Can this be done with asp? and where
should I look for more information.

View Replies View Related

What Is RSS Feed?

i am new to this RSS. so can any body tell me wat is RSS feed? wat is the benifit?

View Replies View Related

RSS Feed

I have this statement which produces data from an RSS feed. The statement works well but I'm confused on how to format the {DC:DATE}.The date currently displays like this: 2006-05-22T08:57:00-04:00. I might like something else ie May 22, 2005 or maybe time.

This statement is inside ASP Tags.

ItemTemplate = "&nbsp;<a class='rssLink1' href=" & """{LINK}""" & ">{TITLE}</a>&nbsp;{DC:DATE}<BR>"

View Replies View Related

BBC RSS Feed

I want to put a BBC RSS Feed onto my site, and i dont want to link to a host, i want to link directly onto the bbc site.

View Replies View Related

RSS Feed

where i can find a good explaination of RSS Feed and a example of it a working example of it. I searched google found some articles but it only tells me what RSS is an overview not in depth.

View Replies View Related

RSS Feed

I am looking to set one up for the information on the following page (here ) in the "Forum - Recent Topics" box.

View Replies View Related

RSS Feed - ASP

how to get news RSS feed in asp?

View Replies View Related

Replacing Missing Images

Does anyone know how I can detect if a image is missing from the server before the browser tries to render it, I guess this would have to be done via some sort of preloader, the problem being I am the site in question has around 30,000 images and keeping on top of missing images is a impossiblility.

View Replies View Related

Replacing Variable Characters

Im looking for a way to replace certain chacters in a variable. this will be used for a file name. currently im using Code:

strFileTitle = Replace(strGuideTitle, " ", "_")

But this only kind of works because as ive erperiented more i also need to remove most chancters which would make an image file name invalid such as : ; / & ' " and a few others which users may enter regulary.

View Replies View Related

Replacing A File With Dropdown

what I'd like to do is have a few style sheets, then have a dropdown box where the user can select a theme and it will switch the style sheet in the link rel= according to which theme they chose. This should be pretty simple but I'm not much of a programmer. Can anyone help me out with the code for this?

View Replies View Related

Replacing Single Quote

I have a code that goes to the url of the company.My problem is that if a company name has a single quote in it,it tries to end the statement.I tried a replace as you will see,but still doesn't work.Heres my code:

Response.Write "<td><center><a href='edit.asp?company="
Response.Write server.URLEncode(replace(rs("Company"),"'","'"))
Response.Write "'>Edit</a></center></td>"

View Replies View Related

Replacing A Specific Line

i have a remove user and change password script written, but the only thing they are missing is the actual text file editing part. i have the file open because i have read it, but how can i delete a line that matches with 'OldLine' and put 'NewLine' where it was with a couple of lines of code?

View Replies View Related

Replacing Quotation Marks

The following removes any unwanted apostrophes before being inserted into an sql database:

Articletext = replace(articleText,"'","''")

..but if I need to remove all quotation marks, this doesnt work:

Articletext = replace(articleText,""","''") Code:

View Replies View Related

Displaying RSS Feed

Firstly, I am not a programmer, so forgive my complete and utter ignorance of all things ASP related.I am trying to display an RSS feed on a website using some ASP which I found on this website - http://www.tele-pro.co.uk/scripts/rs...d_class_dl.htm
I have downloaded the script and running it locally it works (kind of):-

However, when I put this page on my web server I get an error message:-
http://www.ubsigroup.com/testing/

The ASP file is here:-
http://www.ubsigroup.com/testing/rss...ed_class.1.txt

View Replies View Related

Create RSS Feed

how to create the RSS for a static ASP site. I have used CMS before which has buitin feature of creating the RSS. I like to write own RSS for individual pages. The site in question is SIPLNET.COM

View Replies View Related

Reading XML/RSS Feed With ASP

I could post the various bits of code that I've tried to use to get this to work... but it'd be kind of pointless as I haven't gotten very far with either of them (I've run across encoding problems, and problems where it works on the local machine, but not through ASP. I've tried using an XLT doc and without).

View Replies View Related

Data Feed

I have access to a .csv data feed behind a password-protected ftp server. What I would like to do is access the server via code, execute queries against the .csv data feed, and return live results.

Is there a way to do this?

View Replies View Related

Parsing A CSV Feed

I need to create an asp page to parse a slightly unusual data stream which is in CSV format with new records identified by carriage returns. how to start? Really I want to just tabulate some of the data and ignore other fields. It's a travel industry data feed - sample record:

1,JNY,1,050718,1943,S,AHL,051217,LGW,ALC,0645,1235 ,051224,LGW,7,R,154,154,0,-1,0,8888,8888,,,WAL2,0,0,0,0,0,0,

View Replies View Related

RSS News Feed

Anyone know the code to retrieve and display an rss news feed ?

View Replies View Related







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