|
-
Nov 5th, 2005, 05:40 PM
#1
Thread Starter
Member
Web Submit in VB [RESOLVED]
http://www.myspace.com/index.cfm?fus...endID=34720603
when i click command1 i would like the add to friends on that page be clicked as well. I am guessing java is needed?
Last edited by mlewis412; Nov 6th, 2005 at 05:32 PM.
-
Nov 5th, 2005, 05:44 PM
#2
Fanatic Member
Re: Web Submit in VB
if you open the page, you are going to need a login and password to enter it... because I tried opening it and that's what I got, even though I do have myspace
-
Nov 6th, 2005, 01:34 AM
#3
Thread Starter
Member
Re: Web Submit in VB
ack either way you need to login to see it, hmm well when it gets on the invite page it has a 2 submit buttons, 1 is to add to friends the other is to cancel .. i need it to script for the add to friends ... it would be much appreciated if some one can help me
-
Nov 6th, 2005, 01:37 AM
#4
Frenzied Member
Re: Web Submit in VB
http://www.vbforums.com/showthread.php?t=369419
You can refer to my post in there for a little help.
Age - 15 ::: Level - Advanced
If you find my post useful please ::Rate It::

-
Nov 6th, 2005, 01:57 AM
#5
Fanatic Member
Re: Web Submit in VB
i couldnt see the button u mentioned, but anyways, maybe this is what you need:
use a web browser control...
VB Code:
Private Sub Command1_Click()
With WB.Document
If WB.ReadyState = READYSTATE_COMPLETE Then
.getElementById("name").Value = "myname"
.getElementById("address").Value = "cagayan de oro city"
.Forms(0).Submit
Do While WB.ReadyState <> READYSTATE_COMPLETE
DoEvents
Loop
End If
End With
End Sub
just replace the email, name, address with the exact names of form objects in the page. you can determine it by looking at the html source of the page by clicking menu VIEW-->SOURCE...
BTW, this is not my code, i found it in this forum and its really fun... its working...
On Error GoTo Hell
Hell:
Kill Me
Food For Thought:
- Do not judge a book... if you're not a judge!

-
Nov 6th, 2005, 05:22 PM
#6
Thread Starter
Member
Re: Web Submit in VB
I tried http://www.myspace.com/index.cfm?fus...&Mytoken=43243
and it gave me this "The Function that you are currently trying to use is disabled and will be back shortly.
We are making some minor changes to this section please bare with us until we can get this back online.
Please do NOT email me about this. Just wait it out. -Tom "
Last edited by mlewis412; Nov 6th, 2005 at 05:28 PM.
-
Nov 6th, 2005, 05:28 PM
#7
Re: Web Submit in VB
If you have Firefox, they have the DOM Inspector which lets you click on an item in a page to return all the information about it.
-
Nov 6th, 2005, 05:29 PM
#8
Thread Starter
Member
Re: Web Submit in VB
really! well i have it.. lol thanks i never knew that..
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
|