271 Discussion / Question Topics
Remove Filter Hello Im trying to modify something when clicking on a input text field. The id of that field is cart[1223686][qty]. Tried your standard: $j("#cart[1223686][qty]").click(function() { alert("Handler for .click() called."); }); But nothing. What is wrong? (Yes, $j is correct) | |
Hello Lets clear it up a bit: I want to get the width and height of the browser window where I can click. This does not include scrollbars/toolbars. I thought it was with innerheight/width. Strangly, width works (I resize it and onload shoots a alert and it is changed) but … | |
Hello Now that I know how to get the width/height, how can I detect if the browser is maximized or not? Crossbrowser of course. Thanks | |
Hello What is a universal way to make a windows/browser maximized or fullscreen? I understand user intervention is neccesary so it can be a button even though I perfer automatically (even if it is maximized instead of fullscreen) Thank you | |
Hello Im currently creating BMPs as a bufferedimage as following: BufferedImage bufferedImage = new BufferedImage(320, 320, BufferedImage.TYPE_INT_RGB); Thing is that black and white is more than enough for me so would I do this: BufferedImage bufferedImage = new BufferedImage(320, 320, BufferedImage.TYPE_BYTE_BINARY); ? Thanks | |
Im trying to set a session variable using AJAX but it doesnt seem to work: This is my PHTML page: <?php session_start(); ?> //SOME CODE <script type="text/javascript"> $j(document).ready(function() { var variablecalle=$j("#listadetiendas").val(); var data = 'calle='+variablecalle; $j.ajax({ url: '../../updatesession.php', type: 'POST', data: data }) }); Then this is my "updatesession.php" page: … | |
Hello I have this drawing program on a canvas and when it is on the top left corner of the document, when I move the cursor over the canvas and it previews the point Im going to click it is perfect. But when I move the canvas (say 5 pixels) … | |
Hello I want to create a button that when the user clicks on it, the browser goes automatically fullscreen. It would be for mainly IE9 and I use for the rest of the browsers the HTML5 fullscreen API. Thanks ![]() | |
Hello I have a combobox which has some values. When I click on it and select a item (with my mouse, for now) I want to get those values. Im not sure if its mousedown or comboboxchange or how its called. Now Im a completely noob when it comes to … | |
Hello By the way Javascript works Im not sure if this is possible but I would like to debug Javascript much like debugging C# or/and Java; I put a breakpoint in a line and press (for example) F5 so it goes to the next line/function and pauses and keeps going … | |
Hello I want to make a C# web services for XAMPP (basically Apache). I know I have to download a mod for this but first thing is first: Where is a good guide to read on how to create a web service? Guides Ive found are either outdated or very … | |
Hello I wish to convert the following jQuery each to fors....This way I can see it a lot clearer.... var draws = this.canvasListener.getDrawManager().getAll(); $j.each(draws, function(index, draw) { var points = draw.getPointManager().getAll(); $j.each(points, function(index, point) { }.bind(this)); } Yes, I know "each" is faster and better optimize but I dont care. … | |
Ive created a dropdown box dynamically getting datea from a database but when I try to get (or set) the first value, it always says undefined. Ive tried something like: $j("#mydiv").val(1); var somevariable = $j("#mydiv").val(); console.log ("print it out " + somevariable); And it says print it out undefined If … | |
Hello Im wondering if Thickbox is movable. If not, is there a alternative that I can quick change to (meaning almost no transtition) so I make a modal window movable....Must support iframes. | |
Man that was a mouthful! Basically I have a page which when I click on a button, a jQuery (iframe) window comes up. Here there is a combobox that should be filled with values I read from a database. Ive been reading two pages: http://openenergymonitor.org/emon/node/107 http://stackoverflow.com/questions/8019489/simple-ajax-jquery-script-how-can-i-get-information-for-each-of-the-rows-in-the But Im having problems … | |
Hello Ive created a button dynamically using Javascript and now I want to automatically click on it. The code I create (actually modify) the button is something similar to: $j(idtext, window.parent.document).html('I am a button<input type="hidden" id="imagenv" name="imagenv" value="'+imgstr+'"/>'); Now I want to automatically click on it. Ive tried .live() (I … | |
Hello I answered my own thread and marked the thread as solved but it gave another user (which really didnt help at all) the "solved post". How can I select who and what post solved the thread? ![]() | |
I habe table one with Col 1 (PK) Col 2 (NN) Col 3 (NN) Col 4 (NN) Col 5 (NN) Col 6 Col 7 Col 8 Then I create table two with Col 1 (PK) (AI) Col 2 Col 3 (FK) That col 3 from table two is col 1 … | |
Hi This is related to 3 threads: http://www.daniweb.com/software-development/java/threads/438729/recursive-ftp-listingmakingcreatingetc-access http://www.daniweb.com/software-development/java/threads/439941/recursive-ftp-listingmakingcreatingetc-access...-part-2 http://www.daniweb.com/software-development/java/threads/442142/recursive-ftp-listingmakingcreatingetc-access...-part-3 At first, I had NO clue where to even start. Over a couple of weeks, Ive slowly but surely started to make the process correctly but Im stumpped so (for the third time) ive thought of rewriting everything from sratch. … | |
I apoligize for making so many topics about this......Its just that different methods have proved pointless and do not work. I want to do the following: I only have two functions right now: createfolder (Function A) and insertfile (Function B). Nothing else. My requirements are the following: Random number is … | |
In java what is the best way to create a truely random number sequence? One that is 100% never to be repeated again Thank you | |
This a followup to these two threads: http://www.daniweb.com/software-development/java/threads/438729/recursive-ftp-listingmakingcreatingetc-access http://www.daniweb.com/software-development/java/threads/439941/recursive-ftp-listingmakingcreatingetc-access...-part-2 For the "real thing" Ive decided to break it to two function: Insert file and make directory. Ill reexplain what I am trying to do. Im going to go a folder called "webfolder". If it isnt found, it is created. If … | |
Hello Im looking for a good date picker and easy to implement. HTML, PHP, and/or Javascript. Since this is professional, I need also several things: 1: Language support. 2: If I pick Feburary, it doesnt show a legal day as 31 3: 3 dropdown boxes: One for month, another for … | |
Hello I want to remove this: > As you see it is a blank but the regular variable.replace(/\s+/g,''); does not work. I generate this character with Alt+0160 The best way would be its ascii code so how do I do it? | |
Hello First off the server is running Windows 7 32bits. I have the following code: <?php $fp = fopen(getcwd()."/test.txt", "w"); fwrite($fp, "hello"); chmod(getcwd()."/test.txt", 0777); unlink(getcwd()."/test.txt"); fclose($fp); ?> It creates the file perfectly but afterwards I cannot delete it. Giving me this error: Warning: unlink(C:\test.txt) [function.unlink]: Permission denied in C:\writeanddel.php on … | |
Hello I want to do a indexOf but of certain special characters such as variable.indexOf(''')==-1) variable.indexOf('/')==-1) variable.indexOf('')==-1) variable.indexOf('"')==-1) etc, etc. How can I do this? | |
Hello I want to make a simple bat file in Windows 7 but the command (route) only works in admin mode so I would have to ask for admin premissions. How do I do this in a bat file? Thank you | |
(The answers for getting a reply for this HERE are near null but might as well give it a shot....) Hello My products have a item option that is stored in “sales_flat_quote_item_option”. This happens when I select this option for the product and I add the product to that cart. … | |
Hey I want to Load/read/write a big file (ISO) in C#. Ive tried various combinations (FileStream, BinaryStream, etc) but all of them give me a "OutOfMemory" exception. What is the best way to load a big file into C# to work with it? Ill be using the DiscUtils library if … | |
This is a continuation of the last thread. I insert 3 files: Two bins (path and a number) and either a jpg or a bmp This does the following. 1: Connects to FTP and changes to C:/ (/) 2: It checks if a webfolder exists. If it is, goes to … | |
Hello Im trying to do some basic FTP work. What I am trying to do is: 1: Search for a folder named "hi" in "C:". If hi exists, enter it. If it doesnt, create it THEN enter it. 2: Inside hi, count FILES and see if there is greater or … | |
Is there any easy IDE that lets you build a easy GUI with Java? I wish you could comply native Java using VS! :P | |
Hello I have the following: String somestring="203/9834/345"; somestring.replace("/",""); System.out.println(somestring); But it does not remove the slashes. How can I remove them? Thanks | |
Hello Why does my cookie work offline but not offline? It simply stores text, nothing else. Is there some limit that can be blocking it or something? | |
Hello I want to be able to be on a page and have a favorite that points to http://localhost/export which is a web service. When I select that favorite, the current web page Im on should send all of its source code to the web service. The web service should … | |
Hey I want to make a Visual C++ program targeting x86 (and ARM) Windows CE .NET 4.20 using .NET Compact Framework. How do I do this? Thanks | |
Hello How do I write a C++ program targeting a x86 version of Windows CE in Visual Studio 2008? It doesnt show me Windows CE and more so, all it targets is ARM. Thanks | |
This one is going to be intresting.... Im trying to access the method of BeginAcceptTcpClient in a System.Net.Sockets.TcpListener type of object but it seems that the 3.5 .NET Compact Framework does not support it..... Is there a equivilent method or how can I emulate the method with other code? Thank … | |
Hey I want to do something like this: <script language="javascript"> function calculatesha() { var name = document.getElementById("firstname").value; var last = document.getElementById("lastname").value; var complete = name+last; var hash = <?php echo(sha1(?>complete<?php));?>; } </script> I hope the code is understood even if it is wrong. Thanks. | |
Whats the best way to port a Java web service to a C# web service? Multiplatform. Thanks | |
Hello Im using org.apache.commons.net's FTP object to make FTP transfers. The problem is that when the IP is down (example, the PC is turned off) a exception saying "No route to host" pops up and not only delays my program but gives a nasty error. How can I avoid this? … | |
Hey I want to make a website lets say http://www.mysite.com but before they view it, they have to login with username and password (those are stored in a DB). It doesnt matter if they access http://www.mysite.com/hello http://www.mysite.com/hello.html or http://www.mysite.com/hello/something/j.php ect the first time they access, they have to login, else … | |
I was going to start Apache/Tomcat as root but Ive rethought it and have gone against it. How can I make my web service read/write from "/"? I keep getting permission denied exceptions... | |
Hey How do I run my web service as root? Yes, I know the security implecations of this. Thanks | |
Hey Im looking for a easy and fast way to install Apache Tomcat and Axis 2 on a Ubuntu box. I followed a guide but it left my PC a mess (I couldnt get updates correctly) Thank you | |
Hello Im posting this in C because Arena is highly influenced by C.... Im trying to open a file using fopen but I cant get it to work. Ive made the permissions on the file 777 (all) just in case but it doesnt work. Can someone please test that it … | |
Hello I want to run a command as sudo (to be especific open a file) but I dont want to run the entire program as sudo obviously. How do i do a fopen with sudo previlges? I dont mind hardcoding the password (eg, so it wont ask me for my … | |
Im wondering if there is a program for building GUIs with XML where I can simply build it visually (WYSIWYG style) and copy/paste the code in my Android IDE. Thanks | |
Hello I want to make two shell scripts but they shell scripts isnt exactly my language :P The following is all pseudocode The first script will run every say 5 minutes: if /tmp/media/sda1 exists or /tmp/media/sda2 exists or /tmp/media/sda3 exists or /tmp/media/sda4 exists then do variable storage=what ever above first … | |
How do i make a autorun usb that executes a shell script that is on the USB drive? This would be only for my system so if there is something i have to enable, no problem (i imagine something like this would be disabled for security reasons) I believe the … |
The End.