|
| Popup changes in CS2.1 |
 |
Tue, 26 Sep 2006 03:57:03 +000 |
Hi all,
I just started to learn CS ,
I have to change the popup style to the new one which can move and resize, how
can I do it ?
please help.
Best regs,
Kate
|
| Post Reply
|
| Re: Popup changes in CS2.1 |
 |
Tue, 26 Sep 2006 04:07:34 +000 |
the old one I use showPopWin for example
protected string BuildQuickReplyScript()
{
ForumUrls forumUrls = new ForumUrls();
string ReportLinkUrl = forumUrls.Report(reportForum.SectionID) +
"&ReportPostID=" + post.PostID.ToString();
StringBuilder sb = new StringBuilder();
sb.AppendFormat(@"<script
type=""text/javascript"">",
Environment.NewLine);
sb.AppendFormat(@"function showReport() {{",
Environment.NewLine);
sb.AppendFormat(@" showPopWin('',,,reLoadPage);
", ReportLinkUrl, 750, 750, Environment.NewLine);
sb.AppendFormat(@"}}", Environment.NewLine);
sb.Append("function reLoadPage(shouldRefresh){
if(shouldRefresh){refresh();}}");
sb.Append(Environment.NewLine);
sb.AppendFormat(@"</script>",
Environment.NewLine);
return sb.ToString();
}
and I have to add the new javascript in my code ?
please guide me...
|
| Post Reply
|
| Re: Popup changes in CS2.1 |
 |
Tue, 26 Sep 2006 04:21:02 +000 |
Wow I found it the new one code like this
protected string BuildQuickReplyScript()
{
string url = ForumUrls.Instance().QuickReply;
StringBuilder sb = new StringBuilder();
sb.AppendFormat(@"<script
type=""text/javascript"">",
Environment.NewLine);
sb.AppendFormat(@"function showQuickReply(postID) {{",
Environment.NewLine);
sb.AppendFormat(@"
Telligent_Modal.Open(''+postID,,,reLoadPage); ", url,600,400,
Environment.NewLine);
sb.AppendFormat(@"}}", Environment.NewLine);
sb.Append("function reLoadPage(shouldRefresh){
if(shouldRefresh){refresh();}}");
sb.Append(Environment.NewLine);
sb.AppendFormat(@"</script>",
Environment.NewLine);
return sb.ToString();
}
but where is the location of this javascript ?
can anybody hekp me?
or Can I copy this javascript to my project ?
Thanks please help ...
|
| Post Reply
|
| Re: Popup changes in CS2.1 |
 |
Tue, 26 Sep 2006 07:19:43 +000 |
Telligent_Modal.Open
when I used this javascript I got this error
"Telligent_Modal is undefined"
what 's more I have to do ?
please help
**I copied Telligent_Modal.js to my cs\WebSite\Utility\.
Thanks, Kate
|
| Post Reply
|
| Re: Popup changes in CS2.1 |
 |
Wed, 27 Sep 2006 15:56:12 +000 |
yes!!! I have to add telligent_modal.js in folder 1_0_3 which this folder
contain in utility folder
then I have to add the tag <TWC:Modal...> instead of <CS:Modal..> in
the master page.
Wow I have solution
Thanks all,
Kate
|
| Post Reply
|
|
|
|
|
|
|
|
|
|