This topic is locked

DISPLAY IMAGE ON EDIT PAGE BASED ON DATABASE FIELD and AJAX BOX

8/24/2010 11:46:20 AM
ASPRunnerPro General questions
W
webwork author

ASP RUNNER pro 6.2, WIN 2003 SERVER, ms sql 2000, IIS
Ok, I want to be able to display an image on the EDIT PAGE that refers to a field in the current edited record.
for example:
<img border="0" src="/IMAGESERVER/images/" [FIELD_NAME] ".jpg" width="320" height="212">
Any suggestions?
Also is there any way to make the AJAX dropdown box wider when it drops down upon entering values?
Thank you in advance..

A
ann 9/1/2010

Hi,
create a snippet on the Visual Editor tab.

Here is a sample code for it:

Response.Write "<img border=""0"" src=""/IMAGESERVER/images/FieldName.jpg"" width=""320"" height=""212"">
W
webwork author 9/6/2010

Ann, I used xt.assign to get this one working. I do not think your solution would make it.

I still need the AJAX dropdown box width info though.
Example xt.assign
xt.assign "custom_link"," <a href=""http://www.yourwebsite.com/"&'>http://www.yourwebsite.com/"&; data("ONEFIELD_NAME") & "/"& data("PHOTO_NAME") & ".jpg""><img alt=""my great image"" src=""http://www.yourwebsite.com/"&'>http://www.yourwebsite.com/"&; data("ONEFIELD_NAME") & "/"& data("PHOTO_NAME") & ".jpg';"" >"