I'm getting this error with fire bug...

"missing : after property id"

$("#show_results").load("index.php",{"id",$(this).attr("id")});\n

On Jun 15, 1:59 pm, "Jake McGraw" <[EMAIL PROTECTED]> wrote:
> try:
>
> $(function(){
>     $("a").click(function(){
>         $("#show_results").load("index.php",{"id",$(this).attr("id")});
>         return false;
>     });
>
> });
>
> Binds a click event to every anchor, sends urlparam "id" set to
> whatever the anchor id is, you can access is using $_REQUEST["id"].
> Injects return text (HTML, XML, whatever) into show_results div.
>
> - jake
>
> On 6/15/07, webgodjj <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > What I want to do:
>
> > I have a list of links with id values.  Each of these id values get
> > sent to a remote php file, that is in turn returned to the page.
>
> > ie...
>
> > <a href="index.php" id="1">
> > <a href="index.php" id="2">
> > <a href="index.php" id="3">
>
> > <div id="show_results">
> >  Show formated results here.
> > </div>

Reply via email to