vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   ajax edit (https://vborg.vbsupport.ru/showthread.php?t=148801)

ragtek 06-03-2007 01:55 PM

ajax edit
 
can somebody show me how to use it?

i have a table and wount to change the values with a doubleclick like the direct edit of threadtilte in forumdisplay

VBDev 06-09-2007 09:36 AM

This is not so hard to understand as it user js, php and css.

You should dig in the code of my chatbox, in the following elements:
  1. The $chatline_ondblclick in the mgc_chatbox.php file which shows the bit of code which is inserted in the tag where you want to be able to edit on double the content
  2. The following functions in the mgc_chatbox.js file : inline_chat_edit (called on double click, it do the ajax sending), attente_recup_data_edit (waits for the returns of the ajax call), show_edit_chat (replace the current content by the input field), lancement_save_edit (called when the event onblur is fired by the input field, it manages the ajax call to save edited data), and finally attente_save_edit (waits for the return from the saved edited data ajax call).
  3. The have a look in the mgc_chatbox.php file, the ajax_edit_getchat and ajax_save_edit DO which are the part called from the ajax.
This should help you a bit I think, but I can't spend time to explain you in details, time is preciou and I haven't that much (full timetable :()

ragtek 06-09-2007 09:43 AM

thx very much


All times are GMT. The time now is 02:20 PM.

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.01158 seconds
  • Memory Usage 1,709KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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