Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 2nd, 2004, 03:16 AM
shaker22a shaker22a is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 3 shaker22a User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
input on web page using vb application

there is an input box on web page..
called buy_weapon[27] where u enter a number of amount u want to get.
the value by default is set to zero
I like to input the value one in the box using my application
any ideas on how to do this please

this is the html:
<TD align=middle><INPUT size=3 value=0 name=buy_weapon[27]></TD>
<INPUT type=submit value="Process Order" name=buybut>

this is the code I trying to use:
WebBrowser1.Document.Forms(0).buy_weapon[27].Value = 1
WebBrowser1.Document.Forms(0).submit

but obviously wrong cause I getting an error on first line of code.

Reply With Quote
  #2  
Old February 2nd, 2004, 09:59 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
IF u will input variable into the web page,u should use post method for it...U can look it:http://oldlook.experts-exchange.com...Q_20724988.html

Reply With Quote
  #3  
Old February 2nd, 2004, 04:59 PM
shaker22a shaker22a is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 3 shaker22a User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thnx
I looked there, thar is similar to what I doing but still getting eror on that first line

Reply With Quote
  #4  
Old February 2nd, 2004, 07:39 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
Give u a suggestion:Use the post method to input the variable value in the form of the html page..http://www.freevbcode.com/ShowCode.Asp?ID=2051

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > input on web page using vb application


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT