HTML Link from OWC Chart?

B

Bob

Using Win2K and OWC 10 ...

I have developed a page that creates a bunch of charts (dynamic based on
query results) The charts display nicely left to right and down the page - I
couldn't be happier ...

Well I could. Now I would like each chart on the page to be a link to a new
page containing only that chart - this would allow the user to go from an
overall view to a particular view. The code below is nested in a loop and
shows the appropriate link in the status bar but left clicking does nothing,
and right clicking indicates nothing regarding a target.

Here's the code:

<a href="./Metrics.asp?Selection=<%=sGraph%>" shape=default>
<object id="<%=sObject%>" classid="<%=sClassID%>" style="<%=sStyle%>">
</object>
</a>

If I add text all works well, but it really hoses up my layout.
 
A

Alvin Bruney [MVP]

One approach is to use the onclick event for the selected chart. First find
the name of the chart, then redirect to another page where you can recreate
the contents of the chart for re-display

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
 
B

Bob

That didn't do it for me. I tried adding an onclick to the object, but I
think the control swallowed it. To test, I created a little function to pop
up an alert box and tied it to various events. The only ones that seemed to
respond were onMouseOver and onMouseMove.

I tried wrapping the object in a label but that didn't seem to ahve any
effect.
I also tried wrapping the objects in a table, but the OWC disappeared
completely - apparently this was not a good idea.

Am still open to suggestions.

Alvin Bruney said:
One approach is to use the onclick event for the selected chart. First find
the name of the chart, then redirect to another page where you can recreate
the contents of the chart for re-display

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
----------------------------------------------------------


Bob said:
Using Win2K and OWC 10 ...

I have developed a page that creates a bunch of charts (dynamic based on
query results) The charts display nicely left to right and down the
page - I
couldn't be happier ...

Well I could. Now I would like each chart on the page to be a link to a
new
page containing only that chart - this would allow the user to go from an
overall view to a particular view. The code below is nested in a loop and
shows the appropriate link in the status bar but left clicking does
nothing,
and right clicking indicates nothing regarding a target.

Here's the code:

<a href="./Metrics.asp?Selection=<%=sGraph%>" shape=default>
<object id="<%=sObject%>" classid="<%=sClassID%>" style="<%=sStyle%>">
</object>
</a>

If I add text all works well, but it really hoses up my layout.
 
A

Alvin Bruney [Microsoft MVP]

how are u hooking the events? they require special code.

--
Regards
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
--------------------------------------------------


Bob said:
That didn't do it for me. I tried adding an onclick to the object, but I
think the control swallowed it. To test, I created a little function to
pop
up an alert box and tied it to various events. The only ones that seemed
to
respond were onMouseOver and onMouseMove.

I tried wrapping the object in a label but that didn't seem to ahve any
effect.
I also tried wrapping the objects in a table, but the OWC disappeared
completely - apparently this was not a good idea.

Am still open to suggestions.

Alvin Bruney said:
One approach is to use the onclick event for the selected chart. First
find
the name of the chart, then redirect to another page where you can
recreate
the contents of the chart for re-display

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
----------------------------------------------------------


Bob said:
Using Win2K and OWC 10 ...

I have developed a page that creates a bunch of charts (dynamic based
on
query results) The charts display nicely left to right and down the
page - I
couldn't be happier ...

Well I could. Now I would like each chart on the page to be a link to
a
new
page containing only that chart - this would allow the user to go from
an
overall view to a particular view. The code below is nested in a loop
and
shows the appropriate link in the status bar but left clicking does
nothing,
and right clicking indicates nothing regarding a target.

Here's the code:

<a href="./Metrics.asp?Selection=<%=sGraph%>" shape=default>
<object id="<%=sObject%>" classid="<%=sClassID%>" style="<%=sStyle%>">
</object>
</a>

If I add text all works well, but it really hoses up my layout.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top