?

Log in

No account? Create an account

Previous Entry | Next Entry

[Please edit and title your post!]

  • Mar. 16th, 2011 at 10:03 PM
Hello.
Tell me, please, whether there is a variable specifying in the current reference in an address line of the browser?
Thanks.

Comments

av8rmike
Mar. 22nd, 2011 06:18 pm (UTC)
OK, I think I understand you. In the context of the Page class, "entries" has no meaning. You need a specific kind of Page class, such as FriendsPage or RecentPage for the Entry class, and therefore, the itemid, to have any meaning. It's the same reason why you need to define a print_body and a print_entry method for each kind of Page; the method for the base class (Page::print_body) doesn't have access to the members of the derived class to do its job. In your case, you'll need a lay_print_header_links() function specific to EntryPage. Does this make sense?
herbera
Mar. 22nd, 2011 06:41 pm (UTC)
Yes, I it have understood all.
Initially I simply wanted to "catch" the address from an address line of the browser, to isolate id of entry and to compare it to certain value (which I foreknow).

The general principle:

var url = (?);
var id = (a part url);
if ($.view = "entry") {
if (id=9773 or id=8751) {
"""< body class ="current" >""";
}
}


But time doesn't exist a variable "url" it is impossible so to operate :(

Thanks you for the help to use itemid.

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars