Posts

- Where Developers Learn, Share, & Build Careers

I am trying to use Ajax to check that the image is present before loading it or not. I have done most of this work, but I am setting up a variable inside the error: and success: tag in AJAX, and it is not changing my IMG variable, do any of those tags affect the rest function The way? function getImage (imageNum) {var img; $ Ajax ({url: imageLocation + imageNum + '.png', type: 'HEAD', error: function () {img = 0;}, success: function () {var img = $ ('& lt; img / Gt; ', {src: imageLocation + imageNum +' .png ', category:' image ', id:' image '+ imageNum}); return IMG;}}); Console.log (img); Return img; } OK, if I have no reason to use AJAX, then I will only use the image tag. The problem is that the variable is not changing anything in my work. Here is an example function getImage (imageNum) {var img; Var success = 10; Var img = $ ('& lt; img / & gt;', {src: imageLocation + imageNum + '.png', catego...

ruby on rails 3 - Getting a No Route Match on Edit Proposals Controller -

यह मेरा कोड दृश्य में है, बस प्रस्ताव प्रस्ताव को कॉल करने & lt ;% = Link_to "यह प्रस्ताव संपादित करें", edit_idea_proposal_path% & gt; यह प्रस्ताव कोड नियंत्रक में मेरा कोड है मुझे स्पष्ट रूप से एक "संपादित करें" क्रिया है, इसलिए यह मुझे संपादित करने के लिए एक मार्ग त्रुटि क्यों दे रहा है? def बना सकते हैं @ एडीआई = आइडिया.फिंड (पैराम्स [: विचार_आईडी]) @प्रॉपोजल = @ Idea.proposals.create (params [: प्रस्ताव]) अगर @ proposal.save फ़्लैश [: सफलता] = "प्रस्ताव के लिए धन्यवाद!" Redirect_to idea_proposals_url (@ एडीआईए) और फिर से 'नया' अंत अंत डीईएफ़ संपादित करें @आईडीआईए = आइडिया.फंड (पैराम्स [: आईआईडी_आईड]) @प्रॉपोजल = @ आईडिया.प्रॉपोज़ल्स.फंड (पैराम्स [: आईडी]) एंड डीईफ़ अद्यतन @आईडीए = Idea.find (params [: idea_id]) @proposal = @ ideas.proposals.find (params [: id]) अगर @ proposal.update_attributes (params [: प्रस्ताव]) redirect_to idea_proposals_url (@idea) दूसरा 'संपादन' अंत प्रस्तुत करना अंत में इसे समझें, मुझे...

Delphi Chromium Embedded on DLL Form -

I have an application that uses VLL form from DLL. On some form, I kept T chromium from Delphi chromium embedded. There is a problem: when I open my DLL (Form deleted), the application freezes any error or AV. I got some answers - commented in // cef_shutdown lib_cef.pas. Successfully destroyed this path, but I have a large memory leak, DLL is destroying and unloading with other components that make the form from DLL. How can I usually unload the DLL with the form with the T-Chromium component? whenever I need to apply similar mistakes in the case of DLL, then to take DLL for. If you have created an example of an application object, delete the application immediately before unlocking the DLL.

java - Problems with Eclipse adding referenced jars to exported jar file -

I want to create a JAR file from a Meven Java project and it wants to add as external jar file in another project I am However I am receiving a NoClassDefFoundError error. thread "main" java.lang.NoClassDefFoundError exception: org / slf4j / LoggerFactory on com.tutelatechnologies.dashboard.DataUsageLogs.Logging.getlogger (Logging.java:10) on com.tutelatechnologies java.lang.ClassNotFoundException: .dashboard.DataUsageLogs.Logging.d on com.tutelatechnologies.dashboard.DataUsageLogsRunner.DUL_TESTER.main (Logging.java:26) org.slf4j.LoggerFactory in Java due to (DUL_TESTER.java:11) on .net.URLClassLoader $ 1.run java.net.URLClassLoader.findClass on java.net.URLClassLoader $ 1.run (URLClassLoader.java:355) (URLClassLoader.java:366) java.security.AccessController.doPrivileged (Native method on) on java.lang.ClassLoader.loadClass (java.lang.ClassLoader.loadClass in classloader (ClassLoader.java:423) sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.java:308) (URLClassL...

How to construct redirect URL for foursquare iOS app -

I am developing an iPhone app using the square API, it has a location checkin screen with a 'check-in' button And when the user clicks, the square authentication page will open. The problem is how do I successfully return to the test page after checkin on authentication and square. I think I have to use REDIRECT_URL for an iPhone app wisely - but this is a very small clue how to do it Any suggestion would be very helpful. Thank you all in advance. You should open the square type of flow in an embedded web-view. Some sample code

Advice on learning software development and design patterns -

I was programming for a while and I know the basics of Java, C and C ++. I know a little bit of object-oriented programming. Right now, I am trying to improve my knowledge (and I need to use C # for the programming project). But I actually feel lost and disappointed in this way. I want to learn more than the basics of one language. I want to learn design patterns and develop a software project and plan but I do not know how to move forward. I tried to read books on design patterns, but when I make a special project, I am really confused about this, how do you learn object-oriented design and design patterns? I think if I just read a book, then I will not learn a lot. I think the head first design pattern book tries to make it very simple. And the gang of four books seems theoretical (and it says that you have to learn the object-oriented design first). I like books / resources which are more direct-to-points and some exercise. What will be your suggestion in this situation?...

internet explorer - How to Restart IE WebBrowser Control in C# -

Actually I have figured out how pro changes the proxy grammatically, but now I want my web browser to be new proxy. To use To do this, I think that I need to restart IE, and in detail, IE based WebBrowser controls in my C # application How do I do this? Given that you are using web browser controls in your C # application, you do not Do something like restart IE, because its control is in your application. But there can be a new example about reloading webbrosor control, it hopes it will help you