Click here to Skip to main content
15,886,110 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: JavaScript class problem Pin
AspDotNetDev25-Aug-11 8:11
protectorAspDotNetDev25-Aug-11 8:11 
GeneralRe: JavaScript class problem Pin
Wjousts25-Aug-11 8:18
Wjousts25-Aug-11 8:18 
AnswerRe: JavaScript class problem Pin
AspDotNetDev25-Aug-11 7:19
protectorAspDotNetDev25-Aug-11 7:19 
GeneralRe: JavaScript class problem Pin
Wjousts25-Aug-11 7:43
Wjousts25-Aug-11 7:43 
AnswerRe: JavaScript class problem Pin
AspDotNetDev25-Aug-11 7:47
protectorAspDotNetDev25-Aug-11 7:47 
GeneralRe: JavaScript class problem Pin
Wjousts25-Aug-11 7:58
Wjousts25-Aug-11 7:58 
Questionjquery dialog autosize [modified] Pin
fififlowertot24-Aug-11 3:05
fififlowertot24-Aug-11 3:05 
AnswerRe: jquery dialog autosize Pin
Gerben Jongerius24-Aug-11 19:50
Gerben Jongerius24-Aug-11 19:50 
You will have to create some javascript yourself to build this. First you will have to attach an event to the onload of the iframe. In that onload function you will have to try to calculate the height of the contents and resize the jQuery dialog window. I built something similar a couple of months back, but it didn't work equally well in all scenario's.

// title, url, name, ok_title, width, height <-- these were input variables for my code
      var popup_div = document.createElement('div');
      var popup_content = document.createElement('iframe');
      var dialog = null;
      jQuery(popup_content).css({ 'width': '100%', 'height': '100%', 'border': 'none', 'visibility': 'hidden' });
      popup_content.src = url;
      popup_content.name = name;
      popup_div.id = 'bb-dialog';
      popup_div.appendChild(popup_content);
      document.body.appendChild(popup_div);

      jQuery(popup_content).bind('load', function () {
        height = height == 'auto' ? jQuery(top.window.frames[name]).height() : height,
        width = width == 'auto' ? jQuery(top.window.frames[name]).width() : width;

        jQuery(popup_div).dialog({
          show: 'fade',
          hide: 'fade',
          title: title,
          modal: true,
          position: 'center',
          width: width,
          height: height,
          closeOnEscape: false,
          close: function () { this.parentNode.parentNode.removeChild(this.parentNode); },
          open: function () { jQuery(popup_content).css('visibility', 'visible'); },
          buttons: button_set
        });

        jQuery(this).unbind('load');
      });


Try it out and see if it works for you. Though you might have to tweak it a little bit.
QuestionPassing on Javascript array data to a PHP-array Pin
Gert Koetsier18-Aug-11 6:19
Gert Koetsier18-Aug-11 6:19 
AnswerRe: Passing on Javascript array data to a PHP-array Pin
Evan Gallup3-Sep-11 18:49
Evan Gallup3-Sep-11 18:49 
QuestionJavascript data (array) pass on to PHP Pin
Gert Koetsier18-Aug-11 6:15
Gert Koetsier18-Aug-11 6:15 
Questiondynamic progress bar with respect to time Pin
amjadali25516-Aug-11 18:27
amjadali25516-Aug-11 18:27 
AnswerRe: dynamic progress bar with respect to time Pin
Richard MacCutchan16-Aug-11 22:39
mveRichard MacCutchan16-Aug-11 22:39 
QuestionValidation groups with jQuery validation plugin on ASP.NET webforms? Pin
zeego14-Aug-11 19:32
zeego14-Aug-11 19:32 
AnswerCROSS POST Pin
Not Active14-Aug-11 19:40
mentorNot Active14-Aug-11 19:40 
GeneralRe: CROSS POST Pin
zeego14-Aug-11 20:06
zeego14-Aug-11 20:06 
QuestionHow to Know The Selected Date is Previous in javascript Pin
Arunkumar.Koloth13-Aug-11 20:28
Arunkumar.Koloth13-Aug-11 20:28 
AnswerRe: How to Know The Selected Date is Previous in javascript Pin
DaveAuld13-Aug-11 22:21
professionalDaveAuld13-Aug-11 22:21 
AnswerRe: How to Know The Selected Date is Previous in javascript Pin
Niral Soni24-Aug-11 2:19
Niral Soni24-Aug-11 2:19 
Questioncodeprojectforums.com [modified] Pin
sivakumat11-Aug-11 1:27
sivakumat11-Aug-11 1:27 
Questionjquery (unknown) Pin
AndyInUK11-Aug-11 0:05
AndyInUK11-Aug-11 0:05 
AnswerRe: jquery (unknown) Pin
Pete O'Hanlon11-Aug-11 0:17
mvePete O'Hanlon11-Aug-11 0:17 
AnswerRe: jquery (unknown) Pin
BobJanova11-Aug-11 2:42
BobJanova11-Aug-11 2:42 
GeneralRe: jquery (unknown) Pin
AndyInUK11-Aug-11 5:43
AndyInUK11-Aug-11 5:43 
GeneralRe: jquery (unknown) PinPopular
BobJanova11-Aug-11 7:28
BobJanova11-Aug-11 7:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.