vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Need a very simple example AJAX script in vbb (https://vborg.vbsupport.ru/showthread.php?t=186277)

Opserty 07-28-2008 07:37 AM

After a quick look yesterday, I found the vbulletin_reputation.js file probably the simplest one to understand. You may be better off investigating that.

I doesn't look like an easy task though! :D

Dismounted 07-28-2008 11:51 AM

The only thing you (really) need to know for AJAX apart from coding the PHP response and basic Javascript is this little piece of code:
Code:

YAHOO.util.Connect.asyncRequest('POST', scriptpath + '?do=ajax', {
        success: this.handle_ajax_response,
        failure: this.handle_ajax_error,
        timeout: vB_Default_Timeout,
        scope: this
}, SESSIONURL + 'securitytoken=' + SECURITYTOKEN + '&foo=' + foo);


mokujin 07-28-2008 07:17 PM

Its too difficult for me now :D
Can you Ops or Dis make a demo for me? I know that it takes too much time :)

Thank you so much :)

Dismounted 07-29-2008 06:45 AM

My suggestion is to look at someone else's code - but you don't really need to as I've given you the Javascript for AJAX calls already.

mokujin 07-29-2008 07:13 PM

Hi, I have looked at some codes but I dont know how to :((

I saw someone else's code that they use onLoad on body tag. Can I use that tag?

Or please Dismounted could you write a code for me? Thank you so much

Dismounted 07-30-2008 06:52 AM

I have written the code for you...

mokujin 07-31-2008 06:15 PM

Thanks, but I cant use the code :( I have seen that hack (https://vborg.vbsupport.ru/showthrea...ighlight=forum), it has function what I need. Can you help me again?


All times are GMT. The time now is 01:33 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00957 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete