Board Logo

using HTML files from another server with scroller
tommycahir - 8/6/2007 at 10:00 AM

Hi

I have implemented and got the scroller working using the sample's provided in sample 2, However i want to be able to have 4 html files that are located onanother server used as the content for the scroller. I know i can edit the scroll.tpl0.js file and add them in as 'files' but I get object not found when i do that.

My items section currently looks likethe below

ITEMS = [
{
'file': 'http://dubgsa.cvxzz.com/%7Essswww/public/VM.htm',
'content': '',
'pause_b': 10,
'pause_a': 1
},
{
'file': '../s0_data/cont2.html',
'content': '',
'pause_b': 10,
'pause_a': 1
}
]

I have used cvxzz as the domain on purpose as it is an internal site for the moment. BTW i have also tried to put in the URL as http://dubgsa.cvxzz.com/~ssswww/public/VM.htm but it still gives me the same issue

Does it matter that this html file is generated by MS word [user requirement :-( ]


tigra - 8/6/2007 at 04:25 PM

the browser security will block JavaScript from communicating across the domains so this will not work. You'll have to pull those files to the local server first.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/