• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Looking to randomly rotate 2 javascripts and a jsp..

So basically we have a client that works with three comparison shopping engines, nextag, shopzilla, and shopping.com--and each offer pop-up surveys via a script. Two use a .js, and one uses a .jsp..however the command "br_rotate" defined in the link above there, which allows you to define a percentage in which each will come up (e.g. you say br_rotate(.33, blah.com/a.js, .33, blah.com/b.js, .33, blah.com/c.js) only works with .js's, and not .jsp's.

I was wondering if there were any clever ways to allow the .jsp file to be used in there, or just in general a way to rotate them?
 
Im not sure, but you can link to other pages (non .js pages) as long as they output javascript.

for instance, I've used: <script type="text/javascript" src="output.php"></script>

and ouput.php just spits out some javascript. So you can probably do that with a .jsp page. Add all the logic you want in there to decide what to show to the browser!
 
Back
Top