In an HTML page, how can I know when a externally loaded javascript object is defined and ready for methods to be called on it?
Problem specifics:
I'm using the uservoice feedback web application including their javascript widget and their SSO (Single-SignOn) option.
Everything works fine. There is a prominent Feedback tab stuck on t...
Hi everyone,
I'm trying to validate the password entered by the user with the password in the database. I've worked out that it checks the username fine (if the username doesn't exist it displays an error), however when it tries to validate the password with the mysql password it never works. The working 'example' is at http://scaperscle...
I have a program that has a broadcast receiver that listens for Phone_State and then sends a user defined intent. Well, my problem is that the system also sends out an intent (the one that I am trying to replace with my program) So I am trying to find a way to CANCEL the systems intent. I have found that if i have a timer just wait for a...
hi,
i have encountered a really weirdest bug in eclipse, i would love if someone will help with it.
after a while of coding eclipse simply starts to "mix up" with the letters that are being typed. meaning i press 's' and it displays a different letter 'o' and it happens for other keys as well d becomes an e...and so on.
the weird thin...
Hey guys I'm currently having trouble with my CSS linking. Basically I want the colour of my links to change when I hover over them, and click on them and such. But for some reason it is not working when I view it on a browser. Below is my HTML code and my CSS code, they are seperate files and are linked togather. Thanks in advance. (I a...
I'd like some feedback, and opinions on the following approach to UI design:
We're working on an application that implements a series of industry-standard protocols. Each protocol dictates (very rigidly) how the user should perform the task at hand, from setup to collect data, to collecting the data, data entry and validation, analysis ...
public class Histogram
{
private int lo_;
private int hi_;
private int[] frequency_;
public Histogram(int lo, int hi)
{
lo_ = lo;
hi_ = hi;
int range = hi_-lo_+1;
frequency_ = new int[range];
for(int i =0; i <range; range++)
frequency_[i] = 0;
}
public void ReadValue()
{
Scanner in = new Scanner(System.i...
hello ! can someone tell me how i can select something in an uiwebview with code ?
...
Can sommebody please tell me what is not right about this code? It compiles and everything great but the output is solid zero's all the way down. So it is not counting the letters.
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
const char FileName[] = "c:/test.txt";
int main ()
{
string lineBuffer...
Im working on a new game and i'm done but i just need to add some looping music, i have the sound file i want to loop, called theme.m4a How would you loop the music to play forever
Thank you!
...
I am trying to follow some tutorials for ASP.Net and for the life of me, I just can't figure out what the @ Symbol does when it is before an variable.
I thought it was just a shortcut to either session variables or request.form, but I have tried it in a few places without any luck.
When I put it in somewhere at random, I get the error ...
In ordinary class methods I can supply content for the "help" command in MATLAB. However, when writing an abstract method, the help function does not see the abstract methods. For example, if you have a class NeedsHelp:
classdef NeedsHelp
methods (Abstract)
INeedHelp(self)
% This method is not visible to the help com...
Im looking to build an application that is a simple search and answer function.
Essentially, the design will be similar to the home page of google, except when you hit search, it will only return one result, the "answer"
Up to this point, almost all of my work has been design + marketing for the web. I want to get into bigger projects,...
I'm working on a large solution containing dozens of projects. I am approaching the point where I will need to add help. I expect to use RoboHelp to create the html help file(s), but this is the first time in .NET so I am looking for advice on how to do this. I know how to create a help file and do not need any advice on that. I need hel...
I am new to flex and as3 and I need to create a workaround for a button issue. I don't know how to have one button created by one class send a click event to another item created in a different class
Therefore, I'd like to place both of my buttons on top of one another, alpha one of them out and have both buttons receive the same click....
Hi guys,
I am trying to build a page with a form for a friends hockey blog. He was hoping to have a contest that allows his users to submit their selections for Team Canada's Olympic roster. I attempted to create this form with checkboxes in Macromedia. It basically seems to work, and when I add formmail information the results are succ...
For one of my new games I'm using OpenGL ES since it has multiple enemies and bullets, etc. How do you draw images on the screen with Opengl ES? I have a player.png image that is a 48x48 pixel image; how would I draw that on the screen?
...
This script won't compile. I wanted to made a simple 21-style game for practice but I get an error:
X@X:~/Desktop$ python 21.py File "21.py",
line 18
int(ptotal) = ptotal + newcard
SyntaxError: can't assign to function call
Here's the code. Can anyone please help me? I'm obviously a beginner and the code is pretty sloppy.
...
Has anyone tackled importing default ExpressionEngine comments to Disqus? I found this on github but I'm not sure how to use it, or if it will work. http://gist.github.com/202802
...
dynamic imagebutton click event not getting fired please help
i have created dynamic buttons in the asp.net oninit method
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
ImageButton img = new ImageButton();
img.ID = "first_button";
img.Click += new ImageClickEventHandler(fir...