[jQuery] Dialog has no scrollbars

2009-03-04 Thread jtibbetts

Scrollbars refuse to appear on my dialog box.

function LoadDialog (id) {
$("body").append('');
$("#dialog").dialog( { title: 'Dialog', autoOpen: false, resizable:
false, width: '525px', height: '500px' } );
$("#dialog").dialog("open").load("/in/content.php");
}

Calling this function creates a dialog box and loads "/in/
content.php", but scrollbars do not appear. The content in
"content.php" is much longer than the 500px height of the dialog box.

I've tried making it resizable or not, modal or not, draggable or not.
Nothing works.


[jQuery] Re: Cancel .toggle() when a link is clicked

2008-09-10 Thread jtibbetts

Unfortunately, I need to click the  itself. I've tried every
which way to avoid it, but the UI I'm creating requires it. 8|

On Sep 10, 11:09 am, ryanstreet <[EMAIL PROTECTED]>
wrote:
> perhaps, if you are looking to have an element shown for an indefinite
> period of time, perhaps just using show() and hide() are more up your
> alley.
>
> So instead of toggle for a div, use show and hide elements.  That way,
> you don't have to write super functions and whatnot.  That is the joy
> of Jquery! Since you are clicking inside the div, you are clicking on
> the div itself, you are triggering the event.  Try using a separate
> link or separate div to show the main information.
>
> Show Me!
>
> do something
> 
>  >  doesn't stop the toggling. The "return false" just cancels the
> > default behavior of the link (i.e. the href), but I need to cancel the
> > default behavior of the parent "toggle" . :\
>
> > On Sep 9, 6:45 pm, FrenchiINLA <[EMAIL PROTECTED]> wrote:
>
> > > to make id simple i add an 'notoggle' id to your link you can use the
> > > following code:
> > >         $('#toggle').click(function() { alert('toggle'); });
> > >         $('#notoggle').click(function() { alert('No Toggle'); return
> > > false; }); or if you don't want use id for the link $('#toggle a')
> > > instead of $('#notoggle').
> > > 
> > >       Click here for more info
> > >       do something
> > >  
>
> > > On Sep 9, 12:41 pm, jtibbetts <[EMAIL PROTECTED]> wrote:
>
> > > > How do you stop .toggle() from toggling an object when a link (or any
> > > > object) inside the object is clicked.
>
> > > > Here's a quick contrived example:
>
> > > > 
> > > >      Click here for more info
> > > >      do something
> > > > 
> > > > blah blah blah...
>
> > > > 
> > > > $("#toggle").toggle(
> > > >      function () {
> > > >           $("#info").show();
> > > >      },
> > > >      function () {
> > > >           $("#info").hide();
> > > >      }
> > > > );
> > > > 
>
> > > > Clicking on the "toggle"  toggles the "info" . If the "do
> > > > something" link is clicked, the "toggle"  will toggle *and*
> > > > DoSomething() will be called. I want to be able to click the "do
> > > > something" link and only have DoSomething() trigger but not cause the
> > > >  to toggle. Is this possible?
>
> > > > (Forgive the code if it's wrong, but I just whipped it up on the fly)


[jQuery] Re: Cancel .toggle() when a link is clicked

2008-09-10 Thread jtibbetts

Unfortunately, adding "return false" to the link inside the "toggle"
 doesn't stop the toggling. The "return false" just cancels the
default behavior of the link (i.e. the href), but I need to cancel the
default behavior of the parent "toggle" . :\

On Sep 9, 6:45 pm, FrenchiINLA <[EMAIL PROTECTED]> wrote:
> to make id simple i add an 'notoggle' id to your link you can use the
> following code:
>         $('#toggle').click(function() { alert('toggle'); });
>         $('#notoggle').click(function() { alert('No Toggle'); return
> false; }); or if you don't want use id for the link $('#toggle a')
> instead of $('#notoggle').
> 
>       Click here for more info
>       do something
>  
>
> On Sep 9, 12:41 pm, jtibbetts <[EMAIL PROTECTED]> wrote:
>
> > How do you stop .toggle() from toggling an object when a link (or any
> > object) inside the object is clicked.
>
> > Here's a quick contrived example:
>
> > 
> >      Click here for more info
> >      do something
> > 
> > blah blah blah...
>
> > 
> > $("#toggle").toggle(
> >      function () {
> >           $("#info").show();
> >      },
> >      function () {
> >           $("#info").hide();
> >      }
> > );
> > 
>
> > Clicking on the "toggle"  toggles the "info" . If the "do
> > something" link is clicked, the "toggle"  will toggle *and*
> > DoSomething() will be called. I want to be able to click the "do
> > something" link and only have DoSomething() trigger but not cause the
> >  to toggle. Is this possible?
>
> > (Forgive the code if it's wrong, but I just whipped it up on the fly)


[jQuery] Cancel .toggle() when a link is clicked

2008-09-09 Thread jtibbetts

How do you stop .toggle() from toggling an object when a link (or any
object) inside the object is clicked.

Here's a quick contrived example:


 Click here for more info
 do something

blah blah blah...


$("#toggle").toggle(
 function () {
  $("#info").show();
 },
 function () {
  $("#info").hide();
 }
);


Clicking on the "toggle"  toggles the "info" . If the "do
something" link is clicked, the "toggle"  will toggle *and*
DoSomething() will be called. I want to be able to click the "do
something" link and only have DoSomething() trigger but not cause the
 to toggle. Is this possible?

(Forgive the code if it's wrong, but I just whipped it up on the fly)