Showing posts with label explorer. Show all posts
Showing posts with label explorer. Show all posts

Monday, March 26, 2012

Internet explorer 6. Sucks up computers memory.

Hi,

I've got two pages on the same site where I use atlastoolkit:confirmbutton in a atlastoolkit:reorderlist.
One of the pages uses is updated with a updatepanel. Both pages has multiple fields that is updated when pressing a save button.

The problem is that users on internetexplorer 6 has to close down explorer regularly to be able to work with the pages since there computers goes slower and slower the longer they are an one of these pages. For example, it takes about 3-6 seconds to save(uses internet explorer 7). If leaving a internet explorer 6 computer on the page for a couple of minutes it takes about 2 minutes to save. After a couple of hours it takes almost 10 minutes.

It's not just the saving proccess. It's everything opening, changing page in a gridview. And atleast for some users the entire computer starts to go slow until they restart internet explorer.

Please can anyone help.
/Christoffer

That seems to be a bit extreme... Make sure IE on the browsers are configured to check for updated versions of the page automatically - will save on IE constantly downloading scripts and stuff...(each time IE does it verifies the scripts etc)...try to disable viewstate where you can as well...Additionally - make sure make sure make sure you are not running the application deployed compiled debug and turn debug compilation OFF in your web.config...Set the SCM to Release version - this will cut down on your memory footprint ...both server and on the client (smaller js files for starters)...

The new Beta 2 release of Ajax according to the docs addresses some of the memory issues as well...

Saturday, March 24, 2012

Internet Explorer 5.5

I have a small Atlas project and it will only work with Internet Explorer 6.+ Does Atlas support IE 5.5? When I run the application I get a java script error.ATLAS utilizes many new features(Javascript & XML) only found in new browsers. As it stands I beleive it only works with IE 6+

hello.

i haven't tested it in IE5.5 but it expected it to be supported in that version. well, i'd guess that since 7.0 is out, they won't make any efforts to support it (btw, is there any good reason for not upgrading at least to IE 6?)

internet explorer 7

I installed ie 7 at home, and my (work) web apps with atlas (ajax) controls don't work, bug a lot, and CRASH ie 7.

Errrm, is anyone sweating with this for a next version of the controls? If my users upgrade to ie7 at work, I have a looot of sweating to do myself.. :\

Any tips/info?

I've been using Atlas/Ajax since the June CTP, went through beta 1 and now beta 2. What I noticed is that with IE 7 the rendering process got actually better. The UpdatePanel flicker is gone (as in Mozilla). What kind of errors are you getting? I think the transition should be very smooth.
e 7 just hangs (cannot click anywhere) and the only way to close it is to ctrl alt del it away (then the standard send error report.)
I have a similar problem, but it does not hang, with Internet Explorer 7.0 and Firefox 2.0, the update panels just don't work anymore.. the pages postback instead of using AJAX to render smoothly...
Oh sorry this was my fault, I didnt do the instructions of migration for BETA 2.But now I have another problem .. for which I'll open another thread because it is no related to this one.

I have been using IE7 since RC1 was released and have had no problems with the updatepanel or any of the AJAX toolkit controls. Can you post your code? I will try and test it in my IE enviroment.


Well, ie7 is lots of problems, i hate it i hate it i hate it i hate it i hate it

IF i wanted firefox i woulda taken it. WTF!? lol they just made it internetfirexplorer


Even the simplest textbox.focus() doesn't work anymore..!

Internet Explorer freezes after using AJAX

Hi

I have a weird problem. I have created an ASP.NET site which is displayed as a popup in another website.
The popup shows a treeview with which the user can update some data via an webservice. After selecting a treenode, a webservice is called in the code behind.
When I open this popup two times it will freeze all Internet Explorer windows which belongs to the current website. Only restarting the Internet Explorer helps. There is no javascript error or any other exception.

I have made tests with similar websites without ajax without any problem., so I think this may have to do with ASP.NET AJAX. The problem occurrs with Internet Explorer 6 and 7.

This is the code of the popup website:

<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div id="header">
<h1>
<asp:Label runat="server" Text="folder choice" ID="LaHeader"></asp:Label>
</h1>
</div>
<div id="haupt">
<div id="navi">
<asp:UpdatePanel runat="server" ID="UpPaTreeView" ChildrenAsTriggers="true">
<ContentTemplate>
<asp:TreeView runat="server" ID="TrViStructure" DataSourceID="XmDaSoStructure" OnSelectedNodeChanged="TrViStructure_SelectedNodeChanged">
<DataBindings>
<asp:TreeNodeBinding DataMember="Root" PopulateOnDemand="True" TextField="Name" ValueField="GUID" />
<asp:TreeNodeBinding DataMember="Folder" TextField="Name" ValueField="GUID" />
<asp:TreeNodeBinding DataMember="Underfolder" TextField="Name" ValueField="GUID" />
</DataBindings>
<NodeStyle CssClass="TreeItem" />
<HoverNodeStyle CssClass="TreeItemHovered" />
<SelectedNodeStyle CssClass="TreeItemSelected" />
</asp:TreeView>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<div id="content">
<asp:UpdatePanel ID="UpPaStatus" runat="server" ChildrenAsTriggers="true">
<ContentTemplate>
<asp:Panel ID="PaButton" runat="server" Visible="false">
<div id="controls">
<asp:Button OnClientClick="closewindow()" runat="server" CssClass="button" Text="Close"
ID="BuClose" />
</div>
</asp:Panel>
<asp:Panel ID="PaMessage" runat="server" Visible="false">
<div id="label">
<asp:Label ID="laErrorHeader" runat="server" Text="Header"></asp:Label><br />
<asp:Label ID="laErrorMessage" runat="server" Text="Label"></asp:Label>
</div>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpPaTreeView">
<ProgressTemplate>
<div id="update">
<img src="img/ajax-loader-blueBg.gif" />
</div>
</ProgressTemplate>
</asp:UpdateProgress>
</div>
</div>
<asp:XmlDataSource runat="server" ID="XmDaSoStructure" DataFile="~/XML/Folders.xml">
</asp:XmlDataSource>
</form>

<script type="text/javascript">
function closewindow()
{
window.opener = this;
window.close();
}

</script>

</body>


Hi c.kr

It is not recommended to add the line number in your source code. Would you please modify it and provide more C# code and XML file related to your page ?


Hi, sorry for the line numbers, I removed it.

This is the used xml file for the treeview:

<Folder Name="foobar" GUID="some guid">
<Folder Name="foobar2" GUID="some guid2"></Folder>
<Folder Name="foo" GUID="5871D39C-7DD0-DB11-A445-0003FF6D5330">
<Folder Name="bar" GUID="E8C495C8-7DD0-DB11-A445-0003FF6D5330">
</Folder>
</Folder>
</Folder>
 This is the code behind file for the webpage:
public partialclass FolderChoice : System.Web.UI.Page
{
string _objectId =string.Empty;
CrmService _service;

private SessionData sessionData
{
get {return Session["SessionData"] ==null ?null : (SessionData)Session["SessionData"];
}
set { Session["SessionData"] =value;
}
}

protected void Page_Load(object sender, EventArgs e)
{
sessionData = CRMplusServiceConnector.GetSessionData(Request.ServerVariables["HTTP_ACCEPT_LANGUAGE"]);
_objectId = Server.UrlDecode(Request.QueryString["oId"].ToString());

LaHeader.Text = sessionData.Translation["folderchoice.LaHeader"];
BuClose.Text = sessionData.Translation["folderchoice.BuClose"];
}

private void ConnectToCrm()
{
_service =new CrmService();

_service.Url = CRMplusServiceConnector.Configuration["crmServiceUrl"];
_service.Credentials = System.Net.CredentialCache.DefaultCredentials;

//----------------------
// Gets the Current User's Information
//---------------------- WhoAmIRequest userRequest =new WhoAmIRequest();
WhoAmIResponse userResp = (WhoAmIResponse)_service.Execute(userRequest);

//----------------------
// Set UserId of current User as CallerId
//---------------------- _service.CallerIdValue =new CallerId();
_service.CallerIdValue.CallerGuid = userResp.UserId;

//----------------------
// Cache credentials so we don't have to re-authenticate on each request.
//---------------------- _service.PreAuthenticate =true;
}

protected void TrViStructure_SelectedNodeChanged(object sender, EventArgs e)
{
this.PaMessage.Visible =false;

PaButton.Visible =false;
TrViStructure.Enabled =false;
TrViStructure.EnableClientScript =false;

SelectFolder();

TrViStructure.Enabled =true;
TrViStructure.EnableClientScript =true;
PaButton.Visible =true;
}

private void SelectFolder()
{
try { ConnectToCrm();// Create the target object for the request TargetRetrieve<someEntitiy> targetDoc =new TargetRetrieve<someEntity>();

// Set the target object's IDstring guiddoc = _objectId.Replace('{',' ');
guiddoc = guiddoc.Replace('}',' ');
guiddoc = guiddoc.Trim();
targetDoc.EntityId =new Guid(guiddoc);

// Create the request object RetrieveRequest reqDoc =new RetrieveRequest();

// Set the request object's properties reqDoc.Target = targetDoc; reqDoc.ColumnSet =new AllColumns();

// Execute the request RetrieveResponse retDoc = (RetrieveResponse)_service.Execute(reqDoc); <someEntity> curDoc =new <someEntity>();
if ( retDoc.BusinessEntity !=null )
{
curDoc = (<someEntity>)retDoc.BusinessEntity;
}
else { Environment.Exit(1); } curDoc.new_documentfolderid =new Lookup();
curDoc.new_documentfolderid.type = EntityName.new_folder.ToString();
curDoc.new_documentfolderid.Value =new Guid(TrViStructure.SelectedNode.Value.ToString());
_service.Update(curDoc);
}
catch ( System.Web.Services.Protocols.SoapException exc )
{
ShowException(exc);
}
}

private void ShowException(System.Web.Services.Protocols.SoapException exc)
{
this.PaMessage.Visible =true;
this.laErrorHeader.Text = sessionData.Translation["folderchoice.LaError"];
this.laErrorMessage.Text = exc.Detail.InnerText;
}
}

I replaced one of our classes with <someEntity>. The service which is called belongs to Microsoft Dynamics CRM.

Hi c.kr,

Sorry for the delay.I'm failed to reproduce your problem after wholly copied your code into a new project. The best way to indicate the exact root cause is dubugging it step by step in VS2005. By the way, Treeview control is not support very well inside UpdatePanel.http://ajax.asp.net/docs/overview/UpdatePanelOverview.aspx please focus on "Controls that Are Not Compatible with UpdatePanel Controls ".

If you has found it , please share it with us.

Internet Explorer Mobile & ATLAS

Hi all,

I have a webservice and ASP.NET ATLAS enabled, and working with IE6. There is not ATLAS controls, it is very simple call from javascript, passing 3 arguments.

I am tying to make it works in Internet Explorer Mobile in a Smartphone with Windows Mobile 5.0, but when I press the button, nothing happens...

In theory, Explorer Mobile supports HTML 4.01 CSS and Extensible HTML (XHTML), and XMLHTTP Request...

Have any try this or something with similar scenario?

Thanks in advance

David

I don't believe the mobile version of internet explorer supports the xmlhttprequest object or has any AJAX support for that matter.

Please, see this bloghttp://blogs.msdn.com/iemobile/archive/2005/11/15/493200.aspx

If IE Mobile supports AJAX and this sentence
xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
, I can't undestand why ATLAS will not support IE Mobile....

This is the function inside WebResource.axd generated by ATLAS that creates XMLHTTPRequest object

window.XMLHttpRequest = function() {
var progIDs = [ 'Msxml2.XMLHTTP', 'Microsoft.XMLHTTP' ];

for (var i = 0; i < progIDs.length; i++) {
try {
var xmlHttp = new ActiveXObject(progIDs[i]);
.....

Very similar no? I think that is imperative that ATLAS works for IE Mobile...


hello.

i really don't understand much about mobile devices...is there any sniffer that can capture the traffic between the browser and the server? (something like fiddler, that is)

Internet Explorer Settings

I'm working on an application which we're trying to use some basic Atlas features in. When running our application in Visual Studio 2005 and when we access it on the production IIS server from our computers everything works fine. The problem is our clients have hardened systems (we can't even see what options are enabled/disabled in Internet Explorer) and when they try to use our application, the Atlas does not work, it does a full post-back/refresh. I also test the Atlas Control Toolkit demo site on their system and the CascadingDropDown controls didn't even populate. Has anyone seen this before or have any idea what Internet Explorer options need to be enabled in order for Atlas to work correctly? I also don't think it's an Ajax problem because Telerik controls work fine on their system, Atlas is the only problem. Thanks a lot!

Thanks,

RobBump...