Loading...
 
Features / Usability

Features / Usability


Need to include javascript in pages, Keep getting x appearing inside code

posts: 39
I'm trying to create pages with HTML and javascript embedded in them. I used the CODE(ishtml="1") tags but for some reason I keep getting this x character popping up in random places in my code. Has anyone else seen this? Anyone got a workaround? I've enabled the js plugin so I would have thought it was possible to include javascript in the pages.
posts: 39
dupe deleted


posts: 39

Tried it. Now I'm getting this when I save the page:

An error occured in a database query!

Context:
File tiki-index.php
Url tiki-index.php?page=HomePage
Query:
INSERT INTO tiki_plugin_security (fingerprint, status, added_by, last_objectType, last_objectId) VALUES(?, ?, ?, ?, ?)
Values:
0 html-8192ebb0f97d863289f18953eed9f36e-0df3f8fa6a273b5283894cce2d1e8455-270000-200000
1 pending
2 admin
3 wiki page
4 HomePage
Message:
Built query was probably:
INSERT INTO tiki_plugin_security (fingerprint, status, added_by, last_objectType, last_objectId) VALUES('html-8192ebb0f97d863289f18953eed9f36e-0df3f8fa6a273b5283894cce2d1e8455-270000-200000', 'pending', 'admin', 'wiki page', 'HomePage')


posts: 4656 Japan

Normally the plugin can be used and there's no database error, which suggests a problem with your database or the files that area accessing it. Probably you should run the upgrade procedure at your tiki-install.php. If there's still an error, maybe the files are incomplete, so should be reinstalled. (I don't know how you installed Tiki, but when I do an installation with FTP, sometimes a file after transfer is empty (0 bytes), for example, so produces errors and has to be replaced.)

BTW, the CODE plugin is to display code, not to run it, if there's confusion about that. As far as I know, the HTML plugin should do the job, once it's working.

-- Gary


posts: 9
Use the JS plugin. It will allow you (most of the time) to insert javascript code, or to include an external *.js file.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting