Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Dynamically loaded links

  1. #11
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    It should work.

    Are you sure that the string is like this:

    Code:
    getURL(xml variable, "main")

  2. #12
    Join Date
    Jun 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Medyman View Post
    It should work.

    Are you sure that the string is like this:

    Code:
    getURL(xml variable, "main")
    All works now. I just read in another thread somewhere that you shouldnt put the " around it. Is that why the _self didnt work either?
    Code:
    getURL(xml variable, _self)
    or
    Code:
    getURL(xml variable, "_self")
    Well it works very well now. Thank you so much again.
    ~Kilomil

  3. #13
    Join Date
    Aug 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Someone?

    Problem solved...
    Last edited by andy1; 08-07-2007 at 08:16 PM.

  4. #14
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    I'm not sure what you mean...

    On your example page, I'm seeing your tooltips. The problem seems to be that you're not setting up the XML right (i.e. it's linking to "undefined").

  5. #15
    Join Date
    Aug 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, so how do I fix that?

  6. #16
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Ok, so that is your problem.

    I was just checking because it sounded like you were saying that the entire tooltip dissappeared.

    I downloaded your source files and according to your XML file, your link is located here:

    Code:
    xml.firstChild.childNodes[i].attributes.link
    where i is the index of the image being clicked.


    So, to add a link to each item in your carousel, add the following bit to your xml.onLoad function:

    Code:
    t.m_mc.id = i
    t.m_mc.onRelease = function() {
        trace (xml.firstChild.childNodes[this.id].attributes.link)
    }
    You can also get rid of the "released" function.

  7. #17
    Join Date
    Aug 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Sweet!

    Thanks alot!

  8. #18
    Join Date
    Aug 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default One more question...

    How do I open the windows resized, centered and without navigationbar? I'm really crappy with java...

    The code for just opening the window:

    t.m_mc.id = i
    t.m_mc.onRelease = function() {
    getURL (xml.firstChild.childNodes[this.id].attributes.link)
    }
    Last edited by andy1; 08-08-2007 at 09:06 PM.

  9. #19
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    1. I forgot to mention that the "trace" function is just for testing purposes.

    If you want it to open the link, you'll have to use the getURL method with the same string as I used in the trace.


    2. To get it to open in another window, use:

    getURL(xml.firstchild.childNodes[this.id].attributes.link, _blank);

    3. I think what you're referring to is a chromeless window. Instructions are here: http://www.dynamicdrive.com/dynamici...chromeless.htm.

    However, these don't work with new tabbed browsers (i.e. Firefox, IE7).

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
  •