Drop down to choose profession doesn't work

Aldor / Scryer reputation comparison

Moderator: titan99

Drop down to choose profession doesn't work

Postby robojerk » Fri Feb 16, 2007 6:34 pm

Here's my Aldor/Scryer page. When I click on the drop down to choose to view a profession it takes me to an invalid web address.. I am using the dragonfly version of roster.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Drop down to choose profession doesn't work

Postby titan99 » Fri Feb 16, 2007 6:59 pm

i'm don't test in cms

i'm look this problem :)
User avatar
titan99
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 129
Joined: Sat Jan 13, 2007 8:11 am
Location: Montpellier - France

Re: Drop down to choose profession doesn't work

Postby ds » Fri Feb 16, 2007 8:18 pm

Try this... I am guessing DF version is in some sort of iFrame. If so this should fix the issue.

File: index.php
Line: 41

Code: Select all
        <select name="Professionsfilter" onchange="top.location.href=this.options[this.selectedIndex].value">


To the following:

Code: Select all
        <select name="Professionsfilter" onchange="window.location.href=this.options[this.selectedIndex].value">
Image
ds
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 297
Joined: Sat Jul 08, 2006 9:58 am

Drop down to choose profession doesn't work

Postby robojerk » Fri Feb 16, 2007 10:09 pm

The DF version is a native port, not in an iframe.

I tried it anyway, same error...
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Drop down to choose profession doesn't work

Postby robojerk » Sun Feb 18, 2007 2:46 am

I made a copy of this thread on the wowrosetdf forums here. To get further assistance..

For the time being I commented out the following code to hide the Profession filter dropdown. Since it doesn't work..

Code: Select all
  $choiceForm = '<form action="'.$script_filename.'" method="POST">
   '.$wordings[$roster_conf['roster_lang']]['Professions'].' :
   <select name="Professionsfilter" onchange="top.location.href=this.options[this.selectedIndex].value">
      <option value="'.$script_filename.'&amp;Professionsfilter=All">'.$wordings[$roster_conf['roster_lang']]['AS_Select_Professions'].'</option>'."\n";
while($row_fct = $wowdb->fetch_array($result_fct))
{
   if( $_REQUEST['Professionsfilter'] == $row_fct['fct_name'] )
      $choiceForm .= '      <option value="'.$script_filename.'&amp;Professionsfilter='.$row_fct['fct_name'].'" selected="selected">'.$row_fct['fct_name']."</option>\n";
   else
      $choiceForm .= '      <option value="'.$script_filename.'&amp;Professionsfilter='.$row_fct['fct_name'].'">'.$row_fct['fct_name']."</option>\n";
}

$wowdb->free_result($result_fct);

$choiceForm .= '   </select>
</form><br />';


I also included a copy of the error I am receiving when I choose a profession, in this case Alchemy.

The url it takes you when you choose a profession is the following.

Code: Select all
http://www.blacktemplars.org/Roster&smp;file=addon&roster_addon_name=Aldor_Scryer&Professionsfilter=Alchemy
when it should be
Code: Select all
http://www.blacktemplars.org/index.php?name=Roster&file=addon&roster_addon_name=Aldor_Scryer&Professionsfilter=Alchemy


Image
Last edited by robojerk on Sun Feb 18, 2007 2:47 am, edited 1 time in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0


Return to Aldor / Scryer

Who is online

Users browsing this forum: No registered users and 0 guests

cron