CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Dynamically change image source

Print topic Send  topic

Author Message
smalloy

Posts: 107
Posted: 11/18/2004, 11:42 AM

Is there any way using ASP to change an image src?

I looked around and noted a javascript "setAttribute" but can't figure out a way with ASP. The purpose is to change the menu to show a diffent color button if on that page.

My current work around is to lay one on top of the other and set the visible = true to turn on and off the buttons.

Any idea's?
_________________
Anything can be done, just give me time and money.
View profile  Send private message
mrachow


Posts: 509
Posted: 11/18/2004, 11:55 AM

On tab HTML you can enter
src="{changingPath}"
and in event BeforeShow
EventCaller.TemplateBlock.Variable("changingPath") = "[yourActualPath]"

Maybe you would like to have some if else there.

Regards,
Michael


_________________
Best regards,
Michael
View profile  Send private message
smalloy

Posts: 107
Posted: 11/18/2004, 12:09 PM

Wow, worked like a charm!!!! Looked at CC's Working with Custom Template Blocks and learned a lot.

THANK YOU!!!!!!
_________________
Anything can be done, just give me time and money.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.