?
Solved

Stylesheets: Notes item not found ...

Posted on 2003-11-28
8
Medium Priority
?
533 Views
Last Modified: 2013-12-18
I defined a style sheet in my application (in the shared resources -> stylesheet section of the designer). I then have a form that has the head section referencing these style sheets as follows (This is what the "view source in browser shows me"):
<head>
....
<link rel="stylesheet" type="text/css" href="/mm/mmonline.nsf/style.css" media="all" />
<link rel="stylesheet" type="text/css" href="/mm/mmonline.nsf/printlayout.css" media="print" />
<link rel="stylesheet" media="screen" title="main" type="text/css" href="/mm/mmonline.nsf/screenlayout4.css" />
<link rel="alternate stylesheet" media="screen" title="optional" type="text/css" href="/mm/mmonline.nsf/screenlayout3.css" />
...
</head>

The path is correct to me but it does not seem to work and the error from the server logs is :
...Note item not found. However if this is running on local it works fine strangely to me. So is there something I need to make sure of on my server. (Domino 5.0.5 )

thanks
-jay
0
Comment
Question by:jdembare
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 31

Expert Comment

by:qwaletee
ID: 9837593
Try putting each of the stylesheet URLs in your browser address bar to see which one os causing the problem (you do have four of them after all).

Also, try making a new copy of the database, see if the copy has the problem.

And, try opening each style sheet, making an innocuous edit (add some white space), change the sheet's comment, and save the style sheet.
0
 
LVL 13

Expert Comment

by:CRAK
ID: 9839576
If you remove those lines, does the error dissapear? It could be a computation elsewhere that fails!
Or try to identify if all lines fail, or just a specific one.

This db, mmonline.nsf, is it the same as the one you have on local? Is it accessible for webusers (anonymous and/or authenticated)?
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9840793
It is your href path in the link tag which is messing this up. Make sure the mmonline.nsf is in mm dir and it is located below data directory of the server.

Also if the css files are within current db then reference it without any path.

~Hemanth
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:jdembare
ID: 9850620
Thanks all for the comments, for some reason it seems that it was due to the domino server version coz i put the database on dominino 6.x server and it works fine. I guess it's because I working on notes 6 client but was running the application of domino 5.

-jay
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 500 total points
ID: 9851067
Yes, that would explain it.  R5 does not support style sheets.  R6 sets up the stylesheets the same way it sets up pages.  It creats a design elemnt, with flags C34Q.  But stylsheets have an additional flag, I think it is $.  R6 understands this, and lokos at it as a stylesheet instead of a page.  R5 just thinks it is a page.  To send page content, it needs the design fields (Note Items) named $Body and $HTMLCode.  Stylesheets don't have these fields; they have $FileData, which is a rich text field with he style shet file embedded in it.  So, when the R5 serevr attempted to display the "page," it complained about the missing Notes Item.

You can get around this!

Create a new page named style.css, and import/paste teh CSS file txt into it.  In Page properties, change ON WEB ACCESS from Notes type to HTML.  (Technically, you shoudl choose OTHER and type, I think, text/css, but HTML will work just as well inmy experience).
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9851080
You can overcome that easily by importing style sheet into imageresources section as .css file and used it both in R6 and R5.
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 9854854
What I done in R5 is to save css code into a page and save it as .css

That worked for me.

And if the code is in the same db, then no need to refer it with a path.

below is the code which I used.
in HTML HeadContent event of the form:
DBPath:=@ReplaceSubstring(@Subset(@DbName; -1);"\\" : " "; "/" : "+");
"<LINK rel=\'stylesheet\' type=\'text/css\' href=\'/"+DBPath+"/TestStyle.css\'>"

all the links on your page/form/view should not have <font> tags.
0
 

Author Comment

by:jdembare
ID: 9857025
Thanks  qwaletee, it worked perfectly. Must also give credit to madheeswar for being in the same line as q. HemanthaKumar, it seems like I couldn't simply import any other file that is not of type gif,jpg etc (basically) image format so got stack there otherwise I see the idea and would have been much neater. Thank guys

-jay
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question