|
-
Jan 16th, 2009, 12:38 PM
#1
Thread Starter
Hyperactive Member
Webbrowser submit problem
Hi guys,,
i got this in the source code :
Code:
<td class="cat" colspan="2" align="center">
<input class="btnlite" type="submit" tabindex="5" name="preview" value="Preview" />
<input class="btnmain" type="submit" accesskey="s" tabindex="6" name="post" value="Submit" />
<input class="btnlite" type="submit" accesskey="k" tabindex="7" name="save" value="Save" /> <input class="btnlite" type="submit" accesskey="c" tabindex="9" name="cancel" value="Cancel" />
and i tried:
W.Document.All("post").Click
W.Document.All("submit").Click
W.Document.All("btnmain").Click
but nothing seems to work???
Thanks for helping me out.
-
Jan 16th, 2009, 03:23 PM
#2
Re: Webbrowser submit problem
You have 4 buttons. "preview", "post", "save", and "cancel". You tried "post" and it should have worked. Try the other three by their names.
<input class="btnlite" type="submit" tabindex="5" name="preview" value="Preview" />
<input class="btnmain" type="submit" accesskey="s" tabindex="6" name="post" value="Submit" />
<input class="btnlite" type="submit" accesskey="k" tabindex="7" name="save" value="Save" />
<input class="btnlite" type="submit" accesskey="c" tabindex="9" name="cancel" value="Cancel" />
If this doesn't work please give any error messages that occured.
Make sure the page has fully loaded and it is the page with the buttons before you try any of those .click statements
Last edited by jmsrickland; Jan 16th, 2009 at 03:36 PM.
-
Jan 16th, 2009, 03:30 PM
#3
Thread Starter
Hyperactive Member
Re: Webbrowser submit problem
Yes i tried...my friend made it...
I think it's a ieframe.dll problem hmmm
but i cant replace it
Thanks for helping me out.
-
Jan 16th, 2009, 03:51 PM
#4
Re: Webbrowser submit problem
If it is IFrame then look at this example
-
Jan 17th, 2009, 05:02 AM
#5
Thread Starter
Hyperactive Member
-
Jan 17th, 2009, 10:14 AM
#6
Thread Starter
Hyperactive Member
Re: Webbrowser submit problem
Well i dont see the form name...i figured out how to use forms...but i dont see the form name in the code :S
Thanks for helping me out.
-
Jan 17th, 2009, 12:40 PM
#7
Re: Webbrowser submit problem
Did the example project I posted work?
Also post the HTML or a link to it so I can see what it is you need to do.
-
Jan 17th, 2009, 01:14 PM
#8
Thread Starter
Hyperactive Member
Re: Webbrowser submit problem
M8...the problem is that...i have some problems with the control...webbrowser...the code i posted here..works perfectly on another 2 computers...
my pc wont let me click..when the:
W.Document.All("post").Click
is in action..i get the error 438 nobody else does..only i do...and i dont know why???
I tried your code...but it didnt help me that much...
Thanks for helping me out.
-
Jan 17th, 2009, 01:21 PM
#9
Re: Webbrowser submit problem
Then post your code (I mean your VB code) and the document you are trying to deal with otherwise I can't do any more for you.
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
|