or
function
openRadWindow(url, title, width, height) {
var
oManager = GetRadWindowManager();
oWnd = oManager.open(url,
null
);
oWnd.set_title(title);
oWnd.setSize(width, height);
oWnd.center();
Uncaught TypeError: Cannot call method
'get_imageUrl'
of undefined RadLightBoxScripts.js:270
c.RadLightBox._determineContentMode RadLightBoxScripts.js:270
c.RadLightBox._showLightBoxStructure RadLightBoxScripts.js:138
(anonymous
function
) RadLightBoxScripts.js:291
b.isFunction.i jQuery.js:3
r.complete jQuery.js:5
c jQuery.js:3
p.fireWith jQuery.js:3
u jQuery.js:5
b.fx.tick
Dim
lightBoxItem
As
New
RadLightBoxItem
lightBoxItem.TargetControlID =
"MainImage"
lightBoxItem.ImageUrl = LinkHelpers.GetProfilePath(profile.ProfileId) & profile.ImagePath
Dim
profileImagesLightBox
As
RadLightBox =
DirectCast
(EvaForm.FindControl(
"ProfileImagesLightbox"
), RadLightBox)
profileImagesLightBox.Items.Add(lightBoxItem)
<
fieldset
>
<
legend
>5. Foto</
legend
>
<
dl
class
=
"dl-horizontal"
>
<
dt
><%#: If(Not String.IsNullOrWhiteSpace(Item.ImageDescription), Item.ImageDescription, "Foto") %></
dt
>
<
dd
>
<
div
class
=
"profile-photo"
>
<
asp:PlaceHolder
runat
=
"server"
Visible='<%# Not (String.IsNullOrWhiteSpace(Item.ImagePath)) %>'>
<
asp:image
runat
=
"server"
ID
=
"MainImage"
ImageUrl='<%# LinkHelpers.GetProfilePath(Item.ProfileId) & "t2-" & Item.ImagePath %>' CssClass="img-polaroid" />
</
asp:PlaceHolder
>
</
div
>
</
dd
>
</
dl
>
<
dl
class
=
"dl-horizontal"
>
<
dt
>Altre foto</
dt
>
<
dd
>
<
telerik:RadLightBox
ID
=
"ProfileImagesLightbox"
runat
=
"server"
DataImageUrlField
=
"ImagePath"
Modal
=
"true"
AppendDataBoundItems
=
"true"
TabIndex
=
"101"
>
<
ClientSettings
AllowKeyboardNavigation
=
"true"
NavigationMode
=
"Zone"
>
<
AnimationSettings
HideAnimation
=
"None"
NextAnimation
=
"Resize"
PrevAnimation
=
"Resize"
ShowAnimation
=
"Resize"
/>
</
ClientSettings
>
</
telerik:RadLightBox
>
<
asp:Repeater
runat
=
"server"
ID
=
"ProfileImages"
ItemType
=
"Eva.Entities.EvaProfileImage"
>
<
ItemTemplate
>
<
a
href="<%# LinkHelpers.GetProfilePath(Item.ProfileId) & Item.ImagePath%>" onclick="return false;"><
img
style
=
"display: inline;"
onclick="OpenRadLigthBox(<%# Container.ItemIndex %>, '<%= EvaForm.FindControl("ProfileImagesLightbox").ClientID %>');
return false;" class="media-object img-polaroid" src='<%# LinkHelpers.GetProfilePath(Item.ProfileId) & "t1-" & Item.ImagePath%>' /></
a
>
</
ItemTemplate
>
</
asp:Repeater
>
</
dd
>
</
dl
>
</
fieldset
>
<
telerik:RadEditor
runat
=
"server"
ID
=
"RadEditor1"
Height
=
"515"
Width
=
"100%"
Visible
=
"True"
EnableViewState
=
"False"
ContentFilters
=
"ConvertToXhtml, RemoveScripts,FixUlBoldItalic, IECleanAnchors, FixEnclosingP, MozEmStrong,IndentHTMLContent, OptimizeSpans"
>
</
telerik:RadEditor
>
ClientScript.RegisterStartupScript(Page.GetType(),
"mykey", "ToggleRadcomboBox();", true);
The javascript is as follow