Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. MrGrey

    Automated CSS documentation

    Many thanks.
  2. MrGrey

    Automated CSS documentation

    Hi, Does anyone know if there is an automated documentation tool for CSS on the lines of JSDoc for Javascript. (ie. documentation created from inline code comments). Thanks in advance.
  3. MrGrey

    CSS - Can I stretch a background image?

    If you mean with variable width content can you have a seamless image rather than a repeating one, just make the image large enough to cover all browser resolutions.
  4. MrGrey

    Cannot detect radiobutton

    He has 2 radio buttons with the ids of 'rdbWeek' and 'rdbMonth' that are both named 'rent'.
  5. MrGrey

    Cannot detect radiobutton

    That code is a .net control.
  6. MrGrey

    Cannot detect radiobutton

    If you view the source you will notice the id is not 'rdbWeek' but something like 'xxxx_xxxx_rdbWeek' as .net writes a bunch of stuff in there. You will need to reference a different way - either by pasting in this rendered value (which is not very nice) or using the DOM.
  7. MrGrey

    multi line commenting

    You just did it.
  8. MrGrey

    change content of webpage depending on value of combo box

    Yes agreed. If you just want to update some text then innerHTML is ok otherwise go with the above method.
  9. MrGrey

    change content of webpage depending on value of combo box

    On an abstract level this is the kind of thing you would do if you were to use innerHTML. <script language="JavaScript" type="text/javascript"> function displayContent() { form = document.bonusForm; body = document.getElementById("bodyText"); if...
  10. MrGrey

    tricky problem: determine size styles of a picture in xsl

    Not entirely sure what the benefits of using xsl:attribute are in this instance. Surely a cleaner way to write the above would be: <v:shape id="" type="" style="width:{@iwidth};height:{@iheight};zindex:1pt"> In regards to your original question you would have to look into extension functions.
  11. MrGrey

    using XSLT to modify HTML, got stuck on a tricky bit

    Yes i see what you mean. How about something like this? <xsl:template match="/"> <xsl:apply-templates select="ul" /> </xsl:template> <xsl:template match="ul"> <ul> <xsl:apply-templates select="li" /> </ul> </xsl:template> <xsl:template...
  12. MrGrey

    CSS Validation

    It is not an error it is just a statement telling you to make sure your html is valid.
  13. MrGrey

    using XSLT to modify HTML, got stuck on a tricky bit

    Think something like this would be easier. Basically match everything as usual except if the list has a parent 3 levels up. <xsl:template match="/"> <xsl:apply-templates select="ul" /> </xsl:template> <xsl:template match="ul"> <ul> <xsl:apply-templates select="li" /> </ul>...
  14. MrGrey

    New Member - XML problems

    The xsl:for-each (or apply-templates) essentially contains a template which is initiated for each node selected in the expression. So if if you do this: <xsl:for-each select="track"> <tr> <td> <xsl:value-of select="trackname"/> </td> </tr> </xsl:for-each> the template is processed just once...
  15. MrGrey

    New Member - XML problems

    You need to do a for-each on trackname rather than track. <xsl:for-each select="track/trackname"> <tr> <td> <xsl:value-of select="."/> </td> </tr> </xsl:for-each>
  16. MrGrey

    xsl:variable increment

    As I said - try using the position() function. <xsl:if test="not(position()=1)"> <p class='pagebreakhere'></p> </xsl:if>
  17. MrGrey

    xsl:variable increment

    You would use the position() function which returns the position of the nodes being processed. So it would be something like: <xsl:apply-templates select="NODE_NAME[not(position()=1)]" />
  18. MrGrey

    Using Javascript in XSL

    Here is another solution: <a href="javascript:ViewDetails('{MRN}','{AccessionNumber}')">View Details</a>
  19. MrGrey

    Add Missing Elements

    This is the kind of thing you want <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml"/> <xsl:template match="employees"> <xsl:apply-templates select="employee" /> </xsl:template> <xsl:template match="employee"> <record> <empid>...
  20. MrGrey

    recursive transformation

    This is the kind of solution you would want: <?xml version='1.0'?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> <xsl:template match="/"> <xsl:apply-templates /> </xsl:template> <xsl:template...

Part and Inventory Search

Back
Top