Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
javascript, mod_rewrite problem

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
mfloyd



Joined: 25 Jan 2006
Posts: 57
Location: Zagreb <-> Orahovica

PostPosted: 21.11.2006 14:56    Post subject: javascript, mod_rewrite problem Add user to your forum ignore list Reply with quote

Imam problema sa javascriptom kada koristim mod_rewrite

npr:
Kada koristim index.php?p=vijesti&id=1500 sve je OK, a kada pomoću mod_rewrite-a, promjenim link u /vijesti/1500 scripte mi ne fukcioniraju.

.htaccess file mi u tom slučaju izgleda ovako:
Code:
RewriteEngine On
RewriteBase /

RewriteRule ^vijesti/([0-9]+)?/?$ /index.php?p=vijesti&id=$1 [L]


Kada flag [L] zamjenim sa [R] sve ponovo funkcionira, ali onda mi je adresa opet oblika index.php?p=vijesti&id=1500, što sam i želio izbjeći.

Javascript je većinom pisan pomoću jQuery-a.
Back to top
View user's profile Send private message Visit poster's website
carr



Joined: 13 Nov 2003
Posts: 1397
Location: Karlovac

PostPosted: 21.11.2006 15:57    Post subject: Add user to your forum ignore list Reply with quote

- javascript ti je inline (u tom index.php fajlu)? ili ga povlacis odnekud (neki .js file)
- gdje se nalazi taj .js file?
- da li ti rade skripte koje su ti u samom kodu (ako ih imas) tipa
Code:
<a href="..:" onclick="nesto()">...</a>

- da li ti javacript baca neke errore, sto znaci "ne rade skripte"

_________________
Bolje biti malo lud, nego malo pametan.
Back to top
View user's profile Send private message Visit poster's website
vedran



Joined: 08 Sep 2003
Posts: 458

PostPosted: 21.11.2006 16:13    Post subject: Add user to your forum ignore list Reply with quote

99% sam siguran da ga vuče odnekud pa da path do .js filea nevalja.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tristan



Joined: 01 Aug 2006
Posts: 614
Location: Under the sky

PostPosted: 21.11.2006 16:21    Post subject: Add user to your forum ignore list Reply with quote

da, vjerojatno je to... teško da je neš drugo jer je sve ostalo isto osim patha...

_________________
Carpe diem...
Back to top
View user's profile Send private message Visit poster's website
mfloyd



Joined: 25 Jan 2006
Posts: 57
Location: Zagreb <-> Orahovica

PostPosted: 21.11.2006 16:38    Post subject: Add user to your forum ignore list Reply with quote

povlacio sam ga pomocu:
Code:
<script type="text/javascript" src="js/radni.js"></script>


samo sam promjenio src path na apsolutni
Code:
<script type="text/javascript" src="/js/radni.js"></script>

i radi.

hvala puno svima
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group