AJAX :: Disable Dynamic Javascript Compression?

Apr 7, 2010

I'm trying to debug some javascript problems, but the script manager compresses the javascript code making this difficult. I have set ScriptMode=Debug in the ToolkitScriptManager but this still happens. I am also using a Web User Control. Does anybody know how to disable the script compression for debugging purposes?

View 4 Replies


Similar Messages:

C# - Attempting To Force Gzip Compression On A Page Using GZipStream But Browser Says Using Unsupported Compression

Aug 4, 2010

I'm tring to implement what Steve Souders discusses [URL] about forcing gzip compression

I've got a module that's running this:

[code]....

CompressionUtils.GzipSupported just checks for the 'accepts-encoding' header while
CompressionUtils.GzipSupportedExplicitly and CompressionUtils.GzipNotSupportedExplicitly check for the cookie saying whether the browser really can read gzip

But when I load a page in Firefox I get this error:

Content Encoding Error

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

and in Fiddler it shows that the content-encoding header has been added but the content hasn't been compressed

View 1 Replies

HttpHandlers / Modules :: Compression Module And Caching Conflict - Compression X 2

Mar 23, 2010

I have a compression module built based on several examples on the web. Initially, I hooked into the BeginRequest event of the application context to conditionally compress certain file types. This seems to have worked fine for JS and HTML, but CSS was giving me trouble. Here are the specific steps I could take to reproduce the problem consistently.

View 2 Replies

WCF / ASMX :: Compression And Decompression String In JavaScript

Feb 26, 2011

i m passing a string from a web method with 1000000 charater so i m using compression in c# befor return it. but i dont know how to decompress it in javascript

View 5 Replies

AJAX :: Disable MaskedEditValidator Through JavaScript?

May 13, 2010

I'm trying to disable a MaskedEditValidator control through JavaScript.

The following approach works for other types of validors (RequiredFieldValidator) but doesn't seem to work for the MaskedEditValidator

[Code]....

View 2 Replies

AJAX :: Disable AlwaysVisibleControl In Javascript?

Mar 31, 2010

It's about 100px from the top of the window. As the user scrolls the first 100 pixels, I want the panel to be static until the panel reaches the top of the window. Then I want the AlwaysVisibleControl behavior to kick in keep the panel visible as the user continues scrolling. This is the javascript I have set up to do it:

function window.onscroll() {
var tblTop_vscroll = document.documentElement.scrollTop;
var avceTopBehavior = $find('avceTopBehavior'); //BehaviorID of panel
if (avceTopBehavior != null) {

[Code].....

This isn't working. Am I misunderstanding what dispose() and initialize() are supposed to do? Is there a better way to accomplish what I'm trying to do?

I also tried using css by setting the position:fixed and using the onscroll event to adjust top:px. That worked but the animation wasn't nearly as smooth as what the AVCE does which was why I went back to using the AVCE.

View 5 Replies

AJAX :: Disable All Page Validations In Javascript?

Nov 25, 2010

I'm having an accordion panel in my Master page to show all the user menus. To remember the last clicked header menu, I'm doing an async postback in selectedindexchanged event of the accordion panel and storing the new index in session and I'm using thatin my page load to set the selectedindex when user navigates to a new page.If I'm on a content page that has some validators and then click on one of the accordion headers, it's firing the validations on this current page because I'm doing an async postback (by giving the name of the updatepanel in the eventName argument) through javascript using __doPostBack.

View 2 Replies

AJAX :: Disable DragPanelExtender Using Javascript - All Browsers?

Jul 19, 2010

I would like to disable dragpanel functionality using javascript yet only IE seems to work. If anyone knows how to get this to work across multiple browsers.

This is the aspx:

[Code]....

Currently I have no way of accessing the DragPanelExtender directly using javascript as it keeps returning null. If I disable the extender in the code behind from a partial postback it works fine, but I want to remove this partial postback and do it all in javascript. This works in IE.

[Code]....

View 3 Replies

AJAX :: Disable / Enable An Ajaxifeid Button From Client Side (JavaScript)?

Jun 22, 2010

disable / enable An Ajaxifeid Button From Client Side (JavaScript)?

View 3 Replies

JQuery :: Ajax, JavaScript To Check Server And Disable Button Control?

Feb 1, 2011

I am developing a web application for online bidding wher I want the BID button to disable itself, on all clients, whenever someone places a bid. What I need is some javascript to ping the site to check if a bid has been placed on the server, if so, then disable the button. I was suggested to use jQuery for this, use .ajax to query the server for the check. Then use a setTimeout javascript function to keep checking.I am not javascript expert at all so any tips would be greatly appreciated. At lease where to start. Also, will I need to record every single bid in database to achieve above?

View 10 Replies

AJAX :: Menu Control With Dynamic Url / Set The Menu Items As Enable/disable In Two Different Modes Say Edit/new?

Feb 22, 2010

I need a help in creating a vertical oriented Menu control with dynamic url's set in there Navigate Url property.Also i need to set the menu items as enable/disable in two different modes say edit/new.

View 1 Replies

Better Compression With System.IO.Compression?

Jan 31, 2010

I'm getting around 50% compression using System.IO.Compression and I think it could/should be getting around 75% by setting the compression level higher. Is there a way to improve the compression level or should I be looking for a different solution?

View 2 Replies

Ajax Framework Failed To Load With Gzip Compression On IE Only?

Sep 13, 2010

I got gzip working, but there are issues with IE. (works fine with FF and Chrome) Message: ASP.NET Ajax client-side framework failed to load. (and many other js related errors)

How can I prevent gzip compression on ie browsers ?? Other people who had similar issues enabled compression in IIS and that seems to solve the issue, but I can't do this on my discount machine...

This is what I use:

HttpApplication app = (HttpApplication)sender;
string acceptEncoding = app.Request.Headers["Accept-Encoding"];
Stream prevUncompressedStream = app.Response.Filter;
if (acceptEncoding != null && acceptEncoding.Length != 0)

[Code]....

View 1 Replies

Javascript Disable Checkbox Not Working After Codebehind Disable?

Aug 25, 2010

I have a simple javascipt which enables/disables some checkboxes when another checkbox ticked/unticked. This works fine, however, in some instances when by page is loaded my code behind disables the same check boxes. When this happenes my original check box nolonger seems to have any influence in enableing or disabling - there is no error and all the elements seem to be found by the javascript - it just doesn't enable/disable the checkboxes.

View 5 Replies

MVC :: Dynamic Javascript In Ajax Partial View?

Sep 13, 2010

I have a partial view which uses Ajax.ActionLink to perform paging. The AjaxOptions in the link identify the update target (a div on the main view) and some javascript to run OnSuccess (in the partial view). The javascript must be in the partial view since there is some information in the partial view required to properly wire up the jQuery in the javascript. This isn't working as expected. The sample below is the minimum code to duplicate the behavior I am seeing:

Controller:

[Code]....

View:

[Code]...

Partial View:

[Code]....

I would expect that the value shown in the javascript alert would increase each time you click the link. I put in a break point and made sure the value was incrementing so it is definitely a problem in the ajax side. Is this by design? If so, what is the recommended work-around.

View 6 Replies

AJAX Partial Postback / Dynamic JavaScript Values?

Jan 20, 2011

I am working with a user control which is inside an UpdatePanel. The user control uses swfobject to add a flash object to a div in the user control. Part of the functionality of the user control is it allows the user to change 'channel'. The channel is set and handled in the code behind hence the call in the JavaScript below to <%=channel%>.

The problem I have is that when the new channel is saved, the JavaScript code below is still pointing to the old channel. The only way I can fix this is to refresh the page via the code behind, but I'm thinking there must be a better way to do this..

[Code]....

View 2 Replies

Javascript - Dynamic IFrame Height Not Working With Ajax?

Oct 5, 2010

I am developing a web application with ASP.NET 3.5 with C# and Telerik Ajax Control. I have a iFrame in my master page. Application load other pages in iFrame dynamically and iFrame height adjust the dynamically when page load. I uses RadScriptManager , RadAjaxPannel, RadAjaxLoadingPannel in my page. The problem is when ajax "call back" the page, iFrame height not adjust dynamically.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MastetPage.master.cs" Inherits="MastetPage" %>
<!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="Head" runat="server">
<title></title>

[Code]....

View 2 Replies

AJAX :: How To Disable Controls By Javascript While Controls Are In Updatedpanel

Apr 23, 2010

I want use javascript to Enable and Disable txtName when rbtnYes.Checked then txtName.Disable = false when rbtnNo.Checked then txtName.Disable =true

this is my code and javascript ... ( it won't work... does the probme is cntrols are in updatepenel?)

[Code]....

View 15 Replies

Web Forms :: Can Disable Dynamic Control

Jan 27, 2010

how I can find and set enabled = false to a control I have created dynamically previously?

View 3 Replies

AJAX :: Disable Whole Tabcontainer (disable Click)

May 11, 2010

I have a problem with disabling the tabcontainer.

The problem is that, if a user haven't selected anything, the whole tabcontainer must be disabled. If I disable the tabcontainer it in de codebind, the tabcontainer grayed out but the user can click the tabs.

I can disable one tab in javascript but how can I disable the whole tabcontainer?

View 1 Replies

Disable Delete In Dynamic Data For One Table But Allow Insert

Aug 2, 2010

I have a site where I use a User Table. I want to be able to add users but not delete them - I need to update a filed in the database that said Is Deleted

View 2 Replies

Disable Filtering On A Dynamic Data List View?

Aug 18, 2010

I have an entity set of NotificationTemplates, and each one of these has a collection of zero-many SmsTemplate entities. When editing or viewing a NotificationTemplate, I have a link to View SMS Templates. That link takes me to a List view for the SmsTemplates entity set, filtered for the NotificationTemplate I was viewing.

How can I prevent the user changing this filter to show SmsTemplates for another NotificationTemplate? That is, I want the filter, but it must be read only. The drop-down just mustn't drop down, it must just display the name of the NotificationTemplate that these SmsTemplates belong to. To view SmsTemplates for another NotificationTemplate, the user must click View SMS Templates from that other template.

View 1 Replies

C# - Disable A Dynamic Button Click Event During Postback And Enable It Afterwords?

Jan 28, 2010

I am creating a button dynamically in my code and attaching a click event to it. However I have to prevent people to click it while there is a process going on. So when it is clicked once, it should be disabled and when the process ends it should be enabled. How can I do that?

View 4 Replies

How To Disable Menu With Javascript

Mar 22, 2011

I am using asp menu.I want to disable it and enable it using javascript.

[Code]....

I want to disable the whole menu bar with Javascript and I have the menu Id by using firefox...I was hoping for a statement that would disable the whole menu.

View 2 Replies

How To Disable Table In Javascript

Jun 10, 2010

I have many controls in table and I want to disable all the controls using JavaScript upon clicking of some checkbox.

I have google and found that we can't disable table instead all controls through loop.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved