Getting The Title From A Referring Html <map>?
Sep 16, 2009I have a map of the us that is broken into an html image map. (not asp). What I'm wondering is it possible to get the title of the refering link on the map?
[Code]......
I have a map of the us that is broken into an html image map. (not asp). What I'm wondering is it possible to get the title of the refering link on the map?
[Code]......
i have a script running to collect a websites HTML and parse it enough to make the outcome look like this:
Code:
<div class="title_box_art">
<a href="/titles/164197" title="Zombies Zombies Zombies (2008) 2.3"><img alt="70104435" class="box_image" src="http://cdn-5.imagehosthere.com/us/boxshots/large/70104435.jpg" /></a>
[Code].....
how to go about looping through each DIV and gather that information.
i have a script running to collect a websites HTML and parse it enough to make the outcome look like this:
Code:
<div class="title_box_art">
<a href="/titles/164197" title="Zombies Zombies Zombies (2008) 2.3"><img alt="70104435" class="box_image" src="http://cdn-5.imagehosthere.com/us/boxshots/large/70104435.jpg" /></a>
<div class="box_art_title">
[Code]...
I assign title value of page using VB.NET as page.title = "a" but when I run the page and look in page view source i found it shows like <title> a </title>Problem is that i want to remove all the spaces between title tag and it show like this <title>a</title>
View 1 Repliesi am scraping title of webpage. i am using webclient class to get its html source. the true title of webpage is this which appear on browser:
"La r�volution"
but when i extract it from html source using webclient class i get following string.
"La révolution du sourire juste"
i think its something related to string conversion. so any one help me how to convert this "La révolution du sourire juste" to "La r�volution"?
following info on webpage might give you some clue which is content type.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
i have a script running to collect a websites HTML and parse it enough to make the outcome look like this:
<div class="title_box_art">
<a href="/titles/164197" title="Zombies Zombies Zombies (2008) 2.3"><img alt="70104435" class="box_image" src="http://cdn-5.imagehosthere.com/us/boxshots/large/70104435.jpg" /></a>
[Code]....
I'm not sure how to go about looping through each DIV and gather that information.
I am trying to make a program that when run changes the <title> attribute of the HTML, on any page requested then loads the page (IE). Is this possible, without making a new browser? If so, how?
View 3 RepliesI have a class that contains one function: "ShowDialog()" It creates a new openfiledialog and sets its title, but when it is run, the title of the openfiledialog is set to the current directory that is shown in the dialog. I would not like this behavior. Here is the code:
Public Class LoadSet
Public Shared Function ShowDialog() As System.Windows.Forms.DialogResult
Dim Dialog As New System.Windows.Forms.OpenFileDialog
Dialog.DefaultExt = ".bsfci"
[code]....
Im am trying to get whats inside the <title>My Data</title> tags, however the results i pull back are not whats in the title tags..
Dim myMatch As Match = System.Text.RegularExpressions.Regex.Match(My_Text, "<(?<title>w*)>(?<text>.*)</k<title>>")
If myMatch.Success Then
[Code]....
The redirect .NET uses to send users to my custom 404 page, wipes out the referringURL.[code]...
View 1 RepliesSee this example:
''//file1.vb
Sub Something()
''//...
Functions.LogInfo("some text")
''//...
End Sub
[Code]...
I am trying to do is get interoperability between my "mainwindow" and a class. As far as I know the way to do this is to create an instance of the class (in "mainwindow") for example and then use that instance to call the functions etc... This works. However I want to allow the class to call functions in the "mainwindow" The moment I declare the instance on the class as well it goes into an endless loop.
View 4 RepliesI need a string of code that refers to it's filename on the computer. Basically like how batch has %0% to refer to the batch file's name.
View 4 RepliesDoes anyone know of a solution using the internal webbrowser, to grab a sites <title></title> tags?
As for now I have in my browser something like:
Me.Text = WebBrowser1.Url.ToString
Hence showing the URL in the forms text, but I would need to change that to a sites title
I am trying to change every form title bar and border to green in my project. How do you change the all the forms title bar and border to green without changing other window applications title bar and border?
View 1 RepliesI�m using a loop to open up a number of forms in my app. The forms are named after dates from a db. They are "created" at runtime so to speak.
Everytime a form is opened, the name adds to a dropdown list in an mdi parent form. The first item in that dropdown is a "close all". I want that item to do just that - close all the forms corresponding to the names in the dropdown list. I�m thinking of looping with an integer, starting on 1 (since the "close all" is 0).
So I need something like:
forms(mdiparent.toolstripmenu.dropdownitems(i).close
I want to create a function inside my class that will return a boolean on the existence of some data within any structures created with the class.
Public Class MyObject
Public Object1 as String
Public Object2 as String
[code]....
What I don't know how to do is refer to the object that called the function to get values, including the number of items in the referring objects array.
I Imported 2 programs that I made into one solution. I made a "BIG" main menu (new windows form), put two buttons. I code one button to open up the first project (that works fine). I code the other button to open the project I imported, however it says that the name is not declared. Am I doing something wrong?
here is my code for the "BIG" main menu:
[Code]...
now only the "Original name of first project" appears to be not declared, if I delete "Original name of first project", then "the project I imported"is not declared and so forth. Note: These are not the exact names I called my forms. I'm just trying to explain it clearer.
I have added some classes to my project and now i want to define a variable as one of the classes, for example the class is called xml and i want to create a variable called XMLfile and have it as the class XML.
Can this be done? Or can variables only be declared as types (like Integer, string, etc)?If you're not living on the edge, you're taking up too much room
I'm working on a very basic VB.net frontend for an Access database and have stumbled upon a problem.
Dim ds As DataSet
MaxRows = ds.Tables("Course_assignmentsDataSet.tblCourse").Rows.Count
i = 0
Private Sub Navigate()
txtCourseReference.Text = ds.Tables("Course_assignmentsDataSet.tblCourse").Rows(i).Item(1)
txtCourseName.Text = ds.Tables("Course_assignmentsDataSet.tblCourse").Rows(i).Item(2)
End Sub
I get the error that Object Reference is not set to an instance of an Object. I think this is because I haven't defined the DataSet as "Course_assignmentsDataSet"- the one I want to use- but I'm not sure how to do this.
My LiveView Property is named lstView and is called by this line:
[Code]...
The first reference to objListItem gets this exception: I am referring to the object as new but obviously not in the right way. objListItem is not Null when this line executes.
Does anyone know how I can include an existing dimensioned integer in VB code in a formula when using location indices (either R2C2 or R[2]C[2])?
I have integer Location set to the value 6 in some earlier programming steps, and now I'd like to be able to create other formulas and someimes use this Location integer into these formulas. More specifically at the RC and R[]C[] locations in formulas.[code]...
[code]...It is a multiline textbox, and I want to be able to enter different pieces of information (info1, info2, info3) into each line.
View 16 RepliesI have an app that pulls up a webpage that has a button on it with the following ( I CANT change the webpages, but I can change anything in the App.)
[Code]...
I use the following code to get the shortcut files in a folder and to list them in a Listview control. But is there a way to extract the path of the EXE to which this shortcut is referring to ?
vb.net
Dim di As New IO.DirectoryInfo("C: est")
Dim aryFi As IO.FileInfo() = di.GetFiles()
Dim fi As IO.FileInfo
[Code]...
This may sound really stupid but I have to ask cause I'm not finding this answer anywhere.I have an application where the user will need to sign up for a new user account on the website [URL]..However when I am using Firefox's plug-in Firebug to view html I am getting something totally different than when I just right click on the site and view the page source.
What I am trying to do is to get the captcha from the website and display it in a picturebox on the application so the user can view the captcha, solve the captcha and then the app post is back to the service for a response.
Here is the source that I am getting using Firefox's Firebug to inspect the element:
<td>
<input type="hidden" value="Oo3Jo1I8bgzK68agMqo3s79ZZib2OkbK" name="iden">
<img class="capimage" src="/captcha/Oo3Jo1I8bgzK68agMqo3s79ZZib2OkbK.png" alt="i wonder if these things even work">
</td>
[Code]...
Why would the two be showing me two different versions of the HTML?
And how would you be able to grab that source to view in a picturebox using webclient?
I am developing an application which created a series of labels using code such as this below[code]...
View 3 RepliesI'm using VB.net 2005 and sql server 2000 i'm fetching the data into datagridview, but datagridview has several datasource depending on the "select case " Now can i export the data from datagridview without referring to dataset/datatable?
View 1 RepliesUsage: Users create pretty HTML news letters in another app. They post the newsletter to the web, but they also want to set the contents of the HTML news letter file as the body of an email and send it using Application In Question. The users understand to use absolute link and image references when sending an E Newsletter. Environment:
AIQ is a VB.Net app deployed via ClickOnce. It is an intranet app; one can be sure MS Office 2003 and the interop 11 dlls are on the target machines.
Restrictions: MAPI is out. It mangles the HTML. Since it is a ClickOnce deployment, we can't register dlls (I think, correct me if I am wrong). Therefore CDO and COM is out (again, I may be wrong.... I would be happy to be proven so).
How would one remove an item from a ListBox and then remove that line from the TextFile and repopulate the ListBox with new data in Visual Basic.Net?[cod]...
View 2 Replies