|
-
May 8th, 2013, 05:58 PM
#1
Thread Starter
Member
Can WebBrowser change a HTML code?
Could I make that when I go to this webpage in a WebBrowser: http://www.pirlotves.com/canal2.php
I have this code: http://www.pirlotves.com/player/canal2.php?width=650&height=440
Change for it: http://www.pirlotves.com/player/canal2.php?width=800&height=550
Help please. Thanks a lot
Last edited by pguti19; May 9th, 2013 at 10:45 AM.
-
May 8th, 2013, 07:07 PM
#2
Re: Can WebBrowser change a HTML code?
That's not HTML code. It's just an url with php parameters. You just navigate to it in the normal way. Whether it will actually make any difference is a matter for the website.
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
May 9th, 2013, 08:54 AM
#3
Thread Starter
Member
Re: Can WebBrowser change a HTML code?
Is a video reproductor (Streaming).
I want change the width and heightof it, can I?
-
May 9th, 2013, 09:25 AM
#4
Addicted Member
Re: Can WebBrowser change a HTML code?
You're posting in the VB forum so I assume you're using the WebBrowser component in Windows Form.
To make the browser go anywhere yoou call the Navigate method.
myUrlString = "SomeURL/canal2.php"
webBrowser1.Navigate(myUrlString)
Well, if your myUrlString contains "canal2.php" then you can simply append any additional string you want to the end of the url. Or if the url contains "SomeText" then you can simply replace some text with "OtherText" in the url string
Or, if you have no control over the original URL, for example if the user has clicked a link on a page, then you can check the url property in the .Navigated event and if it contains "canal2.php" then you can instantly force a navigation to the alternate url.
Last edited by Axcontrols; May 9th, 2013 at 09:30 AM.
-
May 9th, 2013, 10:48 AM
#5
Thread Starter
Member
Re: Can WebBrowser change a HTML code?
Sorry but this isn't de problem.
If you go to this webpage: http://www.pirlotves.com/canal-2.php And use the option to view the code you can see that this:
http://www.pirlotves.com/player/cana...650&height=440
Is a part of the code of the webpage, And if you change the 650 and 440 for 800 and 550 for example, the video are bigger. I want make this with a button, this is the problem.
Im using a WebKitBrowser (http://www.youtube.com/watch?v=ftRbU9GPNng)
Help, Thanks, and sorry for my english errors
-
May 9th, 2013, 11:27 AM
#6
Re: Can WebBrowser change a HTML code?
Is a part of the code of the webpage
Erm ... nope. The only reference I can see to width & height is in the embedding HTML for webpage authors and, having tried it out, changing the values in that has no effect at all.
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|