<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" MasterPageFile="~/MainMaster.master" Title="FittleBug Demo" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
asp:Content
ContentPlaceHolderID
=
"ContentPlaceHolder1"
runat
=
"server"
ID
=
"Content1"
>
<
script
type
=
"text/javascript"
src
=
"js/fancybox/jquery.fancybox-1.3.4.pack.js"
></
script
>
<
link
href
=
"js/fancybox/jquery.fancybox-1.3.4.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
asp:Literal
ID
=
"clientScript"
Mode
=
"PassThrough"
runat
=
"server"
/>
Site Content
<!-- Steps -->
<
div
style
=
"display:none"
>
<
div
id
=
"HomeStep1"
style
=
"color:#3F3C2D; margin:10px 0 15px 0;padding:0 0 0 10px;width:450px;height:250px;"
>
<
div
><
asp:Literal
id
=
"SiteWelcome"
runat
=
"server"
/></
div
>
<
div
style
=
"font-size:16px; padding:10px 0 3px 0;"
>Please Enter Your Zip Code</
div
>
<
div
style
=
"vertical-align:top;height:45px;"
>
<
div
id
=
"zipWrapper"
>
<
telerik:RadMaskedTextBox
id
=
"txtZipcode"
RequireCompleteText
=
"true"
PromptChar
=
" "
ResetCaretOnFocus
=
"true"
SelectionOnFocus
=
"CaretToBeginning"
AutoCompleteType
=
"HomeZipCode"
CssClass
=
"required digits zipcode"
runat
=
"server"
/>
</
div
>
<
input
type
=
"button"
id
=
"btnGo"
value="GO > " />
<
br
style
=
"clear:both;"
/>
<
span
id
=
"valZipcode"
style
=
"display:none"
>Please enter a valid zip code</
span
><
span
id
=
"unknownZipcode"
style
=
"display:none"
>Sorry, we do not provide services in that zipcode</
span
>
</
div
>
</
div
>
</
div
>
<
div
style
=
"display: none"
>
<
asp:HiddenField
ID
=
"rdNumerticTextBox"
runat
=
"server"
/>
<
asp:ImageButton
ImageUrl
=
"~/images/btn-go.png"
runat
=
"server"
ID
=
"imgbtnGo"
OnClick
=
"imgbtnGo_ShowData"
/>
</
div
>
<
script
type
=
"text/javascript"
>
jQuery(function ($) {
var $hidden = $("#" + aspHiddenId);
var $button = $("#" + aspButtonId);
var $zipcode = $("#<%=txtZipcode.ClientID %>");
var $zipPopup = $("#zipPopup");
var $btnGo = $("#btnGo");
var $valZipcode = $("#valZipcode");
var $unknownZipcode = $("#unknownZipcode");
$('a[href*="youtube.com"]').fancybox({ 'type': 'iframe' });
$zipcode.val($hidden.val());
$zipPopup.fancybox({ modal: true })
if ($zipcode.val() == "")
{
$zipPopup.click();
$zipcode.focus();
}
$zipcode.keypress(function (e) {
if (e.which === 13) {
$btnGo.click();
}
});
$btnGo.click(function () {
var zipcode = $zipcode.val();
if (/^\d{5}$/.test(zipcode)) {
$.ajax({
type: "POST",
url: "services/ajax.svc/IsKnownZipcode",
contentType: "application/json; charset=utf-8",
data: $.toJSON({ "zipcode": zipcode }),
dataType: "json",
success: function (data) {
if (data.d) {
$valZipcode.hide();
$unknownZipcode.hide();
$hidden.val(zipcode);
$.fancybox.close();
$button.click();
}
else {
$valZipcode.hide();
$unknownZipcode.show();
}
},
error: function (msg) {
alert("Error checking zipcode. Please try again.");
}
});
} else {
$valZipcode.show();
$unknownZipcode.hide();
}
return false;
});
});
</
script
>
</
asp:Content
>
Hello All,
I have two different issues with Rad Editor.
1] In chrome browser when page is loaded rad editor takes extra height( image #1) whereas i haven't specified any height to Radeditor. when I click in editor then it automatically re sizes it self to the actual height( image #2). I want radeditor to take same height as it is taking height in IE and FF.
2]. In IE8 &9 This rad editor has a width 100% which worked in FF & Chrome but in IE I found that it creates a table inside iframe<> which has a width 600px and margin:auto. I want it to take 100% in IE. I tried some css code with !important also like width:100% !important; but its not working on that table.( image #3)
Any advice or suggestion will be appreciated.
Thanks in advance
<
telerik:RadToolBar
ID
=
"radToolBar"
BorderWidth
=
"0"
BorderStyle
=
"None"
AutoPostBack
=
"true"
OnClientButtonClicking
=
"SaveToolBar_radToolBar_OnClientButtonClicking"
CausesValidation
=
"true"
runat
=
"server"
>
<
Items
>
<
telerik:RadToolBarButton
Text
=
"Salva"
ImageUrl
=
"~/App_Themes/SETheme/SESkin/Grid/Update.gif"
CommandName
=
"Insert"
Value
=
"Insert"
/>
<
telerik:RadToolBarButton
Text
=
"Salva"
ImageUrl
=
"~/App_Themes/SETheme/SESkin/Grid/Update.gif"
CommandName
=
"Update"
Value
=
"Update"
/>
<
telerik:RadToolBarButton
Text
=
"Annulla"
ImageUrl
=
"~/App_Themes/SETheme/SESkin/Grid/Cancel.gif"
CommandName
=
"Cancel"
Value
=
"Cancel"
/>
</
Items
>
</
telerik:RadToolBar
>
_ServerValidate is executed but if "args.IsValid = false" the software doesn't stop and continues