Guessing by his usage of a <div> and a ".load()" call, his intent most
definitely is not to call a separate browser window

Back to the original code, what kind of object is ".Id_Field" ?  seems
like it's a hyperlink since you are "return false"-ing at the end, but
if that's the case then ".va()" isn't going to get something from an
<a> tag


On Sep 21, 2:45 pm, Mike McNally <emmecin...@gmail.com> wrote:
> If by "popup page" you mean "separate browser window", then it's
> somewhat easier. You can have your server-side code return a complete
> HTML page instead of just a fragment, and then use "window.open()" to
> load that URL.
>
> On Mon, Sep 21, 2009 at 1:29 PM, evanbu...@gmail.com
>
>
>
> <evanbu...@gmail.com> wrote:
>
> > My function loads content from an external page
> > (field.details.preview.aspx) and loads it into a div named container.
> > I would like to load this external content into a popup page instead.
> > I'm not sure how to tackle this.  Thanks
>
> > <script type="text/javascript">
> >    $(document).ready(function()
> >    {  $(".Id_Field").click(function()
> >       {
> >        strIdValue = $(this).val()
> >            $("#container").append('<div id="fielddetails"></
> > div>')
> >            .load("field.details.preview.aspx?id_field="+strIdValue,
> > function()
> >            {
> >                $("#container").slideDown("slow");
>
> >            });
> >            return false;
> >        });
> >    });
> > </script>
>
> --
> Turtle, turtle, on the ground,
> Pink and shiny, turn around.

Reply via email to