This is a migrated thread and some comments may be shown as answers.

[Solved] Close and maximise buttons not working

6 Answers 46 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steve
Top achievements
Rank 1
Steve asked on 12 Jan 2011, 01:53 PM
Hi,

I've got a window working perfect on my dev machine, but when I release to live (IIS7) box, the close and maximise buttons dont work.
All that happens is a # is appended to the url, but nothing else.  They don't have the hover effect on them either.

Everything else works fine.

Any ideas?

THx

6 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 12 Jan 2011, 02:59 PM
Hi Steve,

 The JavaScript files probably failed to load. If you are using script combination the asset.axd HTTP handler may not be properly registered for IIS7. To verify the configuration check this help article.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Steve
Top achievements
Rank 1
answered on 12 Jan 2011, 04:57 PM
I do this ... which works in Dev.
I've also noticed that none of the functionality on the tEditor works either - so I guess you are right, but not sure how i amend the below to sort it.
However where I am showing a tWindow from js and closing it with a different button in the window - the animations do work.

@Html.Telerik().StyleSheetRegistrar().DefaultGroup(g => g.Add("telerik.common.css").Add("telerik.webblue.css"))


@Html.Telerik().ScriptRegistrar().jQuery(false).DefaultGroup(g => g.Combined(true).Compress(true))
0
Steve
Top achievements
Rank 1
answered on 12 Jan 2011, 05:20 PM
Doing a "View Source" i get this added...

The link asset.axd etc etc does work and is a javascript file (i clicked through and viewed it).

<script type="text/javascript" src="/OCCards/asset.axd?id=HQEAAB-LCAAAAAAABADsvQdgHEmWJSYvbcp7f0r1StfgdKEIgGATJNiQQBDswYjN5pLsHWlHIymrKoHKZVZlXWYWQMztnbz33nvvvffee--997o7nU4n99__P1xmZAFs9s5K2smeIYCqyB8_fnwfPyJ-8Uezjx597xd_tPro0Uevp3WxapuPRh-d82dL-qzNy7wu3o6n1WJRLcc_jW-rjx7t_JJR-P2szi6y5WxWVyvbaLfb6KpYzqor-_1e9_uyaFr77b3ut4TCpJpU72yL_W6LfFa0VW2_v_9Lvv9Lvj_6aNpyk3ft3Z_OLrOGB0kNLunTvZ3dnfG98e7u7g59MiVS3Pv0Pv3y0aO2Xue_5P8JAAD__1jGsrodAQAA"></script>
 
<script type="text/javascript">
 
//<![CDATA[
 
jQuery(document).ready(function(){
 
jQuery('#EditTextWindow').tWindow({modal:true, draggable:true, resizable:false});
 
jQuery('#TopicBody').tEditor({localization:{"bold":"Bold","createLink":"Insert hyperlink","fontName":"Select font family","fontNameInherit":"(inherited font)","fontSize":"Select font size","fontSizeInherit":"(inherited size)","formatBlock":"Select block type","indent":"Indent","insertHtml":"Insert HTML","insertImage":"Insert image","insertOrderedList":"Insert ordered list","insertUnorderedList":"Insert unordered list","italic":"Italic","justifyCenter":"Center text","justifyFull":"Justify","justifyLeft":"Align text left","justifyRight":"Align text right","outdent":"Outdent","strikethrough":"Strikethrough","style":"Styles","underline":"Underline","unlink":"Remove hyperlink"}});});
 
//]]>
 
</script>
0
Steve
Top achievements
Rank 1
answered on 13 Jan 2011, 11:42 AM
I have now found that if I remove 
.jQuery(false)

from
@Html.Telerik().ScriptRegistrar().jQuery(false).DefaultGroup(g => g.Combined(true).Compress(true))

then it works, but of course the rest of my custom jQuery code on the page DOESN'T work.

I would appreciate some help with this.





0
Atanas Korchev
Telerik team
answered on 13 Jan 2011, 12:55 PM
Hello Steve,

 jQuery(false) disables the registration of the jQuery JavaScript file. You must include it by yourself if you do this. Also make sure you are using at least jQuery 1.4.3 as this is the version Telerik Extensions are built against.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Steve
Top achievements
Rank 1
answered on 13 Jan 2011, 01:03 PM
Right, I got a solution.

I removed .jQuery(false).

Everything, including my custom jQuery worked, EXCEPT the jQuery UI stuff (yes the reference is added).

So I did this

@Html.Telerik().ScriptRegistrar().Scripts(s => s.Add("~/Scripts/jquery-ui-1.8.6.custom.min.js")).DefaultGroup(g => g.Combined(true).Compress(true))

and it worked!
Tags
Window
Asked by
Steve
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Steve
Top achievements
Rank 1
Share this question
or