Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2008, 03:57 AM
delphiest delphiest is offline
Senior Member
 
Join Date: Oct 2007
Posts: 800
Default Read a value from webbrowser ?

Hi

I use always a value from Webbrowser so :

[DELPHI]
Edit1.Text:=WebBrowser1.OleObject.document.forms.i tem(0).elements.item('the_number').value;
[/DELPHI]

But this time, it does not work!
here is my html code of the table1 (but in html there are 2 tables) :
mere is the Table1 (the value is inside of this table) :
Code:
* *

*

*

*
Reply With Quote
  #2  
Old 06-03-2008, 07:39 AM
develyoy develyoy is offline
Senior Member
 
Join Date: Nov 2007
Posts: 628
Default RE: Read a value from webbrowser ?

please give the HTML with one (or both?)
elements! since forms(0) will take only elements in the first
Reply With Quote
  #3  
Old 06-03-2008, 08:06 AM
delphiest delphiest is offline
Senior Member
 
Join Date: Oct 2007
Posts: 800
Default RE: Read a value from webbrowser ?

Tahnks
when I put my html code between so I can get the value :
Edit1.Text:=WebBrowser1.OleObject.document.forms.i tem(0).elements.item('the_number').value;

It works

must I put my html code between
?
How can I reed the Value when I have no form in html-Code ?
Or ist not possible ?

thanks

best regards
Reply With Quote
  #4  
Old 06-03-2008, 12:25 PM
develyoy develyoy is offline
Senior Member
 
Join Date: Nov 2007
Posts: 628
Default RE: Read a value from webbrowser ?

in valid HTML elements should occur within a
element, but most browsers to show them without.

If you use a element, use , to prevent the page from posting when the user presses enter.

If you don't use , use id="", not name="", and use document.getElementById()
Reply With Quote
  #5  
Old 06-03-2008, 01:51 PM
delphiest delphiest is offline
Senior Member
 
Join Date: Oct 2007
Posts: 800
Default RE: Read a value from webbrowser ?

Thanks
it works withot
WebBrowser1.OleObject.Document.GetElementByID('tel ephone').Value := Edit1.Text;

best regards
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 12:12 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2014, vBulletin Solutions, Inc.