Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javaScript and SubPages

Status
Not open for further replies.

KirkKelly

Programmer
Jan 5, 2001
15
0
0
US
The javascript is used on a sub-page:

var browser = navigator.appName;
method rowOver(whichRow)
{
if (browser == "Microsoft Internet Explorer")
{
whichRow.style.background="#EFE48E";
}
}
method rowOut(whichRow)
{
if (browser == "Microsoft Internet Explorer")
{
whichRow.style.background="";
}
}


And then the following code is in the dataview's rowGenerateBegin:

AgpTag row = (AgpTag) evt.getArgument();
row.setProperty("onMouseOver","Page.rowOver(this)");
row.setProperty("onMouseOut","Page.rowOut(this)");


This combination highlight each row of the Dataview when the user moves the mouse over it. It works great on a stand alone page, but
not when that page becomes a sub-page.

Anybody have any clues what I need to do to make it work if it is a subpage?

Thanks in advance
Kirk
 
I think you can make a reference to a "silverstream" subpage using the javascript notation :

row.setProperty("onMouseOver","Page.agSubPageName.rowOver(this)");

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top