TuBuGuRL
Junior Member
Posts: 2
Registered: 5/24/2007
Member Is Offline
|
| posted on 5/24/2007 at 08:23 PM |
|
|
slider renders strangely
i have an aspx page that uses jquery's AJAX methods to populate a div at the bottom of the page. i created a user control for the tigra slider. this
user control (along with many others) is rendered into the contents of said div (that's populated using AJAX). when i make this AJAX call, the slider
renders, but it's totally by itself. there is absolutely nothing else on the page except for the slider. all other contents of the page are
lost...including the stuff above the div. it's very strange and i'm not sure how to fix it. i've used the slider directly on an aspx page and it
renders perfectly.
can anyone help with some suggestions?
|
|
|
tigra
Administrator
Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 5/25/2007 at 03:30 PM |
|
|
The slider is designed to be initialized during the page loading. When called in loaded page document.write(..) method the slider uses to generate the
HTML can cause the effect you described. The script has to be rewritten to utilize innerHTML property of the div or to use another technique to make
it compatible with your application.
|
|
|
TuBuGuRL
Junior Member
Posts: 2
Registered: 5/24/2007
Member Is Offline
|
| posted on 5/25/2007 at 05:39 PM |
|
|
thank you for responding. i'm still a little confused as to how to fix the situation. you said that i have to rewrite the slider.js script to utilize
the innerHTML property of the DIV. do you mean the DIV that is the slider? or the DIV that is going to contain the rendered slider? i see on line 33
of slider.js is where the document.write() method is called...is this what i'm supposed to be modifying?
thanks for your help!
|
|
|
tigra
Administrator
Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 5/25/2007 at 09:59 PM |
|
|
You'll be modifying the innerHTML of the div containing the slider. There may be other issues, but it is doable.
|
|
|