chozma
Member
Hi all,
Would hugely appreciate some advice on the best way to go about this one...
I have a form that allows you to create a record about an animal. You can link an animal to a mob (another word for a herd). The mobs info is stored in a separate table. If a user is adding an animal and has not yet created a mob the form creates a message with some help text.
Now here's the bit I could use some help with...
I would like to put a link in that help text to open a window (just a little pop up sort of thing, like you get when you use ajax) with the form that allows you to create the mob. Then once the user has saved the mob I would like the page they were working on to update and show the mob in a dropdown list. Of course I don't want them to create a new mob and lose any info they have already entered.
How can I go about doing this? Any snippets of code etc would be most appreciated.
Thanks,
Hannah
Would hugely appreciate some advice on the best way to go about this one...
I have a form that allows you to create a record about an animal. You can link an animal to a mob (another word for a herd). The mobs info is stored in a separate table. If a user is adding an animal and has not yet created a mob the form creates a message with some help text.
Now here's the bit I could use some help with...
I would like to put a link in that help text to open a window (just a little pop up sort of thing, like you get when you use ajax) with the form that allows you to create the mob. Then once the user has saved the mob I would like the page they were working on to update and show the mob in a dropdown list. Of course I don't want them to create a new mob and lose any info they have already entered.
How can I go about doing this? Any snippets of code etc would be most appreciated.
Thanks,
Hannah