• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » Display informer in Ajax Window (Need help)
Display informer in Ajax Window
Good
Posts: 360
Reputation: 12

Message # 1 | 1:05 PM
Is there any way to display informer in Ajax window?

I would like to display the lastest thread in forum in an ajax window rathar than put the informer in forum. It means user click on the link then an ajax window appear with the list of latest thread. I love it display on Ajax than show out as it usual.

Thanks
Sunny
Posts: 9296
Reputation: 456

Message # 2 | 2:27 PM
Good, yes, it is possible. Add the following script to the necessary template:

Code
<!--</Latest threads>-->  
     
<script type="text/javascript">  
   function openchat(){new _uWnd('chat','Latest threads',300,100,{align:0,shadow:0,close:1,autosize:1,maxh:500,minh:100,resize:0}, $("#chat").html() )}  
   </script>  
   <div style="display:none;" id="chat">$MYINF_1$</div>  
     
<!--</Latest threads>-->


replace $MYINF_1$ by your informer code.

And put the following code into the place where you want the button to be displayed:

Code
<a title="Latest threads" href="javascript:;" onclick="openchat();"><input value="Latest threads" onclick="confirmClose()" type="button"></a>

I'm not active on the forum anymore. Please contact other forum staff.
Good
Posts: 360
Reputation: 12

Message # 3 | 2:05 AM
Thanks so much. I do not know what to say more. Thank you again. Sorry for spamming here because I can not increase reputation in 6 days.
uCoz Community » For Webmasters » Custom Solutions » Display informer in Ajax Window (Need help)
  • Page 1 of 1
  • 1
Search: