Hi,
I am using the RadWindow/radprompt client side function with the following code;
In Firefox and Opera everything behaves as expected but in IE8 the prompt textbox is pre-filled with the value type=text. I am guessing this is from an <input type=text tag or something, perhaps a javascript declaration.
Has anybody else encountered this problem?
Thanks!
I am using the RadWindow/radprompt client side function with the following code;
radprompt(Sometext.', myCallback, 350, 150, null, 'Header', ''); |
In Firefox and Opera everything behaves as expected but in IE8 the prompt textbox is pre-filled with the value type=text. I am guessing this is from an <input type=text tag or something, perhaps a javascript declaration.
Has anybody else encountered this problem?
Thanks!
10 Answers, 1 is accepted
0
Olexander Tsvirchkov
Top achievements
Rank 1
answered on 10 Feb 2010, 11:22 AM
Hi Guys,
We have the same problem in IE8. Does anybody know how to fix this problem? Pls see the attached image.
We have the same problem in IE8. Does anybody know how to fix this problem? Pls see the attached image.
0
Olexander Tsvirchkov
Top achievements
Rank 1
answered on 11 Feb 2010, 08:46 AM
I failed to fix the problem as it is control related bug. However I found a workarond to add " " as default value. Pls try this
radprompt(Sometext.', myCallback, 350, 150, null, 'Header', ' '); |
0
Mirac
Top achievements
Rank 1
answered on 11 Feb 2010, 09:02 AM
Adding as the default value made appear in the text box. My solution for now is adding a space ' ' as the default value. The space also appears, but isn't as bad as the other alternatives...
0
Olexander Tsvirchkov
Top achievements
Rank 1
answered on 11 Feb 2010, 09:05 AM
On my side " " does not appear in the prompt and looks well. Thanks for help I'll try to use simple space ' ' :)
0
Olexander Tsvirchkov
Top achievements
Rank 1
answered on 11 Feb 2010, 09:08 AM
FYI: when I use simple space ' ' the same problem still presents. Only has helped me.
0
Mirac
Top achievements
Rank 1
answered on 11 Feb 2010, 09:50 AM
OK, what I did was to copy the prompt-template from the documentation and edit the following line:
I removed the value="{2}" attribute (since I do not want a default value) and everything appears to work the way I want it to.
<input onkeydown="return RadWindowprompt_detectenter('{0}', event, this);" type="text" class="rwDialogInput" value="{2}" /> |
I removed the value="{2}" attribute (since I do not want a default value) and everything appears to work the way I want it to.
0
don
Top achievements
Rank 1
answered on 13 Feb 2010, 03:14 PM
Mirac,
Thanks. That fixed it for us.
Don
0
lalbahadur
Top achievements
Rank 1
answered on 10 Jun 2010, 03:44 PM
I am using radprompt as client side function in a common user control in turn being used in master page with following code:
radprompt('Why are you sending this report back to the creator?', promptCallBackFnSendCreator);
function
promptCallBackFnSendCreator(arg)
{
if (arg!='<cancelhit>')
{
<%= RadAjaxToCreator.ClientID %>.AjaxRequest(arg);
}
}
This radprompt is being called on clicking on a tab (Radstriptab control) but It is creating an issue as in attached screenshot.
It is not working on one page except other pages. Please give me any solution.
0
Hello,
This is very strange behavior and I can't tell you for sure what is causing it. I tested the following code -which is similar to yours - under IE8 and everything works fine.
Please send us source code or live url, which will help us to reproduce the problem locally. Once we receive it, we will do our best to help you.
Best wishes,
Petio Petkov
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.
This is very strange behavior and I can't tell you for sure what is causing it. I tested the following code -which is similar to yours - under IE8 and everything works fine.
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
id
=
"Head1"
runat
=
"server"
>
<
title
></
title
>
<
script
type
=
"text/javascript"
>
function show()
{
radprompt('Why are you sending this report back to the creator?', promptCallBackFnSendCreator);
}
function promptCallBackFnSendCreator(arg)
{
}
function TabSelected(obj, args)
{
show();
}
</
script
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
asp:ScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
>
</
asp:ScriptManager
>
<
div
>
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
>
</
telerik:RadWindowManager
>
<
telerik:RadTabStrip
ID
=
"RadTabStrip1"
runat
=
"server"
OnClientTabSelected
=
"TabSelected"
>
<
Tabs
>
<
telerik:RadTab
Text
=
"show prompt"
></
telerik:RadTab
>
</
Tabs
>
</
telerik:RadTabStrip
>
</
div
>
</
form
>
</
body
>
</
html
>
Best wishes,
Petio Petkov
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
Ely
Top achievements
Rank 1
answered on 14 Jul 2011, 03:25 PM
Hi Olexandr Tsvirchkov,
I have a question regarding your section menu.xslt . Would you be able to help me.
Thank you for your time,
Ely.
I have a question regarding your section menu.xslt . Would you be able to help me.
Thank you for your time,
Ely.
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<!--=============================================================
File: Section Menu.xslt
Created by: Alexander Tsvirchkov
Created: 06-05-2008 18:35:59
==============================================================-->
<
xsl:stylesheet
version
=
"1.0"
xmlns:xsl
=
"http://www.w3.org/1999/XSL/Transform"
xmlns:sc
=
"http://www.sitecore.net/sc"
xmlns:dot
=
"http://www.sitecore.net/dot"
xmlns:ext
=
"http://www.sitecore.net/"
exclude-result-prefixes
=
"dot sc ext"
>
<!-- output directives -->
<
xsl:output
method
=
"html"
indent
=
"no"
encoding
=
"UTF-8"
/>
<!-- parameters -->
<
xsl:param
name
=
"lang"
select
=
"'en'"
/>
<
xsl:param
name
=
"id"
select
=
"''"
/>
<
xsl:param
name
=
"sc_item"
/>
<
xsl:param
name
=
"sc_currentitem"
/>
<!-- If MenuRootPath is not empty it will be root for menu -->
<!-- Example: /sitecore/content/Unesco/Commission -->
<
xsl:param
name
=
"MenuRootPath"
select
=
"''"
/>
<
xsl:param
name
=
"SectionRootTemplateName"
select
=
"'!site section!file!'"
/>
<
xsl:param
name
=
"MenuItemFieldName"
select
=
"'Menu title'"
/>
<
xsl:param
name
=
"IsHideFieldName"
select
=
"'Hide Menu'"
/>
<
xsl:param
name
=
"IsNewWindowFieldName"
select
=
"'New Window'"
/>
<
xsl:param
name
=
"CSSClassOpenItem"
select
=
"'open'"
/>
<
xsl:param
name
=
"CSSClassCloseItem"
select
=
"'close'"
/>
<
xsl:param
name
=
"CSSClassSelectedItem"
select
=
"'current'"
/>
<
xsl:param
name
=
"DeepLevel"
select
=
"1"
/>
<
xsl:param
name
=
"IncludedTemplates"
select
=
"'!common!sitesection!simplepage!simpleexecutivepage!simplenewspage!'"
/>
<
xsl:param
name
=
"LinkTemplateName"
select
=
"'menu link'"
/>
<!--variables-->
<
xsl:variable
name
=
"EnabledTemplates"
select
=
"translate(concat($SectionRootTemplateName, $IncludedTemplates, '!', $LinkTemplateName, '!'), '!!', '!')"
/>
<!-- entry point -->
<
xsl:template
match
=
"*"
>
<
xsl:apply-templates
select
=
"$sc_item"
mode
=
"main"
/>
</
xsl:template
>
<!-- menu -->
<!--==============================================================-->
<!-- main -->
<!--==============================================================-->
<
xsl:template
match
=
"*"
mode
=
"main"
>
<
noindex
>
<
xsl:choose
>
<
xsl:when
test
=
"$MenuRootPath!=''"
>
<
xsl:call-template
name
=
"rootmenu"
>
<
xsl:with-param
name
=
"root"
select
=
"sc:item($MenuRootPath,.)"
/>
</
xsl:call-template
>
</
xsl:when
>
<
xsl:otherwise
>
<
xsl:call-template
name
=
"rootmenu"
>
<
xsl:with-param
name
=
"root"
select
=
"$sc_item/ancestor-or-self::item[contains($SectionRootTemplateName, concat('!',@template,'!'))]"
/>
</
xsl:call-template
>
</
xsl:otherwise
>
</
xsl:choose
>
</
noindex
>
</
xsl:template
>
<!--============================-->
<!-- Section menu -->
<!--============================-->
<
xsl:template
name
=
"rootmenu"
>
<
xsl:param
name
=
"root"
select
=
"''"
/>
<
div
id
=
"leftnav"
>
<
ul
id
=
"commission"
>
<
span
class
=
"title"
>
<
xsl:call-template
name
=
"showtitle"
>
<
xsl:with-param
name
=
"root"
select
=
"$root"
/>
</
xsl:call-template
>
</
span
>
<
li
>
<
ul
>
<
li
>
<
xsl:call-template
name
=
"sectionmenu"
>
<
xsl:with-param
name
=
"root"
select
=
"$root"
/>
<
xsl:with-param
name
=
"level"
select
=
"0"
/>
</
xsl:call-template
>
</
li
>
</
ul
>
</
li
>
</
ul
>
</
div
>
</
xsl:template
>
<!--==============================================================-->
<!-- Section menu -->
<!--==============================================================-->
<
xsl:template
name
=
"sectionmenu"
>
<
xsl:param
name
=
"root"
select
=
"''"
/>
<
xsl:param
name
=
"level"
select
=
"0"
/>
<!--<xsl:if test="contains($EnabledTemplates, concat('!', @template, '!')) ">-->
<
xsl:for-each
select
=
"$root/item[contains($EnabledTemplates, concat('!', @template, '!'))]"
>
<
xsl:sort
select
=
"@sortorder"
data-type
=
"number"
/>
<
xsl:variable
name
=
"IsHaveChild"
select
=
"boolean(./item)"
/>
<
xsl:variable
name
=
"IsSelected"
select
=
"boolean(./descendant-or-self::item[@id=$sc_currentitem/@id])"
/>
<
xsl:variable
name
=
"IsShow"
select
=
"boolean(sc:fld($IsHideFieldName,.)!=1)"
/>
<
xsl:variable
name
=
"IsCurrent"
select
=
"boolean(@id=$sc_currentitem/@id)"
/>
<
sc:sec
/>
<
xsl:if
test
=
"$IsShow"
>
<
li
>
<!--<img src="/images/menu/arrow.gif" width="9" height="14" border="0" alt="" />-->
<
xsl:attribute
name
=
"class"
>
<
xsl:choose
>
<!--if first level-->
<
xsl:when
test
=
"$level=0"
>
<
xsl:choose
>
<
xsl:when
test
=
"$IsSelected"
>
<
xsl:value-of
select
=
"$CSSClassOpenItem"
/>
</
xsl:when
>
<
xsl:otherwise
>
<
xsl:value-of
select
=
"$CSSClassCloseItem"
/>
</
xsl:otherwise
>
</
xsl:choose
>
</
xsl:when
>
<!--if other level-->
<
xsl:otherwise
>
<
xsl:if
test
=
"$IsSelected"
>
<
xsl:value-of
select
=
"$CSSClassSelectedItem"
/>
</
xsl:if
>
</
xsl:otherwise
>
</
xsl:choose
>
</
xsl:attribute
>
<
xsl:variable
name
=
"href"
>
<
xsl:choose
>
<!--if this is the internal link-->
<
xsl:when
test
=
"./@template=$LinkTemplateName"
>
<
xsl:value-of
select
=
"sc:path(sc:item(sc:fld('link',.),.))"
/>
</
xsl:when
>
<!--otherwise-->
<
xsl:otherwise
>
<
xsl:value-of
select
=
"sc:path(.)"
/>
</
xsl:otherwise
>
</
xsl:choose
>
</
xsl:variable
>
<
a
href
=
"{$href}"
>
<
xsl:if
test
=
"sc:field($IsNewWindowFieldName,.) = 1"
>
<
xsl:attribute
name
=
"onclick"
>
window.open('<
xsl:value-of
select
=
"$href"
/>', '',''); return false;
</
xsl:attribute
>
</
xsl:if
>
<
xsl:call-template
name
=
"showtitle"
>
<
xsl:with-param
name
=
"root"
select
=
"."
/>
</
xsl:call-template
>
</
a
>
<
xsl:if
test
=
"$level < $DeepLevel and $IsSelected and $IsHaveChild"
>
<
li
class
=
"subnav"
>
<
ul
>
<
li
>
<
xsl:call-template
name
=
"sectionmenu"
>
<
xsl:with-param
name
=
"root"
select
=
"."
/>
<
xsl:with-param
name
=
"level"
select
=
"$level+1"
/>
</
xsl:call-template
>
</
li
>
</
ul
>
</
li
>
</
xsl:if
>
</
li
>
</
xsl:if
>
</
xsl:for-each
>
</
xsl:template
>
<!--=================================-->
<!-- Menu title -->
<!--=================================-->
<
xsl:template
name
=
"showtitle"
>
<
xsl:param
name
=
"root"
/>
<
xsl:choose
>
<
xsl:when
test
=
"sc:fld($MenuItemFieldName,$root)!=''"
>
<
xsl:value-of
select
=
"sc:field($MenuItemFieldName,$root)"
disable-output-escaping
=
"yes"
/>
</
xsl:when
>
<
xsl:otherwise
>
<
xsl:value-of
select
=
"$root/@name"
/>
</
xsl:otherwise
>
</
xsl:choose
>
</
xsl:template
>
</
xsl:stylesheet
>