error

jQuery ajax is throwing an error code 302... what is this?

Hi everyone! I'm working with ASP.NET MVC and jQuery and I have a UserControl that is repeated in every page. And in every page request, a ajax callback occurs... so far so good. But this is when I'm in localhost. When I publish the site, I notice that this ajax is throwing an error 302, but this only occus in HTTPS pages and in FF and...

Watin tutorial execution returns a Javascript error on IE for every "keystroke"

I am using Watin for the first time, setup the tutorial, but as soon as i hit run, watin opens up IE and starts "typing" for WatiN on the Google search box, but the problem is, every keystroke, returns a javascript error getElementById not found error... Anyone had this problem ? I am running on Windows Vista 64 with VS 2008 (havent...

JavaScript: Visibility error in Internet Explorer when setting focus on an input element

This may be the most obscure bug I have yet encountered in many years of working with JavaScript and any version of Internet Explorer. We're using YUI 2.7 for some of the (non)convenience methods. Sigh, what I would do for jQuery.... This is affecting Internet Explorer 6 and Internet Explorer7. Internet Explorer 8 behaves properly. All ...

How to handle Server not responding Exception in asp.net mvc?

How do i simulate and handle the server not responding error? And which case do u think it might occur, as when u request a page from the server and if its not responding wouldnt it throw page cant be displayed error? ...

mysql now() Incorrect datetime value for column - error code 1292

When doing simple maths using now() ... mysql> select cdrstatuschangets from cdrs where ( cdrstatuschangets < now() - 10 ); +---------------------+ | cdrstatuschangets | +---------------------+ | 2009-09-25 13:55:50 | +---------------------+ 1 row in set (0.00 sec) show warnings; Empty set (0.00 s...

Error message vs. throwing exception C# ASP.Net

In many cases in web applications you would need to return an error message, rather than simple true/false result. One would use exceptions for that, but I consider exceptions to be an indication of, you know, exceptional behavior. Let's take a Register() function for a class User for instance. If it was successful we can simply return t...

Count Number of PHP Warnings/Notices

Hello all, Is there a way I can count the number of errors/notices/warnings that a script has come across whilst executing? I wish to do something like this: Warnings: 125 Notices: 234 ..etc Thanks ...

String "</script>" causes an error in IE

If I add this piece of html to my page: <script type="text/javascript"> var s = '</script>' </script> IE 7.0 shows a syntax error (exclamation mark in left bottom corner): "Unterminated string constant" if I change just one letter (any) the error disappears - looks like IE doesn't like this particular word, including brackets. Any ...

MySQL: Unknown column in where clause error

I have a PHP script and for some reason mysql keeps treating the value to select/insert as a column. Here is an example of my sql query: $query = mysql_query("SELECT * FROM tutorial.users WHERE (uname=`".mysql_real_escape_string($username)."`)") or die(mysql_error()); That turns into: SELECT * FROM tutorial.users WHERE (uname=`test`)...

Django override default form error messages

Hi all, How can I overwrite the default form error messages (for example: need them in other language) for the all apps in my project (or at least for 1 app) Thanks! ...

SPOJ wrong answer ADDREV

My code is quite simple and straightforward. I get "wrong answer" on submission though. I have no clue why that happens! Here is the code... #include<iostream> #include<string> using namespace std; void sum(string num) { int i,len=num.length(); int j=len-1; int carry=0; string answer; int s=0; for(i=0,j;i<len;i++,j--) { ...

Type Error running feature in Rail's Cucumber

I'm trying to run Cucumber for my Rails application and keep getting this error: > superclass mismatch for class Point (TypeError) There's a huge stack trace from this error, but it does not point to anything specific except a missing requirement. Here's the trace: rake features (in /Users/rob/blue/blue_web) /System/Library/F...

Flex 3 error: "Can not resolve a multiname reference unambiguously"

Hello, I'm quite new at flex and have been following a game tutorial. I've created a class named Bounce (Bounce.as) but when I try to compile, I get the above error. I've been searching forums and help, but the only people who seem to get this error is with HTTPServer. How can I specify to actionscript 3.0 that I want to use a created cl...

RSS Feed XML error- any wrong?

XML Parsing Error: no element found Location: http://localhost/rss/ Line Number 1, Column 1: However, when I paste the xml into http://validator.w3.org/feed/check.cgi , it say no formatting error. FULL CODE AT BELOW: index.php <?php header("Content-Type: application/xml; charset=ISO-8859-1"); $details = '<?xml version="1.0" en...

Returning an Oracle error in PHP?

Not sure if that makes sense, but say I have this code... $updateSql = oci_parse($conn, 'update "table" SET "column"=:column where "Unique_Record_Id" = :Unique_Record_Id'); OCIBindByName($updateSql, ":Unique_Record_Id", $absenceData['Unique_Record_Id']); OCIBindByName($updateSql, ":column", $column); if(oci_execute($updateSql)){ // np...

VB6 Automation Error on Calls to .NET 3.5 Assemblies After the First Calls

Some of the sources I've checked already: http://www.experts-exchange.com/Programming/Languages/.NET/Visual%5FBasic.NET/Q%5F23359339.html http://mygreenpaste.blogspot.com/2006/03/net-framework-20-configuration-tool.html http://support.microsoft.com/kb/186063 I'm busy developing .NET modules that will hook into our existing VB6 code. I'v...

Symfony: adding new action/view error. (Newb question)

I'm getting a 404 when trying to add a new module page. I'm apparently missing something fundamental here, being a newbie to Symfony. Can anyone point out what it is I'm missing? Many thanks. modules/admin/actions/actions.class.php /* following executeIndex() */ public function executeSchedule() { if ($this->getRequest()->getet...

How can I get the actual error behind HttpResponseException?

I'm using Apache HttpComponents Client to POST to a server that returns JSON. The problem is that if the server returns a 400 error, I seem to have no way of telling what the error was from Java (had to resort to a packet sniffer so far - ridiculous). Here is the code: HttpClient httpclient = new DefaultHttpClient(); params.add(new Basi...

Deploying netbeans applications - jar file error (could not find main class)

Hi, I have a small GUI application developed with netbeans. I used the 'clean and build' option to build an executable jar file. .jar file works in my pc. But when i sent the application to my friend he says that it throws 'cannot find the main class' error. what could be the reason? Thanks in advance... ...

Fill e.Error in silverlight webservice

In my webservice (WCF) i have this function [OperationContract] public ChooseViewData GetNcs(FilterArgument filter, int dossiersId, int usersId, string token) { SessionInfo info = Tokens.CheckToken(usersId, token); if (info.HasError) { //return null; } } When i'm calling this function in my silverl...