Split Function To Use XMLHTTP To HTML

Basically I am using XMLHTTP to pull a file ( template ) then I am using replace to replace tags i.e. [code] with a HTML equiv.

So now I need to know how I can split [Menu|http://localhost/root3/cgi-bin/templates/menu.asp?Top] so that I can use XMLHTTP to pull that file and output it as HTML.

I know how to split a string, but I can't call this [Menu|http://localhost/root3/cgi-bin/templates/menu.asp?Top] as a variable as it can change at any time.

p.s I mean how Sitepoint does the url replacement, it will have a replace function that will first search for URL and then convert what ever is after the = into a url, then what ever is after that as the name.

[-URL=http://]test[/-URL] ( I put -'s in to stop the replacement )

View Replies


ADVERTISEMENT

Split Function To Split First Letters

I have a variable which holds college names

strcollege="University of California"

i want a variable to save UoC

what i meant was there are 3 words University of California

so i want the first letter in each word to be stored in a variable ....

View Replies View Related

Split Function

I want to take a server variable and split it. It would look something like this:

varServerVariable = fistname.lastname

I want it to look something like:

first = firstname
last = lastname

I know that I need to use the Split Function, but I'm not sure of the syntax.

View Replies View Related

Split A Function

I have a textbox that will have this kind of value.
eg. 1+1, 1+2, 1 +2, 1 + 2.....

So now i need to get the 1 and 2 to add it up. This textbox is for add function.

Before this i using the Mid Function. But this is only work if they entered btwn 1 - 9. If 10 then unable to find it.

I remember there is a function where it will find the value then stop at there. then i only grab the bfore the value. I try to lookup but i can't find the function. I need to get the value bfore + and after + to add it up.

View Replies View Related

How To Split Tables By Using Sub Function?

What I am doing is:

If Term = Spring2005 then display everything belongs to Spring2005

If Term = Fall2005 then display everything belongs to Fall2005

And so on.

I used Sub function to do that, but it doesn’t split it? How can we do that?

Code:

View Replies View Related

Split Function Problem

User enters a string of words and it's stored in txtHAR.

I then do this,
txtArray = split(txtHAR," ")

After this step i'm lost. Because user can enter as many words as they want how am i to track the number of words txtHAR has split into?

View Replies View Related

Split And Ubound Function

this code gives me one short of the ubound function, what is wrong?

e.g if i have 353425432,325423,2542354
it gives me 2 instead of 3

jumvar = request.QueryString("one")
jumvarsplt = split(jumvar,",")
valnum = CInt(ubound(jumvarsplt))

View Replies View Related

Split Function & Loop

I am trying to loop around a split and the code I have is below:

response.Write("<tr>")
    response.Write("<td class=""tableHeader"" valign=""top"">Keywords</td>")
    keywordsSplits = Split (keywords, ", ")
    For each keywordsSplit in keywordsSplits
        response.Write("<td>")
        response.Write(keywordsSplit)
        response.Write("</td>")
    Next
response.Write("</tr>")

The problem is that it does actually put the seperate keywords into seperate cells (td's)
I get the following:

<tr>
    <td class="tableHeader" valign="top">Keywords</td>
    <td>test test1 test2 test3</td>
</tr>

I actually want

<tr>
    <td class="tableHeader" valign="top">Keywords</td>
    <td>test</td>
    <td>test 1</td>
    <td>test 2</td>
    <td>test 3</td>
</tr>

Can anyone help?

View Replies View Related

How To Use Split Function In SQL Line?

i want to use split function in sql line ....

View Replies View Related

Split Function, Check If There Is A Space

I'm using the split function to split forename and surname, but sometimes there is no second name, is there any way of doing a check to see if there is a second part in the array?

this is the split:-
WordArray = Split(strUsername, " ")

View Replies View Related

How Do I Highlight A Split Function Text?

How do I highlight a split function text?

code ....

View Replies View Related

Split Function And Multiple Select Drop Down

I have a multiple select drop down. It will load into it the following information: Student ID, Last Name, First Name

There will be another drop down box that loads with classes, only this is not a multiple select.

I need the user to be able to select all students they need from the first drop down and then select the class they want to insert them into. Then, when they hit the button, it will break up the data from the first, Student ID, Last Name, First Name and insert those three things into the database under those respective column names.

Does anybody know how I can split these up properly when there will be multiple students selected, or does anybody have a better way of doing this?

View Replies View Related

Array Not Created Properly With Split Function

I am having trouble loading the result of a VBscript split function into an array. The script is supposed to take the user's login name (the form for this is name separated by underscores such as john_foo or lisa_wilson), split it at the underscores, and load first, middle and last name into an array. The problem I keep getting though, is that I am getting a type mismatch error. Here is the code:

<%dim LogName, NameArray(), FirstName, LastName, MiddleName, LastPage
'Get NT authorized login info
LogName = request.servervariables("logon_user")
NameArray = Split(LogName, "_")
for x = 0 to UBound(NameArray)
response.write NameArray(x) & "<br>"
next
%>

The FirstName, MiddleName, LastName vars are supposed to take the array values later.

View Replies View Related

Using Vbscript "SPLIT" Function On Multi-select Field

I am trying to split a mgrgroup field to extract the MD codes. It correctly grabs the MD codes if all records in a mass update are updated, but if only one record in the loop is updated then it puts the last 5 digits of the mgr name in the MD field.

THIS IS THE CODE: ....

View Replies View Related

Using Vbscript "SPLIT" Function On Multi-select Field

I am using the following code to split/join values in a multi-select field. It is combining all the values in All the records into one long string in each record in recordset.

Example: I have a recordset with 2 records. The 1st contains the split/joined values: Alan Smir, Jeff Karl The 2nd contains the value: Keith Robb

When it updates database, it will put Alan Smir, Jeff Karl, Keith Robb into each record in the recordset. Instead it should be putting Alan Smir, Jeff Karl into the 1st record
and Keith Robb into the 2nd record in the recordset.

Does anyone see what is wrong with the code ....

View Replies View Related

Strip HTML Tags Function - Unexpected Quantifier

I have been trying to figure out how to get a function to strip html tags from part of an html file. The way I need it achieved is as so: Code:

<% strOutput = stripHTML("<!--#include file=includes/MyInclude.asp-->") %>

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:

View Replies View Related

How Do I Call A Function Defined In Html Script Tags From Asp Page?

i have this.asp page:

<script type="text/vbscript">
Function myFunc(val1ok, val2ok)
' do something ok
myFunc = " return something ok"
End Function
</script>

<html>
<body>
<%
val1ok = something1
val2ok = something2
thenewVal = myFunc((val1ok), (val2ok))
%>
</body>
</html>

i want to call and use the returned value of Function myFunc(val1ok,
val2ok) ,without omitting the html script tags and replacing them in <% %>,

(My Question is:) How do i call a function defined in html script tags from asp page?

View Replies View Related

Split Array But On Every Second Split?

I have a string

212334||327362737||437437||47347837||8347834||

etc

but i want to enter them into a databse

but it must be as 1356235 then field 2 is 125662

dont know if this makes sense

each number is a team in a match so team 1 plays team 2, enters into databse
then move on to the next 2, in that array.

i cant seem to get it to do 2 at a time, without ending up with an endless loop or team 2 being team 1 on the second entry.

View Replies View Related

XMLHTTP And DOM.

I need to get data from a url (which throws out XML) and then parse it using DOM or XSLT. I know, to get the data, I need to use XMLHTTP.

Can I get a sample code for it?

View Replies View Related

Using Xmlhttp In ASP

I have the code below and in a random fashion it is responding extremely
slowly. On in 3-4 times it takes ages to do the job..

It is the line: xml_http.Send("") that gets stuck. I am on IIS 6 on Windows
Server 2003 Web Edition. Code:

View Replies View Related

FSO Or XMLHTTP

One of the limitations of ASP is the lack of a dynamic SSI, in which you can include files using variables. So far I know only of two methods to go around that.to use the File System Object.to use the XMLHTTP Object.Which one of the two is less of a burden for IIS ? Or are there other ways that are much better?

View Replies View Related

About XMLHTTP

I m getting information with XMLHTTP from 3 sites at the same time. but it is so slow. how can i make it faster. any information or any document about it. anyone who know about it. it is about alsa bandwith. how can i increase xml http performance.

View Replies View Related

XMLhttp Anyone

I got a great little example of how to use XMLhttp to query an external web site (I'm wanting to do my own localised search engine by extratcing the content and putting it into an Access DB), but it only appear to extract from the page that you point it to, ie the main default page is extracted when you put in something like www.hp.com.

I want the util to extract content from all of the found pages in the site I suppose like a spider. Has anybody done this or any ideas how you get it to go past more than the initial page?

View Replies View Related

Xmlhttp

I need the ASP/xml page to send the Request to the share point portal server (Webdav) using XMLHTTP and i also need to parse the response xml into HTML.If any body knows about.

It might contais mainly three files one is Search page where user can type his requirements , second one contains sending XMLHTTP request to the Share Point Portal server and third one contains the Parse xml response into HTML format.

View Replies View Related

MSXML2.XMLHTTP

I use MSXML2.XMLHTTP to receive some HHTP responces from
remote server, unfortunatedly, it uses cookie-based auth.,
so I am unable to pass it, due to inability to store
cookies. How can I retrieve cookies from the headers of
HTTP response, and how can I add them to my request at the
next step?

View Replies View Related

XMLHTTP And Images

Why do sites dragged in through XMLHTTP only download half or so of the images associated with the site?

View Replies View Related

XMLHTTP Question...

Up to this point, i've been able to extract the search results from a site. Form -> Results chain.

However, on a new project im on, im a little stuck, and not sure if it is at all possible. The next page im trying to get info from there's a chain of 3 pages. so Form -> Middle -> Results.

I've tried inputting my own form data, but i get the page info from the Middle link, and not the Results link. Any ideas how i can go on to the Results link?

At the moment i dont think it's possible, but i haven't been in this game for long.

View Replies View Related

XMLHTTP Strip

I'm using XMLHTTP to perform a simple screen scraping job.
When I try to have it "scrape" lines with embeded CSS declarations, it
renders them incorrectly, stripping the leading period. Consequently, my CSS
doesn't work.Here's how I'm calling it, but I don't think my implementation is the
problem.

Dim srvXmlHttp
Set srvXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
srvXmlHttp.open "GET", TearURL, false
srvXmlHttp.send()
If srvXmlHttp.status <> 200 Then
Response.Write "No Server Response"
Response.End
End If
Dim strRetval5
strRetval5 = srvXmlHttp.responseText

View Replies View Related

Server XMLHTTP

I have a peculiar problem using the method

Server.CreateObject("MSXML2.ServerXMLHTTP") in order to get a connection
from one server to another.

On my personal host (IIS) the above method works perfect, and I can 'include' an HTTP stream from a remote URL into my own page. However, the method doesn't work on another webserver (IIS, too) although the MSXML2.ServerXMLHTPP method is installed (I checked it).

The error message I get there is:
msxml3.dll error '80072ee2' The operation timed out

This error does only appear if I try to get data from a remote URL, if I try to get data from http://localhost/foo, the method works - I believe the webserver is behind a proxy. Would this cause any problems? And if so, how can it be solved?

- Do you guys know of any other solution how to 'emulate' the php
include command in ASP without using the MSXML2.ServerXMLHTTP method?

View Replies View Related

Server Using Xmlhttp

Shown below is ASP Code sample that tries to access a method,CreateUser in the server called, "http://smallbutsmart.basis.com.au" using the protocol,XMLHTTP. Can you explain to me why this Code does not work and showing the correct Code Sample?

<%
dim objXMLHTTP
set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.Open "Post", "http://smallbutsmart.basis.com.au", false
'objXMLHTTP.SetRequestHeader "Content-type", "text/html"
'objXMLHTTP.CreateUser "abc","123","Scriven","1","001","qms"
objXMLHTTP.Send
%>

View Replies View Related

Microsoft.XMLHTTP

I've been searching everywhere online to find an alternative method besides
using Microsoft.XMLHTTP (as it freezes the server up alot!!) but with no luck
at all.

I am using server side ASP, and some said to use Microsoft.ServerXMLHTTP
instead. However I have tried that as well and it still freezes up the whole
thing (i.e. the site just keeps loading forever).

I tried to do a "on error resume next" clause to catch the error but still
doesn't stop the page being freezing up.. :(

I saw someone here said don't use XMLHTTP in ASP as it is not thread safe
(is that why it is freezing up??), and suggest to use
MSXML2.ServerXMLHTTP.3.0.

so do anyone know if MSXML2.ServerXMLHTTP.3.0 will help? i.e. not freezing
up the page?

View Replies View Related

Xmlhttp Or XmlServerHttp

when we get info from an url with xmlhtttp or xml server http how it
behaves. how bandwith it uses or how it adjust the bandwith which it use...
how can it use all the bandwith.. any promramme or any windows adjusment
...are there possible solutions.. for example how the flash get use all the
bandwith when we separate from the whole part a file to lots of part

View Replies View Related

Get A File Using XMLHTTP

Is this the correct newsgroup for this posting?
I have a problem when using these lines of code:

Dim xmlhttp as Object
set xmlhttp = CreateObject("Microsoft.XMLHTTP")
Call xmlhttp.Open("GET", Application.Profiles.ActiveProfile.Server &
"/Test.abc", False):
Call xmlhttp.send("");

when the last line of code is executed, i get the following error message:

"The download of the specified resource has failed. -2146697208"

Application.Profiles.ActiveProfile.Server = http://x.x.x.x/virtualdirectory

View Replies View Related







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