×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: 'Submit Comment" button not working

'Submit Comment" button not working 13 years 6 months ago #12059

  • Eric Grohs
  • Eric Grohs's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 41
  • Thank you received: 0
I was working on my site and all was working fine with compojoom. Next thing I know, the 'submit comment' button isn't working. When I click on 'submit comment', the comment doesn't submit.

I am using Mozilla and I have Web Developer. I get an error in the right hand corner of my page when I try to submit the comment.

It says:

JavaScript Error: $("twebsite") is null

What does this mean? HELP PLEASE

'Submit Comment" button not working 13 years 6 months ago #12060

  • Eric Grohs
  • Eric Grohs's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 41
  • Thank you received: 0
Ok, I figured out what was causing this but I still need a solution to my problem. Under content settings, under the 'posting' tab, I disabled the 'input website field', because I do not want to allow users to enter their website. Seems when I did this, users, including myself, could not submit a comment anymore. Any reason why?

I would like to disable the opportunity for users to add their website in the comment box but I would still like the 'submit comment' button to work. I also have it set up where only registered users can post. Not sure if that has anything to do with this problem.

Can anyone help?

'Submit Comment" button not working 13 years 6 months ago #12063

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Eric,
So have you disabled mootools on your website or are you using another framework there such as jquery?

'Submit Comment" button not working 13 years 6 months ago #12066

  • Eric Grohs
  • Eric Grohs's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 41
  • Thank you received: 0
No mootools, no jquery.

But I am using JFusion.

'Submit Comment" button not working 13 years 6 months ago #12067

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
that is why you get the error. Change the dollar sign $ to document.getElementById and it should work.

'Submit Comment" button not working 13 years 6 months ago #12070

  • Eric Grohs
  • Eric Grohs's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 41
  • Thank you received: 0
Where do I change this? my Compojoom template CSS? , html?

'Submit Comment" button not working 13 years 6 months ago #12071

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
look at firebug console output:
JavaScript Error: $("twebsite") is null

It will also tell you what line and what file :)

'Submit Comment" button not working 13 years 6 months ago #12074

  • Eric Grohs
  • Eric Grohs's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 41
  • Thank you received: 0
Yeah, it tells me line 44, col 16. Where do I find this to edit, html file?

'Submit Comment" button not working 13 years 6 months ago #12075

  • Eric Grohs
  • Eric Grohs's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 41
  • Thank you received: 0
Nevermind, found the file. Was in the file you mentioned earlier. Editing now

'Submit Comment" button not working 13 years 6 months ago #12076

  • Eric Grohs
  • Eric Grohs's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 41
  • Thank you received: 0
I changed the dollar sign in that line to what you told me to change it to. The dollar sign was in that line 3 times so I edited ithe $ sign 3 times.

The new file looks like this:

if(document.getElementById('twebsite').value == '' || document.getElementById('twebsite').value == 'enter your site URL...' ) {
document.getElementById('twebsite').value = '';

Still having the same problem. When I have enter url disabled, the submit comment is not working. Firebug tells me the error is on the same line that I made the edits to

'Submit Comment" button not working 13 years 6 months ago #12080

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Direct link to the post please.

'Submit Comment" button not working 13 years 6 months ago #12081

  • Eric Grohs
  • Eric Grohs's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 41
  • Thank you received: 0

'Submit Comment" button not working 13 years 6 months ago #12084

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
No, I meant to your page (to the post on your website where the problem occurs)
Daniel
  • Page:
  • 1
Time to create page: 0.132 seconds