w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
dijit/form/form issues POST issues in firefox
First, change the data-dojo-type into path format. E.g.: dijit/form/ValidationTextBox Second, fix your typing mistake in password field of data-dojo-type. You entered data-dojotype, missing the - b=in between 'dojo' & 'type' More information about dojo.byId() & dijit.byId(). Here is the result: <div data-dojo-type="dijit/form/Form" data-dojo-id="myform" id="loginform" encType="multipart/form-data" action="" method="post"> <script type="dojo/method" data-dojo-event="onSubmit"> if(this.validate()){ senddata(); //calling the javascript function }else{ alert('Form contains invalid data. Please correct first'); return false; } return true; </script> <table cellspacing="10">

Categories : Forms

GWT 2.4 IE8 issues
The way GWT modules are loaded, anything defined later overrides something defined earlier, and <inherits> are processed as if the inherited module was included in-place. You should thus move your <property-provider> line after the <inherits name="com.google.gwt.user.UserAgent"/> line.

Categories : Java

CSS issues in IE8
Mind your width: 25% + 80% = 105%.. that's not right.. A known IE 8 bug is that it parses widths differently from other browsers. It parses 20% + 80% + [something else] > 100%.. (see comments: might be related to inline-block as suggested by avrahamcool) A common (and the easiest) way to fix this is to slightly lower the widths ex: .left_content { background: none repeat scroll 0 0 #; float: left; height: 500px; width:19%; } .cal_content { background: none repeat scroll 0 0 #; float: left; height: 500px; width:79%; } 19% + 79% = 98% and IE will behave.

Categories : CSS

Issues with using delimiter
I compiled your code an ran it with the following input hello,world,23,42, and it works fine. However notice the trailing ",". This is because to finish your final input it needs to be delimited. If this is not intended you can solve it by using a regular expression to use commas or new lines for your delimiter. So if you used this line of code: scan.useDelimiter("[,|\n]"); makes the following input work hello,world,23,32

Categories : Java

Issues when using WSAAddressToString
Please change this: if(WSAAddressToString(lp,size2, NULL,op,&size) != 0) { printf("This thing has failed "); return 1; } else printf("Address string = %s ", op); pAddresses = pAddresses->Next; } To this: long errorcode = WSAAddressToString(lp,size2, NULL,op,&size); if(errorcode != 0) { printf("The error is number: %i ", errorcode); return 1; } else printf("Address string = %s ", op); pAddresses = pAddresses->Next; } Then tell us what number it printed. Or look it up in http://msdn.microsoft.com/en-us/library/windows/desktop/ms681381%28v=vs.85%29.aspx EDIT: SOCKADDR_IN6 addrTemp; addrTemp.sin6_family = AF_INET6; long errorcode = WSAAddressToString(&addrTemp,size2, NULL,op,&size); if(errorcode != 0) { //printf("The er

Categories : C++

C++ - Makefile issues
Make alert_center the default target. You can do that explicitly with .default (see this), or simply list it as the first target to make it the default. In the case of multiple targets, it is common to have a pseudo target named all and have it be the default. See the make recommended targets here.

Categories : C++

DIV issues with CSS coding
Try something like this: <div style="display:table"> <div style="display:table-row"> <div style="display:table-cell; width:50%"></div> <div style="display:table-cell; width:50%"></div> </div> </div> The table-row isn't really required in this case but it is better to have.

Categories : HTML

Onmouseover I.E issues, please help :)
If you're new to this, you should probably try to avoid verbose JavaScript, as it will be rather difficult for you to manage. Instead, I would encourage you to start with image attributes like onmouseover and onmouseout instead. Consider the following: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Hover-Fading Buttons</title> <base href="http://parkleyvisualarts.com/" /> <style> img.logo { width: 300px; height: 300px; display: block; margin: 0 auto; } </style> </head> <body> <img src="Minilogo.gif" class="logo" onmouseover=" this.src = 'Eyewinker.gi

Categories : Internet Explorer

Issues with LB_GETCURSEL
i find it funny that none of my variables in the message are showing anything by hovering over them That's because they don't exist. Your program cannot compile, it has an error. SendDlgItemMessage() takes 5 arguments, you pass 4. The last one got morphed into a floating point value by a typo. Clearly you'll need to pay attention to compile error messages. And change a setting so this cannot happen again. Tools + Options, Projects and Solution, Build and Run. Change the "On Run, when build or deployment error occurs" setting to "Do not launch".

Categories : C

TFS dll and references issues
Nothing to do with TFS, really. You just have to check in your dependencies to source control. In your solution, add a folder called "Dependencies". Add a matching folder on disk in the same location in your solution hierarchy (annoying, I know). Add your dependent external DLLs to that directory. As these are now part of the solution, they will travel with the solution into source control. Reference these in your projects. It will look like this but it should be recorded in your solution file as a relative path. <Reference Include="Example"> <HintPath>......DependenciesExample.DLL</HintPath> </Reference> If you're having problems with this not being the case, you can simply edit your project file and change the hint path.

Categories : Visual Studio 2010

Issues with BeanPostProcessor
You're returning the name of the bean. The postProcess methods are supposed to return the actual bean itself. You're telling Spring to replace the Product bean with a String containing the name.

Categories : Java

UI Layout Issues
If you think the Android UI system is clunky, you obviously haven't tried to understand it. For most things its extremely well designed. If you want a certain view (or views) to always be at the bottom, then you want to make your screen a RelativeLayout and put android:layout_alignParentBottom="true" on those element(s). Then add android:layout_above="id" on whatever you want to be above them, where id is the id of the element you want at the bottom.

Categories : Android

Issues with virtualenv
Looks like I had incompatible versions of pip and virtualenv installed for my python version (2.7.5). I did the following to fix sudo pip unistall pip sudo easy_install pip sudo pip install virtualenv Notice that I installed pip via easy_install instead of brew

Categories : Python

CommandButton issues
Change the type="button" attribute for type="submit" or just remove it, as type="submit" is the default behaviour of the tag. type="button" is normally used to execute client side methods or Ajax calls. Here you have another post by BalusC.

Categories : Java

Writing to CSV Issues
Instead of this line : echo fwrite($numbre, "topictitle,topicdescription "); Use this echo fwrite($numbre, $row['topictitle'] . "," . $row['topicdescription'] . " "); Also change $_GET['topictitle'] and $_GET['topicdescription'] to $row['topictitle'] and $row['topicdescription']

Categories : PHP

AHK Script Issues
When you run this code, you get an error message "error at line 80". So this is where you should look. Line 80 is barrel.{enter} and that's just leftover from line 78. If you get a text editor that displays line numbers this will be easy to fix. You have 20-30 lines in the script that have these problems so you can fix them one by one. The error messages will show you which line to fix.

Categories : Performance

log4j2 set up issues
Did you read the manual about autoconfiguration? Quote: 6 . If no configuration file could be located the DefaultConfiguration will be used. This will cause logging output to go to the console. and DefaultConfiguration source shows default log level being "error"

Categories : Java

WPF Combobox issues
First convert the SelectedItem into ComboBoxItem and then ComboBoxItem.Content will have the string value. ComboBoxItem item = this.cboForm.SelectedItem as ComboBoxItem; if (item != null) { MessageBox.Show(item.Content.ToString()); }

Categories : C#

CVS login issues - through ant
Can you log into your CVS application from the command line on your Ubuntu box? I wouldn't bother with the CVS Ant tasks. If you look at the source, you'll see all the cvs tasks are doing is executing cvscommand line command directly. The CVS tasks won't work if you don't have the CVS command line installed. All it does is add an extra layer of hurt to your development task. Instead, simply call the CVS commands with the <exec/> task. This will give you more visibility on what is going on.

Categories : Ant

SQL relationship issues
IMHO you need one more table. You already have TAGS and EVENTS, but TAGS shouldn't be included in the EVENTS table, so create a TAGS_EVENTS table, with one row for every TAG_ID and EVENT_ID. TAGS TABLE ID | NAME 1 | sql 2 | oracle EVENTS TABLE ID | TYPE 1 | Question asked 2 | Question asked TAGS_EVENTS TABLE EVENT_ID | TAG_ID 1 | 1 1 | 2 2 | 2 EXPLANATION: EVENT 1: Question asked with tags "sql" and "oracle" EVENT 2: Question asked with tag "oracle"

Categories : SQL

Issues with sliding rtl and ltr in IE 7
You could try this, for your animation function: $('.whatwedo_container').animate({ right: -($(window).width()) }, 600); See fiddle.

Categories : Jquery

PHP Email issues
It's important to realize that you also need a mechanism to actually send the email from your computer. PHP itself is not capable of doing so (I think so anyway). If I understand this correctly PHP 'just' passes the information to mail server (which then actually sends an email). If you have any further details about your problem, do share - error messages (if any), what have you tried etc...

Categories : PHP

Having issues with the output
Your exception clearly says Exception in thread "main" java.lang.ArithmeticException: / by zero As you can see in your own output, height is 0, so when you get the BMI you divide by 0, which is not a legal operation at: public double getBMI(){ return (weight * 703)/(height * height); } Make sure you run your program fully and input a valid height. Also, as @jlordo pointed out, your code is doing integer division (since all the values involved are integers. This will make you lose anything after the decimal point. Try using: public double getBMI(){ return ((double)weight * 703)/(height * height); } Instead. Casting one of the involved values to a double makes Java keep the decimal values around.

Categories : Java

Issues Using py2exe
Your problem is that you are trying to compile your script using IDLE. When you are using py2exe, you have to do it a little bit different. If you've used Disutils before, you might have seen this: python setup.py install The same way you're using py2exe. So type in cmd: python untitled-22.py py2exe And it should work. BTW I recommend you reading this tutorial at py2exe.org.

Categories : Python

Issues with API's XML PHP parsing
If you don't want to deal with crappy XML (I'm not saying XML is crappy in general, but this one is) you could consider something like this: <?php $responses = []; $responses['210'] = 'This domain is avaliable.'; $responses['211'] = 'This domain is not avaliable.'; $xml = <<<XML <?xml version="1.0" encoding="utf-8"?> <interface-response> <Domain>example.com</Domain> <Code>211</Code> <Domain>example.net</Domain> <Code>210</Code> <Domain>example.org</Domain> <Code>211</Code> </interface-response> XML; $data = (array) simplexml_load_string($xml); $c = count($data['Domain']); for($i = 0; $i < $c; $i++) { echo $data['Domain'][$i], PHP_EOL; echo array_key_exis

Categories : PHP

Is there any issues to have `end` as a method name?
Ruby let's you do this, but you're going to run into all sorts of issues. # end.rb class Dany def end puts "Hola" end def other end # should puts Hola end end Instead, you will get end.rb:10: syntax error, unexpected keyword_end, expecting end-of-input Bottom line: don't do this. Don't use any keywords as a method name.

Categories : Ruby

Issues with VB and Aspose
It seems that you are trying to save a stream directly to a Excel file. Excel files have a fixed format, and the stream will not be adhering to the standard file protocol of excel. I think you would like to use Workbook object of Microsoft.office.Interop.Excel namespace.

Categories : Vb.Net

MVC, ADFS 2.0 and WIF 4.5 issues
You are probably taking the route of maximum complexity :-). What problem do you have with "passive configuration"? It should just work. There're plenty of examples of MVC 4 / ADFS (or other STSs). A few samples/resources to look at: http://msdn.microsoft.com/en-us/library/hh291061.aspx http://msdn.microsoft.com/en-us/library/ff423674.aspx http://msdn.microsoft.com/en-us/library/ff359105.aspx http://claimsid.codeplex.com/releases/view/68061

Categories : Asp Net Mvc

Having issues with .bind
It's probably just because the first argument of bind is the this value. You probably want this instead: someDiv[i].onclick = buffTest.bind(someDiv[i], i); EDIT: Like @bfavarette stated, if you do not mind what this will be in your listener, you could also pass null instead of someDiv[i], but since when attaching event listeners using this method, you expect this to be the object on which the listener was attached, I sticked to that behavior in the sample I provided.

Categories : Javascript

memory/ ram app issues
This is most likely either a memory leak or that you are not properly handling your images. Please look into using a library like https://github.com/nostra13/Android-Universal-Image-Loader which will ensure that your app is scaling down images for display

Categories : Android

PyMongo $inc having issues
$inc isn't a valid Python identifier. You should pass it as a string, like everything else: mongo_db.campaign.update({'_id': str(campaign_id)}, {'$inc': {'item': 1}}) The MongoDB docs you linked are the general MongoDB documentation, not PyMongo-specific; you can't copy/paste them literally and expect things to work.

Categories : Python

Border issues in CSS
I think you should check your div's first. When i inspected the elements i noticed that the structure is different. And also the width of the area is different. At first link you have a div called header preview. and in the second you dont basically the container is different. This is my first relply hope it helps you out.

Categories : CSS

Issues using dependencies with g++
This is due to packaging bugs. If a library A depends on library B, that A should link against B. Your application only has to link against A. Sometimes the packager of a library for some distro gets it wrong. Nothing you can do about that, really. For example, when I link against boost_system on Gentoo Linux, I don't have to link against pthread since boost_system links against pthread on its own: $ ldd /usr/lib/libboost_system.so | grep pthread libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fcf677f8000)

Categories : C++

FB - Like - GeoIP Issues
Use Facebook's Debug Tool to see what meta tags you're returning to Facebook, and stop redirecting Facebook's crawler to the USA page; just let it access whichever geography-specific site it asked for and give it the meta tags which describe that site

Categories : Facebook

PHP - Nested For Each Issues
Use: if((string)$rows['mailID'] == (string)$getMailID){ Both $rows['mailID'] and $getMailID are SimpleXMLElement objects. You need to compare their string values.

Categories : PHP

Issues with displaying GUI
The way you've written this code, calling frame.initComponents() would be redundant. This is because, upon constructing the JameSimpsonP7 object, the method initComponents is already called, as you can see in the constructor method public JameSimpsonP7() { initComponents(); } Because I'm not sure exactly what error you're getting (wasn't stated in the question), this is the only fix I noticed.

Categories : Java

New to Java - If - Else If issues
In your if conditions like temp <= 0 && measure.equals("C") the condition measure.equals("C") will be always false because you overwrite the value of variable measure here: if (measure.equals("C")) {measure = "Celsius";} else {measure = "Fahrenheit";}

Categories : Java

Issues with MKPolyline
mapView:viewForOverlay: is a delegate method, so you'll need to set the mapview's delegate somewhere. Otherwise, the delegate method will never be called. [mapView setDelegate:self];

Categories : IOS

Memory Issues in C++
You have a 64-bit operating system capable of allocating large quantities of memory, but have built your application as a 32-bit application, which can only allocate a maximum of about 3GB of memory. You are trying to allocate more than that. Try compiling as a 64-bit application. This may enable you to reach your goals. You may have to increase your pagefile size. See if you can dispose of intermediate results earlier than you are currently doing so. Try calculating how much memory is being used/would be used by your algorithm, and try reworking your algorithm to use less. Try avoiding duplicating data by reworking your algorithm. I see you have a lot of reference data, which by the looks of it isn't going to change during the application run. You could put all of that into a single vec

Categories : C++

DIV position issues
You are mixing CSS rules with absolute pixel sizes and percent. That is not always a good idea. You might have this problem, because your padding-right of 50px is larger than the remaining 5% of free space. I'm not sure what you are trying to achieve, but I guess the bottom elements should be on the same height. Try this: #bottom-right { float: right; padding-right: 5%; /* you defined 50px instead! */ width: 60%; background: #2ec4a6; } Sample: http://jsfiddle.net/A4Sn8/2/

Categories : CSS



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.