Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
run javascript before php finishes.
Old 06-12-2005, 03:28 PM run javascript before php finishes.
Average Talker

Posts: 15
Trades: 0
Is there a way of using php to print a javascript to a page and have it set a cookie while the php is still executing (aka - delay the execution somehow until the javascript has finished running) then have the php read the cookie? all in one page load?
bennyboywonder is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-12-2005, 05:53 PM
WaHoOoO!'s Avatar
Mentally Unstable Tugboat Captain

Posts: 797
Name: Chad
Location: /usr/bin/perl
Trades: 0
Not directly, however, you could run a PHP script, then run a javascript, then have it execute a second PHP script.
__________________
He's baaaaaaaack....
WaHoOoO! is offline
Reply With Quote
View Public Profile Visit WaHoOoO!'s homepage!
 
Old 06-13-2005, 05:49 AM
Average Talker

Posts: 15
Trades: 0
well currently my solution reloads the page so that the php on the page can pick up the cookie just set... is that the kind of thing you meant? ideally I wanted to do it in one page load.
bennyboywonder is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to run javascript before php finishes.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11334 seconds with 12 queries