iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I feel fairly stupid for not being able to get this working, but I'm feeling frustrated at this point.
I want my own images for the web dialog box, so I
a. Created images & put them in a subdirectory Images\Custom
b. Changed the images directory to ImagesDirectory="~/Images/"
c. Changed the preview to reference these.
I have played with what seems like a million different ways to reference the pics. They work in deploy now, but not development.
Any help is appreciated!
Below are the two relevant bits:
function wdbPreview_BeforeCreated(id, dm) { var dlg = ISGetObject(id); var wndSet = dlg.WindowSettings; var imgSet = dm.ImagesSettings; dm.UseWebResourcesForClient = true; wndSet.BorderType = "ComplexImages"; with (imgSet) { CaptionCenterActive = "../images/custom/center_active.gif"; CaptionLeftActive = "../images/custom/left_active.gif"; CaptionRightActive = "../images/custom/right_active.gif"; CloseActive = "../images/custom/close_active.gif"; CloseDown = "../images/custom/close_down.gif"; CloseInactive = "../images/custom/close_inactive.gif"; CloseOver = "../images/custom/close_over.gif"; InProgress = "../images/custom/ProgressIndicator.gif" } return true; }
<ISWebDesktop:WebDialogBox ID="wbDialog" runat="server" Height="300px" Width="520px" EnableViewState="False" ShadowColor="dimgray" ControlBoxImage="../images/Help20px.png" DialogBoxImage="Information" ImagesDirectory="~/Images/"> <WindowSettings ContentMode="UseIFrame" ControlBox="Yes" AllowResize="Yes"> <ContainerStyle BackColor="White" Font-Names="segoe ui,tahoma" Font-Size="9pt" Height="300px" Width="100%" VerticalAlign="Top"> <Padding Bottom="4px" Left="4px" Right="4px" Top="4px" /> </ContainerStyle> <WindowStyle> <Active BorderWidth="3px" Height="300px" BaseStyle="Normal" VerticalAlign="Top"> <BorderSettings> <Top Width="0px" /> </BorderSettings> </Active> <Normal BackColor="White" Font-Names="Segoe UI, Tahoma" Font-Size="9pt" BorderColor="#CCCCCC" BorderStyle="solid" Overflow="Auto" OverflowX="Auto" OverflowY="Auto" VerticalAlign="Top"> </Normal> <Over VerticalAlign="Top"> </Over> </WindowStyle> <CaptionStyle> <Active BackColor="Transparent" BaseStyle="Normal"> </Active> <Normal Font-Names="Segoe UI, Tahoma" Font-Size="10pt" Cursor="default" BackColor="Transparent"> <Padding Bottom="2px" Left="2px" Right="2px" Top="3px" /> </Normal> </CaptionStyle> <CommandButtonStyle> <Active BaseStyle="Normal" BackColor="#8A887B" ForeColor="White"> </Active> <Over BaseStyle="Normal" BackColor="#C5C2AF"> </Over> <Normal BackColor="buttonface" BorderColor="threeddarkshadow" BorderWidth="1px" BorderStyle="solid" Font-Names="Tahoma" Font-Size="8pt"> </Normal> </CommandButtonStyle> <CommandButtonDisabledStyle Font-Names="Tahoma" Font-Size="8pt" BackColor="buttonface" BorderColor="threeddarkshadow" BorderWidth="1px" BorderStyle="solid" ForeColor="Gray"> </CommandButtonDisabledStyle> </WindowSettings> <ClientSideEvents OnBeforeCreated="wdbPreview_BeforeCreated" OnClosed="wdbPreview_Closed" /> </ISWebDesktop:WebDialogBox>
Thank you,
Beryl
BTW, after I put this in I did try to set EnableWebResources
but that didn't help.
No suggestions yet?
Hello,
We are sorry for the late response due to public national mouslim holiday in our country.Followed your step by step, I can replicate the issue in here. I will report this problem to our developer team.
Regards,Handy
Happy Ramadan!
Is there any news on this problem?
Nope. I haven't received any news from our developer teams. I will let you know the update when I received any updates.
Can I know how you set your the path of your custom image? Is it from client side script? Or from properties? It would be more helpful if you can let us know your page structure.
I gave all the code in the first post ... nothing is done server side.
The problem is dlg.ImagesSettings still has an old images settings. Please try to define your image settings again in dlg.ImagesSettings and let me know if the issue still persists.
Can you please be more specific about how to do that? Thanks,
var imgSet = dm.ImagesSettings; imgSet = ~/Images/;
It still didn't work for me. I give up.
I am sorry, it is ImagesDirectory, not ImagesSettings. I also attached my simple project to show you how to configure it.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname