Jump to content

New to ajax


_maarten

Recommended Posts

Hi,

 

I'm new to ajax and I'm trying to make an application with Zend framework.

What I want to do is the following:

 

I have 2 boxes with information, each with an edit button.

I want to be able to edit those boxes on the same page, and I want to use overlay forms (so I'm probably going to use dijit / dojo)

 

The way I see it is that I just generate the forms on that page, and use javascript to make them popup, the form itself does a submit to a controller that return a status code.

When the status code is ok, the overlay closes, and I want the box to reload the information from the database.

 

I was planning on making a controller that outputs data in XML (or another format) and have Javascript construct my content (lets say in this case a user table)

and upon form submission I would then to an .innerHTML = function_that_fetches_xml_and_generates_table;

 

Is this a good idea or is this a bad way of using javascript / ajax?

Link to comment
https://forums.phpfreaks.com/topic/222891-new-to-ajax/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.