Javascript to handle form data

Discussion in 'JavaScript' started by tanyania, Jun 20, 2011.

  1. #1
    Hello,

    I'm looking to try and get a form to submit showing the results in a lightbox/squeezebox or something similar. I'm using Joomla!

    Does anyone know if this is possible or how to do it? I've used a component called BreezingForms to create and process the forms. There is a section that I can enter in javascript to be executed after submitting a form.

    Any ideas?
     
    tanyania, Jun 20, 2011 IP
  2. unknownpray

    unknownpray Active Member

    Messages:
    3,831
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Follow this code
    window.addEvent('domready', {

    /**
    * Set default options, overrideable from later calls.
    */
    SqueezeBox.initialize({
    size: {x: 350, y: 400}
    });

    /**
    * Assign SqueezeBox to all links with rel="boxed" attribute, the class then reads the

    "href".
    */
    SqueezeBox.assign($$('a[rel=boxed]'));

    /**
    * Open some content manually
    */
    SqueezeBox.open('manual.html'); // handler defaults to "ajax" for urls

    SqueezeBox.open('http://digitarald.de', {handler: 'iframe'}); // we force the "iframe"

    handler here ...

    SqueezeBox.open($('welcome'), {handler: 'adopt'}); // and here we force "adopt" handler
    });
     
    unknownpray, Jul 15, 2011 IP