Referrer property not being set properly when using the Navigate method of the WebBrowser control 
Author Message
 Referrer property not being set properly when using the Navigate method of the WebBrowser control

Many web sites use the HTTP_REFERRER data to insure that access to a web
page came from the appropriate previously selected web page. When using the
navigate method of the WebBrowser control, the referrer property of the
document object is left blank. If you select a hyperlink in a web page
displayed in the control, the  property is set correctly. Is there a way to
have the Navigate method set the referrer property correctly or
programmatically select the hyperlink on the page without using the navigate
method? It seems that the Document property of the WebBrowser control is
ReadOnly so I'm not sure how I could programmatically select a hyperlink.

Thanks for any help,
John




Sat, 29 Nov 2003 21:02:47 GMT  
 Referrer property not being set properly when using the Navigate method of the WebBrowser control
Add a reference to "Microsoft HTML object library"

And click a link like this:
WebBrowser1.Document.Links(x).Click

Where x is the number of the link.

--
Stephan van Erp
ICQ #49819760
http://vbpoint.cjb.net/


Quote:
> Many web sites use the HTTP_REFERRER data to insure that access to a web
> page came from the appropriate previously selected web page. When using
the
> navigate method of the WebBrowser control, the referrer property of the
> document object is left blank. If you select a hyperlink in a web page
> displayed in the control, the  property is set correctly. Is there a way
to
> have the Navigate method set the referrer property correctly or
> programmatically select the hyperlink on the page without using the
navigate
> method? It seems that the Document property of the WebBrowser control is
> ReadOnly so I'm not sure how I could programmatically select a hyperlink.

> Thanks for any help,
> John





Sat, 29 Nov 2003 23:07:55 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Referrer Property of Document Object not updated using Navigate method of webbrowser controller

2. Referrer data not being passed when using the Navigate method of the WebBrowser Control

3. I am trying to update a record, i am not using data control

4. Using a Set method of a custom Property over the web (NEWBIE)

5. I am trying to update a record, i am not using data control

6. Navigating the VB Datagrid when TabAction Property is set to dbgGridNavigation

7. Should my properties be a method or set by a method

8. Update method in VB6 not working properly

9. Begintrans method of Connection object does not function properly in .Net

10. Update method in VB6 not working properly

11. Date$ not setting date properly

12. ReminderTime Property not inserted properly

 

 
Powered by phpBB® Forum Software