JQuery :: JS Code Stops Working If Remove Alert();

Jan 23, 2011

I'm using some JS to show some divs.The divs' content is set up in a MultiView control in the server. Depending on certain parameters, I trigger some postbacks to make the server select the appropriate view. The problem is that everything works if I keep the alert(1); below, but stops working if I remove it.

Here is the code. I have a button which its OnClick() calls ShowEditor(), with an element and a type. ShowEditor() makes the editor's div visible after raising a postback to let the server select the correct view in the MultiView based on the type. This works fine. The editor loads and there is a div inside (vwText_Text1) which I'd like to assign an OnClick event to. This only works if the alert() is present.

[code].....

View 5 Replies


Similar Messages:

JQuery And WCF Service - Stops Working With Error

Jul 15, 2010

I am creating an application that uses jQuery to make ajax calls to ASP.NET WCF Web Service. Everything works fine most of the time but eventually (about twice per week) the service stops working with the error below. The only solution is to clear the ASP.NET Temporary Files. The problem seems to start by the time the application pool recycles but not on each recycle. Please help as I'm trying to figure this out for weeks now!

WebHost failed to process a request.
Sender Information:
System.ServiceModel.ServiceHostingEnvironment+HostingManager/6957828
Exception:
System.ServiceModel.ServiceActivationException:

The service '/Chat2/Chat.svc' cannot be activated due to an exception during compilation. The exception message is: Could not load file or assembly 'App_Web_vpupi5wr,

Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.. --->
System.IO.FileNotFoundException: Could not load file or assembly'App_Web_vpupi5wr, Version=0.0.0.0,Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

View 2 Replies

JQuery ::Validation Stops Working On E Mail?

Jan 7, 2011

Basically i'm using the plugin to validate a form. I've got the basics set up and working. Now i'm trying to use remote so that I can check for a duplicate email address. The problem is as soon as I add my checking script the validation stops working on the email field completely. It constantly says "please enter a valid email address" no matter what I put in the field. If I don't have the remote bit in my code the email field validation works correctly.

View 2 Replies

JQuery Stops Working On Wizard Page?

Jun 24, 2010

I have a ASP.NET wizard that I need to use jQuery to manipulate some of the CSS styles. For example if a certain criteria is met it will hide a button:

$("input[value='Continue']").css("display", "none")

This works great on the first page, but subsequent pages (loaded as controls .ascx) don't work. The wizard doesn't load a new page each time, but simple reloads part of the content using the built in wizard feature.

View 1 Replies

AJAX :: JS Stops Working After DropDown Filled With Code Behind?

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

JQuery :: Stops Working On Elements Placed In Updatepanel En Tabcontainer (postback)?

Apr 2, 2010

I want to load a popup when a user clicks a button. The buttons are images located inside a tabpanel. The first time the page is loaded the helpEvents DOES display the popup and the 'click' popup. Then I navigate to Tabpanel tab2, and the helpTickets button doesnt work (doesnt even display the 'click' popup) Then I navigate back to Tabpanel tpEventDetails, and the helpEvents button doesnt work anymore either(and also doesnt even display the 'click' popup anymore) So I think something gets lost in the updatepanel on callback...but what? and how to fix it?

default.aspx
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<cc1:TabContainer OnActiveTabChanged="TabChanged" ID="tabContainer" runat="server" ActiveTabIndex="0" OnClientActiveTabChanged="ActiveTabChanged" Width="100%">
<cc1:TabPanel ID="tpEventDetails" runat="server" HeaderText="Details">
<ContentTemplate>
<img src="images/help.png" id="helpEvents" alt="help" />
</ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanel ID="tab2" runat="server" HeaderText="More">
<ContentTemplate>
<img src="/images/help.png" id="helpTickets" alt="help" />
</ContentTemplate>
</cc1:TabPanel>
</cc1:TabContainer>
</ContentTemplate>
</asp:UpdatePanel>
script.js
//CONTROLLING EVENTS IN jQuery
$(document).ready(function() {
//LOADING POPUP
//Click the button event!
$("#helpEvents").click(function() {
alert('click');
centerPopup('Contact');
loadPopup('Contact');
});
$("#helpTickets").click(function() {
alert('click');
centerPopup('Tickets');
loadPopup('Tickets');
});
});

View 8 Replies

Web Forms :: Move Code Into Master Page It Stops Working?

Oct 21, 2010

Some time ago I converted an old windows application to a web application. This web application works fine as a stand alone app. I was recently informed that my client had a new standard layout and they are using a master page. They sent me the master page.

The web application is quite basic in that it makes a number of calls to a web service to retreive a list of customer, retrieve list of products and allows customer to create an order containing products.

I did the following to get make use of master page:

Copied it to my solution Update the page directive to include the MasterPageFile attribute and set it to point to master pageAdded the relevant content areas to my page Copied my code (control declarations etc) into the relevant content areas.The application compiles correctly and renders as expected. However, it does not behave as expected.

For example, I display a list of customers in a GridView. The user can select a customer by clicking the select button that is present for each row in GridView. I do this once and select a customer the page is posted back and relevant row is selected. I select a different customer and the page it posted back but this time the selected row does not change. It is still shown as the first row i selected.

This functionality works as expected if i remove the master page attribute and content areas.

View 4 Replies

JQuery Toggle Stops Working After Make A Server - Side Call?

Dec 13, 2010

I have a div called address which as a textarea. When I click a hyperlink, it toggles the div up and down. After clicking a an asp.net button the div collapses which is fine, but I noticed the url turns from [URL] to [URL] and now the toggle does not work. Here is the script:

$(document).ready(function () {
$('#myAddress').click(function () {
ShowHideAddressBox();
});
$('#arrowIndicator').click(function () {
ShowHideAddressBox();
});
});
function ShowHideAddressBox() {
var str = $("#myAddress").text();
if (str == "Hide") {
$("#myAddress").html("Click here");
$("#arrowIndicator").attr("src", "/Shared/Images/misc/arrow_state_grey_expanded.png");
}
else {
$("#myAddress").html("Hide");
$("#arrowIndicator").attr("src", "/Shared/Images/misc/arrow_state_grey_collapsed.png");
}
$('#checkAddress').toggle('normal');
}

The server-side button click just sets some values in a couple textboxes. In my master page, I have the following line as well:

<asp:ScriptReference Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Name="MicrosoftAjax.js" Path="http://ajax.microsoft.com/ajax/3.5/MicrosoftAjax.js" />

View 3 Replies

Forms Data Controls :: Adding Checking In The Code Behind Stops Update From Working?

Jul 27, 2010

I have a formview that I open to the edit template, some textboxes are not available and some are populated by dropdown lists, and the update function works fine.

As soon as I add some logic to the code behind page for the update control, the UPDATE link on the formview stops updating my DB.

View 10 Replies

Web Forms :: Excel Doc Stops JS - Display An Alert And Redirect The Page?

Mar 9, 2011

I have a page that produces some Javascript to display an alert and redirect the page. I also need to produce an Excel spreadsheet. However, when the Excel spreadsheet produces it seems to stop the JS from working. If I disable the Spreadsheet the JS works fine.I'm producing the Excel document like so:

[Code]....

View 3 Replies

Remove The Warning Image Of The Alert Box In Javascript?

Jan 11, 2010

How to remove The warning image of the alert box in Javascript. I want to delete the warning image from the javascript alert window.

View 2 Replies

JQuery Code Not Working In IE 8?

Feb 1, 2011

This code is working in firefox but on IE 8 it returns nothing

<script type="text/javascript">
$(document).ready(function(){
var pageUrl = '<%=ResolveUrl("~/test/test.aspx")%>';
// Test
$('#<%=ddlTest.ClientID%>').change(function(){
var trgId = $(this+'input:checked').val();
$.ajax({
type: "POST",........

View 1 Replies

C# - ReSharper Stops Working - VB.NET & C#

Aug 13, 2010

Running solution with VB.NET & C#, ASP.NET, VS 2008 with ReSharper 5 Most of the time, ReSharper is working (redundant code grayed out, squiggles, etc.) Sometimes, on the same code where it was working, nothing is highlighted to show ReSharper is enabled. I haven't done anything except modify code and debug. What is going on that turns it on/off?

View 1 Replies

JQuery :: Displaying Confirmation Alert Using Jquery-impromptu?

Feb 13, 2011

I am using jquery-impromptu within my gridviews to display a confirmation box when the user clicks delete which works fine. However, I want be able to do the same with my ListView for which I have the following code:

<asp:ListView ID="lvAlbums" runat="server" GroupItemCount="15" DataKeyNames="album_id">
<LayoutTemplate>
<table id="groupPlaceholderContainer" runat="server" border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse; width: 100%;">
<tr id="groupPlaceholder" runat="server">

[Code]....

View 4 Replies

JQuery :: Why This Code Is Not Working As Expected

Dec 18, 2010

[Code]....
[Code]....

//Ideally this should hide al the anchor tags with in tr tag. But this piece of code is not working as expected. nothing is fading out. [Code]....

View 3 Replies

Asp.net - Updatepanel Stops Working Under Proxy And It Happens Only In IE?

Mar 14, 2011

We have an updatepanel in our site and there are a number of linkbuttons in it.Please note that the site works fine across all browsers without proxy the proxy changes the url from for instance www.mysite.net to 0-www.mysite.net.edu.net 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

[code]...

View 1 Replies

Jquery Click Function Is Not Working In Code

Jul 12, 2010

[code]....

this is my webform design code..

click function wat written in side script tag is not working... Anything wrong.?

View 5 Replies

Tab Index Stops Working After Selecting Value From DropDownList?

Feb 1, 2011

Im working on an ASP.Net web forms application, where I have a form and the Index is working correctly, until I select a value from one specific control, a dropdownlist. After that no matter what control I am on if I press TAB it will go to the URL/Address Bar, from there to the search bar and then again to the URL bar...

View 1 Replies

Configuration :: Website Stops Working After Few Requests

Jan 27, 2010

I developed and deployed a web application using ASP.NET,C# successfully. The application was running perfectly until few days back. [NOTE: It still works fine on local machine (tested using both development server and IIS)] What happens now is: The website opens perfectly. After few operations which involves database interactions, in all the pages, the pages stop responding. I mean, after a few clicks, if I try another operation the page starts postback for unlimited time period and never gets rendered
and a following message is given: The connection was reset: Firefox 3.5... IE cannot display the web page: IE 7, 8 There is no database connectivity issues. I checked event logs on the web server and found few unhandlled exceptions, I corrected those. Now the event log doesn't show any error. But the problem is same.

I tried accessing the page from web server's browser, everything works fine. Even my boss can browse all pages with no problem (both have Win Server installed). Other machines (mostly XP) can't browse after sometime(as described above). I checked the memory usage, cpu time - NO ISSUES.

View 18 Replies

AJAX :: Updatepanel Stops Working Under Proxy And It Happens Only In IE

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

Configuration :: Web Application Stops Working Externally?

Nov 15, 2010

My webserver stop working. It gives time out error. There is nothing in the event viewer.

If I access the web app on the web server using [URL], it works fine. Also the html pages have no problem. Just the asp.net web applications.

View 2 Replies

Iis - Changing The Date On Web Server App Stops From Working

May 18, 2010

I'm trying to write some code that checks the number of days between two dates, when I set the date on my IIS7 server to anytime in the future I get the standard "Internet Explorer cannot display the webpage" screen. This happens if I comment out all my date checking code, with todays date it loads with any future date it doesn't. I've tried rerunning IISReset which makes no difference.

View 1 Replies

IE8 Back Button Stops Working On Page?

Jul 29, 2010

If you do a search for "ie8 back button disabled" you'll see a number of blogs with people having difficulties with the Internet Explorer version 8 back button becoming disabled. This now happened to one of my ASP .Net pages. The page uses a user control, aspx page, and a master page. It uses no redirects and seems to be happening when I click the back button and then the forward button (after the forward button is clicked, it does not fire the Load event and the back button becomes disabled). Has anyone else encountered this and do you have a solution for it?

View 2 Replies

IIS Session State Server Stops Working After 30-60 Minutes?

Feb 25, 2011

So we have three 2008 R2 Servers where two are configured to be web servers (IIS 7.5), and the third a session state server. I have set the SessionState and MachineKey settings in the applications web.config. After I restart the two web servers I can log into one server, then change the IP address to the other server, and I am still logged in. Success.

I can typically log in/out with any user account I want, change the ip address back and forth, and all is well until some random time between 30-60 minutes when I log in to one server, change the IP address, and the new server asks for credentials.

This is the sessionState setting in both web.configs:

<sessionState mode="StateServer" stateConnectionString="tcpip=xxx.xxx.xxx.xxx:42424" cookieless="false" timeout="30"/>

The application resides under the default web site, and uses the default application pool. I am using forms authentication with a timeout of 20 minutes. I am not receiving any error events on any of the three servers when this happens, and restarting the two web servers fixes the problem for a while. The two web servers are not clustered per-se, but will be served round-robin via a network device.

View 2 Replies

Web.config Location Tag Stops Working When Deployed To Server?

Mar 25, 2011

When running the ASP.NET Development Server, everything is working fine. However, when I deploy my asp.net application to the production server (IIS 7.0 integrated mode, fresh install), my location tags in my web.config file are being ignored.

Case in point: I'm using forms authentication, and when the user arrives at my login.aspx page, the external css & js files are not being loaded...even though I have specified that those files should be available to all users (auth'd or not). However, once the user is logged in, the files do in fact load.

<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>
<authorization>
<deny users="?" /> <!-- Restrict anonymouse user access -->
</authorization>

And the exception to my css file...

<location path="Styles/xtools.css">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>

I've verified that the path to the css file is accurate.

--EDIT Forgot to mention, I have tried creating a web.config file in the targetted folder as well...still not working.

View 1 Replies







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