jauqrey popup form

open please http://89.212.111.174/delovtujini.si/ and click "VPIS V BAZO". You will get popup where you can fill contact form. Can i do this with fuel. And if yes how? Here on this example i do everything in the same html page. In fuel can i do this with http://fancyapps.com/fancybox/. I try but none solution works. I try to call /fuel/contact and to open it like in example.

Thx

Comments

  • edited 4:58AM
    FUEL is just a layer on top of CodeIgniter so you should approach the page like you would by just using CodeIgniter and creating a view with the appropriate Javascript, CSS, etc. Are you familiar with CodeIgniter?
  • edited 4:58AM
    thank you. yes i am familiar with CI but not how to do this like in example wih ajax. From main view call and open popup in another controller.
  • edited 4:58AM
    If you are using AJAX and jQuery, you can simply just request the content like any other webpage.
    $.ajax({ url: 'forms/example', success : function(html){ console.log(html) }
    If you are using the "Opt-in" controller method FUEL provides (where you don't need to create a controller), then you will need to make sure that the page is not using the full layout or the page header and footer will automatically be pull ited. To do that you can set the following in your view file (e.g. fuel/applications/views/forms/example.php)
    fuel_set_var('layout', '');
  • edited 4:58AM
    thank you again. So if i want to access contact form in first example i just use url: fuel/contact where contact.php is view and controller. And i can also use validator in this form?

    And in the second i don't need controler at all? do you have any example for second option. I search in demo but i can't find it. Thx

    i just need similar output as in exampe i posted in first topic.

    thank you
  • edited 4:58AM
    The FUEL 0.93 demo site came with a contact controller and corresponding view file as an example. Note that you access it at "contact" and NOT "fuel/contact".
    https://github.com/daylightstudio/FUEL-CMS/tree/demo

    More information about creating pages can be found here.
    http://www.getfuelcms.com/user_guide/general/creating-pages
  • edited November 2012
    Hello, it is me again. One more questions. With "opt-in" controller i can do everything in the same .php file. Is that true?

    What about standfard way. Where to put $.ajax({ code. Inside controller or view? Or somewhere else...

    Thx
  • edited 4:58AM
    If you are using AJAX, you can use either a page generated by the "opt-in" controller method or by using a normal controller -> view. AJAX is just needing a URI resource it can resolve.
  • edited 4:58AM
    Hello. That is logic yes but where exactly? Can you give me an example? Thx
Sign In or Register to comment.