Javascript Crash / Ajax In IE After 5 Times?

Apr 8, 2010

a look at this site.maimei.chAfter 5 times opening a new site via ajax (fancybox) it crashes in IE?ne little thing is that i load a whole asp.net site via ajax in the new window. so viewstate and other overhead is there twice after. could this be the problem? if yes, why just after 5 times?.is it possible to call just the content of an specific element via ajax? may be just the innerhtml of the body element of the called site?

View 1 Replies


Similar Messages:

Web User Control With Javascript Used Multiple Times On A Page - How To Make Javascript Functions Point At The Correct Controls

Apr 12, 2010

I think I summed up the question in the title. Here is some further elaboration...I have a web user control that is used in multiple places, sometimes more than once on a given page.The web user control has a specific set of JavaScript functions (mostly jQuery code) that are containted within *.js files and automatically inserted into page headers.However, when I want to use the control more than once on a page, the *.js files are included 'n' number of times and, rightly so, the browser gets confused as to which control it's meant to be executing which function on.What do I need to do in order to resolve this problem? I've been staring at this all day and I'm at a loss.

View 2 Replies

Javascript - Click() Firing Multiple Times?

Aug 11, 2010

I am using a document.getElementById("val").click() to invoke a click event, but it keeps firing multiple times.

Here I add the eventHandler

try {
//add mousedown event handler to navigation buttons
addEventHandler(oPrevArrow, "mousedown", handlePrevDayClick);
addEventHandler(oNextArrow, "mousedown", handleNextDayClick);
addEventHandler(oLogout, "mousedown", handleLogoutClick);
}
catch (err) {
}

In the click event i am performing a "auto click"

function handleNextDayClick(e) {
e = e || window.event;
stopEvent(e);
document.getElementById("btn_nextday").click();
}

NB: the button that is auto-clicked calls a method in the ASP.NET Code-Behind

View 2 Replies

How To Call A JavaScript Function Multiple Times In A Loop On Page Reload With C#

Oct 25, 2010

I'm using the local database functionality in Chrome and Safari and what I do when I want to save this to a remote database is to create a hidden textfield and then using JSON to stringify each row. In the code behind I then parse each JSON object and insert it into the list. What I want to do now is to delete these rows from the local database. I have a JavaScript function called deletePatient:

[code]....

View 1 Replies

Ajax Request Times Out (or Is Really Slow)

Nov 15, 2010

My basic structure is that I have a table on a page, which I want to reload without refreshing the entire page. So on clicking a button on the page it fires of this:

function RefreshMissionsAjax() {
//fade out the old table.
$(clientID('MissionsDisplay')).fadeOut(500);
//request the new value from the page (calls the GetIncompleteMissions() method in the MissionViewer.aspx.cs page)
$.ajax({
type: "POST",
url: "MissionViewer.aspx/GetIncompleteMissions",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
$(clientID('MissionsDisplay')).html(msg.d);
$(clientID('MissionsDisplay')).fadeIn(500);
},
error: function (xhr, ajaxOptions, thrownError) {
$(clientID('MissionsDisplay')).html('An error occured while trying to refresh the page data.');
$(clientID('MissionsDisplay')).fadeIn(500);
}
});
}
And I have in the code bedind of an aspx page:
[WebMethod]
public static string GetIncompleteMissions()
{
return GetHTMLTable();
}

This method just grabs some data, and creates a html table - nothing too fancy. When the returned table is small (a dozen rows or less) then it works like a charm. But when it gets larger, it takes a long long time. At 100 rows it can take 5 minutes to render the table. At 1000 rows I have left it for 30 minutes and nothing will happen after the fadeout. (NB - it loads fairly quickly on the pageload, before the ajax refresh is used, so it is not the actual server side creation of the table thats the problem).

This is my first real attempt at doing something like this, so I dont know if this is the best way to do it - it was just something i pieced together that worked great when i was testing with small datasets. Now, not so much.

View 1 Replies

AJAX :: Calling Third Party Web Service - Times Out

May 11, 2010

Throws following error at method invocation: The operation has timed out. If I test the same using SOAPUI, it works. Web Service - [URL]

View 4 Replies

Ajax - Control Appears Multiple Times?

Oct 5, 2010

i have to two buttons in aspx page. i added ajax functionality to the page. but now thesee two button appears twice when i run the page.

View 1 Replies

AJAX :: ModalPopupExtender Shows Panel Two Times

Mar 26, 2010

I have one very weird problem with ModalPopupExtender. First here is the code:

[Code]....

Situation is that after panel is UP, at the some moment I can see same panel in background on the bottom of the page. I am not sure why panel become visible??

View 4 Replies

How To Crash The App Pool

Jun 15, 2010

Our ASP.NET 2 web application handles exceptions very elegantly. We catch exceptions in Global ASAX in Application_Error. From there we log the exception and we show a friendly message to the user.However, this morning we deployed the latest version of our site. It ran ok for half an hour, but then the App Pool crashed. The site did not come back up until we restored the previous release.How can I make the app pool crash and skip the normal exception handler? I'm trying to replicate this problem, but with no luck so far.Update: we found the solution. One of our pages was screenscraping another page. But the URL was configured incorrectly and the page ended up screenscraping itself infinitely, thus causing a stack overflow exception.

View 4 Replies

AJAX :: Request Takes A Few Minutes Then Times Out - Only In Firefox

Nov 22, 2010

I have a very peculiar problem that I've been wrapping my head around and I just can't figure it out. I have an updatepanel. Inside that I have a TabContainer. And inside that I have three TabPanels, each of which has checkboxes. Sometimes (and it happens often enough that I can easily reproduce it, but strangely may not happen with the same exact steps), when I click on different tabs or click on checkboxes inside the tabpanels (basically when I do an AJAX async postback), the request takes about a few minutes, after which the request just stops. Looking at the Firefox error console, I see this popping up after a few minutes...

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 0 Now, the asyncpostbacktimeout property for the ToolkitScriptManager is set at 360000, which is 6000 minutes, so the problem has nothing to do with that setting. In IE, I never have this problem and the AJAX requests are instantaneous and smooth, no delays. So this isn't a network or database lag issue. Something to do with how AJAX is run in Firefox. Why is it that sometimes, an AJAX request in Firefox takes a few minutes and just stops processing the request? And once again, the steps to reproduce this problem may not be the same every time, it seems random - very strange. Google searches have yielded very little help on this. I've tried things like extending the timeout property (which again has nothing to do with this), setting Response.Cache.SetNoStore() everywhere. Is there a crude workaround I can do (at this point, I'm willing to settle for a workaround). I just don't know anymore.

View 1 Replies

AJAX :: Change Event Triggered Multiple Times?

Mar 31, 2011

[Code]....

When the popup opens, the following code is run:

.....
if (window.attachEvent) {
$("#rblQuickPick").change(function () {
//ClickQuickPick();
alert("something changed!");
});
.....

ClickQuickPick() is the code I will eventually run, but I put in the Alert for testing.

The issue is that when the popup extender opens, and I click an item, I get the alert once. If I click another choice I get the alert twice. If I click another choice I get the alert three times, etc.

What is triggering the event to repeat, and how do I stop it?

View 1 Replies

AJAX Binds Jquery Events Multiple Times?

Mar 29, 2010

I have a masterpage setup, with a pageLoad in the topmost masterpage, which calls pageLoad2 for nested masterpages which calls pageLoad3 for content pages.

In my content page I have a jquery click event and in my nested masterpage I have a web user control.

Whenever I use the user control in the nested masterpage, it rebinds the click event in the content page (undoubtedly because the pageLoad3 is called again), but this makes the click event fire twice on a single click. The problem gets worse the higher up masterpages you go (eg. fires 3 times if user control from topmost masterpage is called).

how to make sure it only binds the jquery events once?

View 2 Replies

AJAX :: InsertCommand - Adds The Record Multiple Times

Jun 22, 2010

I have a InsertCommand function i am using to insert the dropdownlist in my updatepanel. When the Add button is clicked. It adds the record multiple times. Am not sure why it does this. Here is my code.

Dim Bank_number
As
DropDownList = UpdatePanel1.FindControl("ddlbank")Dim
NoteAccountNumber As
DropDownList = UpdatePanel1.FindControl("ddlAccount")'
UpdatePanel1.ChangeMode(FormViewMode.Insert)
lblsee.Visible =
"true"
'now collect selected information on the drop down
RelationshipTest.InsertParameters(
RelationshipTest.InsertParameters(
"bank_number").DefaultValue
= ddlBank.SelectedValue.ToString"noteaccountnumber").DefaultValue
= ddlAccount.SelectedValue.ToString'Insert into db
RelationshipTest.Insert()

Also, i was woundering if any of you might know the logic behind clearing inserted data from the dropdownlist once its inserted. I am trying to make sure data is not entered mulitiple times. Unique Indexing comes to mind but thats only on the backend.

View 3 Replies

AJAX :: The Script 'Timer.js' Has Been Referenced Multiple Times?

Aug 16, 2010

I am having a problem with ajaxcontroltoolkit 3.5. I am getting the following error

"Microsoft JScript runtime error: Sys.InvalidOperationException: The script 'Timer.js' has been referenced multiple times. If referencing Microsoft AJAX scripts explicitly, set the MicrosoftAjaxMode property of the ScriptManager to Explicit."

I have migrated ajax web app from 2.0 to 3.5 and have changed ScriptManager to ToolkitScriptManager.

View 4 Replies

C# - Classes In A Web Application Dll Crash?

Jun 23, 2010

I converted a ASP.Net website to ASP.Net web app and changed the framework from 2.0 to 3.5

The web application works fine in Visual studio. However, If I compile the app in a dll, and try to reuse its middle layer in another web project, All the classes that have a static variable crash. Code like:

public static string myString = "Something";

However if I convert it to a property like this:

`public static string myString {get{return "Something";}}`

View 1 Replies

VS 2010 - Crash Course In UTF Encoding

Dec 26, 2012

What is happening is I'm trying to process international characters, but the code is falling through (giving up?) and replacing the field with a blank (well, I guess the screenshot is at the bottom)... The customer recently asked for support for Polish characters, and gave us a list of which ones he wants added.

This is the entire function:

Code:
Protected Function chkExtchars(ByVal name As String) As String
Dim j As Integer = 0
Dim dt As New DataTable
Dim c() As Char = Nothing
Dim n As Integer
Dim nc As Char
Dim newname As String = ""
dt = HttpContext.Current.Session("xChars")

[Code] ....

But maybe it needs to be sequential? (the numbers on the far left?)

View 3 Replies

AJAX :: Exception While Using Slider Control Multiple Times In A Page?

Jul 19, 2010

I am using slider extender in an user control. I am adding that user control 2 times in a page. At that it gives me an error saying "Two components with the same id 'Slider1' can't be added to the application."

I am using Latest Version of AjaxToolkit and VS 2008 with .NET FWK 3.5.

View 1 Replies

AJAX :: Calling Resource Files Many Times - Slow Performance

Mar 2, 2010

Whenever I use ASP.NET AJAX it's calling Resource.asx files many times and it's affecting site performance. How can we avoid that?

View 3 Replies

AJAX :: ScriptResource.axd Is Being Invoked Several Times Per Each Aspx Page Request

Apr 1, 2010

I use ASP.NET Ajax in my web site and I am monitoring the HTTP requests per each page. I am surprised by the excessive call of ScriptResource.axd with different query string variables. I am pasting a sample of HTTP trace below. The call for ScriptResource.axd take lots time percentage out of total response time. Is this by design or there is something wrong with my AJAX configuration in web.config?

[Code]....

Actually it is degrading the performance of the application. And the user experience becoming very poor in case of lower bandwidth.

View 2 Replies

AJAX :: Radiobuttonlist Triggers Updatepanel Only A Few Times And Stops Working?

Sep 30, 2010

I have a radiobutton that triggers the updatepanel to display or not..

when the page loads, i can select yes adn it displays, i can select no and it disappears.. i hit yes it reappears.. but after like the 3rd time going back and fourth testing the functionality, it stops displaying all together.

Is there something i need to look at to find out what is going on?

Here is my code on the page and code behind

[Code]....

View 16 Replies

Crash On Deployment With Empty Table?

Jan 19, 2010

I just deployed my first ASP app to a remote server (using SQL SErver) and some data entry forms are crashing when the associated table is empty. The PageLoad method is empty, but the error occurs before the page becomes visible. The limited run time error I see says page not found error 404. If I put a record in the table using Mgt Studio, everything is fine. The form contains two LInq data source controls that populate dropdown lists, but everything else was hand coded - no data bound controls at all.
There is no attempt to access the actual empty table until the data has been entered and the Insert button is pressed. I have made sure that the tables that use the datacontrols for dropdowns have data in them, even though this should not matter. I did not have this problem on my local machine when developing. In summary, page does not load when table is empty, even though I do not access the table when the page loads?????

This is the entire codebehind file, and yet the page cannot even seem to load.

[Code]....

View 7 Replies

Crash Course In ASP .Net Internet Or Literature Based??

Dec 6, 2010

I have a few years experience developing C#, I have been asked to learn ASP.NET for a web development project. Does anyone know of any crash course tutorials to enable me to achieve this quickly, either internet or literature based?

View 2 Replies

VS 2010 - Downloading File Causes IE To Crash

May 2, 2012

I'm downloading a file from my intranet site and on Chrome, it works as expected. But when I try it on IE, it crashes.

ASP.NET Code:
<a href="../nbd.exe">TEST</a></h2>

Is there something I need to do just for IE?

Also, it works fine in Opera and Firefox. So just IE...

View 1 Replies

MVC :: Ajax Loaded Partial View Form Submits Multiple Times?

Feb 2, 2011

I am trying to implement an ajax form inside of a jquery ui dialog.

I have a view with a button that opens the modal dialog form, makes an ajax call to an action that loads a partial view into the dialog. The partial view consists of a form created via Ajax.begin form. When I post the form I close the modal and update a div on my main page. This all works fine.

The problem is, the next time I open the modal and submit the form the http POST for the form is called twice. The third time I open/submit the form is submitted 3 times and so on...

It seems as if the submit button/form is bound multiple times and I cant figure out how to fix this.

Here is my code...

first the jquery call to load the ajax form partial view and create the modal...

[Code]....

here is the ajax form partial view...

[Code]....

and the js callback when the form is submitted

[Code]....

View 4 Replies

Web Forms :: IFrame Crash Internet Explorer 7?

May 6, 2010

I have a page that utilizes an IFrame to display another page within the first one. I am using ASP.NET 3.5 and when I click on a button to do a post back event, it causes Internet Explorer 7 to throw an error.

View 3 Replies







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