i know how to do the link thing that if u click it it closes the window. but im wondering if theres a way to automatically close a window after the php code is done running. cause i have an inbox and theres a link to delete the message if you click on it it will open up a new windows and run the php script to delete the message then it will say message deleted. im wondering how instead if just saying msg deleted it can close itself(the window) as well? does anyone know how? can i do it …

Member Avatar
Member Avatar
+0 forum 14

I have a code for countdown timer and it works perfectly fine.. <html> <title>project prelim</title> <head> <script type="text/javascript"> var ss = 10; function countdown() { ss = ss-1; if (ss<0) { window.location="testover.html"; } else { document.getElementById("countdown").innerHTML=ss; window.setTimeout("countdown()", 1000); } } </script> </head> <body onload="countdown()"> <center> <table width="100%" height="600px" style="text-align:center;"> <tr><td valign="center"><h3>Redirecting to testover <h2 id="countdown"></h2></h3></td></tr> </table> </center> </body> </html> Now if I am implementing it in a form which has a button like <form action="batman.php" method="post"> <button id="submit" type="submit" >Submit</button> </form> The code which I have does not do the form submit action. How can I make the form submit …

Member Avatar
Member Avatar
+0 forum 5

Hello all, I am new to Glut, and I have made a program in C to draw lines and triangle using bresenham algorithm. But, when i run the code, the display function is called 3 times automatically. I want it to run only once. If I give input for one line, it takes garbage values 2 more times. Any ideas would be very helpful. Thanks.

Member Avatar
Member Avatar
+0 forum 1

I want to make it create the upload folder by itself.right now it creates the thumbs and so but I want the script to create the folder automatically <?php function createThumbs($pathToImages, $pathToThumbs, $thumbWidth) { $dir = opendir($pathToImages); while(false !== ($fname = readdir($dir))) { $info = pathinfo($pathToImages . $fname); if( strtolower($info['extension']) == 'jpg' ) { echo "Creating thumbnail for {$fname} <br />"; $img = imagecreatefromjpeg( "{$pathToImages}{$fname}"); $width = imagesx ($img); $height = imagesy ($img); $new_width = $thumbWidth; $new_height = floor ($height * ( $thumbWidth / $width)); $tmp_img = imagecreatetruecolor($new_width, $new_height); imagecopyresized( $tmp_img, $img, 0, 0, 0, 0, $new_width, $new_height, $width, $height); …

Member Avatar
Member Avatar
+0 forum 1

Hi ! I have a JFrame which contains some textfields and buttons. imagine a situation that a user wants to fill sth in textfield, then she/he needs more textfields to be shown ! I want when the user clicks a button, more textfields will appear ! its like cc/bcc in some Email services. you enter an address in "TO" and if you need to add BCC, just click on "add bcc" and a new textfield for entering address as BCC, will appear. Can anyone help me to write it in Java? I have tried this but no result : private …

Member Avatar
Member Avatar
+0 forum 5

I want to have a list of months and years when content was posted to my website. Example: /// **Archive** *July 2012 June 2012 May 2012 April 2012* /// Then, clicking one of list items takes you to a page with every post from that month. I know I should setup two columns in my mysql table, month and year. From there, I don't know how to get PHP to build a list using the data. I could do it manually every time a new month comes up, but that defeats the purpose in my book. Please help me, Internet …

Member Avatar
Member Avatar
+0 forum 6

Hello Dani Members I Have Question About My Code <?php $id = intval($_GET["id"]); $result = mysql_query("SELECT * FROM peoples ORDER BY RAND() LIMIT 1"); while($row = mysql_fetch_array($result)) { echo "$row[name]<br/> <a href='members.php?id=$row[id]'><img class='img_shadow' src='$row[image]' width='198' height='250' alt='$row[name]' /></a>"; } ?> This Code Get Me Image Of ONe Member And His Name Random I need It To Show Another Member Every 5 Second Like Slide show I tried Some jQuery Cycle Plugins But I Failed To get What I Need Everytime I Click Refresh It Change The Query So I Need It To Show Automatically I Hope I Explained My Question

Member Avatar
Member Avatar
+0 forum 5

I am using Webbrowser control to automate the data entry but there is a file upload control for which i am unable to upload file. The code of target page is : <form name="iform" style="margin:0px;" action="http://test.com" method="post" enctype="multipart/form-data"> <INPUT TYPE="button" value="Change Image" style="width:112px;"> <input id="file" name="image" type=file class=hiddenMask onchange="upload();" this.edit="false"> I am trying to click the **change image** button but its not getting clicked. Please assist on uploading the file automatically.

Member Avatar
+0 forum 0

Hi all, I have 4 (four) tables using MySql database, ie: [CODE]tb_item ( id_item, (varchar) --> PK item_name, (varchar) price, (double) ) tb_order ( id_order, (varchar) --> PK id_item, (varchar) -->FK date_order, (date) lead_time, (float) order_quantity, (double) ) tb_use ( id_use, (varchar) --> PK id_item, (varchar) -->FK date_use, (date) use_quantity, (double) ) tb_inventory ( id_inventory, (varchar) --> PK id_item, (varchar) --> FK id_order, (varchar) --> FK id_use, (varchar) --> FK item_stock, (double) ) [/CODE] My problem is I want to [B]item_stock[/B] in [B]tb_inventory[/B] automatically updated: when [B]tb_order.order_quantity[/B] or [B]tb_use.use_quantity[/B] are updated, then [B]tb_inventory.item_stock[/B] will updated automatically by using a calculation …

Member Avatar
Member Avatar
+0 forum 2

I have almost made the program which gives urls from google and collect in listbox and sort found as i typed links and copy into richtextbox. But i need to pick up all urls from google automatically from all pages. Because now it does only 1 page. Here is the part of my code in which i want to make it work. [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click WebBrowser1.Navigate("http://www.google.co.zw/search?num=100&hl=en&lr=&biw=1152&bih=683&q=" & TextBox1.Text) End Sub Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted If (WebBrowser1.ReadyState = WebBrowserReadyState.Complete) Then For Each ClientControl As …

Member Avatar
Member Avatar
+0 forum 1

Hi guys, I created an application in C#, which requires [B].Net Framework 4.0[/B] (Not the client profile) I created a Setup project for my application, since it has to be installed on a very big number of computers, some of which may have not access to the internet. Moreover, I don't want to install [B]dotNetFx40_Full_setup.exe[/B] manually, so how can I "embed" this installer in my application's installer? p.s.: I tried putting the exe file in the debug folder of the setup project before the debug, it didn't work. and I appreciate a quick help. I need it today or tomorrow.. …

Member Avatar
Member Avatar
+0 forum 4

I am trying to figure out how to automatically close a simple windows application in C. I know how to create the window. But I have no idea how to get it to automatically close when it has opened without user input/interaction. Basically when it is called upon, I want it to close again. Thanks

Member Avatar
Member Avatar
+0 forum 2

Hi All, I am trying to update my form once the delete button is clicked. There are several fields like Name, Date, Date of Birth and so on. Once I delete a record I want the form to automatically load with new / updated data. This form fetches data from MS Access using OLEDB Once when I close the application and reopen then form will be updated with new values. But I want this to happen once the form loads after deleting. I have spent a long long time trying this but did not get any solution. Please help Regards, …

Member Avatar
Member Avatar
+0 forum 1

Okay, so I have this program I'm working on, and I was wondering if it was possible to disable/enable TextBoxes when specific words are wrtten. I tried doing this, but it errored. I'm a new programmer to VB, I just started a month ago, and I'm doing this for fun. [CODE]If TextBox1.Text = "Shutdown" then TextBox2.Enabled = True[/CODE] I also want it so that you don't have to press a button to identify if it is the right text, so it could "scan" automatically. If this is possible, please tell me, or if it's not, then tell me that :) …

Member Avatar
Member Avatar
+0 forum 4

Hey, I have a c# code that connects remotely to a winServer2008 machine (with a local user of that machine). How do I configure via automated code the logon script that will be executed as soon as the connection is established ? Cheers,

Member Avatar
+0 forum 0

Hi, i'm not really sure how to explain this. I have a table with a lot of places sorted by date, all connected to a MySQL database. I'd like the table to update automatically everyday and remove the top ones where the date has passed so that the table only shows upcoming dates, does anyone know how to do that? Thanks in advance =)

Member Avatar
Member Avatar
+0 forum 1

Hi all, I am currently having a small problem with my Windows XP computer: when I am for example playing Call of Duty 4 or Age of Mythology, the computer minimalizes the window by itself every half hour (or something like that). It doesn't happen with browsers or other applications. I searched the problem up with Google, and found that a possible cause could be that another process requires attention and minimalizes all other windows. But I couldn't find the process responsible for that. I looked all the processes up at [url]www.processlibrary.com[/url] but couldn't find out which one was responsible. …

Member Avatar
Member Avatar
+0 forum 2

The End.