No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
8 Posted Topics
hi I'm making a full AJAX site with prototype, and I want that every time a hyperlink is activated, the event is canceled and a AJAX script loads the page instead. This is the code I'm using: [code=javascript]Event.observe(window, 'load', function(){ Event.observe($$('a'), 'click', function(e){ Event.stop(e); window.location.hash = $(Event.element(e)).readAttribute('href'); new Ajax.Updater('main', $(Event.element(e)).readAttribute('href'), … | |
Hey all I have a htaccess file, than I want to redirect from (*)\.php to index.php#$1, but the # is making the rest a comment, how do I avoid this? I've tried with \#, but no change. How do I insert this icon? | |
hey all :) I'm making a console program, and I want to do that when you run it from the terminal, you can give arguments like -debug (./program -debug). How do i get whether an argument is set or not in the code? i've tried #ifdef debug, but it didn't … | |
Re: IE8 is going to support input type="file" styling (it does in the beta). Maybe the others browers will do so too soon. | |
Hello :) I'm making a (new :P) game in C++, and in the beginning of the file, I'm initializing an array like this [code] int tower_dmg[5][3]; int tower_spd[5][3]; int tower_eff[5][3]; int tower_efc[5][3]; int tower_cst[5][3]; [/code] And later in the program, when loading images and initializing a lot of stuff, i … | |
hey :) i have this piece of code: [code] while(!(std::cin >> input) || input < 1 || input > 100){ std::cout << "not valid, try again: "; } [/code] it should allow the user only to be able to write numbers between 1 and 100 (input is a short int), … | |
I've made this Supaplex-like game, but I have a problem. I want to have more levels, so I've made that when moving to the next level, it clears the vectors with all the objects, and putting new objects into. this is my code for moving to level 2: [code] void … | |
Hello :) I'm making a very simple game in C++ (very much like the old DOS game Supaplex if anybody know that :P). I'm using the windows API, not GDI, DirectX or anything like that. I've only just begun learning the Win Api some days ago :) I have the … |
The End.