>- see footer for list info -<
What does createCellWithText do?  its not a standard function.

The only reference i found was in some src that had it as

function createCellWithText(text) {
    var cell = document.createElement("td");
    var textNode = document.createTextNode(text);
    cell.appendChild(textNode);
    return cell;
}

in this case it creates a new text node inside a td element and returns the
reference to the element. Text nodes are rendered as plain text, not as an
element.  If you want to add a link you'll have to do it manually.

ie.

link = document.createElement("a");
link.href = "myTarget.html";



James



18 April 2006 15:44
To: "Coldfusion Development" <[email protected]>
cc:
From: "Pete Dray" <[EMAIL PROTECTED]>
Subject: [CF-Dev] Re: Anyone use AJAX?



>- see footer for list info -<
mmm nope, the page still outs it in plain text. I'm using:

cell = createCellWithText("\<a href='javascript:void(0);'
onClick='doSearch2('usawvas29.opbu.xerox.com:99',"+place_id+"')\>"+devicelocation+"\</a\>");
      row.appendChild(cell);

Everything between the first and last double quotes is displayes as
you see it above.

On 18/04/06, Marcos Placona <[EMAIL PROTECTED]> wrote:
> >- see footer for list info -<
> Yes, try to escape all the <> with \(backslash), so you will have
something
> like "\<a href"..."\</a\>"
>
> Cheers
>
>
> ----- Original Message -----
> From: "Pete Dray" <[EMAIL PROTECTED]>
> To: "Coldfusion Development" <[email protected]>
> Sent: Tuesday, April 18, 2006 2:52 PM
> Subject: [CF-Dev] Re: Anyone use AJAX?
>
>
> >- see footer for list info -<
> It has converted the < to &lt; and the > to &gt;
>
> Do I need to escape it in some way?
>
> On 18/04/06, Marcos Placona <[EMAIL PROTECTED]> wrote:
> > >- see footer for list info -<
> > How is it writing the content on the page? Try to alert the value of
the
> > variable cell, e see if it's creating the link correctly.
> >
> > Cheers
> > ----- Original Message -----
> > From: "Pete Dray" <[EMAIL PROTECTED]>
> > To: "Coldfusion Development" <[email protected]>
> > Sent: Tuesday, April 18, 2006 2:34 PM
> > Subject: [CF-Dev] Anyone use AJAX?
> >
> >
> > >- see footer for list info -<
> > All,
> >
> > I am having trouble embedding a link in some AJAX stuff I'm working on
> > here:
> >
> >   cell = createCellWithText("<a href='javascript:void(0);'
> >
>
onClick='doSearch2('<cfoutput>#cgi.http_host#</cfoutput>',"+place_id+"')>"+devicelocation+"</a>");
> >     row.appendChild(cell);
> >
> > No error but the result is the link as plain text rather than a
clickable
> > link.
> >
> > Pointers gladly accepted.
> >
> > Pete
> > _______________________________________________
> >
> > For details on ALL mailing lists and for joining or leaving lists, go
to
> > http://list.cfdeveloper.co.uk/mailman/listinfo
> >
> > --
> > CFDeveloper Sponsors:-
> > >- Hosting provided by www.cfmxhosting.co.uk -<
> > >- Forum provided by www.fusetalk.com -<
> > >- DHTML Menus provided by www.APYCOM.com -<
> > >- Lists hosted by www.Gradwell.com -<
> > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your
> > >help -<
> >
> > _______________________________________________
> >
> > For details on ALL mailing lists and for joining or leaving lists, go
to
> > http://list.cfdeveloper.co.uk/mailman/listinfo
> >
> > --
> > CFDeveloper Sponsors:-
> > >- Hosting provided by www.cfmxhosting.co.uk -<
> > >- Forum provided by www.fusetalk.com -<
> > >- DHTML Menus provided by www.APYCOM.com -<
> > >- Lists hosted by www.Gradwell.com -<
> > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your
> > >help -<
> >
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to
> http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
-<
>
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to
> http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
-<
>
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
 >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
 -<

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to