vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   AJAX userinfo, variables. (https://vborg.vbsupport.ru/showthread.php?t=223083)

wipedout 09-13-2009 10:34 AM

AJAX userinfo, variables.
 
Okay, ill start off before the you people start calling me a noob since i obviously dont know what im talking about, ive modified my MEMBERINFO tab to to get profile info from $calmprofile, the info from that template is put into a div, code :

Code:

<div class="alt2 smallfont block_row" id="profilewrapper" >
$calmprofile
</div>

Im wondering if i can EASILY make a button that changes the $calmprofile to say $calmsecond.

hoping for a quick answer here since i dont know much about AJAX

James Birkett 09-13-2009 11:50 AM

So you'd like a button that replaces the $calmprofile variable with a $calmsecond variable?

You could just use if statement(s) maybe, or put the styling INSIDE the variable, then use an onclick?

I've not tried this, so I could be totally wrong.

Also, the main aim of this site is to help, so we're not going to insult you or your intelligence.

wipedout 09-13-2009 11:54 AM

Yes i want to make a button that changes the variable, as in changing the content within my DIV.

Lynne 09-13-2009 03:05 PM

So, this variable you have in there is actually a profile field? So, it is something like fieldx and you want a button to change the value of fieldx?

Is this your own tab that you've added? If so, you can just put the code inside of there.

wipedout 09-14-2009 12:43 AM

Yea its a fieldx inside of the divs aswell yes, but i dont wanna change the variable i wanna display different information, i dont use tabs as ive changed it, www.thefurryden.net/calmcacil is how stuff looks atm, i wanna make a button changing the main "window" change to display different info.


All times are GMT. The time now is 05:32 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.01203 seconds
  • Memory Usage 1,713KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete