EllisLab text mark
Advanced Search
     
Controller multiple call after one site refresh
Posted: 01 October 2012 04:42 PM   [ Ignore ]
Joined: 2010-11-30
3 posts

Hi,
I am creating an application in CI and add me to BD 3 entries instead of one.
I was able to determine that the problem is the JS file (prototype.js). When I remove the link to the file of the code view, it all works as it should.
(The file is related to the Lightbox.)

It seems to me that it has to do with mod rewrite ....

My. Htaccess:

RewriteEngine On
RewriteBase 
/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^(.*)$ /index.php?/$1 [L] 

Prototype JS
https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js

thank you

 
Posted: 01 October 2012 05:18 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2009-02-19
3801 posts

You’re getting prototype from googleapis.com, so your rewrite rules won’t come into play since it’s not on your server.

 Signature 
 
Posted: 01 October 2012 05:35 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2010-11-30
3 posts

prototype.js is on local server.

Link pasted on to show what file it.

 
Posted: 01 October 2012 06:08 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-26
122 posts

show us the code where this js file is loaded!

 
Posted: 01 October 2012 07:11 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2010-11-30
3 posts

In view included file in head section:

http://img849.imageshack.us/img849/1750/71527175.png

thx