Replace Markup With Real Code

what I am trying to do is the following, its causing some probs though:

I have the following in a database:
[[imagediv 100.jpg This is the description text]]
This is just some dummy text. It doesn't mean anything and is for placeholding use only.

And want to change it to:
<div class="imagediv"><img src="/images/100.jpg" alt="100.jpg" width="200"
height="200" /><br />
This is the description text</div>

This is just some dummy text. It doesn't mean anything and is for placeholding use only. In the future I might want to use different codes ie [[imagediv 100.jpg This is the description text]] to reference a different DIV.

View Replies


ADVERTISEMENT

Real XML Values

I am new to ASP.I am retriving one table values from mysql database.
displying the values on the browser in XML Format.
now my problem is I want to read this XML Values but i Don't want to save
to.xml.

View Replies View Related

Real Time

ow do i show real time on my page?
for example i have

Code:

dtTime=time()

View Replies View Related

Real Quick

Im looking since the begining of the week about saving the enter(vbcrlf) from the html <textareato my MySql database, it save everything but it just loose everything when saving ot the database, do i need a special component to be able to save the enter and tabs etc. Im sure i was able to do it before and it was easy.

View Replies View Related

Get Real Name After LDAP Authentication

I'm using the function copied below to authenticate users in LDAP before allowing them onto our intranet site. This works great! But what I'd like to do now is use the LDAP connection it creates to retreieve the users actual name.

I dont know how to do this so I've been looking for examples I can learn from on the net. I have found snipits of other people code but I've been tying myself in knots trying to fit them into my function and failing miserably.

Could anyone tell me what I need in the function below to get this information. From what I've seen I think I need to use some kind of filter on the LDAP object, but I dont know how to implement it. Code:

View Replies View Related

Real Estate Calculaters

I am doing a RE site, and need a variety of RE calculators? Anyone know of a gud resoure free if possible.

View Replies View Related

Getting The Real Authentication Type From AUTH_TYPE

I want to know what authentication type the IIS uses to authenticate
users, when i query the AUTH_TYPE i get "Negotiate"...
Is there a way to know for sure if it is Kerberos or NTLM?

View Replies View Related

Real Time Site Monitoring

A client of us asked to write a script to View live visitors as they browse her website and to get the information such as, what page they are viewing, what browser type they are using, IP address/host name, visitor time on site and screen resolution.

Is this possible in ASP scripting without a server side or client side application? How to get the realtime stats of a visitor?

View Replies View Related

ASP Script Running In Real Time

I want to be able to make a script which runs in real time. This is what it needs to do:
When a user clicks on a box, it starts the countdown, and changes a variable in the database (ie taking away 1000 from the 'money' column). The countdown is 20 minutes, and the user can see how long they have left to wait by refreshing the page. Once the 20 minutes is up, it changes another variable in the database (ie add 1 to the 'no of buildings' column).

I know this is possible, as i've seen it done before. I think you may have to use AJAX, but have no experience of that so could use some help.

View Replies View Related

Replace Function Not Replacing What I Tell It To Replace

If I replace "a" with "b", and then I replace "b" with "a", shouldn't I get the same result? That is what I am trying to encode and decode with Replace() function, but it is giving me different things when I replace and replace again. Here is what I am talking about: Code:

View Replies View Related

A Server Page Execution (hiding The Real URL)

I'm looking for a solution for the following problem:

I created ASP code to convert an URL such as:

http://localhost/mypage/category_20/article_15/
into the following URL:

http://localhost/index.asp?page=myp...20&articleid=15

Now, the first URL is submitted by the user. The second one is the real URL,
but not visible for the user. This one should be handled by the web server
internally.

I thought I could accomplish this task with server.execute or
server.transfer, but none of them can handle querystrings. Is there another
way to do this?

Are there perhaps any COM objects? (This will be my last choice, because the
whole system should go running on an iASP (instant ASP) server too if
possible)

View Replies View Related

GLOBAL.ASA Real Active User Count

I've searched over 1 hour on Google and elsewhere and haven't found
anything.

I'd like to find a way to get the real active user count on our website.
THe main problem I have is when a user quit with the "X" the counter will be
decremented of 1 only when the Session.Timeout will be expired.

View Replies View Related

Total Price In Other Currency (Real Time Rate)

I've just launched a web site that sells collectibles. To do this I've got a ASP shopping cart with a checkout process.

As all the prices on my site are in Australian Dollars, I' trying my very best to find a way to display the total price in USD as well....

Eg:
Total Price : $ AUD 100.00
Total Price : $ USD 79.00 (real time rates)

I need to do this because I also want to Accept PAYPAL account payments which cannot be made in AUD.

View Replies View Related

Convert Real Number Into Text Number

I need to insert some number into database as text. My problem is if I insert the number (ie. 4.0), the value in the database only show (4). So, is it possible to convert a real number into text number using ASP?

View Replies View Related

ASP Code - Anti Spam Verification Code

I'm looking for sample code that will require a use to enter a code from a scued image format.

I'm sure you've seen them before where the image is barely readable by a human and the user has to enter the code correctly to submit the form.

I'm looking for ASP code and NOT ASP.NET code as I am supporting a legacy site.

View Replies View Related

Replace Url

some text is coming out of the DB with different urls in it, i want to delink it (like href="#" or something), how do i do that when i don't know what url is coming out?

View Replies View Related

Replace()

I've got a function that I use to replace ' marks so the page will insert properly into a database - typically I use .Code:

whatever= request.form("whatever")
whatever = replace(whatever,"'", "''")
However, I've got some code that I unfortunately inherited from someone else that I can't get the replace to work:Code:

call buildquery (colq,valq,retq,"whatever")
colq = "(" & colq & ")"
valq = "(" & valq & ")"
ssql = "insert into table_name " & colq & " values " & valq
I was trying to do something in the call buildquery line to add a replace, but that doesn't seem to work.

View Replies View Related

VB Replace

How do I take out double quotes before writing to database? As doing ,""","&quote;" created an error.Is it something like ,chr(34),"&quote;" which I sort of stumbled accross when I did soem google searching... But what and where do these chr(34) etc coem from?

View Replies View Related

Replace Tab Key

I have lots of textbox that needs to have data entry. Is it possible for me to replace the tab key to return key that transfers the focus from one textbox to another? And also, how to submit the form after all textbox have values?

View Replies View Related

Using Replace

I come across this often

PHP Code:

Replace(rs.fields("Headline_f"),"''","'") 

Where rs.fields("Headline_f") is actually empty.

I usually use

PHP Code:

IF NOT isNull(rs.fields("Headline_f")) or rs.fields("Headline_f") = "" THEN
  Headline_f=Replace(rs.fields("Headline_f"),"''","'")
END IF 

Is there a better way to handle this?

View Replies View Related

Yet Another Replace

Even though I ask customers to enter there phone number like xxx-xxx-xxxx they some times don't. go figure:

I create a text file thats used by the factories EDI system and the number needs to be xxxxxxxxxx. I'm using the code below but what if they enter their number xxx.xxx.xxxx OR (xxx) xxx-xxxx etc. You get the idea.

strPhone = Replace(objRS("DayTimePhoneNbr"),"-","")

Does some one have a small chunk of code to help me replace additional chars?

View Replies View Related

Replace <br> With Space

My form gets populated from an access database. Now in the database there are fields containg <br>. While in a normal page everything works as it's supposed to, in my listbox the <br> shows as it is. What I would like to do is replace it with a space so I've used this:

<option value="<%=(rsProducts.Fields.Item("CatNum").Value)%>"><%=replace(rsProducts.Fi elds.Item("NotesR").Value),"<BR>"," "%></option>

but it doesn't seem to work.
What exactly am I doing wrong here?

View Replies View Related

ASP Replace Function

I've tried EVERY way i can think of to do this replace function, basically when i go to insert "Do's and Dont's into the database it cuts it off at "Do" because of the ' now ill show you my section of code that i have it in currently:

curdescription = trim(replace(arrTemp(4), "'", "''"))

I have it this way and it doesnt work, and i even had it

curdescription = trim(arrTemp(4))
curdescription = replace(curdescription, "'", "''")

View Replies View Related

Replace Blankspace With %

i use the URLencode function and it changes my form text to: this+is+it%21

ok, this is good, but when I use it in a URL, it includes "this" but then the link dies and the rest is just text, the user must then copy and paste the whole address in the browser. Anyway to get around this?

View Replies View Related

Replace Error

what's wrong with this string?

" WHERE InStr (" & request("Field") & ", " & chr(34) & replace(replace(request("SearchWord"),"*","%"), "'", "''") & chr(34) & ") > 0 " & _

View Replies View Related

Replace " And '

i have some sql data that has " and ' in it. can someone tell me how to do a replace on those so they display correctly?

View Replies View Related

Find And Replace

I am not sure if this is a question for this forum or the IIS forum but here goes. I have a dedicated server on which I am hosting about 80 websites at the moment, all of which have been created by copying a template site. All of these sites have an identical structure and are located in the same directory on the server, C:Inetpubvhosts. Several times when I have needed to make an adjustment to the sites I have to go into the remote desktop connection to the server and go site by site, copying and pasting files. For example, as each site has the same pages, ie., map.asp, sometimes I make a change to that page and have to copy it to every site. Could I write some sort of script using the FSO and execute it from one site and have it loop through each site on the server making the neccessary change(s)?

View Replies View Related

<p> Replace HTML

Does anyone have a snippet that will replace ALL HTML formatting BUT
leave the <p>'s and <br>'s ??

View Replies View Related

Replace Not Working

my replace is not working
Shipping News ...i don't want news word ..mean i just want
Shipping
Code:

<%=Replace(rs("name"), "news", "")%>

View Replies View Related

Null: 'replace'

Can someone help with an error? It's a StoreFront store. right after the credit card screen is gives me the error. I get the following:

Microsoft VBScript runtime error '800a005e'

Invalid use of Null: 'replace' /ssl/SFLib/incGeneral.asp, line 85

--------------------------------------------
84 Function makeInputSafe(str)
85 makeInputSafe=replace(str, "'", "''")
86 End Function
-------------------------------------------

View Replies View Related

Replace Function

I'm trying to use the replace function to change a variable ie like this:-
replace folder_old, txtOldFoldername,folder_rename

folder_old = c:DocumentsRoot_Testob
txtOldFoldername = bob
folder_rename = newfoldername

all i want to do is to beable to change the name bob to the new folder, is there a easier way to do this or am I on the right track. if i do the replace like this replace(folder_old, " & txtOldFoldername & "," & folder_rename & ")
i get this error:-
Cannot use parentheses when calling a Sub

View Replies View Related

Using Substr Or Replace

I been trying to figure out the following. I have a string of 9 numeric characters such as 000982675 and 001000510. The problem I have is in the following code:

View Replies View Related

Replace & In A Querystring?

i can get the replace function to work in rs return but i'm returning a qs value and it's not working can someone tell what code will work with a qs.

View Replies View Related







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