I am a bit unsure on how to tackle this problem. My goals is to allow user to write an article and upon submit a windows would then verify with the parameter of the article if articles exist or some are simular according to x parameters. Show them to the user in a pop windows and allow user to determine if he wants to combine the article such has picture to a previous existing article or to create his own one.
The issue i have his how can i create a pop up windows, without been block by most current browser, if impossible would my alternative be
- to send it to a new form?
- to process with a multiform instead? and how can it be done!
My next task his how could i combine, or not, should i create a hidden field and look in the controller if combine then this else this???
Thanks for any help, tutorial links, and suggestion are appreciated. My really main question dough his can it be done with pop up windows! Aka Javascript black surrounding does work too, but not sure if allowed and how can it be achieved!
Yes it can be done, CSS, Jquery (AJAX) probably how I would do it. You may want to break it down into stages.
Check these links…
jQuery .html() to append response data.
jQuery .ajax() to make request.
There are loads of modal/lightbox tutorials but pretty simple and better to learn if you have a go yourself. You can always post more specific questions when you have some code to show. Hope this helps.