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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp text not rendered in javascript function call

Status
Not open for further replies.

ringadeal

Technical User
Jan 16, 2008
67
US
THE FOLLOWING JAVASCRIPT FUNCTION RENDERS PROPERLY FOR ALL IMAGES OF A RECORSET EXCEPT FOR THE FIRST ONE.

Code:
<a href="javascript:;" onclick="MM_openBrWindow('/large_image.asp?url_image=images/portable_stage.jpg','imagewindow','width=600,height=600')"><img  src="imagescript.asp?path=images/portable_stage.jpg&Width=250" name="largeimage" border="0" id="largeimage"  alt=""/></a>
FOLLOWING CODE BLOCK ILLUSTRATES HOW THE ASP TEXT IS NOT RENDERED IN THE FUCTION CALL CODE OF FIRST IMAGE AS IT IS MISSING. NOTE HOW TEXT IS NOT MISSING BY ALL OTHER IMAGES :
Code:
<a href= "javascript:;" >
  <img src="imagescript.asp?path=images/portable_stage.jpg&width=36" border="0" onmouseover="showBigImage( 'imagescript.asp?path=images/portable_stage.jpg&Width=250','images/portable_stage.jpg','' )"  alt="" class="small_img" /></a>



<a href= "javascript:;" >
  <img src="imagescript.asp?path=images/seated_riserset.jpg&width=36" border="0" onmouseover="showBigImage( 'imagescript.asp?path=images/seated_riserset.jpg&Width=250','images/seated_riserset.jpg','Portable stage configuration using 9 units of the 3 ft x 8 ft platforms in 3 different heights' )"  alt="" class="small_img" /></a>



<a href= "javascript:;" >
  <img src="imagescript.asp?path=images/Stageset.jpg&width=36" border="0" onmouseover="showBigImage( 'imagescript.asp?path=images/Stageset.jpg&Width=250','images/Stageset.jpg','Portable stage configuration using 16 units of the 4 ft x 8 ft platforms' )"  alt="" class="small_img" /></a>

HEAD SECTION CODE:
Code:
var currentImage;
function showBigImage( isource,bigImage,header ) {
var theImage = document.getElementById( 'largeimage' );
theImage.src = isource;
currentImage = bigImage;
document.getElementById('photoHeader').innerHTML=header;
document.getElementById( 'largeimage' ).alt=header;

}

PAGE EXAMPLE OF DISCUSSION CAN BE VIEWED AT:

What is causing this to happen?
 
Is this really a question for the JavaScript forum? If your ASP code isn't being output, then this should probably be taken to the ASP forum, as it's not JavaScript that is writing the code to the page.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top