| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Mar 2005
Posts: 912
![]() ![]() ![]() ![]() ![]() | Javascript / PHP Question Hi, ppl, I was just wondering I know that I can generate a javascript from within php and vise versa but when I generate a php command from javascript it just shows plain text it does'nt do anything besides that what is reason it does that ? I just want to know a method so people won't have to refresh their pages to see the contents change.
__________________ Live Support : Zubair11 [at] hotmail.com Free SEO Directory! || Free Online TV || Tech Blog Web Design & Web Development Services || Reliable Web Hosting |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Regular Join Date: Mar 2005
Posts: 912
![]() ![]() ![]() ![]() ![]() | then can I write in php code in a server side language and make it run? cause I'm trying to find out a way so people won't have to refresh their contents.
__________________ Live Support : Zubair11 [at] hotmail.com Free SEO Directory! || Free Online TV || Tech Blog Web Design & Web Development Services || Reliable Web Hosting |
| |
| | #4 (permalink) |
| Professional Monkey Join Date: Jul 2005 Location: Escaped from the zoo
Posts: 907
![]() ![]() | html is not dynamic. changes are only registered when a page is loaded or refreshed. only way for a page to change after its loaded is by using java script oh and php is a server side language
__________________ Webmaster Words |
| |
| | THREAD STARTER #5 (permalink) |
| NamePros Regular Join Date: Mar 2005
Posts: 912
![]() ![]() ![]() ![]() ![]() | I think you don't understand me what im trying to say is that i know html is a static language i know all about what language is what kind I also know that java scripting is a client side language and only way to change a page's contents is through javascript what i wanted to ask is can i give javascript the contents of php example would be : <script language="JavaScript" type="text/javascript"> id.innerHTML = "<?php // put a funtion where which return the number of user onlin?>"; </script>
__________________ Live Support : Zubair11 [at] hotmail.com Free SEO Directory! || Free Online TV || Tech Blog Web Design & Web Development Services || Reliable Web Hosting |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tutorial: Getting started with PHP (The Basics) | deadserious | Webmaster Tutorials | 60 | 11-17-2007 12:35 PM |
| Googlism - What does google think of you? | deadserious | The Break Room | 55 | 12-15-2005 10:09 AM |
| How I fill javascript array with php variables? | wiedzim | CODE | 0 | 03-31-2004 03:45 AM |