You need to sign in to do that
Don't have an account?
BJames
trouble with Image in scontrol
Hello,
I'm attempting to load an image into my scontrol by storing the image in my documents tab. I then get the reference to it as so... https://na1.salesforce.com/servlet/servlet.FileDownload?file=01530000000AY1V . To top it off it displays as it should within the browser via the direct URL.
However when I make that URL an <img src=""> it always comes back as "Undefined"...
Any thoughts?
Thanks,
-=Bryan
I'm attempting to load an image into my scontrol by storing the image in my documents tab. I then get the reference to it as so... https://na1.salesforce.com/servlet/servlet.FileDownload?file=01530000000AY1V . To top it off it displays as it should within the browser via the direct URL.
However when I make that URL an <img src=""> it always comes back as "Undefined"...
Any thoughts?
Thanks,
-=Bryan
Bryan,
Two thoughts - First is the image marked as externally available in the docs tab? Second - How are you creating the image reference? Are you using a calculated field?
Pat
One of my image references looks like this, if it helps:
https://na1.salesforce.com/servlet/servlet.ImageServer?oid=00D3000000002jy&id=01530000000Epuu
-Zach
For example you are storing the image in the doc's tab and referencing it with 'https://na1.salesforce.com/servlet/servlet.ImageServer?oid=00D3000000002jy&id=01530000000Ep'.
Take the https://na1.salesforce.com off and only use
'/servlet/servlet.ImageServer?oid=00D3000000002jy&id=01530000000Ep'.
That way if we ever change the name of our hosts your sControl will not break.
This logic can be used for all references into SFDC.
MikeF