- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 53 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Problem with javascript url in the forum... [ ]
Author
Message
Dedo
Nuke Cadet
Joined: Apr 28, 2004
Posts: 2
Posted:
Tue Oct 26, 2004 11:52 am
Hi!
I've download google tap and everything goes fine!
But i have one problem with adr mod.
When i go to create a character i have to choose the race, the element and the alignment.
here, for example, i select elvaan race.
To view race information, i have to click in the link below:
But the popup go to this url:
So i have hume information that is the first race in the scroll down input.
The script is this:
Code:
<!--
function getraceid(race)
{
this.raceid = document.charform.race_text.options[document.charform.race_text.selectedIndex].value;
window.open('modules.php?name=Forums&file=adr_mini_faq&mode=race&raceid=' + this.raceid , "FAQ" , 'scrollbars=yes');
}
and so in htacces file i put this:
Code:
RewriteRule ^pg-([a-zA-Z0-9_]*)-([a-zA-Z0-9_]*)-([a-zA-Z0-9_]*)([0-9]*).html modules.php?name=Forums&file=$1&mode=$2&$3=$4
and in header this:
Code:
"'(?<!/)modules.php\?name=Forums&file=([a-zA-Z0-9_]*)&mode=([a-zA-Z0-9_]*)&([a-zA-Z0-9_]*)=([0-9]*)'",
Code:
"pg-\\1-\\2-\\3\\4.html",
When before the url was
modules.php?name=Forums&file=adr_mini_faq&mode=race&raceid=4
now is
pg-adr_mini_faq-race-raceid.html4
when it has to be
pg-adr_mini_faq-race-raceid4.html
If you want to test you can go here:
http://www.yourff.it/forum-adr_character.html
user: test
pass: test
How can i solve this problem?
Please help me!
_________________Your Final Fantasy Community
Evaders99
Site Admin
Joined: Aug 17, 2003
Posts: 12388
Posted:
Tue Oct 26, 2004 2:47 pm
This is the code in your HTML:
Code:
function getraceid(race)
{
this.raceid = document.charform.race_text.options[document.charform.race_text.selectedIndex].value;
window.open('pg-adr_mini_faq-race-raceid.html' + this.raceid , "FAQ" , 'scrollbars=yes');
}
Note the this.raceid at the end
It looks like your GoogleTap is rewriting the URL before the JavaScript ever gets written. So doesn't look like you can use the JavaScript and the GoogleTap together
_________________ Helping those that help themselves
Read FIRST or DIE!
"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Calliemac
Nuke Cadet
Joined: Oct 25, 2004
Posts: 2
Posted:
Tue Oct 26, 2004 5:11 pm
hi :P
I know what you mean it does it to me! If you hit refresh! If that don'twork you prbably got a virus!
_________________
Always ,
Calliemac
Dedo
Nuke Cadet
Joined: Apr 28, 2004
Posts: 2
Posted:
Wed Oct 27, 2004 7:10 am
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