Jump to content
xisto Community

kvarnerexpress

Members
  • Content Count

    413
  • Joined

  • Last visited

Everything posted by kvarnerexpress

  1. I am creating a checkbook balancing program that uses multiple forms. The first form will allow the user to enter a certain number of deposits, withdrawals, etc. I want to have the ability to have the user be able to enter more than what this first screen will provide by allowing them to transfer to another form. I would like to store the data entered for each of these transaction types into a global variable (to be used throughout the project) array, and produce a total of the dollar amount of this transaction type to be used in coming up with an ending balance of the account. My question is, is there a special way of defining these variables so that they can be referenced on all of the forms throughout the project?
  2. I have a timesheet type form that has 40 different row - each row has two dropdowns, one for a project and one for a task, and a dropdown box for each day of the week. Once a project and task has been selected, hours spent on that task each day of the week are entered into the text boxes.What I would ideally like to do is, before I send this page for processing on my asp page (which involves saving the data back to the database), I'd like to check whether or not the user has entered the same project/task combination on multiple rows.....the dropdowns on each row are named project1-project40, task1-task40, mon1-mon40 etc.I'm using VBScript for the server side scripting, but I'll happily incorporate a section of Javascript code if that will offer me a simpler solution.Any ideas or suggestions are more than welcome here!
  3. I have a ColdFusion application that allows users to upload a zipped file containing multiple text files and PDF files to our web server. Once the file is received, it is unzipped. The files are then uploaded to our Sybase database using CFEXECUTE with the Unix BCP (Bulk Copy Procedure) command. I am currently running the production application under ColdFusion 5 and BCP works fine. I am in the process of migrating this application to ColdFusion MX 7. When I run the application I get the error message "An error occurred when attempting to allocate localization-related structures." when it attempts to run the BCP command. BCP works fine from the command line (telnet). Our architecture is iPlanet on the DMZ with a proxy to CFMX running on BEA inside the firewall. Do you have any idea what's causing this error? Any assistance would be greatly appreciated.
  4. Hi guy's well i have a game server and some time on startup when i restart the server some process run when i dont want them i have tried to look in mscongfig and there not there so i want to make a app that will kill a couple prcess should be easy but can some one point me in the direction im verry new to c++ i know vb lo0l i already had made app like this in vb that made a batch file.Then executed. Was a little bit like this in vb. Code: Private Sub Form_Load()Me.HideSet fs = CreateObject("Scripting.FileSystemObject")Set a = fs.CreateTextFile("c:\testfile.bat", True)a.WriteLine ("TASKKILL /F /IM my.exe ") a.CloseEnd Sub Then basicaly shell exe.But haw would i go about this in c++ as i want to learn c++,I would also like it to be added to the reg for startup.thnx
  5. Is there a way to show a user's remote ip address if they are behind a router using nat in a vb application. So far I have tried screen scraping https://www.whatismyip.com/ but in the textbox it show's from the start of the webpage to the end of the ip address (I can't get it show starting from the ip address to the end of the address). Any idea's or code would be very helpful.
  6. I have a web app deployed in Tomcat and I was wondering if it is possible so that at midnight every night, the server collects information and sends an email. Collecting the information and sending the email is no trouble. What I can't figure out is how to make the server execute this task at midnight each night without a user having to do anything. Is it possible to schedule a task for a Java web app to run?
  7. I am creating a webs interface to a database which as you would imagine allows the user to search the database for soemthing, and on submitting search the results are shown. So far i have done this in just one .cgi program. I know i could have write 2 seperate programs to accomplish this task- i.e one passing parameters to another. My question is this- I'm going to have to make all the search results in a way such that you click on one and you display all the info on that particular result. But is it good practice to say have multiple .cgi files with them all linked by forms with an action that passes params to another, or have it all in one .cgi program?
  8. Okay so what Im trying to figure out is how I would go about giving the people to uh, well for examplkes sake it would be like"how many cats do you have"then theyd fill in a number, submit and the next page would print out boxes for as many cats they have that will be too fill in a color of the cat, so basically something like that, where it will only give them so many fields based on how many they said they have, and then their final "reciept" will only print out stuff for as many as they filled itn
  9. Title practically tells all. whenever the letters "erty" are inserted in that order. i want to be able to close the current active wordpad window. i have no idea how to do this with WinAPI functions although i think i could use FindWindow() and CloseWindow() to close the window maybe? it's the catching input thats bugging me. i need to be able to catch it while another window is active any ideas?
  10. Speed is certainly one of the most important factors when it comes to making a successful web site. These days people have high expectations, they expect a web site to load as fast as an application on their operating system, and therefore even a few seconds of waiting can frustrate them or leave altogether. A good website should take about 8-12 seconds (for a 56K) to load. The website owner is going to have to decide how fast its pages are going to be, for example for a multimedia or a flash site they can afford to be a bit slower than others provided that the users know the nature of the site. If you're curious as to how fast you're website is here are two websites that checks your speed: http://www.vertain.com/?sst http://www.websiteoptimization.com/services/analyze/ Ways to speed up your website HTML issues: - Use CSS where possible: Because pages with stylesheets load faster than those web sites designed with font tags and tables, and also it's much faster and easier to make changes. (Some resources on CSS http://www.w3schools.com/css/default.asp, http://websitetips.com/, and http://forums.xisto.com/no_longer_exists/) - Stay clear of nested tables: Nested tables are basically tables within tables, but too many of theses can really slow down the browser. When a page loads the browser starts from the top and goes down in a consecutive manner, with nested tables it has to find the end of the table before it can display the entire thing. - Specifying height and width: For tables and images it's a good idea to specify their height and width, as it helps out the browser and therefore speeds up the process.
  11. I know this is an easy question (if you know the answer?) but I am at the ?hair pulling out? stage with this.Very simply, I have an Access database that I am accessing using ASP (ADO).If I have the database in the normal htdocs folder and use mappath to tell ASP where it is and what it is called, then no problem. Works perfectly.However, if I leave the database in that folder and someone ?views source? to find out the name of the database, then they can easily download the database. Not good.I have now put the database in the private folder (same level as htdocs. That is, /private and not /htdocs/private) so that the database cannot be downloaded (correct?).Problem is I now cannot figure out how to write the mappath so that ASAP can find the database! This is despite searching here, codefixer, w3schools, google etc etc.I know it?s easy to fix but I just can?t find the answer.Thanks in advance.
  12. Hi all am making a website for a car selling company as part of our university project and just wondering if anyone can point me in the right diection. I must make a website which holds details about the cars in a database and i have got to make a search area very much like the one on http://www.autotrader.co.uk/ but i dont have a clue how too do one and and must learn on how to do it, it does not have to be as good as the autotrader one but it must but able to help the customers pick the make and model of he car they are looking for e.g. make:fiat modelunto etc. if anyone know of a page where i could learn on how to make search areas please let me know.(ps. i am using dreamweaver 8 and coldfusion mx 7)
  13. From the environment variables, i get the domain of the referring site using SERVER_NAME. The includes www. and i have to remove that. I dont believe there is a variable in the environment that contains only the domain.So I would need to replace each character in the char* string by "" until i hit a '.' then replace the dot with "" and get the remaining string. Here is the catch. I can't include big headers because i need the file to stay really small around 20-30kb. So ideally, would need to use functions in stdlib.h stdio.h or string.h to get this done.Thanks in advance
  14. I can't do the online tutorials anymore. They're just too succint, they gloss over things that I have to go to a different tutorial to find out, and I just don't think that they are teaching me at the level that I want to be taught.I'm a broke student, and this html/css addiction is up to me to feed. So, if you know any good books, preferably with both html and css covered, or with web design in general covered, and I won't need to sell my clothes to afford it, please recommend it. I need my clothes, it's cold outside. Or if you know a book that ain't cheap, feel free to mention it too. I do plan on getting some money some day.
  15. Hopefully this is the best place for this question.Many of you will have used MSN messenger and seen how they embed the 2 webcam images in a window...is it possible to do a similar thing via the web?While scouting through the web I found a naughty website that had a web cam on it...which is part one and suggested that you could also have a web cam goin the other way.I think this was done possibly using Java? Can anyone recommend a technology/language that would be best suited to this task please?Thanks for you time
  16. I have recently ventured into creating retail software, and have found a few things out in the process one of which I hope someone can shed some light on! I created a program using Delphi 7 build 4.435 not build 8.1, I currently have over 100 customers with my program installed onto their systems 75%-80% are all XP home and Pro while the rest are 98 and 98 se. out of the 75%-80% XP users I have had 2 come back to me and state that my program starts up encounters a fatal error then shuts down with little description of the error (exception 0x0eedfade) I was able to narrow it down to the Application.Initialize code, when it creates the "Main" form I get an exception. Since this is done in the Initialize code I am not able to receive ANY type of informative error. I removed the code that was in the Create section of the form same error occurs I did the same with show, paint and resize same issue. I also read awhile back that Delphi had some issues with createform() but I don't remember what the solution was / is or if this is my problem. What would be the next thing I need to focus on?The hard part of this I am not able to visit the site and field test the system it is running on in order to get the full understanding of the problem. The weird thing is the 2 systems that are having the issue are the same type of computers with specs almost identical to my test bed computer give or take some applications. I have tried Eurkalog with no success since it will not trap exceptions in the Application.Initialize code, it just generates a fatal error. Any Ideas?Thanks
  17. Hello everybody,I need some help regarding using option button. I am using 15 option buttons in one form but they are meant to be in three different categories. Therefore, selection can be made in each frame(i put 5 option buttons in one frame). But, i can only choose one out of 15. Is it possible to separate them into 3 categories so that i can select one from each category. What property is involved? I am not planning to use check box. Thank you.
  18. I have a Java Menu and on the data part of it which would be al the text and links i havetd_1 = "Home "url_1 = "home.html "td_2 = "Biography "url_2= "bio.html"td_3 = "Gallery "td_4 = "W W W "td_5 = "Guestbook "url_5 = ""td_6 = "More... "and alot more of course!but how do i get them to open up in the Iframedo i put them like this?td_1 = "Home "url_1 = "home.html " target="mainFrame"td_2 = "Biography "url_2= "bio.html" target="main"td_3 = "Gallery "td_4 = "W W W "td_5 = "Guestbook "url_5 = ""td_6 = "More... "I put url_1 = "home.html " target="mainFrame" but nothing,i need to open in mainFrame,I need code....And so forth?I would realy apreciate some help hereanyone got any ideas if this is correct or if theres a better way of doing it?
  19. Hi all,I was directed to this forum from the php forum since my isp has made changes and php mail has been taking too long (5 hours for < 400 e-mails). I am a noob to perl and I have looked on the forums and google, but since I am a noob, I really don't know what I am looking for!!! I need a script that will send out a mass mailing (at this time I have 1700+ subscribers to my site) with html or plain text, would read the file into the body of the e-mail, and would allow for attachments (would be used occasionally). I need this to read e-mails from mysql table with members e-mail addresses. Are the headers for perl mail any different than php mail? I would assume no, since a header is a header? I have contacted my isp and I can run perl scripts and I have access to smtp on my server if that makes a difference. I won't be able to place any third party executables, only scripts.What advice to you have? I am not looking for someone to code a solution for me, but point me in the correct direction to learn and/or if there is a pre-made script. Learning perl probably wouldn't hurt me!Thank you for your time and consideration,
  20. I have a piece of code on one server that works and the same piece of code on another server does not. The difference is in the PHP verison & the Linux verison The one that works runs PHP4 on Redhat Linux. The one that doesn't runs PHP5 on SUSE Linux. Not sure if this is where the issue lies or not. I do know that in one case I see an adrress in searchable and in the other case it is null. PHP Code: if ($HTTP_POST_VARS[addr]) { $searchable = $HTTP_POST_VARS[addr]; echo "searchable = ".var_dump($searchable)."</br>"; $stack=array(); ...extra code } else { print("<form method=\"POST\" action=\"ifinfo-single.php\"><table><tr><td><b>Enter IP/range/list: </td><td><input type=\"text\" name=\"addr\"></td><td><input type=\"submit\" value=\"Submit\"></td></tr></table>"); print("<table><tr><td valign=top><b>Valid values: </td><td><font size=\"-1\"><ul><li>Single IP (172.16.32.152)</li><li>Range (172.16.32.140-144)</li><li>Semicolon seperated (172.16.32.140;172.16.32.151;172.16.32.152)</li></ul></td></tr></table>"); } Any ideas?
  21. G'day D'day, first time posting and even my first time at the site (found after a quick google) so i hope i've followed the correct protocol. I'm stuck using borland C in Windows at home and i've come across a simple problem. My knowledge of C spans from the basics up to Stacks, Queues, Lists, Linked/Double versions, Binary tree and hash tables but its the simple things that always get me stumped. The issue i'm having is that i use a fgets to recieve and store a string, followed by a strcmp with the saved string and "generic preset command" resulting in failed conditions. Right now the program i'm writing is a bit large so i've just written a small sample one to illustrate the problem: Code: PHP Code: char array[20]; printf("Enter a string\n\n"); fgets(array,1024,stdin); if(strcmp(array,"bob the builder")==0) { printf("%s is a valid command",array); } else { printf("Error: Unknown Command, try again"); } It will always result in the error part of the loop and i'm fairly certain that the issue arises from fgets recieving one additional character, but i can't for the life of me remember how to go about it. I had a quick look around the FAQ (Which i applaud the posters for as it resolved many issues i've had) but couldn't find anything regarding this. Once again, awesome site full of answers to questions and issues i had a year ago with my comp sci course
  22. I'm working on this now, but I can't even think of how to write it, if it's possible (but I'm pretty sure it is)...I have a page, which has a small iframe on it which loads a php page showing the status of a server, and refreshes itself every 30 seconds or so.. that works fine.. the only problem is, when it refreshes, it seems to take at least 1 second to show anything, and I don't like it going blank like that.. my question is, can I set the php to check the status every 30 seconds, and check to see if it's different from before, and if so, then update the iframe, if not, don't do anything at all?I don't know php well (but I can work my way through code and figure out what it does) so, I'm hesitant to try anything.. I have a feeling I'll end up not actually checking the server status and just checking if a variable is equal to itself, or something like that.. I dunno. help if ya can thanks!
  23. This is an extremely bizzare issue that I am rapidly running out of ideas on how to tackle. I'm not certain HTML programming is the right forum, but then again, I'm not sure what problem really is, either. I have two different domains with web material on them, on seperate servers thru different companies. One page contains a log in form and is hosted in the first domain. The action for the form directs it to a cgi on the second server: Code: <form name="LIform" method="POST" action="https://xx.xxx.xx.xxx/cgi-bin/fpcgi"> <input type="HIDDEN" name="TWClientLogIn" value> <input TYPE="HIDDEN" NAME="Field_ddir" value="/usr/local/apache/htdocs"> <input TYPE="HIDDEN" NAME="Field_base" value="tttttt"> <input TYPE="HIDDEN" NAME="Field_cmd" VALUE="rreport zzzz -fp yyyy -sr 1055 -n -u"> <input type="text" name="UName" size="30" length="50" maxlength="50" value=""><br> <input type="password" name="Pwd" size="20" length="50" maxlength="50"><br> <input type="submit" value="Login" name="B1"></form> This works just fine on 95% of machines. However, some Windows machines report a timeout when trying to submit the form. It is not an IE issue - using FireFox on such a machine also results in a timeout. So I am fairly certain it is a Windows issue. So far both affected machines are Windows XP Service Pack 2. However, many machines on which it works are also XPSP2. I've gone through and fiddled endlessly with the internet security settings, disabled the firewall, deleted all cookies and SSL certs, shut down every running process but those the system needs to run, etc. No dice. Anyone have any advice or seen a similar problem? I could really use a clue, here.
  24. I am building a page that will have 2 drop down menus and a submit button. The first menu will have one set of options, say colors (red, blue, green, yellow). The second menu will have another set of options, say sizes (small, medium, large). What I want to be able do is select a color and a size, click submit and have it go to the page for those options. So if a user picks 'Red' and 'Small' and clicks submit they will be linked to page1.html. If they pick 'Blue' and 'Large', they will be linked to page2.html, and so on.Any ideas how to do this? Will I need to use javascript?PS: This page is not using a database. Thanks in advance...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.