Current location: Hot Scripts Forums » General Web Coding » JavaScript » timed events php and javascript?


timed events php and javascript?

Reply
  #1 (permalink)  
Old 03-28-09, 12:00 PM
pigro's Avatar
pigro pigro is offline
New Member
 
Join Date: Mar 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
timed events php and javascript?

Good morning,

sorry for my poor english ^_^

Im building a standalone management tool in php and im currently locked on a timed event.
I've created a form that insert 2 values in a mysql DB but i need to put (for some minutes) one value in a second form too (a list box)

(trying to simplify my request), example:
form 1
input box name "nome"
button "submit"

when i click the "submit" button i need to put for "10" minutes "nome" value in a listbox of form 2.

Someone can help me pls?
I've searched on our bible "google" and the solution seems to be in "javascript" that i dont know :-(
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-30-09, 02:13 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Do you mean that you need to wait 10 minutes after clicking submit on form1 and then submit form 2?

That will be hard if you don't have the form in a frame (or submit it using AJAX) because the submit makes the page reload, and then all JavaScript is stopped. It would also need the user to stay on the site for at least 10 minutes after he/she has submitted the form, or the script will not run.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 03-31-09, 03:52 AM
pigro's Avatar
pigro pigro is offline
New Member
 
Join Date: Mar 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
I think that we can use the "button" that don't reload the page..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing Javascript Variable to PHP watadude PHP 4 01-15-11 07:44 PM
PHP inside JavaScript? pikaz JavaScript 20 07-10-10 01:55 AM
How to create image using php and pass its site to javascript method PHP 4 04-03-07 09:19 AM
Include PHP via javascript bkbenson JavaScript 4 02-19-05 01:40 AM
javascript multiple select menu for php? isaacmlee JavaScript 1 10-15-04 10:53 AM


All times are GMT -5. The time now is 01:57 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.