LOGIN Don't have an account yet?   Register

Forgot password?
 

XML Banner Rotator - Dynamic Link Querystring Parameter

  • avatar
    toddrenner
    on 1/8/11
    Hello- Love the xml banner rotator...very well designed solution. THANKS!!

    On my site, we use a querystring parameter that is passed from page to page to identify a users session. Whenever this parm is not found, or is not valid, the user is sent to a login page.

    I love the way all the information about a link is stored in the xml file, but what I am wondering is, how can I modify the links to add on a parameter? Rememering that the value of the parm will be different for all users? I can't really have a copy of the xml file for each user either. In plain html, I use a javascript function to route all the clicked links through, which tacks on the querystring parameter.

    Alternatively, is there a way to loop through each xml item and edit the value of link, so I can tack on my querystring parm at runtime?

    Or, can it execute a jacascript function from the link line? Like instead of just a plain URL, can I put in the value of something like "javascript: goLink('http://flabell.com')" where "goLink" is a javascript function defined in the html page?

    Thanks.

    Last edit on 2/8/11
  • avatar corneliu.chitanu
    on 3/8/11
    Hi,

    We're glad you like the component.

    If you need different links for each user, you'll need to generate the XML file using another technology, like PHP.

    Yes, the flash component can also call a JavaScript function. However, this would require some ActionScript code to be added. If you need our team's help on this, we can do it as custom work. Please send an email with some details at [email protected]
  • avatar
    toddrenner
    on 3/8/11
    I'm OK with adding script myself....but where does that happen? Is that something I can do without having Flash? Can it be added into the html/flash javascript?

    Or, can I place action script inside the tag of the xml?

    Last edit on 3/8/11
  • avatar corneliu.chitanu
    on 4/8/11
    Sorry, you can't make the flash object call a JavaScript function without changing and recompiling the code (and for this you need Flash). You must write the code in the .as files. You can't write it in the HTML file or XML file.

rss Subcribe to topic RSS

Post a comment

Please login to join the discussions. Don't have an account? Register (it takes 30 seconds)

This week's featured product

Store Locator

This cool AJAX application will enhance your website by showing your stores' locations. You can also display an image and a short description so your users know exactly where to find your business.

Become a premium member

premium membership Flabell and Themesbell membership provides users with the ability to download any of our components for Adobe Flash and website themes for free, during an entire year.
read more