Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 05:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB08] Webbroser Javascript Problem/Question

Discussion on [VB08] Webbroser Javascript Problem/Question within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
MARCI1111's Avatar
 
elite*gold: 7
Join Date: Jul 2009
Posts: 1,131
Received Thanks: 722
Exclamation [VB08] Webbroser Javascript Problem/Question

Hello guys i wrote a tool and in one part in this tool, it should open a javascript on a homepage, so:

1. step : WebBrowser1.Navigate("http://XXXXX.com")
2. step : WebBrowser1.Navigate("javascript:gp.XXXXXX")


it works without any problems and the javascript also starts without any problems, but now i wanna combine these 2 steps into 1, is something like this possible?

WebBrowser1.Navigate("http://XXXXX.com/javascript:gp.XXXXXX")

i tried it on this way but it doesnt work, is there another method to combine those 2 steps into one?


PS: only WebBrowser1.Navigate("javascript:gp.XXXXXX") doenst work, i need to navigate to the website first...

thanks & greetings,
MARCI1111
MARCI1111 is offline  
Old 01/12/2013, 01:30   #2
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
Why do you need to combine them? And no there isn't really a way, as the webpage for the first step has to have a valid DOM to inject the Javascript into. Which means the first website has to be fully loaded first.

-jD
»jD« is offline  
Thanks
1 User
Old 01/12/2013, 01:36   #3
 
MARCI1111's Avatar
 
elite*gold: 7
Join Date: Jul 2009
Posts: 1,131
Received Thanks: 722
i want to combine them to make it faster, but if it doesnt work anyway, np. i will find other ways to improve the speed of my tool. i already thought that the website has to be full loaded, but thanks!

greetings,
MARCI1111
MARCI1111 is offline  
Old 01/12/2013, 01:45   #4
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
Faster? You will have to wait for the page to load NO MATTER WHAT! The calls to navigate should be inlined and return in like 2 milliseconds.... try building in Release mode.

-jD
»jD« is offline  
Reply


Similar Threads Similar Threads
[VB08/10]Updater problem.
12/30/2010 - .NET Languages - 4 Replies
Hi leute also ich hab mit einem neuen Updater Experimentiert das mir der alte nicht mehr gut genug war. mein problem ist nun wenn ich ihn starte sagt er mir das ein 404 fehler vom server her komme hier mal der teil code irgentwas darin macht nen fehler und ich finde ihn nicht. Dim MyVersion As Integer = Form12.Label1.Text ' Die aktuelle Version des Programmes Dim CurrentVersion As Integer = 2.0 ' Die neue Version aus dem Internet Dim UpdateFile As String 'Falls es ein neues...
VB08 Updater Problem
11/24/2010 - .NET Languages - 1 Replies
So das is das script was ich benutzte aber selbst wenn in der html datei der text update0 ist sagt der trotzdem das update vorhanden ist help please
VB Webbroser frage
11/23/2010 - .NET Languages - 1 Replies
WebBrowser1.Document.Forms(0).GetElementsByTagName ("input").Item(0).SetAttribute("val ue", "email") was kommt bei value hin ?
[VB08] Projekt Problem.
07/19/2010 - .NET Languages - 6 Replies
Huhu. Ich hab ein Problem mit Visual Basic 2008. Wenn ich etwas entwerfe, code etc. und dann auf alles abspeichern klicke, speichert er alles ab. (auch schon mit anderen Projekten versucht.) Wenn ich dann bei VB reingehe, und das Projekt öffnen will, passiert nicht mehr als http://www3.pic-upload.de/15.07.10/ujy968lbm73r.j pg Kann mir wer helfen? ___________________________________



All times are GMT +1. The time now is 05:11.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.