PC Review


Reply
Thread Tools Rate Thread

click image in web

 
 
geebee
Guest
Posts: n/a
 
      17th Sep 2008
hi,

i already have vba to navigate to a web page. i just need some code to
click on an image in the web page. i checked thhe source of the html, and it
looks like:

<td><table id="Menu_4_i0" onmouseout="Menu.Out(this);" width="100%"
rmCss="MenuItem" rmLab="View Reports" class="MenuItem"
onmouseover="Menu.Over(this);" cellspacing="0" rmCssOver="MenuItemOver"
cellpadding="0">
<tr onclick="goTo('/Reports/ReportList.asp', '')">
<td width="26"><img src="/Shared/Images/Icons/smallIcon_View.gif"></td>
<td nowrap class="MenuItem">View Reports</td>


so i am trying to figure out how i can use vba to click on the view reports
image or item.

thanks in advance,
geebee

 
Reply With Quote
 
 
 
 
Madiya
Guest
Posts: n/a
 
      17th Sep 2008
On Sep 17, 6:32*am, geebee <geraldj...@hotmail.com(noSPAMs)> wrote:
> hi,
>
> i already have vba to navigate to a web page. *i just need some code to
> click on an image in the web page. *i checked thhe source of the html, and it
> looks like:
>
> <td><table id="Menu_4_i0" onmouseout="Menu.Out(this);" width="100%"
> rmCss="MenuItem" rmLab="View Reports" class="MenuItem"
> onmouseover="Menu.Over(this);" cellspacing="0" rmCssOver="MenuItemOver"
> cellpadding="0">
> * * * * * * * * * * * * <tr onclick="goTo('/Reports/ReportList.asp', '')">
> * * * * * * * * * * * * * * * * <td width="26"><img src="/Shared/Images/Icons/smallIcon_View.gif"></td>
> * * * * * * * * * * * * * * * * <td nowrap class="MenuItem">View Reports</td>
>
> so i am trying to figure out how i can use vba to click on the view reports
> image or item.
>
> thanks in advance,
> geebee


You can use navigate with path in following line
<tr onclick="goTo('/Reports/ReportList.asp', '')">
along with parent url.

Regards,
Madiya
 
Reply With Quote
 
geebee
Guest
Posts: n/a
 
      17th Sep 2008
hi,

i tried:
....
myURL2 = "https://site.com/Reports/ReportList.asp"
myIE.navigate myURL2

but it doesnt work. just goes back to the login screen with username and
password cleared out.

any ideas? is this what you meant?

thanks in advance,
geebee


"Madiya" wrote:

> On Sep 17, 6:32 am, geebee <geraldj...@hotmail.com(noSPAMs)> wrote:
> > hi,
> >
> > i already have vba to navigate to a web page. i just need some code to
> > click on an image in the web page. i checked thhe source of the html, and it
> > looks like:
> >
> > <td><table id="Menu_4_i0" onmouseout="Menu.Out(this);" width="100%"
> > rmCss="MenuItem" rmLab="View Reports" class="MenuItem"
> > onmouseover="Menu.Over(this);" cellspacing="0" rmCssOver="MenuItemOver"
> > cellpadding="0">
> > <tr onclick="goTo('/Reports/ReportList.asp', '')">
> > <td width="26"><img src="/Shared/Images/Icons/smallIcon_View.gif"></td>
> > <td nowrap class="MenuItem">View Reports</td>
> >
> > so i am trying to figure out how i can use vba to click on the view reports
> > image or item.
> >
> > thanks in advance,
> > geebee

>
> You can use navigate with path in following line
> <tr onclick="goTo('/Reports/ReportList.asp', '')">
> along with parent url.
>
> Regards,
> Madiya
>

 
Reply With Quote
 
Madiya
Guest
Posts: n/a
 
      4th Oct 2008
On Sep 17, 5:40*pm, geebee <geraldj...@hotmail.com(noSPAMs)> wrote:
> hi,
>
> i tried:
> ...
> myURL2 = "https://site.com/Reports/ReportList.asp"
> myIE.navigate myURL2
>
> but it doesnt work. *just goes back to the login screen with username and
> password cleared out.
>
> any ideas? *is this what you meant?
>
> thanks in advance,
> geebee
>
>
>
> "Madiya" wrote:
> > On Sep 17, 6:32 am, geebee <geraldj...@hotmail.com(noSPAMs)> wrote:
> > > hi,

>
> > > i already have vba to navigate to a web page. *i just need some code to
> > > click on an image in the web page. *i checked thhe source of the html, and it
> > > looks like:

>
> > > <td><table id="Menu_4_i0" onmouseout="Menu.Out(this);" width="100%"
> > > rmCss="MenuItem" rmLab="View Reports" class="MenuItem"
> > > onmouseover="Menu.Over(this);" cellspacing="0" rmCssOver="MenuItemOver"
> > > cellpadding="0">
> > > * * * * * * * * * * * * <tr onclick="goTo('/Reports/ReportList.asp', '')">
> > > * * * * * * * * * * * * * * * * <td width="26"><img src="/Shared/Images/Icons/smallIcon_View.gif"></td>
> > > * * * * * * * * * * * * * * * * <td nowrap class="MenuItem">View Reports</td>

>
> > > so i am trying to figure out how i can use vba to click on the view reports
> > > image or item.

>
> > > thanks in advance,
> > > geebee

>
> > You can use navigate with path in following line
> > <tr onclick="goTo('/Reports/ReportList.asp', '')">
> > along with parent url.

>
> > Regards,
> >Madiya- Hide quoted text -

>
> - Show quoted text -


Check html source on login screen.
with help of elements on login screen, enter username and password and
then try to go to myURL2

Regards,
madiya
 
Reply With Quote
 
Madiya
Guest
Posts: n/a
 
      4th Oct 2008
On Sep 17, 5:40*pm, geebee <geraldj...@hotmail.com(noSPAMs)> wrote:
> hi,
>
> i tried:
> ...
> myURL2 = "https://site.com/Reports/ReportList.asp"
> myIE.navigate myURL2
>
> but it doesnt work. *just goes back to the login screen with username and
> password cleared out.
>
> any ideas? *is this what you meant?
>
> thanks in advance,
> geebee
>
>
>
> "Madiya" wrote:
> > On Sep 17, 6:32 am, geebee <geraldj...@hotmail.com(noSPAMs)> wrote:
> > > hi,

>
> > > i already have vba to navigate to a web page. *i just need some code to
> > > click on an image in the web page. *i checked thhe source of the html, and it
> > > looks like:

>
> > > <td><table id="Menu_4_i0" onmouseout="Menu.Out(this);" width="100%"
> > > rmCss="MenuItem" rmLab="View Reports" class="MenuItem"
> > > onmouseover="Menu.Over(this);" cellspacing="0" rmCssOver="MenuItemOver"
> > > cellpadding="0">
> > > * * * * * * * * * * * * <tr onclick="goTo('/Reports/ReportList.asp', '')">
> > > * * * * * * * * * * * * * * * * <td width="26"><img src="/Shared/Images/Icons/smallIcon_View.gif"></td>
> > > * * * * * * * * * * * * * * * * <td nowrap class="MenuItem">View Reports</td>

>
> > > so i am trying to figure out how i can use vba to click on the view reports
> > > image or item.

>
> > > thanks in advance,
> > > geebee

>
> > You can use navigate with path in following line
> > <tr onclick="goTo('/Reports/ReportList.asp', '')">
> > along with parent url.

>
> > Regards,
> >Madiya- Hide quoted text -

>
> - Show quoted text -


Also try to paste your url in browser and see if it works.
If you can not locate login elements in html source, post the source
here.
Regards,
Madiya.
 
Reply With Quote
 
geebee
Guest
Posts: n/a
 
      6th Oct 2008
hi,

ok i have another idea... i have the following:

Function IsValidUrl(ByVal URL As String) As Boolean
IsValidUrl = URL Like "(http|ftp|https)://([\w-]+\.)+(/[\w- ./?%&=]*)?"
End Function


Sub YY()
MsgBox IsValidUrl("http://www.microsoft.com/en/us/default.aspx")
End Sub

but not sure how to get it to work... the msgbox is returning false... any
ideas?

thanks in advance,
geebee


"Madiya" wrote:

> On Sep 17, 5:40 pm, geebee <geraldj...@hotmail.com(noSPAMs)> wrote:
> > hi,
> >
> > i tried:
> > ...
> > myURL2 = "https://site.com/Reports/ReportList.asp"
> > myIE.navigate myURL2
> >
> > but it doesnt work. just goes back to the login screen with username and
> > password cleared out.
> >
> > any ideas? is this what you meant?
> >
> > thanks in advance,
> > geebee
> >
> >
> >
> > "Madiya" wrote:
> > > On Sep 17, 6:32 am, geebee <geraldj...@hotmail.com(noSPAMs)> wrote:
> > > > hi,

> >
> > > > i already have vba to navigate to a web page. i just need some code to
> > > > click on an image in the web page. i checked thhe source of the html, and it
> > > > looks like:

> >
> > > > <td><table id="Menu_4_i0" onmouseout="Menu.Out(this);" width="100%"
> > > > rmCss="MenuItem" rmLab="View Reports" class="MenuItem"
> > > > onmouseover="Menu.Over(this);" cellspacing="0" rmCssOver="MenuItemOver"
> > > > cellpadding="0">
> > > > <tr onclick="goTo('/Reports/ReportList.asp', '')">
> > > > <td width="26"><img src="/Shared/Images/Icons/smallIcon_View.gif"></td>
> > > > <td nowrap class="MenuItem">View Reports</td>

> >
> > > > so i am trying to figure out how i can use vba to click on the view reports
> > > > image or item.

> >
> > > > thanks in advance,
> > > > geebee

> >
> > > You can use navigate with path in following line
> > > <tr onclick="goTo('/Reports/ReportList.asp', '')">
> > > along with parent url.

> >
> > > Regards,
> > >Madiya- Hide quoted text -

> >
> > - Show quoted text -

>
> Also try to paste your url in browser and see if it works.
> If you can not locate login elements in html source, post the source
> here.
> Regards,
> Madiya.
>

 
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
Right Click on an Image =?Utf-8?B?VG9t?= Windows XP Internet Explorer 3 1st Jun 2006 11:14 AM
ImageButton Click vs Image Click =?Utf-8?B?c2FraWVib3k=?= Microsoft Dot NET 0 30th Jun 2005 09:01 PM
How to insert the image into the richtextbox control and catch the mouse click event of that image. Sakharam Phapale Microsoft VB .NET 1 1st Mar 2005 12:21 PM
How to insert the image into the richtextbox control and catch the mouse click event of that image. Sakharam Phapale Microsoft C# .NET 0 1st Mar 2005 10:05 AM
Image Click =?Utf-8?B?a2FtYWw=?= Microsoft Dot NET Compact Framework 3 29th Apr 2004 06:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:31 AM.