Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning 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
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Cannot see the JavaScript code I wrote when I hit script tab on firebug :(

 
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Html page I wrote:



JavaScript code I wrote:



For some reason, This piece of code is not appearing in the post!! so I am pasting it here. It's in the a tag. onclick="javascript:function1()" href="javascript:void(0)";

I can see the HTML code when I click on the HTML tab and I see the JavaScript name too but it's the JavaScript code I cannot see. What might be the problem?

Thanks.
 
Sheriff
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you expect Firebug to do? It's showing you the HTML. Why should it show you the linked files as part of the HTML?
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bear Bibeault wrote:What do you expect Firebug to do? It's showing you the HTML. Why should it show you the linked files as part of the HTML?



I meant when I click on script tab, it should show me the JavaScript code I wrote right?/ No?
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody?
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's working now after I moved the files to a different directory. Thanks for listening.

 
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic