PC Review


Reply
Thread Tools Rate Thread

Clicking submit button on web page

 
 
RudyShoe
Guest
Posts: n/a
 
      30th Jan 2007
Okay, I've tried everything that I've been able to dig up on this
forum but haven't had any success. I've been able to log into a
website, select items from a couple of drop downs but i'm hung up at
the submit button on this particular page. No issues using the submit
button on the login page however. The only difference I see between
the submit button on the login page and the submit button on the drop
down page is that the drop down page submit button has an 'onClick'
statement. The login page didn't have this.

I've tried the following....
ie.document.all.Item("welcome").submit <---'welcome' is the
name of the form
* I receive a 'Action code not submitted' error on the webpage. I'm
assuming this is occuring since i'm not actually clicking the submit
button.

I've also tried.....
Set ipf = ie.document.all.Item("submit")
Call ipf.Click()
* I receive a 'Run-time error '91': Object variable or With block
variable not set' error


Here's a snippet from the website...
<INPUT TYPE="submit" VALUE="Submit"
onClick="process_form(document.welcome.DATABASE.selectedIndex,
document.welcome.ACTION.selectedIndex, 'i.web', 'ipre-ssl.web', 'no',
'')">

Any ideas?


Thanks,

Scott

 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      30th Jan 2007
Perhaps if you gave the url and the EXACT table (or how to get to it) you
can get some comments.

--
Don Guillett
SalesAid Software
(E-Mail Removed)
"RudyShoe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Okay, I've tried everything that I've been able to dig up on this
> forum but haven't had any success. I've been able to log into a
> website, select items from a couple of drop downs but i'm hung up at
> the submit button on this particular page. No issues using the submit
> button on the login page however. The only difference I see between
> the submit button on the login page and the submit button on the drop
> down page is that the drop down page submit button has an 'onClick'
> statement. The login page didn't have this.
>
> I've tried the following....
> ie.document.all.Item("welcome").submit <---'welcome' is the
> name of the form
> * I receive a 'Action code not submitted' error on the webpage. I'm
> assuming this is occuring since i'm not actually clicking the submit
> button.
>
> I've also tried.....
> Set ipf = ie.document.all.Item("submit")
> Call ipf.Click()
> * I receive a 'Run-time error '91': Object variable or With block
> variable not set' error
>
>
> Here's a snippet from the website...
> <INPUT TYPE="submit" VALUE="Submit"
> onClick="process_form(document.welcome.DATABASE.selectedIndex,
> document.welcome.ACTION.selectedIndex, 'i.web', 'ipre-ssl.web', 'no',
> '')">
>
> Any ideas?
>
>
> Thanks,
>
> Scott
>



 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      30th Jan 2007
I'm no web expert, but the HTML looks like it is calling a javascript
routine.
Maybe you can duplicate that behaviour.

NickHK

"RudyShoe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Okay, I've tried everything that I've been able to dig up on this
> forum but haven't had any success. I've been able to log into a
> website, select items from a couple of drop downs but i'm hung up at
> the submit button on this particular page. No issues using the submit
> button on the login page however. The only difference I see between
> the submit button on the login page and the submit button on the drop
> down page is that the drop down page submit button has an 'onClick'
> statement. The login page didn't have this.
>
> I've tried the following....
> ie.document.all.Item("welcome").submit <---'welcome' is the
> name of the form
> * I receive a 'Action code not submitted' error on the webpage. I'm
> assuming this is occuring since i'm not actually clicking the submit
> button.
>
> I've also tried.....
> Set ipf = ie.document.all.Item("submit")
> Call ipf.Click()
> * I receive a 'Run-time error '91': Object variable or With block
> variable not set' error
>
>
> Here's a snippet from the website...
> <INPUT TYPE="submit" VALUE="Submit"
> onClick="process_form(document.welcome.DATABASE.selectedIndex,
> document.welcome.ACTION.selectedIndex, 'i.web', 'ipre-ssl.web', 'no',
> '')">
>
> Any ideas?
>
>
> Thanks,
>
> Scott
>



 
Reply With Quote
 
RudyShoe
Guest
Posts: n/a
 
      30th Jan 2007
I'd post the site if it was available but it's on my company's
intranet.

Nick, you're right, it is javascript. Is there a way to duplicate the
behavior from within Excel?

On Jan 29, 5:41 pm, "NickHK" <TungChe...@Invalid.com> wrote:
> I'm no web expert, but the HTML looks like it is calling a javascript
> routine.
> Maybe you can duplicate that behaviour.
>
> NickHK
>
> "RudyShoe" <scottschumac...@verizon.net> wrote in messagenews:(E-Mail Removed)...
>
> > Okay, I've tried everything that I've been able to dig up on this
> > forum but haven't had any success. I've been able to log into a
> > website, select items from a couple of drop downs but i'm hung up at
> > the submit button on this particular page. No issues using the submit
> > button on the login page however. The only difference I see between
> > the submit button on the login page and the submit button on the drop
> > down page is that the drop down page submit button has an 'onClick'
> > statement. The login page didn't have this.

>
> > I've tried the following....
> > ie.document.all.Item("welcome").submit <---'welcome' is the
> > name of the form
> > * I receive a 'Action code not submitted' error on the webpage. I'm
> > assuming this is occuring since i'm not actually clicking the submit
> > button.

>
> > I've also tried.....
> > Set ipf = ie.document.all.Item("submit")
> > Call ipf.Click()
> > * I receive a 'Run-time error '91': Object variable or With block
> > variable not set' error

>
> > Here's a snippet from the website...
> > <INPUT TYPE="submit" VALUE="Submit"
> > onClick="process_form(document.welcome.DATABASE.selectedIndex,
> > document.welcome.ACTION.selectedIndex, 'i.web', 'ipre-ssl.web', 'no',
> > '')">

>
> > Any ideas?

>
> > Thanks,

>
> > Scott


 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      30th Jan 2007
Not sure. Hunt around in the IE object model.
Maybe this:
http://www.dotnet247.com/247referenc...44/220707.aspx

NickHK

"RudyShoe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'd post the site if it was available but it's on my company's
> intranet.
>
> Nick, you're right, it is javascript. Is there a way to duplicate the
> behavior from within Excel?
>
> On Jan 29, 5:41 pm, "NickHK" <TungChe...@Invalid.com> wrote:
> > I'm no web expert, but the HTML looks like it is calling a javascript
> > routine.
> > Maybe you can duplicate that behaviour.
> >
> > NickHK
> >
> > "RudyShoe" <scottschumac...@verizon.net> wrote in

messagenews:(E-Mail Removed)...
> >
> > > Okay, I've tried everything that I've been able to dig up on this
> > > forum but haven't had any success. I've been able to log into a
> > > website, select items from a couple of drop downs but i'm hung up at
> > > the submit button on this particular page. No issues using the submit
> > > button on the login page however. The only difference I see between
> > > the submit button on the login page and the submit button on the drop
> > > down page is that the drop down page submit button has an 'onClick'
> > > statement. The login page didn't have this.

> >
> > > I've tried the following....
> > > ie.document.all.Item("welcome").submit <---'welcome' is the
> > > name of the form
> > > * I receive a 'Action code not submitted' error on the webpage. I'm
> > > assuming this is occuring since i'm not actually clicking the submit
> > > button.

> >
> > > I've also tried.....
> > > Set ipf = ie.document.all.Item("submit")
> > > Call ipf.Click()
> > > * I receive a 'Run-time error '91': Object variable or With block
> > > variable not set' error

> >
> > > Here's a snippet from the website...
> > > <INPUT TYPE="submit" VALUE="Submit"
> > > onClick="process_form(document.welcome.DATABASE.selectedIndex,
> > > document.welcome.ACTION.selectedIndex, 'i.web', 'ipre-ssl.web', 'no',
> > > '')">

> >
> > > Any ideas?

> >
> > > Thanks,

> >
> > > Scott

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Submit button to re-direct to another page b3ngl@yahoo.com Microsoft Frontpage 6 14th Nov 2006 06:22 PM
Confirmation Page from Submit Button =?Utf-8?B?QW50aG9ueSBCbGFja2J1cm4=?= Microsoft Frontpage 1 23rd May 2006 02:05 AM
Clicking submit button causes page not found, no matter configur =?Utf-8?B?SmVycnlGcm9tR2VuZXZh?= Microsoft Frontpage 2 9th Feb 2006 09:09 PM
submit button Creates new page? =?Utf-8?B?dGhla2F6?= Microsoft Frontpage 4 14th Aug 2004 07:14 PM
disable requiredfieldvalidator when clicking on submit button James Brett Microsoft ASP .NET 4 26th Nov 2003 01:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:16 PM.