I'm trying to lookup IP information from a WHOIS server and then pick out info from the result. Normally all the info I need is in the first 10 lines or so of about a five page result. Any ideas how I'd go about doing this using ASP?
have looked at the various components that do IP lookups for you but we don't want to go down that route if poss.
I want to use the Whois search DLL on this page, but:
1. Do I need the other files on that page as well? 2. Where do I put the Whois.DLL once I've downloaded it? 3. Can I open an ASP file on my computer like ant HTML file, or will I need a server like Apache running?
i want to ask is there any way that i could get the value from field (the value will be used in SQL statement) without submit the form coz if i use Request.form("name"), it need to submit the form to get the value
I'm interested in creating an asp function that enables the general parsing of xml. The function needs to take into account the structure of the xml document, as the document(s) can be quite complex.
The use of getElementsByTagName() is not appropriate in this case as I'm trying to avoid picking up the wrong data. The function also needs to be able to test if a node has any attributes and what the attributes are. Here's an example of the document I'm trying to parse: Code:
I do a regular HTML form POST to a third party server. The server processes the request and displays result in XML format. However, I need to parse this xml and display in HTML. The problem is how can I get the control from the form POST.right now, the form posts and the result is displayed but I need the control back.
I need to use forum code for my site, and making things bold, etc, is very easy however, I cannot work out how to use the tags [*url]http://site.com[/*url], the asterix will avoid it being parsed to create links.
I want to be able to get the text between the two URL tags, and build a link, so <a href=""" & textinbetween & """>" & textinbetween & "</a>".
is there any way that i could get the value from field (the value will be used in SQL statement) without submit the form coz if i use Request.form("name"), it need to submit the form to get the value.
Set ResponsibilitytNodes = DomDoc.SelectNodes("CLASS/Work_Experience/job[@employer='" & node.attributes(0).text & "']/Responsibility/") For Each node in ResponsibilitytNodes Response.Write ResponsibilitytNodes.text Next
I have a script that Technicweb helped me make. However it is just short of what I need. The players data still has the html code around it. I want to extract the name only with the statistics. I cant seem to get my head around it - all I have learned from picking apart Technicweb's script seem not to work for me. Here is the latest of what I have come up with, it gives me an error:
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment: 'MID'
I think this has been asked before but I can't find the reply. I'm using the XML parser to post data to a server and receiving a reply. The reply is in XML and I want to find elements of the retrieved data. Eg. I receive a string with: Code:
I am looking for something similar to "preg_match" and "preg_match_all" in PHP.
I have searched the forum with no luck. I hope you are able to give me some pointers
Basically I want to match some text from a form and loaded it into new variables making use of regular expressions. the text comes form a textarea input type. Code:
I have to display time in HH:MM AM/PM format. My date/time values are being pulled from a MS SQL database that is in smalldatetime field format.
I need to take a date such as "5/5/2006 7:35:00 AM" and display it as "7:35 AM". I can't seem to find how to parse this or display only the hours, minutes, and AM/PM designator.
I've found the MS XML parser as shown in below code. I'm just attempting to display the various ListNames in the ListStruc section of an incoming XML file (generated by the SelectLists API call). On the line with the astrik though, I'm getting the error "Object required: '[object]'. Is this because I don't have this parser installed? (I'm running XP Pro w/IE 6.0.)
Also, I'm not sure about the line xmlDoc.load(request), shouldn't it be xmlDoc.load(xml.responseText)? Code:
I have a string problem that I would like to resolve. I am submittting multiple values to a form that is posted to query string. The string looks like this:
So what I need to do is to take the id number of the user and put it into an array so I can later insert it into the database. So for the example above, I need an list that looks like this:
436, 430, 425
Once I have this list I can make it an array and then put it into the database.
My question is how do I make the string above look like the string below? I know that I need to use some function of asp to parse the name oout of the string, but i just don't know exactly what....
I have searched on parsing some strings but I don't know how to apply it to my string. The string I am parsing looks like: $$1,0,0,0,0,0,7,8,0,0,0,0,13,14,0$$None What I am looking to do is get the non-zero numbers.
I will then use these for another portion of the page where checkboxes corrosponding to those numbers will appear and the zeero numbers will not. The string after the last two $$ must be used as well for text on the page. I can change the string to look however is easiest to parse.
I have a select statement that gives me the following results (for example) "test documentation/software product version document.doc" I need to parse the data to only grab everything between the "/" and ".". So, in other words, "software product version document" - I have absolutley no idea how to do this .
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:
I'm trying to get the date from a request-query post that contains a year (request("season") and a week number from that year (cint(request("gameweek"))+35) I added 35 to the week number because pro football usually starts on the 36th week of the year (if it doesn't, i'll figure that out later).
The DatePart builtin function looks like it would be the best tool to use, but it doesnt parse what I want. I just want to do a simple display with something that resembles:
then parse the first 12 characters into strAccountNumber field then parse the remaining 7 characters in to strBalance.Ultimately, I want a user to enter an account# and it will lookup the account balance.
I can populate the id and type values in my form fields just fine but equip_id and mac_addr will never be consistent. Certain case will have only one equip_id and one mac_addr value and in other case I will have equip_id0 thru equip_id20 and same with mac_addr. I simply want to parse whatever response I get and display those equip_id and mac_addr values dynamically in a select box. Is that possible?
if its possible to change the IIS configuration for a site to treat both .htm and .asp files as .asp files and if so, how do you do it? (Ie. I would like to configure the server to parse .htm files in the same way as .asp files.)
My project has been running for 4 years in ASP/IIS (originally on NT4, then on Win2003 as of 1 year ago), using the following code to parse the request object using the XML DOM:
Set oASPRequest = GetObjectContext.Item("Request") Set oRequestDOM = CreateObject("MSXML.DOMDocument") If Not oRequestDOM.Load(oASPRequest) Then Err.Raise 64000, , "ASP Request object could not be parsed."
and suddenly on 12/23 it started producing an error on the third line of code above. I'm not at work right now, so I can't get at the error information available from the DOM, so I will reply to this post with that information. I'm wondering if anyone knows what might be causing this to suddenly fail. I will be looking into what, if any, security hot-fixes were applied to the server recently.
where can i find a detailed example of the xml dom object/parser in use?
I am using the Microsoft.XMLDOM Com Object
since it is not possible to hold custom classes in the session object, i want to serialize all my classes into xml text, then extract the text, parse it, and restore the class.
I can't find any good examples online for how to parse multi-nested xml files/strings through the above Control. Code:
I need some help with parsing a string and returning all the urls in the string. I posted a thread online a little while ago but the solution didn't work. Does anyone have any ideas? I have a string called "HTML" and i need a script to parse it for links. I'm fairly new to asp so any comments in the script you could give me.
I want to check the string for the last and second last / and I want the information between the two. in all of the above examples I want to end up with test.html, the string lengths will vary, could even be african lions on the prowl.html
Hey so I ran into a pretty big problem here and hoping someone could lend some advice.
Scenario:
- User uploads CSV file to server through ASP form (Check) - ASP then reads that file parses it throws in a HTML table for user to preview (Check) - Throw headers and body columns into 2 seperate array to store for database saving capability (Check)
- If user has a "," in the header name or a field entry things go crazy! (Check)
That's the process and all is great except if there is a comma in one of the field entries or in the header names. Code: