vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Problem ajax headinclude (https://vborg.vbsupport.ru/showthread.php?t=144850)

Sofia 04-14-2007 04:54 PM

Problem ajax headinclude
 
Hello all :)

I have a question :

I put a javascript file in my FTP. (ajax.js)

I try to put this code in the template headinclude :

PHP Code:

function getAjaxFile(fileName)
{
    
ajax.requestFile fileName;    
    
ajax.onCompletion showContent;    
    
ajax.onLoading showWaitMessage;    
    
ajax.runAJAX();        


But i have a problem with this :

PHP Code:

ajax.runAJAX(); 

I obtain this message when i save the template headinclude :

Code:

Database error in vBulletin 3.6.5:

Invalid SQL:

        SELECT templateid
        FROM template
        WHERE styleid =  AND title = 'headinclude';

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND title = 'headinclude'' at line 3
Error Number : 1064
Date        : Saturday, April 14th 2007 @ 07:53:31 PM
Script      : http://xxxx.org/admincp/template.php?do=updatetemplate
Referrer    : http://xxxxx.org/admincp/template.php?s=&do=edit&templateid=452&group=all&searchstring=headinclude&expandset=2
IP Address  : 91.164.197.104
Username    : Sofia
Classname    : vb_database

Any idea ? :)

Thanks a lot ;)

sebil 02-08-2010 12:47 PM

no idea :D

ChopSuey 02-08-2010 01:46 PM

Quote:

Originally Posted by sebil (Post 1977406)
no idea :D

Of course you have no idea how old this thread is.


All times are GMT. The time now is 09:12 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.01028 seconds
  • Memory Usage 1,718KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (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