Hello. That's exactly what the method you're invoking returns, the height/width referenced to its parent coordinate system. If you want to get the offset referenced to the screen (1st level of DOM) you can get it by adding all offset values invoking recursively to 'get_offsetParent' method (n-1) times. Hope it helps. Regards
Skynet_Code
Posts
-
How do i get the screen coordinates of an IHTMLElement? -
How to copy a root directory (copy a flash drive) and paste it somewhere else?Hi. I think your problem comes with WNet security implementation exploited by your Runtime (viewing code, I denote .NET but don't know what release). Perhaps making a 'net use ...' first, could solve the IOException. If not, here you can find information : http://msdn.microsoft.com/en-us/library/Aa385413[^] Hope it helps! Regards
-
How to use Tomcat instead of GlassFish with NetBeans?In fact, when you're creating your new J2EE project, you've got the option to define where you've installed the App. Server desired for your project, in order to allow the IDE to build the specific artefact with its deployment descriptors.
-
Google's development languageAre you sure they aren't using Go?... What a contradiction!
-
hiCloud Computing is an architectural concept that will drive us into 70's VT-100 terminals but with an HTTP client built-in ;P It's the concept of software exposed as service over the internet, only that.
-
Equivalent Java Function - having a return type of BSTR (How to implement BSTR* in JAVA?)Having a C++ written class, you need to convert it into a shared library (so or DLL); for example, suppose you can embed the snippet you are using in C++ (the one you posted before) into a function like LPSTR yourSnippet(). You can dynamically link the generated shared library from Java using: static {System.loadLibrary("libreria.dll");} and declaring method as native : native String getCadena(); When building wrapper header file (with javah) you'll see in .h file type corresponging : JNIEXPORT jstring JNICALL <>_getCadena (JNIEnv *, jobject) You just have to write a C file including the generated header file you builded with javah, and implement <>get_Cadena function with: return yourSnippet(); . Just compile and link them as shared library 'libreria.dll' and you got it! I hope helped you. Best Regards.
-
glassfish server 3 start failed ????If you take a look to Server Tab in NetBeans IDE, probably you'll find that needs an inexistent file into ../domains/domain1 folder. Try to start it from IDE without any project (Start Server) or manually from <>/glassfish/bin/startserv. Best Regards
-
integrating a Map and GIS in a java path finding simulatorHi. You got that and much more, but embedded in Javascript objects (ideal for working with Ajax);I recommend you to take a look to http://code.google.com/intl/en-UK/apis/maps/documentation/javascript/v2/services.html and you'll see it clearly, your work is in building a wrapper class for "protocol" translation. It could be helpful for you getting a (free) Google Maps API key and take a look before starting the project to see if it covers what you need. Best regards
-
integrating a Map and GIS in a java path finding simulatorHello. I think Google Maps API is a very good idea in order you get road map and positioning methods just implemented. Only handicap is that Google Maps is HTTP oriented, and you are thinking of a Swing application (via Applet or Standalone), so you have to decide how to integrate it : - Case Applet, you can directly communicate with a Javascript controller that exploits Google Maps Api - Case StandAlone, you could use URL class to wrapper Google Maps Api controller module. It's more a design decission question than capabilities: if you are not sure about Gogle Maps, try to design your module interfaces covering generic functionalities and having in mind a GOF pattern; if so, your Google Factory implementation will be only a wrapper (one line of code) and if, once started, you detect Google is not reliable for any reason, you don't have to destroy any code, just implement the other factory. I hope I've helped you. Best Regards.
-
begintrans, commit and rollbackYou can check if <>.State equals 'adStateOpen' constant.