User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 402,454 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,990 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1670 | Replies: 2
Reply
Join Date: Oct 2006
Posts: 5
Reputation: rachaelmom is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rachaelmom rachaelmom is offline Offline
Newbie Poster

Question Posting to same page and re-running javascript

  #1  
Oct 27th, 2006
Hi,

I have a PHP/Javascript page and I need to POST code to the same page in which it is posting from. It posts correctly and PHP picks up the information but the javascript code that deals with certain objects won't run again. I actually have to POST to the same page, do the php stuff, then refresh it to have the javascript work. Why is the javascript not running again after the post?

Thanks
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Posting to same page and re-running javascript

  #2  
Oct 27th, 2006
Don't understand the scenario. If you:

1) serve somepage.php with a form on it
2) the form's action tag is set to "somepage.php"
3) user fills the form, submits it
4) somepage.php runs on the server, processes the form and then
5) generates the same html/css/scripts/form as in step 1, then:

Everything should be fine!
Last edited by tgreer : Oct 27th, 2006 at 1:41 pm.
Reply With Quote  
Join Date: Oct 2006
Posts: 5
Reputation: rachaelmom is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rachaelmom rachaelmom is offline Offline
Newbie Poster

Re: Posting to same page and re-running javascript

  #3  
Oct 30th, 2006
Sorry for this thread. It ended up being a problem relating to php waiting for linux to give a return code.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 3:27 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC