Welcome to TalkGraphics.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2004
    Location
    Prague,Czech Republic
    Posts
    16

    Default

    Hello,
    in my current project I need to use navbar links with the parameter sessionID but i'm really can't find the way haw to do that. I could not find the way how to insert sessid into external .js and don't know why the session id is not posted between different items in navbar for every item in menu is started special single session and i don't know why it happens. At this moment is not possible to give some link at example because i'm not at my working computer and maybe too dificult to understand what i need but i hope that is some way to solving my problem. Thank in advance.

    Kether of Darksun

  2. #2
    Join Date
    Feb 2004
    Location
    Prague,Czech Republic
    Posts
    16

    Default

    Hello,
    in my current project I need to use navbar links with the parameter sessionID but i'm really can't find the way haw to do that. I could not find the way how to insert sessid into external .js and don't know why the session id is not posted between different items in navbar for every item in menu is started special single session and i don't know why it happens. At this moment is not possible to give some link at example because i'm not at my working computer and maybe too dificult to understand what i need but i hope that is some way to solving my problem. Thank in advance.

    Kether of Darksun

  3. #3
    Join Date
    Nov 2003
    Location
    United Kingdom
    Posts
    38

    Default

    I could be wrong but....

    if you changed the extension of the navbar .jst to .php it would be parsed,
    and you could convert it to PHP to include your code / sessions etc.

    you could even make dynamic submenus,
    pulling headings, links etc from a database.

    eg menu-> reports
    submenu-> Thursday 12th
    Friday 16th
    etc, or whatever you want to stick in the database.

    hopefully if I'm wrong someone else here will correct me. http://www.talkgraphics.com/images/smilies/smile.gif

  4. #4
    Join Date
    Feb 2004
    Location
    Prague,Czech Republic
    Posts
    16

    Default

    Thanks for your reply but i'm not sure that you are right. I try it of course but, when I change extenstion of the .js (in filenamehttp://www.talkgraphics.com/images/smilies/smile.gif and modify this line(s) :

    <script Webstyle4>document.write('<scr'+'ipt src="data/xaramenu.js">'+'</scr'+'ipt>');document.write('<scr'+'ipt src="data/wings_page1_hnavbar.js">'+'</scr'+'ipt>');/*img src="data/Wings_page1_hnavbar.gif" moduleid="ShadowCompany (Project)Wings_page1_hnavbar_off.xws"*/</script>
    with replacing wings_page1_hnavbar.js to wings_page1_hnavbar.php (with modified link in the "new .php") i will didn't see any NavBar http://www.talkgraphics.com/images/smilies/frown.gif So I think that this is not the right way to solve this problem.

    Kether of Darksun

  5. #5
    Join Date
    Feb 2004
    Location
    Prague,Czech Republic
    Posts
    16

    Default

    oops http://www.talkgraphics.com/images/smilies/smile.gif it doesn't post whole line
    I try it again :

    {script Webstyle4}document.write('{scr'+'ipt src="data/xaramenu.js"}'+'{/scr'+'ipt}');document.write('{scr'+'ipt src="data/wings_page1_hnavbar.js"}'+'{/scr'+'ipt}');/*img src="data/Wings_page1_hnavbar.gif" moduleid="ShadowCompany (Project)Wings_page1_hnavbar_off.xws"*/{/script}

    Kether of Darksun

  6. #6
    Join Date
    Feb 2004
    Location
    Prague,Czech Republic
    Posts
    16

    Default

    Hello again http://www.talkgraphics.com/images/smilies/smile.gif
    I have new opinion for the session problem with navbars http://www.talkgraphics.com/images/smilies/smile.gif The main problem with session is that serverside "parser" will automaticaly add to every HREF and to every FORM special part (for HREF &PHPSESSID=some_id ; for FORM insert special HIDDEN INPUT with session_id ) but serverside php parser cannot add this session_id information into menu because this is a javascript (read it as CLIENT SIDE) and due the fact that menu is generated by JS is not possible to insert session_id information. Now i will try to modify one some_menu.js with inserting php command to ech sess_id and rename .js to .js.php and we will see more (maybehttp://www.talkgraphics.com/images/smilies/smile.gif if you are interested in this problem stay tuned or try it yourself and leave message http://www.talkgraphics.com/images/smilies/smile.gif

    Bye for now

  7. #7
    Join Date
    Oct 2003
    Location
    Virginia
    Posts
    12

    Default Re: Webstyle NavBars and PHP sessions

    Hi,

    Have you tried placing the .js code inside your php web pages. You will have to modifiy paths but it might work for you.

    Alternatively if your pages are using session_start(), you have access to the session_id().


    Rythmist

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •