How get data from another web page?
I have my own interface..after i key In a keyword and click search, method post will post the data to server and server will response.write a HTML page that display the result based on the keyword i Key In. The problem is i want the result display on my own page. So how can i read the search result from the HTML page and display on my own design page? I use JSP to built my page. thanks
I dont know the following solution would solve ur problem, atleast u will get basic idea.
1st method
Create an inline frame (IE-IFrame etc), On pressing submit button, Post the data to required page (it might be some page on another server)and specify post target is ur inline frame.
if u want filter the result data and want to display in ur own way then send ur POST request to ur own JSP and use Http classes to read resend those data to other page (another server) and capture the results implement ur own logic to get desired data and resend to the requested browser
I hope it would solve ur problem
Cheers
Rajendra Bandi
Similar Messages
-
Help: getting data from a web page
i have a jsp page which generates some strings. i pass these strings in to a login page on some server. the web page displays my login status. is it possible to read or get data from the web page?
i have captured the header of a web page and modifying the header based on my generated strings.
or jus say is it possible to read whats in a web page into a jsp page?
thanks in advance for any help , assistance or redirection to a source where i can find help.hi,
sorry for a poorly framed question.
this is what i m trying to do.
i call google with a header generated.
now i want to read back the content in the google search result page onto my jsp page.
possible?
first.jsp calls google. i m using redirect (url)
the url is modified based on user input
now i want the links in the google page to be put up in my page itself. so i want to read the links there...
Message was edited by:
on_track -
How can i get data from another database SQL Server use database link from
I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?
hi,
u should see following documentation:
Oracle9i Heterogeneous Connectivity Administrator's Guide
Release 1 (9.0.1)
Part Number A88789_01
in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
regards
umar -
kindly suggest me the php parsing script so that i can fetch the data from a web page.....
suppose we have a url.........
http://abc.com/news/companydetails.aspx?sskicode=x&Exchange=y
and the page contains the various fields.........like
xyz 10
xyz1 20
xyz2 30 etc...
then we have to retrive data from this page trough php script and insert it into database.....
value of xyz , xyz1 n xyz2 should be retrived and further inserted into database.......
thanx ......Should be nice..
But its not working i think.. -
How do I add dates from a web page into iCal?
Hello. I would love to find a way to input dates from a web page, into iCal as an event. Right now, if there is a conference or whatever that is on such and such a date, I have to keep the web page open that has the dates and time, and then open iCal, and create a new event on that date, etc. Is there a way to highlight said dates on a web page, run some automation, and voila, it is a new event in iCal?
Don't double tap. Just try pressing on the text. That should highlight it.
-
Best way To get data from another application using NDDE lbrary
My vb.net application gets data from another application using NDDE Library. I got stocks prices (open,high,low,close,volume,change......(about 15 records for each stock)) (about 200 stocks) . I don't know if there is a problem in my code.
This is my code:
l : is the list of stocks.
This Sub connects to server and requests the data :
Public Shared Sub GetQuotes()
Try
client1 = New DdeClient(server, topic)
client1.Connect()
For i As Integer = 0 To l.Count - 1
client1.StartAdvise("QO." & l(i).t & ".TAD$last", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$open", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$high", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$low", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$pclose", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$volume", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$date", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$time", 1, True, 60000)
Next
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
and then I get the data from Client_advise sub (called each time a value changed )and fill the list. What I know is that client advise gets only one record for single stock each time is called..
Example: for stock AAPL. 1st time enters client_Advise I get open price for AAPL, 2nd time I get high price for AAPL,3rd time I get low price..... and I update the value in the List (l)
This the client_Advise Sub:
Private Shared Sub client1_Advise(ByVal sender As Object, ByVal e As NDde.Client.DdeAdviseEventArgs) Handles client1.Advise
For q As Integer = 0 To l.Count - 1
If l(q).t = w(1) Then
Dim item() As String = e.Item.Split("$")
If l(q).Open = "#" Then
l(q).Open = "0"
End If
If l(q).hi = "#" Then
l(q).hi = "0"
End If
If l(q).lo = "#" Then
l(q).lo = "0"
End If
If l(q).Close = "" Or l(q).Close = "#" Then
l(q).Close = "0"
End If
If l(q).pclose = "#" Then
l(q).pclose = "0"
End If
If item(1) = "open" Then
l(q).Open = Format(Val(e.Text), "0.00")
ElseIf item(1) = "last" Then
l(q).Close = Format(Val(e.Text), "0.00")
ElseIf item(1) = "high" Then
l(q).hi = Format(Val(e.Text), "0.00")
ElseIf item(1) = "volume" Then
l(q).Volume = Val(e.Text)
ElseIf item(1) = "low" Then
l(q).lo = Format(Val(e.Text), "0.00")
ElseIf item(1) = "pclose" Then
l(q).pclose = Format(Val(e.Text), "0.00")
If l(q).pclose <> "" And l(q).pclose <> "#" And l(q).Close <> "" And l(q).Close <> "#" Then
l(q).c = Format(l(q).Close - l(q).pclose, "0.00")
l(q).cp = Format(((l(q).Close - l(q).pclose) / l(q).pclose) * 100, "0.00")
End If
l(q).flag1 = 2
ElseIf item(1) = "date" Then
l(q).Date1 = e.Text
ElseIf item(1) = "time" Then
l(q).Time = e.Text
End If
Exit For
End If
Next
End Sub
Am I doing something wrong which inreases CPU usage to 80 or 90 % ?
Thanks in advance.Hi MikeHammadi,
According to your description, you'd like to get data from another app using NDDE library.
When using the NDDE library, the CPU usage is high. As the NDDE library is third-party library, it is not supported here. I suggest you checking if the problem is caused by the NDDE library.
If you'd like to get data from another app. I suggest you could save the data in the dataBase, and then read it in another application if necessary.
If you have any other concern regarding this issue, please feel free to let me know.
Best regards,
Youjun Tang
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How can I use Automator or AppleScript to get text from a web page and paste it in execl?
I don't know how to make scripts or complexed automator workflows... that's why I'm asking.
I'm trying to make a simple app or script to ask me what text to extract from a web page, like name, address and phone number of a web page and paste each one of these data in the righ cell of excel.
I was thinking to promt a request from automator or an applescript to ask me which text to extract from the page or to look throught the HTML of the page to search for specific html tags, from which extracting text and then importing it, or paste it to the specified execl cell. Name in the name cell, address in the address cell and so on.
Can somebody help me to make this script?
If you know an alternative, like a software that already do this or another language to use, please tell.Try holding down the alt key as you mark the text to be copied. You can then copy columns to table text.
-
How get data from Web Service with token?
Can I get data from Web Service made with Java?
This WS has a Token.
Any ideas o reference?
Regards!
Fran Díaz | twitter: @frandiaz_ | Blog: {geeks.ms/blogs/fdiaz/} | Communities: {onobanet.es} & {secondnug.com}We've now added this ability to Web.Contents. You can say something like
Web.Contents("http://my.web.service/1", [Headers=[#"The-Token"="0a0138ef2d"]])
and it will pass a header with the key "The-Token" and the value "0a0138ef2d" as part of the HTTP request. For security reasons, this will only work for anonymous web requests.
The December preview can be downloaded from
http://www.microsoft.com/en-us/download/details.aspx?id=39933&WT.mc_id=blog_PBI_Update_PowerQuery -
Link to specific text from another web page
Hello all
Is is possible to link from one page to a specific piece of
text in another web page in the same site? I have tried named
anchor, hyperlink, etc but it just goes to the page rather than the
text. I don't know if I am attempting the impossible. Can you help?
Thank v much.> This also has a css rule so this 9pt thing is left over
from copy and
> pasting
> from Word. I have it cleaned up as you suggested but I
still have:
> <span style="font-family:Arial; font-size:9.0pt; is
there way of avoiding
> this?
It depends on your settings for how you copy/paste. See your
PREFERENCES
for those. I don't get such things because my settings are
'tight' in that
they are restrictive to what stying is carried into the page.
> How I do this in a nav bar?
Change this -
.nav {
font: bold normal 14px/normal Arial, Helvetica, sans-serif;
text-transform: none;
color: #003300;
font-weight: bold;
a.nav:link {
font: normal 12px/normal Arial, Helvetica, sans-serif;
text-transform: none;
color: #003300;
text-decoration: none;
a.nav:visited {
font: normal 12px/normal Arial, Helvetica, sans-serif;
text-transform: none;
color: #003300;
text-decoration: none;
to this -
.nav {
text-align:center;
.nav a {
font: bold normal 12px/normal Arial, Helvetica, sans-serif;
color: #030;
font-weight: bold;
text-decoration:none;
margin-right:35px;
and then change this -
<div align="center"><a href="index.html"
class="nav">Home</a> <span
class="nav">About
Us</span> <a
href="impact_HE.html" class="nav">Impact of HE
Proposal</a> <a
href="purpose_ED.html"
class="nav">The Purpose of
ED</a> <a
href="procedures.html"
class="nav">Procedures </a> <a
href="what_can_we_do.html" class="nav">What Can We
Do?</a></div>
to this -
<div class="nav"><a
href="index.html">Home</a><a
href="about_us.html">About
Us</a><a href="impact_HE.html">Impact of HE
Proposal</a><a
href="purpose_ED.html">The Purpose of ED</a><a
href="procedures.html">Procedures</a><a
href="what_can_we_do.html">What Can
We Do?</a></div>
But an even better way would be to make the menu an unordered
list, like
this -
<ul>
<li><a
href="index.html">Home</a></li>
<li><a href="about_us.html">About
Us</a></li>
<li><a href="impact_HE.html">Impact of HE
Proposal</a></li>
<li><a href="purpose_ED.html">The Purpose of
ED</a></li>
<li><a
href="procedures.html">Procedures</a></li>
<li><a href="what_can_we_do.html">What Can We
Do?</a></li>
</ul>
And use this CSS -
.nav {
text-align:center;
.nav ul {
list-style-type:none;
margin:0;
padding:0;
overflow:hidden;
.nav li {
float:left;
width:150px;
margin-right:5px;
border-right:1px solid green;
.nav a {
font: bold normal 12px/normal Arial, Helvetica, sans-serif;
color: #030;
font-weight: bold;
text-decoration:none;
If you want to make the current page look like it doesn't
have a link, then
do this -
<ul>
<li><a href="index.html"
id="home">Home</a></li>
<li><a href="about_us.html" id="about">About
Us</a></li>
<li><a href="impact_HE.html" id="impact">Impact
of HE Proposal</a></li>
<li><a href="purpose_ED.html" id="purpose">The
Purpose of ED</a></li>
<li><a href="procedures.html"
id="procedure">Procedures</a></li>
<li><a href="what_can_we_do.html" id="what">What
Can We Do?</a></li>
</ul>
and add this to each page (use the proper ID) -
a#about {
cursor:default;
/* any other styles you want to make the current page show
> I am being a complete idiot today (maybe it's because
it's Sunday) Can you
> talk me through this.
Make the changes manually in code view.
If you are getting the idea that you will need to ramp your
HTML and CSS
skills to do this stuff, you are right on target!
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Dottydog" <[email protected]> wrote in
message
news:[email protected]...
> Dear Murrray
> Thank you very much for your comments.
>
> Can I ask you the following:
> 1. p.MsoNormal {
> Using Microsoft Word to build an HTML page is not
advisable. Use DW only
> or
> clean up the Word markup
>
> This also has a css rule so this 9pt thing is left over
from copy and
> pasting
> from Word. I have it cleaned up as you suggested but I
still have:
> <span style="font-family:Arial; font-size:9.0pt; is
there way of avoiding
> this?
>
> 2.
<span
class
> Using non-breaking spaces as a layout tool is not
advisable. Use CSS
> margins/padding instead..
>
>
> 3. This is not a named anchor point. It is not even a
link. For that you
> would need -
> <p style="font-family:Arial,helvetica,sans-serif;
font-size:small; "
> id="BDBC">What we have said to
B&DBC</p>
>
> I am being a complete idiot today (maybe it's because
it's Sunday) Can you
> talk me through this.
>
> Thank you very much for your time. Much appreciated.
>
>
>
>
> -
How get data from WebPartStorage?
Hi, Im creating custom ToolPart. I want save and get data in WebPartStorage. Now i have problem with get data...This is what I create:
How get data form WebPartStorage?
public partial class ExchangeRateWebPart : Microsoft.SharePoint.WebPartPages.WebPart
[Browsable(true), Category("Miscellaneous"),
DefaultValue("Site Names"),
WebPartStorage(Storage.Shared),
FriendlyName("URLs"), Description("Text Property")]
public List<string> ListCurrentNames
get;
set;
protected override void Render(HtmlTextWriter writer)
base.Render(writer);
writer.Write(ListCurrentNames);
class ExchangeRateCustomToolPart : ToolPart
public override void ApplyChanges()
ExchangeRateWebPart webpart = (ExchangeRateWebPart)this.ParentToolPane.SelectedWebPart;
webpart.ListCurrentNames = _listCurrentNames;Hi,
According to your post, my understanding is that you wanted to create custom toolpart.
WebPartStorageAttribute class specifies how a property should be stored.
If a WebPartStorageAttribute attribute is not specified for a property, Personal is used by default.
If a WebPartStorageAttribute attribute is specified for a property but the ControlledExport property is not
set, the value is presumed to be set to false.
You might have noticed that the Web Part custom property has some attributes. Each of them are described below.
Property
Description
Browsable
If false, the property is not displayed on the web part property pane
DefaultValue
Default Value for the property
WebPartStorage
Shared, Personal and None are the enumeration members
FriendlyName
The name for the property for display purposes
Description
The tooltip about the property
http://www.c-sharpcorner.com/UploadFile/40e97e/sharepoint-2010-web-parts-programming/
there are some articles about custom the toolpart, you can have a look at them.
http://www.wictorwilen.se/Post/Web-Part-Properties-part-1-introduction.aspx
https://www.nothingbutsharepoint.com/sites/devwiki/articles/Pages/SharePoint-Creating-a-Custom-ToolPart-for-a-Custom-Web-Part.aspx
http://microsoftsharepointdevelopment2010.blogspot.com/2012/03/creating-webpart-with-custom-toolpart.html
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
To get data from another user?
Hi,
I am in "scott" user. I need to use the data from another user for example user "sys". i know the database name(i.e.user@database), but i dont know the password of that user.
I think by using dblink it is possible. If it is correct then Is there any other way for this? If dblink is not correct way then please reply the correct way.
Thanks & Regards,
ShyamYou only need to use a database link if the data is in another database instances.
If you want to query data in another users schema on the same database you just need to have rights to do so. You either need to have
select any table system privilage granted to the user (not recommended for security reasons)
be granted select privalage on the object from the user
be granted a role that has select privelges on the object you want to query.
If you log in as system to the database you can grant select on the object to scott
sql> grant select on <schema>.<table> to scott;
now logged in as scott you can select from the table
sql> select * from <schema>.<table>
where <schema> is the other user and <table> is the name of the table that you want to select from. -
I have a device that has a built in web server that I need to write a LV program for
I need to read the date the web server is producing and compare it to actcual measured data.
Now the measureing and comparing is easy but I don't know how to make LV read a webpage.
Any thoughts or examples?
Solved!
Go to Solution.I got it to work, but It seem like the first time I launch it I sometimes I the first time I run it I get this error.
Error 97 occurred at UnknownSystem Error
Possible reason(s)
Labview: Null Refnum was passed as input.
Also it does not always ouput the text the first time and you have to run it twice.
Worse yet it seems to cache the text so sometimes when you load a new page the text is still the text left over from the previous page yet you can see the new page has loaded in the SHDocVw.IWebBrowser2 indicator.
Attachments:
No Text Output-1.jpg 136 KB
Good Text Ouput-2.jpg 220 KB
Text Output has not changed.jpg 173 KB -
SSRS Expression to compare two values and get data from another dataset
Hi,
I have a requirement where in i need to compare a value of a dataset (not the one which table is poiting to)
with the value of a text box, and return the count if it matches else 0, the expression is as below. Here
industryName and recCount are from the dataset ds_MedimOrLowImpactEntities. whats wrong in this expression
=Sum(IIF(Fields!industryName.Value = reportItems!hpapra_name.Value, Fields!RecCount.Value, 0), "ds_MediumOrLowImpactEntities")
This is the error that i am getting:
Any help on this is appreciated
Kruthi HegdeHi Kruthi,
After testing the issue in my local environment, I can reproduce it. Just the error message said, “Aggregate function can be used only on report items contained in page headers and footers”. So the sum function that contains report items should be stayed
at page headers or footers. Besides, you said the hpapra_name textbox contain a field from another dataset, not the ds_MedimOrLowImpactEntities dataset. While in Reporting Services, Report item expressions can only refer to other report items within the same
grouping scope or a containing grouping scope. So consider the two issues, we should use some other expression to instead the “reportItems!hpapra_name.Value” expression.
Take a look at the "Looking up values from another dataset" topic here:
http://msdn.microsoft.com/en-us/library/ms159673.aspx#LookupFunctions
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
The data from my web page insert in SQL table as question marks
I use Farsi language in my web page for inserting customer data. The data that is inserted in webpage and submitted, showed as ???? in SQL table. A lot of developers say that I should use N' before the Unicode character, but I don't know how I can use it
in my code. I attached the code. Can someone say me where I should insert the N in my code?
protected void cmdInsert_Click(object sender, EventArgs e)
//Checking the validation of required fields
if (cboCustomerType.Text == "" || cboTitle.Text == "" || SearchableName.Text == "" ||
FinalName.Text == "" || NationalID.Text == "" || BusinessID.Text == "" || MobilePhone.Text == "")
lblStatus.Text = "لطفا فیلدهای اجباری را حتما پر کنید";
return;
//define ADO.NET objects.
string insertSQL;
insertSQL = "INSERT INTO Customers(";
insertSQL += "CustomerType,CustomerTitle,CustomerFirstName,CustomerLastName,CompanyType,";
insertSQL += "CompanyName,SearchableName,FinalName,NationalCode,BusinessID,City,Address,PostalCode,";
insertSQL += "Zone,MobileNumber,WorkPhone1,WorkPhone2,HomePhone,FaxNumber,Email,Website,Note)";
insertSQL += "VALUES('";
insertSQL += cboCustomerType.Text + "','";
insertSQL += cboTitle.Text + "','";
insertSQL += CustomerFirstName.Text + "','";
insertSQL += CustomerLastName.Text + "','";
insertSQL += cboCompanyType.Text + "','";
insertSQL += CompanyName.Text + "','";
insertSQL += SearchableName.Text + "','";
insertSQL += FinalName.Text + "','";
insertSQL += NationalID.Text + "','";
insertSQL += BusinessID.Text + "','";
insertSQL += City.Text + "','";
insertSQL += Address.Text + "','";
insertSQL += PostalCode.Text + "','";
insertSQL += Zone.Text + "','";
insertSQL += MobilePhone.Text + "','";
insertSQL += Phone1.Text + "','";
insertSQL += Phone2.Text + "','";
insertSQL += HomePhone.Text + "','";
insertSQL += FaxNumber.Text + "','";
insertSQL += Email.Text + "','";
insertSQL += Website.Text + "','";
insertSQL += Note.Text + "')";
SqlConnection con = new SqlConnection(connectionString);
SqlCommand cmd = new SqlCommand(insertSQL, con);
//try to open the database and execute the insert
int added = 0;
try
con.Open();
added = cmd.ExecuteNonQuery();
lblStatus.Text = added.ToString() + "اضافه شد";
catch (Exception err)
lblStatus.Text = "Error inserting record.";
lblStatus.Text += err.Message;
finally
con.Close();
//If the insert succeed, refresh the customer list.
if (added > 0)
FillCustomerList();
Regards,Because you're composing the SQL statement with string concatenation, you would put the "N" before the single quote,
VALUES(N'";
insertSQL += cboCustomerType.Text + "',N'";
insertSQL += cboTitle.Text + "',N'"; // ...etc
However, composing SQL statements with string concatenation is not a suggested practice because it's open to SQL injection (see:
https://technet.microsoft.com/en-us/library/ms161953(v=sql.105).aspx). A safer way to do this is to use command parameters to represent the values (see SqlCommand.Parameters
property). If you use parameters, you can specify parameter data type as SqlDbType.NVarchar, which will ensure your text values are passed in as Unicode. Also ensure that the columns in question are defined in the database table definition as Unicode (NVARCHAR
rather than VARCHAR).
Hope this helps, Bob -
Automated process to pull data from a web page without using VS and PS.
Hello,
I'm looking at finding a solution to pull data from an external web page and creating a list. I'm looking for a NON-POWERSHELL AND NON-VISUAL STUDIO solution. I am open to using InfoPath Designer.
There exists a custom, non-SharePoint page built for us which has raw data. We've already created a custom list to match the data and now need to come up with a solution to automatically update the data. In this particular scenario, power shell and visual
studio cannot be used.
Thanks in advance.Why would you cripple yourself and restrict PowerShell at the very least which has perfect functionality for doing exactly that.
I doubt you could use the InfoPath data sources to pull the raw data in, re-map it and save to SharePoint without resorting to some sort of coding within InfoPath.
Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.
Maybe you are looking for
-
Satellite P50-B-103 - Connect my HDMI output to a VGA monitor
Hello everyone, I have just bought a satellite *P50-B-103*, which only has a HDMI output and I would like to connect it to an external VGA monitor. I thought I only need to buy a HDMI - VGA converter but the buyer said to me that Toshiba, unless this
-
Merging other files into a single pdf.
I cannot merge multiple documents (other than pdf) into a single pdf. I use Adobe Acrobat X Pro, for
-
Do Browserlab generate automated results or is only effective for screenshots?
Hi.. 1) We are looking for cross browser test tool for our project which can facilitate comparison of layout difference in different browsers, image, text differences and provide consolidate results without manual intervention. Would like to know wh
-
Reconnecting clips weirdness no file path listed
Every time I open my project I have to reconnect 10 clips. 7 of the clips have no file path. Does anyone know how to fix this? Here's a snapshot http://snipr.com/uw311-q2w
-
3PR posting must be before Payroll posting?
Hi Experts, I have a general question regarding posting after payroll. Our end user told me that we should do 3PR posting before we even create payroll posting documents. But they don't know why we need to keep doing with this order. Any reason from