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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Page Jump not working in Firefox
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Addicted2HD
Starting Member

21 Posts

Posted - 22 September 2006 :  14:35:25  Show Profile
I'm having a problem where the page jump drop down menu doesn't function in FF and actually throws the following error in the javscript console

"document.PageNum1.submit is not a function"

I've given the form and select elements ID tags in addition to the name tags and still does not work. The only thing that gets the form to submit is adding a "go" button next to the drop-down. I've tried removing any javascript that I added to the inc_header.asp file to see if any of that is interfering in any way and that didn't help.

The strange thing is if I pull the code out of the source and put it in a document all by itself it works in FF.

The forum is at http://www.naabt.org/forum

If you have any ideas on what might fix this it would be greatly appreciated. I'm running 3.4.05.

Thanks,
Scott

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 22 September 2006 :  14:41:11  Show Profile
It's working fine for me. Was there any page in particular it was throwing that error on you? Where were you trying to "jump" from and to?


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

Addicted2HD
Starting Member

21 Posts

Posted - 22 September 2006 :  15:12:02  Show Profile
Yes, it's not working on this page for example when trying to jump to page 2 or from page 2 back to page 1. You're forced to use the "go" button that I added to get it to work. I believe the regular "topic jump" menu works though, is that what you tested?

http://www.naabt.org/forum/topic.asp?TOPIC_ID=616
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 22 September 2006 :  15:17:24  Show Profile
Ah, OK, I was using the forum jump menu. Can you throw up a copy of topic.asp with the original page jump menu on it so we can see exactly what's happening for ourselves?

Try replacing:

document.PageNum1.submit();

with:

document.getElementById("PageNum1").submit();

By the way, your submit inputs aren't closed on those forms


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.”

Edited by - Shaggy on 22 September 2006 15:20:34
Go to Top of Page

Addicted2HD
Starting Member

21 Posts

Posted - 22 September 2006 :  15:22:52  Show Profile
Here you go:

http://www.naabt.org/forum/topic_copy.asp?TOPIC_ID=616

Thanks!
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 22 September 2006 :  15:26:50  Show Profile
Ah-ha; think I have it - you have 2 copies of the ChangePage function in the generated code for topic.asp, try removing one, see if it works.


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

Addicted2HD
Starting Member

21 Posts

Posted - 22 September 2006 :  15:37:45  Show Profile
Sorry about that. I forgot I had that in there. I put a copy at the top of the header file to see if having it before anything else on the page would make it work. Unfortunately that like every other idea was for not.
Go to Top of Page

Addicted2HD
Starting Member

21 Posts

Posted - 22 September 2006 :  17:26:20  Show Profile
Any other ideas?
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 22 September 2006 :  18:20:30  Show Profile
The javascript works perfectly well with firefox. Something else is up.
Might be the code you commented out before the ChangePage() javascript function. Maybe try removing the comment and see if anything changes.
<!-- More NEW CODE
</td></tr></table> -->
<!-- Close my table
</td></tr> -->
<!-- Close their cell 
<tr><td>-->
<!-- Start new cell

'"</td>" & vbNewLine & _
		'"<td>" & vbNewLine & _ -->

Support Snitz Forums
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 22 September 2006 :  18:21:58  Show Profile
Also you are missing the closing tag for your Go button:
<input type="submit" value="Go" >
</font></td>

Support Snitz Forums
Go to Top of Page

Addicted2HD
Starting Member

21 Posts

Posted - 22 September 2006 :  19:08:21  Show Profile
quote:
Originally posted by Davio

Also you are missing the closing tag for your Go button:
<input type="submit" value="Go" >
</font></td>




Thanks, must have been in a rush.
Go to Top of Page

Addicted2HD
Starting Member

21 Posts

Posted - 22 September 2006 :  19:12:21  Show Profile
quote:
Originally posted by Davio

The javascript works perfectly well with firefox. Something else is up.
Might be the code you commented out before the ChangePage() javascript function. Maybe try removing the comment and see if anything changes.
<!-- More NEW CODE
</td></tr></table> -->
<!-- Close my table
</td></tr> -->
<!-- Close their cell 
<tr><td>-->
<!-- Start new cell

'"</td>" & vbNewLine & _
		'"<td>" & vbNewLine & _ -->




I know the javascript works in FireFox, I mentioned so in my original post. The commented stuff is completely related to page structure, if it was going to mess anything up it would mess up the way the page displays.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 22 September 2006 :  19:37:30  Show Profile
There is something on your page, that is preventing firefox from running this code properly. There doesn't seem to be a coding problem that can be easily identified. So I am trying to make suggestions to see what works or what doesn't. Cause we both know that the code is supposed to work.

So trying to bring the javascript code to a point where it is clear from obstruction and see if it will run. Regardless of whether it makes sense or not.

Did this use to work before? If so, you remember what changes you made before it stopped working?

Support Snitz Forums
Go to Top of Page

Addicted2HD
Starting Member

21 Posts

Posted - 22 September 2006 :  22:41:42  Show Profile
I appreciate the help, but I'll just strip it back down and add things back in to see what breaks it. I don't know if it's ever worked in FF after modifying since I modified this over a year ago and was just brought to my attention recently.
Go to Top of Page

Addicted2HD
Starting Member

21 Posts

Posted - 23 September 2006 :  09:25:44  Show Profile
Ok, I got it. It was the name of the "donate" image from PayPal that was messing it up. The name was "submit" for whatever reason so I changed it to "PayPal" and all is working again.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 25 September 2006 :  04:47:13  Show Profile
Good to hear you got it working


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
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.5 seconds. Powered By: Snitz Forums 2000 Version 3.4.07