css problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Bedford

    css problem

    Sorry to ask here, but can't find any CSS NG with more than 10 threads.

    On my site they are various article to sell from various companies.

    The companies update the database directly on my server.

    Now, some companies would like to "integrate" their articles also on their
    website.

    For this, we are doing the job to have their articles coming from our site
    in a frame.

    BUT !!! when we try to apply a CSS on the frame, we have a big problem:
    nothing appens.

    We'd like the customers to manage their own CSS, instead of asking us to
    change for them.

    <link href="test.css" rel="stylesheet " type="text/css">
    <title>No title</title>
    </head>
    <frameset cols="80,*" frameborder="NO " border="0" framespacing="0 ">
    <frame src="leftmenu.h tm" name="leftFrame " scrolling="NO" noresize>
    <frame src=www.mysite. com name="mainFrame ">
    </frameset>

    we'd like www.mysite.com to takes the test.css.

    How to do so? Our client don't have access to scripts (no php, no asp...)

    Bob


  • Geoff Berrow

    #2
    Re: css problem

    I noticed that Message-ID: <42233c74$0$341 2$5402220f@news .sunrise.ch>
    from Bob Bedford contained the following:
    [color=blue]
    >BUT !!! when we try to apply a CSS on the frame, we have a big problem:
    >nothing appens.[/color]


    Of course. The CSS will only apply to the frameset, not the pages that
    make up the frameset.

    Can you not add the location of the client's CSS file to your database
    and add it to www.mysite.com before it is sent out?
    --
    Geoff Berrow (put thecat out to email)
    It's only Usenet, no one dies.
    My opinions, not the committee's, mine.
    Simple RFDs http://www.ckdog.co.uk/rfdmaker/

    Comment

    • ChronoFish

      #3
      Re: css problem

      Could you not apply a CSS to a frame via javascript? Each window has a
      name that is allows it to be identified in JavaScript and there are
      ways to apply Class changes via JavaScript. I don't mean to lead you
      down the wrong path, but I would suggest taking 15 minutes to google
      "CSS frames javascript".

      -CF

      Comment

      • NC

        #4
        Re: css problem

        Bob Bedford wrote:[color=blue]
        >
        > We'd like the customers to manage their own CSS, instead of asking
        > us to change for them.
        >
        > <link href="test.css" rel="stylesheet " type="text/css">
        > <title>No title</title>
        > </head>
        > <frameset cols="80,*" frameborder="NO " border="0" framespacing="0 ">
        > <frame src="leftmenu.h tm" name="leftFrame " scrolling="NO" noresize>
        > <frame src=www.mysite. com name="mainFrame ">
        > </frameset>
        >
        > we'd like www.mysite.com to takes the test.css.
        >
        > How to do so?[/color]

        You have at least three options:

        1. The customer's Web site communicates location of its CSS file
        to your site transparently:

        <link href="test.css" rel="stylesheet " type="text/css">
        <frameset cols="80,*" frameborder="NO " border="0" framespacing="0 ">
        <frame src="leftmenu.h tm" name="leftFrame " scrolling="NO"
        noresize>
        <frame src="http://www.mysite.com/?css=[URL]" name="mainFrame ">
        </frameset>

        where [URL] is the full URL to the style sheet.

        Then your script simply does the following:

        echo '<link href="', $_GET['css'],
        '" rel="stylesheet " type="text/css">';

        The advantage is that is is transparent. The disadvantage is
        that the [URL] will have to be in URL encoding, rather than
        raw, which tends to confuse the less technically adept...

        2. The customer's Web site communicates location of its CSS file
        to your site via a customer identification code of some kind:

        <link href="test.css" rel="stylesheet " type="text/css">
        <frameset cols="80,*" frameborder="NO " border="0" framespacing="0 ">
        <frame src="leftmenu.h tm" name="leftFrame " scrolling="NO"
        noresize>
        <frame src="http://www.mysite.com/?cid=234" name="mainFrame ">
        </frameset>

        Then your script can pull a location of the CSS file for
        customer number 234 from a database or a text file.

        The advantage is ease of use for your client. The disadvantage
        is that you need to keep a database of CURRENT URLs to customers'
        style sheetes.

        3. Your site should know URLs to customer's CSS files and include
        them accordingly, depending on who's calling the site. For
        example, you can do this:

        $parts = parse_url($_SER VER['HTTP_REFERER']);

        and then output the link to the style sheet based on
        $parts['host'].

        In all cases, these options are only good for initial detection.
        To keep the style sheet setting, you will need to propagate it
        via a CGI variable or a session variable.

        Cheers,
        NC

        Comment

        • Michael Fesser

          #5
          Re: css problem

          .oO(Bob Bedford)
          [color=blue]
          >Sorry to ask here, but can't find any CSS NG with more than 10 threads.[/color]

          <news:comp.info systems.www.aut horing.styleshe ets>

          Micha

          Comment

          • Bob Bedford

            #6
            Re: css problem

            "ChronoFish " <deja@chronofis h.com> a écrit dans le message de news:
            1109618312.1980 16.145410@g14g2 00...legr oups.com...[color=blue]
            > Could you not apply a CSS to a frame via javascript? Each window has a
            > name that is allows it to be identified in JavaScript and there are
            > ways to apply Class changes via JavaScript. I don't mean to lead you
            > down the wrong path, but I would suggest taking 15 minutes to google
            > "CSS frames javascript".[/color]

            Javascript isn't suitable as many user still desactivate it !


            Comment

            • Bob Bedford

              #7
              Re: css problem


              "Michael Fesser" <netizen@gmx.ne t> a écrit dans le message de news:
              phu6215tn21fab3 8j2qbh593a8hqle ajc1@4ax.com...[color=blue]
              > .oO(Bob Bedford)
              >[color=green]
              >>Sorry to ask here, but can't find any CSS NG with more than 10 threads.[/color]
              >
              > <news:comp.info systems.www.aut horing.styleshe ets>[/color]

              I meant on my ISP's NG list. Thanks anyway.


              Comment

              • Michael Fesser

                #8
                Re: css problem

                .oO(Bob Bedford)
                [color=blue][color=green]
                >> <news:comp.info systems.www.aut horing.styleshe ets>[/color]
                >
                >I meant on my ISP's NG list. Thanks anyway.[/color]

                Ask them to get that group or find a better newsserver.

                Micha

                Comment

                Working...