• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

including a .css file inside javascript

 
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
shouldnt your css filename be picov.css?
 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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



?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic