Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old May 28th, 2004, 09:47 PM
emptykaiba emptykaiba is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 emptykaiba User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
PHP Event Handling Vs. JavaScript

Ok, is it possible to perform the event handling in PHP that is done in JavaScript. I mean I want things to change without click a submit button or anything like that. For instance, javascript supports the "onChange" event for select menus. Is there anyway to emulate this in PHP without using JS? Thanks!!!

Reply With Quote
  #2  
Old May 28th, 2004, 10:03 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: PHP Event Handling Vs. JavaScript

no, PHP is a server-side language, which means that it is interpreted by the server and therefore a page would have to be refreshed (to talk with the server) in order to execute more code.

client-side code (like javascript) is interpreted by the browser, and therefore doesn't need refreshed.

Reply With Quote
  #3  
Old June 23rd, 2004, 07:41 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP Event Handling Vs. JavaScript

Hi!... I'm very new to PHP, but I was able to make a solution to interact javascript events with php.

it's a nasty way, but works indeed.

put a hidden iframe in your page. in this hidden iframe you put your php script file. when the desired javascript event occured make a function that refreshes only the iframe, and there you are.

Reply With Quote
  #4  
Old July 5th, 2004, 01:37 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: RE: PHP Event Handling Vs. JavaScript


[quote]
Hi there!. I am interested in learning more about using java event functionality in php. I mean duplicating functionality of onClick and onChange events in java in php pages. Please provide me here some code visibility on the trick you talked about using hidden iFrame. Thanks in advance

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > PHP Event Handling Vs. JavaScript


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway