ajax form call?

Author Message

Noicokuna Niemoge

Wednesday 04 March 2009 7:16:20 am

Hello;

I've written a script that works on plain html file. It's about sending an ajax request through a form to my script ajax.form.php, the results of which are shown in a div.

How to make it work in eZ?

All what I get is that engine keeps redirecting me to the home page (and my script name is in address bar), or to the script itself (if it's outside eZ root).

Maybe there's a way to exclude the ajax.form.php file from htaccess rewrite rules?

Shiki soku ze ku...

Noicokuna Niemoge

Wednesday 04 March 2009 7:52:40 am

Ok, I solved it.

I put a folder inside ez root, created .htaccess with a line "RewriteEngine Off", placed there all my scripts and now it works. :)

Shiki soku ze ku...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 00:34:03
Script start
Timing: Jan 19 2025 00:34:03
Module start 'layout'
Timing: Jan 19 2025 00:34:03
Module start 'content'
Timing: Jan 19 2025 00:34:04
Module end 'content'
Timing: Jan 19 2025 00:34:04
Script end

Main resources:

Total runtime0.6132 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.7891152.6094
Module start 'layout' 0.00630.0043 740.398439.4063
Module start 'content' 0.01050.6014 779.8047450.1797
Module end 'content' 0.61190.0012 1,229.98448.2031
Script end 0.6131  1,238.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.6683160.0003
Check MTime0.00190.3143160.0001
Mysql Total
Database connection0.00060.095210.0006
Mysqli_queries0.573193.4641520.0110
Looping result0.00040.0722500.0000
Template Total0.580194.620.2900
Template load0.00210.337120.0010
Template processing0.578094.261920.2890
Template load and register function0.00020.033210.0002
states
state_id_array0.00120.192410.0012
state_identifier_array0.00110.186820.0006
Override
Cache load0.00170.2776110.0002
Sytem overhead
Fetch class attribute can translate value0.00060.104610.0006
Fetch class attribute name0.00160.264120.0008
XML
Image XML parsing0.00010.015310.0001
class_abstraction
Instantiating content class attribute0.00000.001120.0000
General
dbfile0.00070.1088100.0001
String conversion0.00000.002240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs