
September 30th, 2004, 05:59 PM
|
|
Registered User
|
|
Join Date: Oct 2003
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
HTML is showing up as text in certain parts of site
this is a weird problem. i have a php page that is echoing some HTML and javascript. there are several features on the page that work fine, except one. I have an image on the page, and when you click it it is supposed to open up a pop up with the larger version. for some reason when the page is first loaded, instead of making the proper link it displays half of the link tag as text above the image. everything else looks normal. when i refresh, the text goes away and the link works. it always requires a refresh though. i dont; udnerstand what is causeing this. let me show you my code, and an example of what happens....
here is the link code:
Quote: <center>
<a href="javascript: cur_img = document.imageplace.src; imgwin = window.open('','','toolbar=0,status=0,location=0,directories=0'); imgwin.document.write('<body bgcolor=0D3159><a href=\'javascript: window.close();\' noborder><img src=\''+cur_img+'\' name=\'fullimage\'></a><script>window.resizeTo(fullimage.width+40,fullimage.height+80);</script></body>');" onmouseover="javascript: window.status='Click here to see full sized image'; return true;" onmouseout="javascript: window.status=''; return true;">
<img src="$config[listings_view_images_path]/$file_name" height="$height" width="$width" name="imageplace" align="middle" vspace="4">
</a>
</center> |
keep in mind that this is being echoed in PHP. I stripped the \"
escape characters so its easier to read.
now, this is what i see on the first load...
Quote: (top part of my page)
(some random link with no image to display)
');" onmouseover="javascript: window.status='Click here to see full sized image'; return true;" onmouseout="javascript: window.status=''; return true;">
(my image and the rest of the page) |
on a refresh, the problem disapears. what is causeing this? i am totally stumped.
|