Word's Location

If there a scriptfunction I can find a word placement in ASP? I mean, like I give a string, and it returns and word's placement

View Replies


ADVERTISEMENT

Location Thru IP

I want 2 know how can I pinpoint the location of a visitor to my site thru his IP addr or is there some way else 2 do that??

View Replies View Related

How To Highlight Words

let's say that I want to highlight some words or even a square of a table in yellow...how would i go about doing that? What code would work to do what I need?

View Replies View Related

How To Display The Value In Words?

I'm having a problem in displaying a selected option from the drop down list in words. But after I selected an option, nothing is being displayed, I think the value can't be passed at all. Please let me know how to fix it.

<td align=center width=20%>Fruit:
<select name=""FruitName">
<%
" If not myRS.eof Then
while not myRS.eof
%>
<option value="<%=myRS.fields("ID")%>"<%If FId = myRS.fields("ID") Then response.write "selected"%>><%=myRS.fields("FName")%></option>
<%
myRS.MoveNext
wend
%>
</select>

<p>The fruit you have selected is <%=FruitName%></p>

View Replies View Related

Cannot Use Web Services From Another Location

I have a client application that uses web services. When the client application an web services are in the same machine, they work fine. But when the application call the same web services hosted in other server, the server return: Code:

View Replies View Related

Redirect Location

I am using frames in html.
How can i redirect to an asp file in a new browser window.So that the redirected page opens in new window instead in a frame..
Code:

Response.Redirect "../pm/scriptlogon.asp"

View Replies View Related

Trimming Words

I have a database field that is a memo type. I would like to be able to only display the first 50 words from the database. I would like for it to show ..... after about 50 words.

I am using <%=Content %>. How do I trim this field to show only 50 words and then ....?

I tried the following code:
Function LengthTrim(input, length)
If Len(input) > length Then
Return Left(input, length) + "..."
Else
Return input
End If
End Function

then <%= LengthTrim(Content, 50) %>

But it would not work. I got the following error message:

Microsoft VBScript runtime error '800a01f4'Variable is undefined: 'Return' .

View Replies View Related

Separate Two Words

I have data where first and last name are in one field. I need help
how to i separate first and last name in ASP.

View Replies View Related

Spaces Between Words

the spaces between the words (in a textbox for example) are removed when i try to pass the value to another page for saving.

View Replies View Related

Retrieve Words

I want to take a string like this:Code:

string = "THE RED GIGANTIC AND HUMONGOUS"

and retrieve only the words over a certain length or longer (let's say 5 characters), maintaining spaces between them- result:Code:

string = "GIGANTIC HUMONGOUS"

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

File Location

Is there a way to set the location where the input type="file" option gets its files from. I know you cannot set a default file, but is there a way to set where it starts looking.

View Replies View Related

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

Add Words To Dictionary

I have to develop a spell checker from scratch using asp language. as i'm a newbie with asp, there are still a lot of things that i don't understand. How can I add new words to my list of dictionary sorted alpabetically?

Do i need to use the database for this function? Can anyone show me? or if anyone knows of any websites that i can refer to.

View Replies View Related

Global.asa,location

I have created a global.asa file, but somehow it doesn look like it is working...I have only one simple sub-routine in it.

Is the name case-sensitive? I have placed it under [ www/myfolder/global.asa ]

View Replies View Related

Cookie Location After Being Set?

I attempted to find the cookie 'Prospect' in my Temp Internet Files in IE6
after I had set it in ASP:

Response.Cookies("Prospect").Expires = Date() + 2
Response.Cookies("Prospect")("u_id") = u_id
Response.Cookies("Prospect")("u_name") = sName
Response.Cookies("Prospect")("VisitorIP") = VisitorIP

....However, it does not appear to be there? Am I looking
in the wrong physical location?

View Replies View Related

ASP OpenTextFile Location

This is a dumb question but i am just starting out with ASP. I am working in vbscript and i am trying to do a OpenTextFile the problem is that i am editing my page on a different computer from where the server is. I know that if i were trying to open the file from the server i would type:

filesys.OpenTextFile("c:inetpubwwwrootfolder namefile name")

but i am writing this file to a server and i don't how enter the location, it is not on my c drive.

View Replies View Related

Words In A String

Let's say I have the following var:

Code:

strTemp="Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed"

and I am searching the string for another string 'amet', for example. How would I go about getting my page to output the word I search for and say 10 chars to the left and 10 to the right? So, in this case, I'd like to be be able to search the string with any
other string ['amet' for example] and have it output this:

Code:

...dolor sit amet, consecte...

View Replies View Related

Highlight Returned Words

wondering if its possible to have some kind of searched word highlight! IE. every thing it throws up in return of search it will highlight why it has brought it up! so if search "a" all "a" in return results would be highlighted.

View Replies View Related

Using Access Database On Different Location For .NET 2.0

I am use to the include file on classic asp for maintaining MS Access
database location. On using Visual Web Developer Express, I can only use the
MS Access database if it is located on the same folder with the web app. Is
there a way that I can locate MS Access as my database but the location is
not located on the web application?

View Replies View Related

Filter Bad Words Using Regexp

is it possible (i heard u can replace) to filter out bad words using regexp? I'm using Replace() but it sucks without ALOT of extra code... but using regexp it seems better, with ignorecase, etc.

How would I do it? O, here's the way it is now:

<%= Decode(ChkBadWrds("Comment")))%>

How would I do something similar using regexp?

View Replies View Related

COutn The Number Of Words

how can i count how many words have i written in a text
area?Like taking an example ... i am writing in this textarea
of microsoft usergroup. and say in total i have written 50
words .. how can find out this information?

View Replies View Related

Words After Blank Space

I retrieved some data from the database and put it in a textbox but the words after the blank sapace cannot be shown, why is that?
Name = rs("requestor") 'where the name is "Sam Siew"

<TD><INPUT TYPE=TEXT Name=requestor size=12 Value=<%=Name%>></TD>

In the text box, it only show "Sam".

View Replies View Related

Capitalise All Words In A String

how to capitalise all words in a string that are seperated by spaces. The string is variable and not the same every time hence I cant use the Ucase function as I wont know the exact position of the start of each word.

View Replies View Related

Display Words Meanings

I would like to have a text box where people can type a word they want and then click on a button to get the description of that word.The way I see it working is if the word they entered in the box is in my database a page will display the meaning corresponding to the word in the database. However if it is not then it will display a message telling them that.

View Replies View Related

Geographical Location Of Incomming IP

We have special kind of service that covers just north on America (US and
Canada), so we want to redirect users comming from another country to
another page.

I am looking for a web service or similar thing that tells me the country
and state/province of incomming IP address. I am sure it is possible but i
don't know who sells that service.

Could anyone refer me to any resources related to that ?

View Replies View Related

Included File's Name And Location

Is it possible to get the filename, and more importantly the path, from inside an ASP file, when that file is included? I know it can be done for the base file using Server variables, but I can't figure out how to do that for an included file.

I need to write an application that uses include files, and that may be moved to another folder on the server...

View Replies View Related

Relative Db Location(from Global.asa)

I'm using a segement of code in my global.asa to open a db connection check a users ip address against those i have in a recordset and then take the appriopriate action, very handy for banning bad bots who ignore my robots.txt and users who abuse my system.

Anyways the connection im using is Code:

View Replies View Related

Resolve IP Address And Get Location

I have been unable to find any code that will allow me to resolve an IP address then determine which country the IP is registered to.

I've seen it done all over the net, even resolving it down to the town I am located in.

I am hosting on GoDaddy, so I can't install any componants (I did find a couple that could do it). So I'm looking for a code only solution if that is possible.

If anyone knows of any Perl or PhP code that can do it, please post a link and I'll port it to ASP if possible and post it.

View Replies View Related

Highlight A Section Of Words Only

This code highlights words entirely. I look for the word nation it highlights words like abomination. So I only want the function to highlight whatever I'm looking for. Code:

View Replies View Related

Bold Search Words

i have a form where the user keys in words to be searched from the itemDescription column in the database. My search works fine, but how to i bold that particular searched word?

View Replies View Related

Highlight Words Of A Search

I'd like to add to my search function of my asp site the possibility to highlight in the result pages all the words searched.

View Replies View Related

Multiple Search Words

I have a small form which searches a SQL DB on several fields - ie.

WHERE Field1 = xxx AND Field2 = xxx AND Field3 = xxx

How can I do this so that if one search criteria is left blank, it ignores it instead of trying to match it in the DB?

View Replies View Related







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