How to manage web page content via labview
My pproblem is to get cyclic information from a web page containing an
applet.
Using a container I cannot manage any text and object in the page. Isn't it?
Ciao
If I understand you correctly, you are hosting a webpage in a front panel ActiveX container, and you want to obtain certain information from the webpage.
This is possible using ActiveX calls. To get access to the HTML document in the container itself, along with all of its text and applets, etc, you need to reference the Document child item from a property node. This item is variant, so you need to use Variant to Data with a ActiveX refnum constant set to MSHTML.IHTMLDocument2 wired to the type. At that point you can access information about the HTML page itself, such as the body's text and so forth.
I'm attaching a simple example that should help you get started. It's written in LabVIEW 7.1. Good luck!
Jarrod S.
National Instruments
Attachments:
HTML Document Info.vi 36 KB
Similar Messages
-
Read web page content via Sockets
Hey,
I have to write a program that will read web page content, using sockets.
I got that piece of code and it works for most pages:
Socket socket = new Socket(address, 80);
BufferedReader input =
new BufferedReader(
new InputStreamReader(socket.getInputStream()));
PrintWriter output =
new PrintWriter(socket.getOutputStream(), true);
output.println("GET " + pageName);
String response = "";
String curline = input.readLine();
int i=1;
while(curline != null){
response += "\n" + curline;
curline = input.readLine();
System.out.println(i + curline);
++i;
output.close();
input.close();but not for the one it is supposed to work:
http://portalwiedzy.onet.pl/tlumacz.html
I could get it to work using this:
URL url = new URL(host + query);
URLConnection uc = url.openConnection();but I really have to use sockets.
Any advice, people? :-)There's an RFC that goes over the HTTP protocol (or rather, several RFCs for the several versions of the protocol). You probably want to google for that and use it as a reference for this project.
-
Labels Not Showing Up Correctly in Workflow Manager Web Page
I have installed the Workflow Server 2.6.3 on Red Hat 7.2 against the Oracle 10g database. When I go to the Workflow Manager web page and login, all the labels appear between brackets "[]" and have incorrect names such as the following:
WF_WORKFLOW_TITLE
WFA_WTITLE
OPEN_NOTIFICATIONS
WFA_FINDTITLE
WFRTG_FIND_TITLE
etc......
I ran the Configuration Assistant again and this didn't solve the problem and I've also verified that the mappings in the server configuration file are correct for OA_JAVA, OA_DOC, OA_MEDIA. Looked through workflow installation log and no errors appear. I installed the web server (Oracle Apache Standalone downloaded from OTN in a separate Oracle Home). Any ideas how to fix these incorrect labels or why they're not showing up correctly??
Thanks in advance,
RichHi,
I've not seen the problem myself, but it seems that the language has not created the correct lookups in the WF_RESOURCES table.
If you look for a name of (for example) 'OPEN_NOTIFICATIONS', there should be an entry for the language you are using (US) which translates the prompt for you. If it's not there then you will probably need to add a language through the installer - I don't think there is a SQL file that you can just run to do it. Alternatively, install it in a new environment and then just extract the resources you need from that system and insert them into this one.
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://thoughts.workflowfaq.com ?
WorkflowFAQ support forum: http://forum.workflowfaq.com -
I want to take radio programme listings from a web page, such that I can parse the data and select certain programmes details only.
Firstly how do I actually get the web page content out? Does it go into a text file? The actual content includes programme times, which might be a means of picking out selected text. Does anyone know where I could find some code that will do that. My intention is to pass this information into a database which connects to my own web site.
This is for a dissertation and I am starting to run out of time, so I would be hugely grateful for any assistance.
Thanks
RobLooks like you need to...
a. Read Javadoc for java.net.URL
b. Read about JDBC(if what I understood is right, which is output of your program goes to database) See http://java.sun.com/products/jdbc/index.html
c. Read about XML parsing and transformations. See http://java.sun.com/xml/xml_jaxp.html -
Printing web page content from android tablet
When I attempt to eprint a web page, the web address line prints just fine (with a lower line that reads:"sent from Samsung tablet"), but none of the content, even though the print preview showed everything on the page that I needed. PLEASE HELP! Is the web page content considered an attachment and if so, how do I get the attachment to print?
This question was solved.
View Solution.Hi TurboLady,
Thank you for the update. I appreciate it. You read the document correctly.
The best way to print the web content is to print the web page using the browser found in the HP ePrint app. Please download and install the HP ePrint Mobile app from the Google Play store. For reference I’ve included the HP ePrint Mobile App FAQ document.
Please let me know how that works for you.
Regards,
Happytohelp01
Please click on the Thumbs Up on the right to say “Thanks” for helping!
Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
I work on behalf of HP -
Can not start Enterprise Manager web page
I can not start Enterprise Manager web page.
Here is my steps:
1. Start enterprise manager
emctl start
Waiting for EM to initialize ...Started
2. Check status:
emctl status
EMD is up and running : 200 OK
3. Start the web page
http://myhost:1810/
4. get following error
"There was no response. The server could be down or is not responding"
System info:
Database: 8.1.7.2
OAS: 9.2.0.2
JDK: 1.3.0_02
Server OS: SunOS 5.8
My question is where is the log file of enterprise manager and what the problem is.
Thanks in advance
Dondiego,
Thank you for your help. when I try your command I get following error:
emctl start iasconsole
Unknown command option
Usage::
emctl start|stop|status
emctl reload | upload
emctl set credentials [<Target_name>[:<Target_Type>]]
emctl gencertrequest
emctl installcert [-ca|-cert] <certificate base64 text file>
emctl set ssl test|on|off|password [<old password> <new password>]
emctl set password <new pwd>
emctl authenticate <pwd>
emctl switch home [-silent <new_home>]
emctl config <options>
emctl config options can be listed by typing "emctl config" -
How to open web pages from japplet??
Hi
Does anybody know how to open web pages from java japplet??
Any help is apreciated!
zickthe getAppletContext() method of the Applet class will get you an AppletContext, with which you can call the ShowDocument(URL url) or ShowDocument(URL url, String target) method...
check it out at http://java.sun.com/j2se/1.4/docs/api/java/applet/AppletContext.html
have a good one :)
Jay -
Hi,
Need some help center aligning web page content when it maximizes or is resized. I have grids, panels, etc and want these to center on page.
Is there a property of the page/body/head/form/div that can be set for this or is javascript required to achieve this.
Any help mcuh appreciated.
SNIHi,
I tried what the thread did and still cannot my layout panel to center align.
This is my jsp line:
<ui:panelLayout binding="#{Login.pnlLogin}" id="pnlLogin" style="height: 306px; left: 382px; top: 216px; text-align: left; vertical-align: middle; width: 100%; -rave-layout: grid; horizontal-align: left;"> -
Analysis of the Web Page Content
Could anyone give me some tips on it?3x
Can you expound on what you need ie what WEB PAGE CONTENT?
-
How to create web page same as Struts tiles in OPA?
Hi,
How to create web page containing consistent Header,Fotter,left right pannel which embed OPA screen?Web Determinations uses Velocity templates to configure the appearance of a paritcular page. You can configure these tempaltes to get the look and feel that you like.
For more information search for "Oracle Web Determinations Template Reference Guide" in the Oracle Policy Automation Developer's Guide (http://docs.oracle.com/html/E38272_01/toc.htm) -
Safari web page sent via apple mail to entourage - block submission
.. at this point, I'm just wondering what it is about a web page sent via Apple Mail (great feature!) which causes Entourage to display the warning "For your security, Entourage will block submission of this form"? ..
.. in particular, what are the file types in this kind of message via Apple Mail which need to be "allowed" in the Entourage Attachment Policy .plist? ..
.. a side note - even the microsoft entourage support webpage dealing with this issue sent via Apple Mail was blocked! ..You're suffering from two common misconceptions.
1. You will never get a response from Apple when you submit a crash report. The reports are used internally, if at all.
2. This is not Apple tech support. This is a forum provided by Apple for users of its products to discuss technical issues among themselves. No one here represents Apple or knows anything about your contacts with Apple. If you want support from Apple, click the Support link at the top of this page. -
How can I add a "search" field for web pages content-not blogs or podcasts?
This seems to be such a basic function, I can't believe I'm having so much trouble. I don't have a blog or a podcast on my new website that I'm in the process of designing. So how do I allow people who'll visit my site to search there for specified content? The only instructions I find are for the RSS in inspector for blogs or podcasts. All I want is for people to be able to search my site/web pages (that have no blogs or podcasts on them). This must be a common request... or am I crazy? How do I do that?
Thanks for your help.I think I've answered my own question after a few hours of searching:
http://services.google.com/searchcode2.html?accept=on
Thank you Google. -
How to create web applications with the LabVIEW web server
Wonderful Forum,
I've noticed that sometimes it can be tricky for LabVIEW users to learn how to create their own custom web clients using the LabVIEW web server. I created a LabVIEW web development community group and wrote some tutorials to teach the basics of creating web clients using HTML, Javascript, and AJAX. The idea is that LabVIEW users without any web background can quickly look at some tutorials and examples to get started on their own projects.
https://decibel.ni.com/content/groups/web-services
What do you think?
Joey S.
Software Product Manager
National InstrumentsHi Joey,
A great idea! I recently presented at a local user group meeting about my WebSockets API (see the links in my signature). I've uploaded the presentation and the demo code I gave to our UG here.
I think the barrier to entry is with needing to know the web languages (e.g. html/css/js) as well as writing your LabVIEW code. I have joined the group and look forward to seeing some interesting content on there! Certainly some demos of using AJAX to make requests to Web Services and do something with the data (e.g. display on a graph) would be a good place to start.
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets -
How to get web pages opening within pages?
Just wondering how this is done or implemented. I visited and
researcehd several websites a while ago and observed that pages
were opening in pages instead of loading a new page.
For example: You go to a web page, the links are all above
under the page banner or on the side like in a side bar or Nav bar
and the content are on the right or the middle of the page.
So when you click on a link the page opens within the same
page with out a new page loading, just the contents gets replaced
but the entire page doesn't changed. Is this AJAX? I know you can
do this with Frames but I dont want to use frames, are there other
ways to get this accomplished?
Please explained or reference resources.
Thanks very much.
Patrickopps.forgot the link:
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
Sorry
Jeff
"Jeff" <[email protected]> wrote in message
news:fpkbii$on7$[email protected]..
> yes, there can be problems with frames and iframes, but,
if your looking
> for an easy solution its the way to go.
> AJAX offers another option. You might try looking at
this article, I
> believe you can adapt it to do what you want.
>
> Jeff
>
>
> "Jeff" <[email protected]> wrote in message
> news:fpk313$fjf$[email protected]..
>> <iframe src="
http://www.domainName.com/whatEverPage.htm"
width="480"
>> height="450" scrolling="yes"
name="content"></iframe>
>>
>> Jeff
>>
>>
>>
>> "Webethics" <[email protected]>
wrote in message
>> news:fpjjga$t5c$[email protected]..
>>> Just wondering how this is done or implemented.
I visited and researcehd
>>> several websites a while ago and observed that
pages were opening in
>>> pages
>>> instead of loading a new page.
>>> For example: You go to a web page, the links are
all above under the
>>> page
>>> banner or on the side like in a side bar or Nav
bar and the content are
>>> on the
>>> right or the middle of the page.
>>>
>>> So when you click on a link the page opens
within the same page with out
>>> a new
>>> page loading, just the contents gets replaced
but the entire page
>>> doesn't
>>> changed. Is this AJAX? I know you can do this
with Frames but I dont
>>> want to
>>> use frames, are there other ways to get this
accomplished?
>>>
>>> Please explained or reference resources.
>>>
>>> Thanks very much.
>>>
>>> Patrick
>>>
>>
>>
>
> -
Web page content on 11.6 Air often displays incorrectly.
I love my Macbook Air 11.6 for its quality size and weight but web browsing is a pain. I would love to read an open discussion on this. It seems to be that because the screen ratio is unusual i.e. very 'wide screen', many web pages are not written so that they display correctly. One has to always zoom in at least twice, but I could live with that if the content all displayed correctly, but it often doesn't. Try going to the BBC.co.uk. First page is ok but click on Wimbledon live and the links to live games are a mess. Try KLM.com - one has to zoom until it goes off the right hand side before the booking fields display correctly. Same thing for Cricinfo.com.
Today, I see that Chrome does it better but shouldn't Safari (my preference because of how it handles Evernote) be the KIng on Macs? Will this ever be rezolved? In Apple stores the genius says that it is down to the coding done by the web site writers and so I fear that they are not going to all re-write their code to please just one weird screen aspect ratio.
My best solution would be to sell this and get a 13.3, no? Pity but seems the only way... JJActually, 1366x768 is a very common resolution (and has been for quite a few years). It really is up to the website coding and the browser to deal properly with different resolutions. You should be able to even select an actual odd resolution manually and have the page display correctly. But, with respect to the resolution of your Air, it is basically an industry standard and should not be the cause of any problems with the way a site displays.
Maybe you are looking for
-
Hi all : I save a HTML FILE ,, I want to print this file from labview ,, how can I do that thanks
-
My husband's iphone4 seems to have 2 apple ids. The one listed in the featured section of the App Store is the correct one. The one that asks to be signed into for purchase and updates is also mine, and the incorrect one. Hence, our devices are linke
-
Deploy the .ear file in Oracle 10g Application server10.1.3
Hi Friends, I have deploy the .ear file in Oracle10g Application Sever 10.1.3 through Enterprise Manager. in Progress Messages shows the application has been successfully deployed,like this when i hit the URL in Web brower, i got a HTTP 403 showing..
-
I'm looking for people that can verify if NikonScan version 4, a Nikon Scanner, and an Intel Mac can play nice together. Nikon says Intel Core Duo Macs are unsupported. What about the Core Solo? It's not mentioned. That doesn't mean it won't work on
-
Query not converted in to change mode
Hi all i have an issue i have created a query in bex in development system and saved the query, at the time of saving the query it didn't ask any request but it saved in favorites on save window. second time i try to open the query it opened b