Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Looking for fnum
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Astralis
Senior Member

USA
1218 Posts

Posted - 20 September 2005 :  20:29:22  Show Profile  Send Astralis a Yahoo! Message  Reply with Quote
I'm trying to hack the dropdownpaging on topic.asp. I might be missing something. Where and how is fnum defined?<

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 20 September 2005 :  20:52:51  Show Profile  Visit HuwR's Homepage  Reply with Quote
fnum is either 1 or 2 and is passed manually to DropDownPaging() which constructs the call to the javascript changpage function onchange=""ChangePage(" & fnum & ");""

look around line 475 to 490 and around line 700 for the calls to dropdownpaging<

Edited by - HuwR on 20 September 2005 20:54:12
Go to Top of Page

Astralis
Senior Member

USA
1218 Posts

Posted - 21 September 2005 :  00:20:31  Show Profile  Send Astralis a Yahoo! Message  Reply with Quote
I'm not getting it to show up and it could be the placement of the sub.

I have a sub where the dropdowndisplay is called:
sub Main()
...
call dropdowndisplay(1)
...
end sub

I placed the Javascript in the header and the dropdown sub above the sub Main. Nothing showed up. I then placed the dropdowndisplay sub below it and I still can't get it to show up. I know I can get subs to show up because the quickreply sub works fine within the sub main.

I did a response.write on a couple of the variables within the dropdown sub and none of them are being written. Somehow, the dropdown sub is not getting called. Any ideas?<

Edited by - Astralis on 21 September 2005 00:23:25
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 21 September 2005 :  02:44:49  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Are you calling the dropdownsub from within another sub ?
I'm not sure, but I think that tháts the problem.
Are the variables defined in the sub main (and therefor not global) ?<

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 21 September 2005 02:47:24
Go to Top of Page

Astralis
Senior Member

USA
1218 Posts

Posted - 21 September 2005 :  02:52:49  Show Profile  Send Astralis a Yahoo! Message  Reply with Quote
Yes, it is being called within another sub. But the quickreply is too and it works without problems.
quote:

Are the variables defined in the sub main (and therefor not global) ?


I think because it's late I don't understand the question.
<
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 21 September 2005 :  05:15:30  Show Profile  Reply with Quote
quote:
Originally posted by Astralis
I think because it's late I don't understand the question.
If you use a vraible in a sub without first creating it outside that sub, it will be destroyed when the sub is ended, you need to ensure you have something along the lines of:

dim variable
sub mysub()
    variable=value
end sub


<

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Astralis
Senior Member

USA
1218 Posts

Posted - 21 September 2005 :  15:11:26  Show Profile  Send Astralis a Yahoo! Message  Reply with Quote
Thanks Shaggy and everyone.

This bit was giving me the problem:

	if maxpages > 1 then
		if mypage = "" then
			pge = 1
		else
			pge = mypage
		end if
         end if

I moved it outside the sub and it works great.<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07