- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 6
- Posts with Upvotes
- 6
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Java Developer
- PC Specs
- intel p4 3.0 ghz, 512 ram, geforce 4 128, debian + freeBSD. toshiba 2.4 ghz celeron, windows xp.
116 Posted Topics
Re: Wow Pow, You have made many errors in your header file. 1. Too many braces in your if conditions. 2. C++ is case sensitive. 3. If an if condition is followed by a semi-colon, then the if condition terminates at the semi-colon, hence the else is illegal because it follows … | |
Re: The amazing thing about the internet is its abundance of resources about the internet, well and other computer related technologies. My advice would be to utilise these resources first.. if you see something you like on the internet, take a look at the source (keep in mind the suffix of … | |
Re: I think your problem is the reload, when this happens the window probably loses all relationship references (I'm guessing). If the parent refreshes, it makes sense that your code no longer controls the child. With this in mind it seems logical that the opposite is also true. I imagine you … | |
Re: What you usually do is what Tom has suggested, but you would invoke a call to the code that you want to execute after timeout. So if you had an algorithm like such: [code] function myFunction(){ doSomething(); wait(500); doSomethingElse(); } [/code] You would implement this with: [code] function myFunction(){ doSomething(); … | |
Re: hey, your code works in firefox. so i'd say it pretty close to working in IE. the only change i had to make was in regards to the table row index.. but i presume you already have a row in your table. | |
Re: Did you want a random page on refresh? Server side would be better for this. But if you wanted to do it client side, then just have an array of URLs and use the document.location.href attribute (randomly selecting a loaction). Of course you couldn't have the random href set onload, … | |
Re: I recently discovered this page [url]http://www-128.ibm.com/developerworks/web/library/wa-ie2mozgd/[/url], through slashdot i think, it covers several of the differences between IE and Firefox. It also contains many of the links to the standards that these browsers pretend to comply with. Unfortunately, it is often difficult to find the standard (accurately) that particular browsers … | |
Re: This page demonstrates a technique that can be used to add functions to a body onload, or similar attribute. The beauty of this is that it can be used in situations where your project does not control ownership of the header section of the page, but you want to assign … ![]() | |
Re: It seems that this type of action may not work on all machines. You probably need internet explorer and outlook or some similar compatible combination browser and email clients. Take a look at these links: [url]http://www.netmechanic.com/news/vol3/form_no4.htm[/url] [url]http://www.wdvl.com/Authoring/HTML/Forms/mailto.html[/url] ![]() | |
Re: Should be lots of resources on this. Check out the Java Tutorials [url]http://java.sun.com/docs/books/tutorial/index.html[/url] and also the demos that you will have recieved in your sdk. There are two features of Java that make it easy to do this kind of thing. 1. The API contains support for viewing many graphic … | |
Hey, I'm having an issue getting the height and width of DIV elements that have resized themselves to fit their content. Note: I do not have a problem getting the height and width of DIV elements that I have set using Javascript. The probel is that this value appears to … | |
Re: You can't do this with a HTML scripting language. If you use a server side language - something like JSP, ASP, PHP etc, then you can scan the server directories and populate a list in the webpage. Also, remember to use web URL paths and not filesystem paths: [QUOTE]C:\Desktop special\leftmenu\video\intro.wmv[/QUOTE] … | |
Re: Tgreer had more than one example.. if you read his comments and code you will learn much about event handling in mozilla. To copy and paste, try the last example. to get the x and y coordinates, look at where tgreer posted the event object properties. cheers. | |
Re: [B]kc0arf[/B] That sounds like a cool idea.... would it imitate a network and algorithms or would it be a number of emulators like bochs or vmware, that you could install applications on that actually runs like a network? | |
Re: In Java there is a random seek stream which you can use to read and write at arbitary points in a file. I am not sure if similar is available in C#, but most of the stuff in the Java API is available in C# somewhere. However, what the h3ll … | |
Re: There are a few ways you can operate using arrays in javascript... firstly, you don't need to be constrained to using integer indexes... all arrays in javascript are simply normal javascript objects... hence there are a few ways you can assign new values: array_x[0] = "red"; or array_x[array_x.length] = "red"; … | |
Re: Running web services would be recommended. FTP does not necessarily guarantee delivery and you can't be sure the file is downloaded unless you also download a flag file. Alternatively you could write your own FTP process, but thats rather a long way around the problem. FTP would be faster than … | |
Re: IE can use the forms name element to identify the form. I hope that the same is not true for firefox. but I think in firefox and IE you can use the forms ID attribute ( the form should still have a name!! ). I prefer to use this technique: … | |
Re: [QUOTE=SnotRockit] I remember a while back learning that the "default" number system used was the (Oct?) system...0-7[/QUOTE] The default system is decimal, but if you put a '0' in front of your number it is Octal. But you would need to do your assignments without the string operator for this … | |
Re: Why do you want to pass an array list to your action class? didn't it come from the server in the first place? | |
Re: Hi, you want the user to go to the page they select right? When the user goes to the next page, your page is reloaded, there are only 3 solutions I can think of for your problem. And this is a design problem, not a Javascript problem as such. 1. … | |
Re: Hi, I've found loading complex javascript in blogger difficult! Firstly, even in HTML mode blogger adds <br/> tags, which will obviously break your javascript... if you can, it would be a lot easier to host your javascript somewhere else and import it - but even then, I can't guarantee it … | |
Re: Hi saurav! I'm not sure what is in the dwr package, but you might not be referencing it correctly? Perhaps it is [CODE]util.getValue("firstName");[/CODE]? However you can do the same like this: [CODE]var text=document.getElementById("firstName").value;[/CODE] | |
Re: Have you tried debugging the native object in a C ide first? The interface from Java to C tends to be pretty simple... If you are happy with what is going on in Java, then it seems like the sensible step? | |
Re: This is a very general question - I'd recommend checking out some wiki applications. Which can be on ASP.NET - I think? But .NET is a framework, for which many applications exist. I noticed that you've put out a few posts around similar stuff - wiki is a really easy … | |
Re: It would probably being using an AJAX method to check for updates on the chat server. These can be threaded to wait for your comments, while also checking the server for updates. How much knowledge in the area do you have? I'd recommend you start looking at [URL="http://jquery.com/"]jQuery[/URL] and in … | |
Re: Hi, If you want to do this with a lot of different links and for it to work well in IE and Firefox, then you might want to change it a little... alternatively, I would use an ID attribute instead of a name... Anyhow, take a look at this: [CODE]<html> … | |
Re: [QUOTE=michael.ngobeni;418726]Hi guys, document.FormName.myname[COLOR=red][B]+x+[/B][/COLOR].value = 'Test'; [/QUOTE] The reason your code didn't work is that you were trying to construct the element variable as if it were a string... If you wanted to to it like this, you would need to construct the javascript you wanted to execute as a string … | |
Re: I don't think there is a way to terminate the call - apart from closing the document. Prototypes are similar to objects - if you are familiar with OOP? If you have a prototype 'instance' then you can avoid deadlock situations, consider what is deadlocking and establish if it needs … | |
Re: You can give an html element an ID. [CODE]<img src="something.jpg" id="yourId">[/CODE] Then look the object up using the ID. [CODE]var domElement = document.getElementById("yourId")[/CODE] Now you have a reference to the dom element and you can interact with its properties... [CODE]domElement.src = "somethingnew.jpg";[/CODE] That is pretty much all you need to … | |
Re: Hi, instead of a zip file - could you just post the code? | |
Re: To ensure the page is loaded before the add is drawn you can use a setTimeout(yourfunction,500) type mechanism in the onLoad. You can also look at using the html dom to add innerHTML instead of using document.write This can be done at any time... you could even set up a … | |
Re: You can't "import" a javascript file with a javascript file. There is an import (and export) keyword in the javascript, but these are used for visibility of members. I wrote some code to import libraries as the user required them... but its pretty rough. This should theoretically allow dynamic importing. … | |
Re: Hi, There are many ways you could solve this issue and depending on your target audience, you may have to implement more than one solution. A favourite approach is to use an AJAX solution. This requires knowledge of JavaScript and a server page that provides categories based on topic. However, … | |
Re: I use Notepad++ it is a highly functional text editor, available open source from sourceforge. There are alternatives liek textpad and ultraedit. Your issue is that windows and linux/unix use a different newline sequence. Mac used to as well - perhaps it still does? The only way to get around … | |
Re: I'm not too familiar with JSP at the moment. But you are confusing your HTML code with your interpreted code... I presume that JSP is parsed once. So you shouldn't include JSP tags inside other JSP tags. I think the error it is reporting is that it thinks that "<bean:write … | |
Re: What specifically would you like to know about this problem? An ArithmeticException is thrown when something involving arithmetic occurs that is not handled by the Java language. The example in the Java API is an integer divide by zero exception. So you need to create a situation where this situation … | |
Re: Hi, I've been doing lots of work with 'AJAX' at work. But my team didn't like that acronym, so we made up our own. Jasc. Java API for Server Communications. Because really 'AJAX' is just a heap of Web technologies that have been around for ages. And the acronym AJAX … | |
Re: I have also found this, that uses the bochs emulator to test the OS... you'd want to hurry up with it though, as the new semester is almost upon us and that may mean that the site loses resources or tightens security. [url]http://www.cs.ucla.edu/~kohler/class/04f-aos/index.html[/url] | |
Re: system.gc is just a request to collect garbage, it won't invoke it immediately. And how long it takes depends on how much memory you have that is available for collection - not much = fast, lots = slow. Hence this is a very difficult to reliably time. | |
Re: The easiest way in most Linux/BSD distros is to use the default package manager, this way you are likely to install the version that is recommended and tested for your distro version and install the components in their default locations. | |
Re: Some C++ compilers do not require IO imports to include cin/cout. The same is true with some C compilers and printf etc. | |
Re: no reason why you couldn't do this with javascript, Math.random and the window onload event. | |
Re: I think you have forgotten to close the second tbody - this could cause your issue. | |
Re: You can't. [url]http://www.w3.org/TR/REC-html32-19970114[/url] But why do you want to, HTML 3.2 was superseded by HTML 4.0 in 1997. But CSS is supported, so if you truely want 3.2 level implementation you will have to learn some CSS. | |
Re: I'd say that the problem is the spec on the machines (even if its not)... Javascript tends to be bad with string operations and regex can also be slow. Javascript can also have issues with method stacks. But I'd consider the machine spec first. | |
Re: I also think its a server conf problem. It sounds like you are not using your cgi, you are just trying to load the html page. Typically you don't have html in your cgi-bin, from your error it sounds like your server is configured to treat everything in the cgi-bin … | |
Re: There are valid points in this response. You can ignore the use of AJAX technologies designing your page, and then enrich the user experience using more Javascript handled HTTP Requests. But it is much more sensible to design your new site with AJAX in mind. Building client and server functions … | |
Re: [code] <style type="text/css"> body { background-image: url('images/101.jpg'); background-repeat: no-repeat; background-attachment: fixed; background-color: #FFFFE5; margin-left: 0px; margin-top: 0px; line-height: 22px; } </style> [/code] |
The End.