Got ya. I didn't think that the compID might be generated by some
previous AJAX interaction.

Good catch.

/alex

On 2/22/07, Erik Beeson <[EMAIL PROTECTED]> wrote:
> Why to not use a link might be because the URL is generated by some
> javascript code. If the compid part is know at the time the page is
> rendered, then certainly a link made in PHP would be best:
>
> <a href="compdetail.php?compid=<?= $compid ?>">...</a>
>
> --Erik
>
> On 2/22/07, Alex Ezell <[EMAIL PROTECTED]> wrote:
> > I might not have read this right, so please explain more if I missed 
> > something.
> >
> > If it goes to a new page, why not just use a link? Why any javascript?
> >
> > If the idea is to use the whole area of the <td> as the link, then
> > just use CSS on the "a" selector to style the box model for the
> > appropriate "a" tag to fill the <td>. Does that make sense?
> >
> > /alex
> >
> > On 2/22/07, Brian Ronk <[EMAIL PROTECTED]> wrote:
> > > This is a little strange, but I want to do a non AJAX request.  I
> > > thought it might be a synchronous request, instead of asynchronous,
> > > but that didn't work.  This is what I tried:
> > >
> > > function compDetail(compid) {
> > >    ajaxOptions = {
> > >       async: false,
> > >       type: "get",
> > >       url: "compdetail.php",
> > >       data: "compid=" + compid
> > >    };
> > >    $.ajax(ajaxOptions);
> > > }
> > >
> > > I have this called from an onclick in a <tr> tag.  I want it to go to
> > > a new page (compdetail.php), not just return the information.  Guess
> > > I'm forgetting the meaning of a/synchronous.
> > > One idea is to just wrap the <tr></tr> in <a href></a>, but I don't
> > > think that would work the way I want it to.  Anyone know if this is
> > > possible?
> > >
> > > --
> > > Brian Ronk
> > >
> > > _______________________________________________
> > > jQuery mailing list
> > > [email protected]
> > > http://jquery.com/discuss/
> > >
> >
> > _______________________________________________
> > jQuery mailing list
> > [email protected]
> > http://jquery.com/discuss/
> >
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to