Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

In jsfiddle tool works in production not

 
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I know you need the code for answer, but I prefer to ask it as a genera question.

I have code with javascript and html. Whe I run it in jsfiddle it works, I use the jquery.3.3.1 there.

When I run it in a server it doesnt works the javascript part. I think that it the jquery version, but I have not way to check it.

Could be something different?

Regards, ISaac
 
Saloon Keeper
Posts: 6523
160
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why can't you run a server on your development machine and debug it there? Also, "it doesn't work" gives us nothing to help you - post the output of the browser console. It may well include error messages.

BTW, jQuery 3.3.1 doesn't exist, so make sure you're using the right version.
 
Marshal
Posts: 67420
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's very easy to know what version of jQuery you are using. What do you mean by saying that you have no way to check it?
 
Angus Ferguson
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oki here more info:

When in fiddle I paste this .js


it works properly.

But when I add to it this different piece of .js





Why it could be conflicting?

The JQuery 3.1.1 I checked in fiddle

 
Angus Ferguson
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact I have tried with other functions one after the another and it works the problem is with the second one from the post
 
Angus Ferguson
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even when I only write this part of the code:

$(document).ready(function() {
 
   }
   

it disable the other code, but it doesnt launch error
 
author & internet detective
Posts: 40035
809
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the error in your browser's JavaScript console?
 
Angus Ferguson
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At the moment I use fiddle for it. I can t see any error here.
I have copied it in Netbeans and it even doesnt disable the button. Tbis is the whole code, I dont see any error in the browser...

 
Jeanne Boyarsky
author & internet detective
Posts: 40035
809
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isaac,
You are saying that you have code that works locally and in jsfiddle. Tim and I have both asked you what the error was in production where the code doesn't work. Go into a browser in production and look what the scripting error console says there.
 
Angus Ferguson
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok as soon as I will could test it there I will send the error
 
We can walk to school together. And we can both read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic