SitePoint Sponsor

User Tag List

Results 1 to 13 of 13

Thread: Print an Object

Threaded View

  1. #1
    SitePoint Addict
    Join Date
    Jan 2005
    Location
    Paris
    Posts
    370
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Print and Retrieve Javascript Object

    Hello

    let say with a javascript Object called linktarget it is made of a source-page with 4 to 5 links to targeted-pages that talk about the same topic than the source-page (you might have seen that already ).

    i have an admin interface of let say some sort of a cms that let me play with every linktarget i.e. source-page and its targeted pages (so i can add or remove a target from a certain linktarget object) but the first thing i want to do is to display every LinkTarget object in the system (an array of targetlink object) so on my administration homepage i would have in a 2 columns table where every linktaget object occupies a single row where one cell contains info about the source-page and a second cell contains all the info about the targeted-pages linked to that source.

    I am looking for help to write the function that access the object, retrieve the properties (source_url, source_title, source_date, source_category, target_title, target_date) and display them in the 2 columns html table i described described earlier...

    Thanks for the help!

    here is what i started:
    Code JavaScript:
    document.getElementById('SmartLinks');
    document.write('SmartLinks.Document_Source.URL');
    document.write('SmartLinks.Document_Source.Titre');
    document.write('SmartLinks.Document_Source.Date');
    document.write('SmartLinks.Zone_Cible[]');
    document.write('SmartLinks.Table_Cible.Document_Cible.Titre');
    document.write('SmartLinks.Table_Cible.Document_Cible.Date');
    Last edited by motion-ex; Jul 16, 2007 at 07:37.
    On a PHP/Java/XML/Javascript/MySQL internship right now!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •