Here is a simplified version of something I'm trying to run:
for (var i = 0; i < results.length; i++) {
marker = results[i];
google.maps.event.addListener(marker, 'click', function() {
change_selection(i);
});
}
but I'm finding that every listener uses the value of results.length (the value when the for loop terminates)....
This has taken many hours of mine. I have to get this .Net app to run on an XP system. Someone seems to have messed up some files so conn.Open() in the C# is causing this error:
Connection Error:Oracle.DataAccess.Client.OracleException ORA-12170:
TNS:Connect timeout occurred at Oracle.DataAccess.Client.OracleException.HandleErrorHe...
Hi All,
I need to open an internal web browser from a custom eclipse wizard I have created - and so I am using
IWebBrowser webBrowser = browser.createBrowser
(IWorkbenchBrowserSupport.LOCATION_BAR | IWorkbenchBrowserSupport.AS_EDITOR | IWorkbenchBrowserSupport.NAVIGATION_BAR | IWorkbenchBrowserSupport.STATUS, null,"TestBrowser", "Tes...
Hi all,
I have a simple swf which create flvplayback object and load from time to time an flv, replacing the old one.
I manage everything in a wrapper class, identified with mdcVC in the code below, with a variable FLVPlayback in it.
I notice one strange thing, before loading a new flv, the old one is replaced and the listeners remove...
I am making a component in SWT that contains a text field and a list. Whenever text is entered it filters the list. So far everything is working great and I am just trying to add some nice usability features.
What I want to do is listen for any key events in the List field, if it is Enter that is pressed I perform the 'ok' action (alr...
I have a GUI that is issuing commands to a web server based on slider values. Some of these sliders are "coupled" on the web server, so changing one of them may also change another one. The coupling is accomplished by the web server returning a list of the values that were set based on the the issued command.
So I can easily set the app...
I am wondering if it is possible, and if so how, one could create a perl script that constantly monitors a file/db, and then call a subroutine to perform text processing if the file is changed. I'm pretty sure this would be possible using sockets, but this needs to be used for a webchat application on a site running on a shared host, and...
I slapped together a simple test application that has a button, and makes a noise when the user clicks on it. Here are it's method:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button b = (Button)findViewById(R.id.easy);
b.setOnClickListen...
Hi Android gurus,
I have a ViewFlipper for which I want a listener to fire when the child displayed is changed. I have set an OnFocusChangeListener to the ViewFlipper but it never fires when I flip from child 0 to child 1 or vice-versa. The ViewFlipper contains two RelativeLayouts and I have tried setting OnFocusChangeListeners for th...
printableInvoice.addEventListener(batchGenerated, printableInvoice_batchGeneratedHandler);
Results in this error:
1120: Access of undefined property batchGenerated. I have tried it as FlexEvent.batchGenerated and FlashEvent.batchGenerated.
The MetaData and function that dispatches the even in the component printableInvoice is all righ...
How can I add a event listener for SaveOrUpdateCopy in NHibernate ?
I see that the ListenerType enumeration does not have a
'SaveOrUpdateCopy' type. I tried using the 'Merge' type, but that adds
it to the MergeEventListeners collection. The SaveOrUpdateCopy invokes
the events from the SaveOrUpdateCopyEventListeners collection.
How can I...
hey everybody,
i'm devlopping an application for android,
i need to make a session between client(cell phone) and e web server (apache)
and keep alive this session to receive notification from the server
for this i may implement socket also make a listener for this socket to notify the client if a file is ready to download, after recei...
Is there any preexisting class that helps support add/remove EventListener operations? (kind of like PropertyChangeSupport)
I'm trying to partition my code into a model and view in Java. I have some data that arrives erratically, and would like the model to support some kind of EventListener so that a view can subscribe to changes in th...
I have an error ? My pl/Sql Developer says my oracle database cannot find the service descriptor But when I Do a check the listener I get this error.
LSNRCTL> start
Starting tnslsnr: please wait...
Service OracleOraDb10g_home1TNSListener already running.
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
LSNRCT...
In reviewing this post http://stackoverflow.com/questions/2317428/android-i-want-to-shake-it, the highest rated answer says you should unregister and reregister the listener for the accelerometer onStop and onResume to conserve battery life.
My question is how do we know which listeners we need to stop/resume to minimize our application...
Hi all.
Problem:
I have CaretListener and DocumentListener listening on a JTextPane.
I need an algorithm that is able to tell which line is the caret at in a JTextPane, here's an illustrative example:
Result: 3rd line
Result: 2nd line
Result: 4th line
and if the algorithm can tell which line the caret is in the JTextPane, it ...
I installed Oracle 11gR2 and I am now trying to access the database from a remote system.
My listener.ora is still the default:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
)
ADR_BASE_LISTENER = /medi...
DocumentListener dl = new MessageDocumentListener();
((AbstractDocument) nboxArea.getDocument()).setDocumentFilter(new DocumentFilter() {
public void insertString(FilterBypass fb, int offset, String string, AttributeSet attr) throws BadLocationException {
string = string.replaceAll("\t", "");
super.insertString(fb, of...
Hi all,
I am using a VideoView to display a video. I am using setOnPreparedListener and setOnCompletionListener to do stuff before and after the video starts and ends.
I was wondering how I could go about detecting some point of time in the video. For eg, say I want to write log to a file when the video has played for 10s. How can I d...
Hello, do you know if it's possible to capture debug output (create debug listener) in C#? I'd like to have functionality like DebugView has, but I'd like to log debug output to SQL server. Or maybe a better way would be to make DebugView log to a file, and then feed the file to SQL server?
Edit:
I've implemented TraceListener and added...