PDA

View Full Version : why does pagenav disables javascript


sabret00the
10-26-2005, 07:20 PM
// creates the pagenav
$page = ($vbulletin->GPC['page'] < 1) ? "1" : intval($vbulletin->GPC['page']);
$totalposts = intval($confessions_count['count']);
$currentlocation = "index.php" . $vbulletin->session->vars['sessionurl'];
$perpage = $confession_limit;
$pagenumber = $page;
$upperlimit = ($page * $perpage);
$lowerlimit = ($upperlimit - $perpage);

$pagenav = construct_page_nav($pagenumber, $perpage, $totalposts, $currentlocation, "");

what am i doing wrong? you click the numbers and that works fine, you comment out the last line of the quote and the js works fine but they refuse to work with eachother?

Marco van Herwaarden
10-26-2005, 09:02 PM
What js is not working anymore?

sabret00the
10-26-2005, 09:37 PM
none of the drop down menu's.

Marco van Herwaarden
10-27-2005, 04:10 AM
I suggest you look at the pagesource to see what is wrong.

sabret00the
10-27-2005, 08:56 AM
anything i should be looking for because all the links to the js are correct.

is the code up above all correct?

sabret00the
11-17-2005, 02:13 PM
ok some further informaton on this, the drop downs actually open in the navbar

i.e. User CP FAQ Members List Calendar New Posts Search Quick Links Log Out

becomes

User CP FAQ Members List Calendar Search New Posts Mark Forums Read Open Buddy List Log Out

any idea now?

what a rookie mistake
forgot to check the javascript was being pointed at correctly.

Marco van Herwaarden
11-17-2005, 07:12 PM
* Marco van Herwaarden request Admin to change sabretoothe usertitle to Rookie Coder. :D

sabret00the
11-17-2005, 08:55 PM
* MarcoH64 request Admin to change sabretoothe usertitle to Rookie Coder. :D

i need it :(