AJAX :: Modalpopup Stops Running Javascript?
May 27, 2010
I have a on each row in GridView javascript countdown (e.g. remains 1D 45m 15s) in one column and action button in second column. When the user click on the action button, the modalpopup is displayed, but in this moment the javascript countdown is stopped .( The countdown is started in window onload event.
View 3 Replies
Similar Messages:
May 2, 2010
I have a webform that works the following way:
1. Button_openPanel will display panel Step2Panel through ModalPopupExtenderStep2.
2. Button_runThread (inside Step2Panel) will close Step2Panel and will then run a lengthy process server-side. This lengthy server-side process will cause the UpdateProgress control to be displayed.
Similar to the ModalPopup, I want to disable the whole page while the UpdateProgress control (with its animation gif) is running. Currently, the UpdateProgress is displayed, but I can click Button_openPanel (or anything else) which will cause the application to break.
Is this possible?
This is basically all the code. I stripped anything that was unneeded:
[Code]....
The code-behind is basically this:
[Code]....
Everything's working pretty good now, but I need to disable everything while the time-consuming process is running and UpdateProgress is displayed.
I was thinking of displaying the UpdateProgress control as a a sort of ModalPopup, but I'm not sure if it's possible. If not, then the alternative would be to disable Button_openPanel while the time-consuming process is running and UpdateProgress is displayed.
View 2 Replies
Sep 22, 2010
I have a linkbutton 'Forgot Password?' in my login page. On click of the link button a modal popup will open . In that user has to give his username.
If the username doesnot exists i want to show an alert 'Usename doesnot ' exists.
Since the checking for the existenance of the username is on click of the button submit which is inside the modal popup, i can show the alert using the code
Page.ClientScript.RegisterStartupScript(...) . But I want something different
I want to call the javascript function after the maodal popup extender is closed
View 6 Replies
Mar 22, 2010
I understand that asp:link button is a control with JS that forces a postback. I have code that runs on OnClick in codebehind of this linkbutton. I placed a counter (with the aid of viewstate) within this code to count the number of times the event fires. The first time it fires the code runs, but as the process is a little long, when the second postback fires it stops the first running in its tracks, so the execution is incomplete. I have googled this issue, and found that some say an img tag with out a complete src address forces a postback, I examined my source and I have no bad src's. The link button is on a complicated ascx page with many controls etc, so I cant post it here. Is there a way to CANCEL the link button immediately OnClick so it only runs once?
View 2 Replies
Aug 5, 2010
I have a website that appears to be "losing" the code behind bin/dll file support while the application is running. I have added an OnError event to the application and am logging it to the event viewer. At first I was getting problems with HTML and other bad input into text boxes. I have used validation and other methods to correct all of this. Now my issue is that the ASPX pages are still served, however I have custom code in the "onLoad" event and it is not being executed. This is in the "onLoad" for the master page so it is affecting the entire site. So far my fix has been to restart the website within IIS. This corrects the problem for anywhere to 24-48 hours and then it occurs again. Last night when this happened I did not recieve any new information in the event viewer log.
View 3 Replies
Apr 6, 2010
I'm trying to enable a button through javascript when a checkbox is checked. This works fine in one of my pages, but on one page the button and checkbox in within a ModalPopup window, and there it doesn't work. How can I work around this?
javascript: document.getElementById('<%=okBtn.ClientID%>').disabled = false;
View 6 Replies
Jan 20, 2010
I want to trigger my javascript modalpopup with a function show. Is this possible?
[Code]....
View 1 Replies
Aug 31, 2010
I Have this error when click on a button to open a popup box in my page:
"object required"
Here is my code:
<%@ Page Language="VB" MasterPageFile="~/artm.master" AutoEventWireup="false" CodeFile="artm_principal.aspx.vb" Inherits="artm_principal" title="Principal" Debug="true" MaintainScrollPositionOnPostback="true"%>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AJT" %>
[code]....
View 8 Replies
May 18, 2010
I'm trying to learn AJAX but I am having trouble getting things working. I downloaded an example app from the web that was written in C# and have got it working perfectly, the next stap was to convert it into VB but for some reason this does not work. I keep getting a "Error: 'myServices' is undefined " error message on the web page. Try as I might I cannot cure this and I know it is something so simple i'm just looking past it.
I'm trying to get some autotext functionality working but I've cut the code right down just to try and get it working, everything seems to work fine apart from the webservice call which returns the 'undefined' error. If I click the button on the web page the code behind is invoked and the webservice code is also run without problems. I just can figure out why I can't run the webservice directly from the web page.
The code
Default.aspx html/javascript
<%@ Page Language="VB" AutoEventWireup="True" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
[code]....
View 3 Replies
Feb 16, 2010
on my page I have a GridView that displays a bunch of people from different parts of the world. I display their names, email addresses, etc. I also wanted to display the local time of their location but I didn't want this to be a snap shot of the time when the page gets rendered so I decided to use JavaScript to display the time and have the clock keep ticking.
I found a nice jQuery plug-in called jClock which is very simple to use and implement. I simply place a <span class="timeZoneID"></span> and it works like a clock -- except if I place my GridView in an UpdatePanel.
It wasn't working and I kept troubleshooting to no avail. I thought it was the GridView's TemplateField somehow throwing some junk in there. Then I tried removing UpdatePanel and everything started working fine.
Why is UpdatePanel preventing this JavaScript from functioning?
View 8 Replies
Jul 27, 2010
I have a piece of inline java script which is within an AJAX updatepanel. The code works perfectly on 1st load but not when the updatepanel is updated.
My script is as follows:
<script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "Photo_gallary/personal.xml";
var params = {};
params.bgcolor = "000000";
params.allowfullscreen = true;
params.allowscriptaccess = "always";
swfobject.embedSWF("Photo_gallary/simpleviewer.swf", "flashContent", "100%", "250", "9.0.124", false, flashvars, params);
</script>
As this is not a function how do I put it in the ScriptManager.RegisterStartupScript - which is I think what i have missing.
View 5 Replies
Mar 12, 2010
I am having trouble with getting the Jscroller2 too work inside an updatepanel after I have added a marquee as a newsbanner. - (The marquee is running outside the updatepanel)Beforer the marquee was present I could trigger the JavaScript with:
[Code]....
Now the Jscroller2 only works when the page is loading the first time and not after the updatepanel has updated.So my question is how do I get the Javascript to fire after the updatepanel have updated when a marquee is present?
View 7 Replies
Aug 6, 2010
I have the following function that is trigered from an asp dropdownlist when an item is selected.
[code]....
The script sets a url depending on the selection from the dropdownlist.
It all works ok, but then the update panel updates and the javascript photogallary breaks.
How do I prevent this from happening.
View 17 Replies
Aug 2, 2010
I have an ASCX component that has a lot of javascript declared in a script tag in the ascx itself. I can set breakpoints, and the debugger stops as it should, but the text that is highlighted in the debugger as the "current line" is nowhere near the actual javascript (it is much higher in the rendered file than it should be). I can "wing it" for one or two lines with the real code side-by-side with the "false" line of execution, but I lose all the hover abilities and everything else that makes javascript debugging useful.
I have tried putting the script at the top of my ascx file, but to no avail. I've tried not setting a breakpoint until the entire page is rendered, so that I have to scroll all the way to where the actual lines of code are, and the debugger still stops somewhere way above it.
View 1 Replies
Dec 31, 2010
I have a repeater that has a LinkButton in the Item Template. The LinkButton displays a UserControl that consists of a FormView. The UserControl has an HTML Element that when clicked hides the UserControl by simply change the display of the control from 'block' to 'none'. If the 'Close' span is clicked, the UserControl is successfully hidden, but afterward, the 'Edit' linkbuttons no longer postback.
View 1 Replies
Nov 1, 2010
I am facing a problem with Ajax-Enabled WCF, it works fine but after sometime (sometimes 5-6 days or sometime 2nd day) its stops working. In order to make it work again i reset the IIS then it starts working again as usual but it is really a hecdache keeping a eye on production server every time. I searched a lot on this but not able to find any solution yet. Please help me out with this.The production environment has IIS 6.0 running on Windows 2003 server.Error details
<servicename> is not defined
View 2 Replies
Apr 14, 2010
I have a small problem I am getting with the Autocomplete in my asp page, It uses a sql 'LIKE' query to find results from the database but after I type more than 3 Characters the autocomplete results dont filter any further even though there are results, I have tested the query seperatly and I works fine and as I said also works fine for the first 3 characters..
VB code below
[Code]....
ASP code Below
<ajaxToolkit:AutoCompleteExtender
runat="server"
ID="autoComplete"
TargetControlID="txtCountry"
ServicePath="AutoComplete.asmx"
ServiceMethod="GetLocationList"
MinimumPrefixLength="1"
CompletionInterval="1"
EnableCaching="true"
CompletionSetCount="10"
FirstRowSelected = "true"/>
<ajaxToolkit:AutoCompleteExtender
View 2 Replies
Mar 13, 2011
We have an updatepanel in our site and there are a number of linkbuttons in it. Please note that the site works fine in all browsers without proxy the proxy changes the url from for instance [URL] to 0-[URL] it also works fine in all browsers but IE the issue is that under proxy and in IE8, it gives an error when clicking one of the linkbuttons, the error message is "Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; InfoPath.1; .NET4.0C; .NET4.0E) Timestamp: Sun, 13 Mar 2011 20:38:58 UTC
Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near ' <!DOCTYPE html PUB'.
Line: 4674
Char: 21
Code: 0"
I have no idea what goes wrong here, it seems that IE can't parse the response?
View 5 Replies
Aug 24, 2010
when the textbox of the autocomplete extender looses focas the auto complete xtender stops the returning any results or even firing events(onpopulating, onpupulated).
and I there any way to know when the extender fires the request(provide code example if you can).
View 4 Replies
Jan 18, 2010
I have a problem with an amimated gif inside an UpdateProgress which is linked to an UpdatePanel. Basically the gif displays for a few seconds then justs stops and then a few seconds later the page displays. Reading some other posts it and putting in some debug info I can guess it is because the postback is returning a lot of markup, so it seems the postback has stopped and the gif freezes while the markup is being sent/being rendered. Is there anyway to keep the gif 'running' while all this markup is doing its thing?
View 3 Replies
Feb 11, 2010
I am using the RegularExpressionValidator control inside an Update panel. It works perfectly when I load the page the first time, but after a postback it doesn't work.
Let's say that after the first postback I include invalid characters in the textbox and run an new post back, I shows that the result is invalid...
I use VS2008 and asp.Net 3.5.
View 6 Replies
Jan 10, 2011
I am using asp:ScriptManager and asp:UpdatePanel to populate a DropDown , and for every field need to display hits in div.In order to Implement the hint I am using JS, it works fine unless I started to populate a dropdown based on another one.
here is some code lines from page and JS
<asp:ScriptManager ID="sm" runat="server" EnablePageMethods="true"></asp:ScriptManager>
<asp:UpdatePanel runat="server" ID="up0">
<ContentTemplate>
<dd><asp:DropDownList runat="server" ID="CCategory" CssClass="lst" ValidationGroup="Property" AutoPostBack="true" onselectedindexchanged="CCategory_SelectedIndexChanged" /><span class="hint">Please choose a city where you want to or having a property.<span
class="hint-pointer"> </span></span></dd>........
View 2 Replies
Mar 11, 2010
I'm using ASP.Net 2008 and C# and Ajax. I have wired up my ajax updatepanel to update the buttons within them in the gridview control's RowCommand event. However, at the end of this event, I call the Response.Redirect(commandArgs[2]); to open either Word or Adobe docs that user selected. And this line of code stops my Ajax updatepnael to update my 2 buttons' enabled properties. I thought maybe there is another way to open docs that won't interfer with my Ajax updatepanel and what will that be?
[Code]....
View 2 Replies
Jan 5, 2011
I have the modal popup come up for searching something. Inside the popup (panel) I have a txtbox and a search button. I enter text and hit 'search' and the results are shown in a listview within the popup. Now every row in the list view has a button "Select". I want to click on one of those buttons to select a particular value.
Now on click of the button(within the listview), I tried calling a javascript function and doing $find('mdlPopup').hide(); , which makes the popup dissappear. But somehow the debugger takes me straight to Global.asax.Application_Error() and doesn't even give me a stack trace to see wht the issue is. And over that, the popup looks dissapeared, but the rest of the controls on the page are not enabled back. Strange?
I'm assuming, that the popup doesn't close as intended and it errored out (which took me to Global.asax.Application_Error() ), and is not enabling the rest of the controls in the page.So my question is, how do I assign multiple buttons in a listview to the okbutton (or cancelbutton) of a modalpopup extender?
View 4 Replies
Dec 15, 2010
This is not a big issue since it's quite easy to bypass by making a new project and copying everything on it, but it bothers me quite a bit that I can't figure out what it is about. In short my calendar and calendar extenders stop working suddenly. The last time this happened I made some changes to the pages code behind, then hit undo gazillion times to go back to the last save. After that I hit debug and lo and behold: calendar did not respond to any clicks and any text field with calendar extender did not show calendar on clicking them.
This happens in both IE8 and FireFox 3.6 and no amount or restart, rebuild and other such tricks do nothing. The only thing that I can figure out to solve the problem is either use a backup copy of a version that works or make a new project and then copy all the files from the not working into the new/earlier version and all works again. I was able to track down that this seems to relate somehow to AJAX as when I ran the debug I mention above, I got error messages on the web page saying something about AJAX. This however happened only once and I cant get it to happen again (and thus can not remember much about what it said).
Also when I debugged the event handling the calendar click, I get an error message like this: There is no source code available for the current location Then it opens a file search window trying to find some cs file inside the ajax control toolkit. However this only happened the first time I tried debugging the event and I can't remember more details about it. Now I just get that error message when debug exits the event.
So end analysis on my part: The ajax control tool kit gets knotted up all of a sudden for some mysterious reason and is tied to that particular project. Can anyone tell me what this could be about?
View 8 Replies