1
luciorota
Problems with Xoops form objects and ajax
  • 2012/3/17 6:48

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


Hi,
I'm working on a Xoops module having a lot of ajax techniques.
I would like to use Xoops form objects, but ... lot of problems with asynchronous calls...
Am I the only having this kind of problems?
Are there some solutions... or... has someone found solutions?
thanks


Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321

2
culex
Re: Problems with Xoops form objects and ajax
  • 2012/3/18 12:36

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


It depends on what your planning to do with the xoops forms.
If your applying xoops forms to a container using ajax, in my experience there are no problems.

Most times I have used forms with ajax I set up my own forms or extend the forms class so I am able to set up more attributes on the form.
Programming is like sex:
One mistake and you have to support it for the rest of your life.

3
luciorota
Re: Problems with Xoops form objects and ajax
  • 2012/3/18 21:09

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


It's true but for exemple, a form object like XoopsFormTextDateSelect is not ready for use asynchronous, it adds scripts to the header section of you html page...
are there some tricks to bypass this kind of problems?

thanks
Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321

4
culex
Re: Problems with Xoops form objects and ajax
  • 2012/3/18 23:10

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


It should be no problem if XoopsFormTextDateSelect adds some javascript to the header.

All you need to do is to post the value from the form. If you then want to display the value inline etc. You simply use value 'select:selected'.

I forget a little about the xoopsFormTextDateSelect but I think this returns a single unixtimestamp.

Or maybe I misunderstood the question ?
Programming is like sex:
One mistake and you have to support it for the rest of your life.

Login

Who's Online

205 user(s) are online (155 user(s) are browsing Support Forums)


Members: 0


Guests: 205


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits