Great tip--thanks! This is just the kind of thing I need.

On Sep 12, 11:42 am, intrader <[email protected]> wrote:
> I use jslint to validate the script. Jslint detects the extra comma at
> line 15. It is a great tool!
>
> On Sep 11, 8:28 am, ao <[email protected]> wrote:
>
> > Ah, so that's it! Thank you! I assumed that commas were needed after
> > each of the dialog attributes, regardless of how many lines they take
> > up...
>
> > AO
>
> > On Sep 11, 8:32 am, Scott González <[email protected]> wrote:
>
> > > The line right before the asterisk has a trailing comma, which is
> > > invalid.  Remove the comma and everything should work.
>
> > > On Sep 10, 12:48 pm, ao <[email protected]> wrote:
>
> > > > Hi all,
>
> > > > I've got a modal dialog with button that works in Firefox 1 and 3.5,
> > > > IE8, Chrome, and Safari. Unfortunately, I can't get it working in IE6
> > > > or IE7. The older IE browsers seem to be entirely broken: the div that
> > > > represents the dialog box is simply written to the screen in the
> > > > appropriate place on the page, and clicking on the class of button
> > > > (RM_button, see code below) that should bring up the dialog also does
> > > > nothing.
>
> > > > The relatively unhelpful error message from IE 6/7 is that line 89,
> > > > character 3 was expected to be an "identifier, string or number." I'm
> > > > not entirely sure that the line number refers to the source (rather
> > > > than, say, one of the included js files), but by moving things around
> > > > in the source a few times to get the line numbers to change, I'm
> > > > reasonably certain that the line with the syntax error is the one
> > > > marked by the asterisk below:
>
> > > > <script language="javascript" type="text/javascript">
>
> > > >         var button_url;
>
> > > >     $(document).ready(function() {
>
> > > >                 $('#popup').dialog({
> > > >                         autoOpen: false,
> > > >                         bgiframe: true,
> > > >                         modal: true,
> > > >                         overlay: {backgroundColor: "#000000", opacity: 
> > > > 0.7},
> > > >             buttons: {
> > > >                                 "Continue": function () {
> > > >                                         $(this).dialog("close");
> > > >                                         window.location=button_url;
> > > >                                 }
> > > >                         },
> > > > *               });
>
> > > >                 $('.RM_button').click(function() {
> > > >                         button_url = $(this).attr('href');
> > > >                         $('#popup').dialog('open');
> > > >                         return false;
> > > >                 });
>
> > > >      });
>
> > > >  </script>
>
> > > > <style type="text/css">
> > > > .ui-widget-overlay {
> > > >   opacity: .6; filter:Alpha(Opacity=60);
> > > >   background: #000000;}
>
> > > > </style>
>
> > > > <div id="popup" title="My Test Popup"><p>Testing.</p></div>
>
> > > > <p>This is the code for one of the buttons that triggers the popup.
> > > > <button type="button" class="RM_button" href="https://fakesite.com";
> > > > value="Test Button">Test Button</button></p>
>
> > > > This would seem to be the semicolon (character 3--does IE's syntax
> > > > tracking count the tabs at the beginning of the line?) terminating the
> > > > dialog initialization code. However, when I remove the semicolon, the
> > > > error remains the same... (and the code still works in the other
> > > > browsers).
>
> > > > Does the javascript here utilize some syntax element that IE doesn't
> > > > expect?
>
> > > > Thanks in advance for any help. I am using QueryUI 1.7.2.
>
> > > > AO
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to