XML Banner Rotator - Dynamic Link Querystring Parameter
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
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


Subcribe to topic RSS

Products RSS Feed
Follow us on twitter
support@themesbell.com
toddrenner
on 1/8/11
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
on 3/8/11
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]
toddrenner
on 3/8/11
Or, can I place action script inside the tag of the xml?
Last edit on 3/8/11
on 4/8/11