Win a copy of Svelte and Sapper in Action this week in the 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

including a .css file inside javascript

 
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I have a css file file1.css
I am including it in my javascript function as follows:



The function is to display information in a new pop up window.
When I include this information, I find that only the first table in the <thead> section gets displayed properly.

Nothing in the the <tbody> section is rendered.

When I remove this line of code, I find that I can c both the thead and tbody. NO stylesheet related look is present in this case.

What could be the reason?
plz help...
 
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shouldnt your css filename be picov.css?
 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I corrected this error. However, I found that i am getting the same error.
The code is


was a typo error before! Sorry!

I found that if you do a 'View Source' for the data in the pop up window, then it has the entire data. I also checked for the well formedness of the document. I corrected all the errors. and ensured that the document is well formed.

However, it simply doesnt display the body section. It only displyas the table in the <thead> section.

Plz help.
 
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wait, how can you include this



in a javascript function? It doesn't look like javascript code to me. Do you mean to say that you do something like



?
 
Marshal
Posts: 67449
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, saying that you put this HTML link element in your javascript makes no sense.

The function is to display information in a new pop up window.



If the css is to control aspects of the page in the popup window, the link element must be in that page's HTML, not the page that opens the window.
[ July 21, 2005: Message edited by: Bear Bibeault ]
 
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic