I am fairly new to PHP. I started creating a variety of classes
(calendars, input forms, combo boxes, etc. ) but I am running into code
overhead when I integrate these objects (testing for POST, GETS,
Cookies etc.).
I am looking for an interrupt driven approach to handle event
processing (akin to VB's GUI) to simplify interactions. Basically, I
would like to create the objects to be displayed on the pages and then
activate a page event handler to process ithe inputs. Currently I am
using a mix of js, php and session cookies. But I don't like this
hybrid approach.
AFIK, PHP does not natively support event interrupt handling. Is there
somewhere an add-on or a more elegant work-around to handle such
situations?
I read about Ajax, XML and related technologies. Is this the path to
go? Thanks for any pointers and/or advice.
Mark 3 2567 ms******@bluewin.ch wrote: I am fairly new to PHP. I started creating a variety of classes (calendars, input forms, combo boxes, etc. ) but I am running into code overhead when I integrate these objects (testing for POST, GETS, Cookies etc.).
I am looking for an interrupt driven approach to handle event processing (akin to VB's GUI) to simplify interactions. Basically, I would like to create the objects to be displayed on the pages and then activate a page event handler to process ithe inputs. Currently I am using a mix of js, php and session cookies. But I don't like this hybrid approach.
AFIK, PHP does not natively support event interrupt handling. Is there somewhere an add-on or a more elegant work-around to handle such situations?
I read about Ajax, XML and related technologies. Is this the path to go? Thanks for any pointers and/or advice.
Mark
No, PHP doesn't support interrupt handling - but there's no need to.
The php runs and builds the page. The code then sends the page to the browser
and terminates. When you send input from the browser, a new process or thread
is started to handle the input.
One problem you will have is you can't "display an object" on a page. You can
only write attributes to the page. So you have no object to return to the script.
You could store the object in the $_SESSION and retrieve it later.
But you really need to think in a different way. This is not VB, where you have
one program running all the time. This is transactional - and is handled
differently.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
================== ms******@bluewin.ch wrote: I am fairly new to PHP. I started creating a variety of classes (calendars, input forms, combo boxes, etc. ) but I am running into code overhead when I integrate these objects (testing for POST, GETS, Cookies etc.).
I am looking for an interrupt driven approach to handle event processing (akin to VB's GUI) to simplify interactions. Basically, I would like to create the objects to be displayed on the pages and then activate a page event handler to process ithe inputs. Currently I am using a mix of js, php and session cookies. But I don't like this hybrid approach.
AFIK, PHP does not natively support event interrupt handling. Is there somewhere an add-on or a more elegant work-around to handle such situations?
I read about Ajax, XML and related technologies. Is this the path to go? Thanks for any pointers and/or advice.
Mark
The Prado framework might be what you're looking for http://www.pradosoft.com/. Haven't use it myself--I just saw the
periodic announcements here.
Since you're more comfortable with the event-driven approach, I suspect
you'll be happier programming in ASP.Net.
Also look at AJAX ms******@bluewin.ch wrote: I am fairly new to PHP. I started creating a variety of classes (calendars, input forms, combo boxes, etc. ) but I am running into code overhead when I integrate these objects (testing for POST, GETS, Cookies etc.).
I am looking for an interrupt driven approach to handle event processing (akin to VB's GUI) to simplify interactions. Basically, I would like to create the objects to be displayed on the pages and then activate a page event handler to process ithe inputs. Currently I am using a mix of js, php and session cookies. But I don't like this hybrid approach.
AFIK, PHP does not natively support event interrupt handling. Is there somewhere an add-on or a more elegant work-around to handle such situations?
I read about Ajax, XML and related technologies. Is this the path to go? Thanks for any pointers and/or advice.
Mark This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: alanrn |
last post by:
For all you seasoned VB programmers this is going to be a no brainer.
However, as a C programmer learning VB I'm having trouble getting my
arms around the event-driven nature of VB.
Suppose I...
|
by: Daniel Bass |
last post by:
hey guys.
overview
---------
I'm designing a messaging system that works on the principle of late binding
to the I/O objects, depending on the .Net class libraries present in the
local folder....
|
by: Philip Townsend |
last post by:
I have a user control that displays the contents of a shopping cart. I
want this control to update its contents whenever an item is added to
the cart. Currently, the cart only updates if it is...
|
by: Pavils Jurjans |
last post by:
Hello,
I am looking for solution to assign the Session.onEnd event handler
dynamically, at runtime, without using global.asax file. I am a bit sceptic
wether that is possible, however I thought...
|
by: Joseph Geretz |
last post by:
Writing an Outlook AddIn with C#. For the user interface within Outlook I'm
adding matching pairs of Toolbar buttons and Menu items. All of the buttons
and menu items are wired up to send events to...
|
by: Snor |
last post by:
I'm attempting to create a lobby & game server for a multiplayer game,
and have hit a problem early on with the server design. I am stuck
between using a threaded server, and using an event driven...
|
by: AzizMandar |
last post by:
C++ Event Coding Questions
I have done some simple programs in C++ and read a lot of good C++
books (Including The C++ Programing Language, and C++ Primer) I am
trying to understand and...
|
by: John Kotuby |
last post by:
Hi guys,
I am converting a rather complicated database driven Web application from
classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The
original ASP application works quite...
|
by: ZBINContact |
last post by:
I am creating a self-checking set of usercontrols. They tend to call
their self-checking functionally in the "Load" event. I have run into
a problem with my TextBox usercontrol, however, as the...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |