Author |
Topic  |
|
Addicted2HD
Starting Member
21 Posts |
Posted - 22 September 2006 : 14:35:25
|
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
|
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.” |
 |
|
Addicted2HD
Starting Member
21 Posts |
Posted - 22 September 2006 : 15:12:02
|
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 |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 22 September 2006 : 15:17:24
|
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 |
 |
|
Addicted2HD
Starting Member
21 Posts |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 22 September 2006 : 15:26:50
|
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.” |
 |
|
Addicted2HD
Starting Member
21 Posts |
Posted - 22 September 2006 : 15:37:45
|
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. |
 |
|
Addicted2HD
Starting Member
21 Posts |
Posted - 22 September 2006 : 17:26:20
|
Any other ideas? |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 22 September 2006 : 18:20:30
|
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
|
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 22 September 2006 : 18:21:58
|
Also you are missing the closing tag for your Go button:<input type="submit" value="Go" >
</font></td> |
Support Snitz Forums
|
 |
|
Addicted2HD
Starting Member
21 Posts |
Posted - 22 September 2006 : 19:08:21
|
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. |
 |
|
Addicted2HD
Starting Member
21 Posts |
Posted - 22 September 2006 : 19:12:21
|
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. |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 22 September 2006 : 19:37:30
|
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
|
 |
|
Addicted2HD
Starting Member
21 Posts |
Posted - 22 September 2006 : 22:41:42
|
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. |
 |
|
Addicted2HD
Starting Member
21 Posts |
Posted - 23 September 2006 : 09:25:44
|
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. |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 25 September 2006 : 04:47:13
|
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.” |
 |
|
|
Topic  |
|