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
php mix with Javascript
Old 06-06-2005, 12:48 AM php mix with Javascript
Experienced Talker

Posts: 32
Trades: 0
Is it possible to use a javascript code to call a php file. If so can someone give me few examples of how to do so please thank you.
rcubes85 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-06-2005, 01:45 PM
Experienced Talker

Posts: 32
Trades: 0
does any one know if this is possible please
rcubes85 is offline
Reply With Quote
View Public Profile
 
Old 06-06-2005, 02:38 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
PHP files don't get 'called' as such - all you will be able to do with Javascript is redirect to another page (which can be generated by a php script if you want).

If you describe the purpose of what you are attempting then maybe we can suggest how javascript can be used to achieve it or possibly think of some alternatives.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 06-06-2005, 02:51 PM
Marvin Le Rouge's Avatar
Skilled Talker

Posts: 52
Trades: 0
Your question is not quite clear. Could you precise please ?
Marvin Le Rouge is offline
Reply With Quote
View Public Profile
 
Old 06-06-2005, 06:42 PM
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
Not possible. Javascript is client side, php is server-side. The only way in which javascript can possibly 'talk' with php is via another connection to the server i.e. submitting a form, refreshing, redirecting the page or loading another page.
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
Old 06-06-2005, 09:42 PM
Phaedrus's Avatar
Ultra Talker

Posts: 271
Location: CA
Trades: 0
Yeah, you can call a PHP file with javascript, just redirect to that page (like Oberon said) or submit() a form w/javascript to a PHP page. Of course, you don't need JS to do that, just HTML.

Also, there are many people experimenting with Javascript/XML/PHP/MySQL in something called AJAX
__________________

Please login or register to view this content. Registration is FREE
Phaedrus is offline
Reply With Quote
View Public Profile
 
Old 06-07-2005, 02:38 AM
Experienced Talker

Posts: 32
Trades: 0
thanks folks
rcubes85 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to php mix with Javascript
 

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.25277 seconds with 12 queries