Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Form Submit Close Qtip
25th January, 17:37
Post: #1
Form Submit Close Qtip
How do I access elements inside the qtip content URL?

JS Code
$(document).ready(function() {
    var date = new Date();
    var d = date.getDate();
    var m = date.getMonth();
    var y = date.getFullYear();
 
    $('#calendar').fullCalendar({
     header: {
      left: 'prev,next today',
      center: 'title',
      right: 'month,agendaWeek,agendaDay'
     },
     editable: true,
     dayClick: function(date, allDay, jsEvent, view) {
      $(this).qtip({
       content: {
        title: {
         text: 'Create Event',
         button: 'close'
        },
 
        url: 'add_event.php',
        data: { selectdate: $.fullCalendar.formatDate( date, 'ddd, MMMM d') },
        method: 'post'
       },
       style: {
        width:300,
        height:100
       },
       position: {
        corner: {
         target:'rightMiddle',
         tooltip:'bottomMiddle'
        }
       },
       show: {
        when: {
         event: 'click'
        },
        ready: true
       },
       hide: 'unfocus',
       api: {
        onRender: function() {
         var self = this;
         self.elements.tooltip.click(function() {
// need to submit ajax request and close qtip after submit button is pressed
...
         });
        }
       }
      });
     }
    });
   });
Find all posts by this user
Quote this message in a reply
25th January, 18:52
Post: #2
RE: Form Submit Close Qtip
In what sense b0gui? You mean like in the jQuery.load function where you can specify a specific element with the returned page?

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Close button within AJAX phpmysqlguy 1 258 12th March 21:00
Last Post: Craig
  [Solved] Form submit grabbing wrong value loveccb 3 565 26th January 16:53
Last Post: ramon.alvarez
  qTip modal accept/decline form jinx8402 0 431 15th December 13:34
Last Post: jinx8402
  [Solved] I need close my tooltip after receive a callback from my ajax klauzito 2 661 1st November 13:39
Last Post: klauzito
  Programmatically close the qtip Dsan 0 970 2nd September 09:09
Last Post: Dsan
  post ajax from qtip2/validation form jquerynewb 4 1,334 14th July 08:19
Last Post: Craig
  form wizzard rify 0 335 29th June 14:30
Last Post: rify
  [Solved] Form within qTip barnaby 3 1,200 28th February 18:08
Last Post: Craig
  Having a file upload form in qTip, possible? Help! lancelot_one 5 1,145 19th February 18:01
Last Post: lancelot_one
  qTip and Forms, how to access form input/elements/form data? lancelot_one 2 1,555 15th February 21:43
Last Post: lancelot_one



User(s) browsing this thread: 1 Guest(s)