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 strongm 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. SharkTooth

    <xsl:sort, not sorting, everything else works!

    Nice, Thanks!
  2. SharkTooth

    <xsl:sort, not sorting, everything else works!

    ...like this comes up. Here's the code: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:strip-space elements="*"/> <xsl:output method="html" indent="no"/> <xsl:param name="thisPage"/> <xsl:param name="ad"/> <xsl:param name="publication">...
  3. SharkTooth

    &lt;xsl:sort, not sorting, everything else works!

    Thanks to both of you! It works as expected but... Now I need to remove the hard coded value in: <xsl:template match="/jobwatch/region[@id!='N01']">with the passed in variable: <xsl:template match="/jobwatch/region[@id=$publication]">, but I'm getting an error: "variables cannot be used within...
  4. SharkTooth

    &lt;xsl:sort, not sorting, everything else works!

    Sorry Tom, I was tied up in meetings all afternoon. Wow that is really hairy looking! I'm out of the office right now; I'll try this in the morning and let you know. Thanks Again!
  5. SharkTooth

    &lt;xsl:sort, not sorting, everything else works!

    Thanks Tom, I'm trying to display the data (client name) in two columns. That actually works, but the client names need to be sorted, right now they are displayed as entered in the XML. I thought of what you are saying and have tried to handle sorting elsewhere in the XSLT but haven't had any...
  6. SharkTooth

    &lt;xsl:sort, not sorting, everything else works!

    ...<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:strip-space elements="*"/> <xsl:output method="html" indent="no"/> <xsl:variable name="COLS" select="2"/> <xsl:variable name="ROWS"...
  7. SharkTooth

    Pattern for steping through a survey

    Hi, I'm looking for a nice OOP pattern to handle the counter for stepping through a survey. As the user progresses through the survey decisions are made to determine what page the user sees next. I have to indicate at the top of each page what step the user in on, like: 1 of 6, 2 of 6... Since...
  8. SharkTooth

    Read Xml data

    This will return a SortedList, I'm sure it can be converted to return an Array or ArrayList without to much effort. public class SortedListBuilder{ /// <summary> /// This method reads the xml file looking for the requested key group and returns them setup as a SortedList. /// </summary> ///...
  9. SharkTooth

    intellisense, DataGrid

    I created a custom DataGrid with MS DataGrid as my base. It works fine all I did was preset some design stuff. Problem is when I drop the DataGrid on the page then try to edit the HTML, for instance if I start entering a &lt;columns&gt; tag, I don’t get intellisense. However if a developer can...
  10. SharkTooth

    DataGrid - OOP design

    Just seems like a lot of extra work. 1.) I could just load a dataset with the collection of records and bind to the grid. Or 2.) If I want to stick with the business objects; I'll still have to get the records and iterate through them to build each object (like the user above) and add them...
  11. SharkTooth

    &lt;span&gt; forecolor

    Use Javascript. Something like... document.getElementById("someId").className="spanColorChanged";
  12. SharkTooth

    DataGrid - OOP design

    I created some business objects, for this example a "User" class. User handles everything related to a user, including database transactions (updates, deletes etc.). When I instantiate a new user it goes to the database and loads itself. Here is my question: When I load a datagrid I provide...
  13. SharkTooth

    The correct way to design a class...

    We are learning how to do OOP and have a question that we have been debating. Hopefully you guys can clear this up for us. I get customer data from the database and I want to populate the “Customer” object with the data from the database. I also want to use the “Customer” object to add...
  14. SharkTooth

    Is this a security risk?

    Thanks. I'm not sure how I would be able to get the information to display. I'm no hacker, I think I could inject something though.
  15. SharkTooth

    Is this a security risk?

    I'm doing some testing on a vendor’s web site and ran into the error below. I told the vendor that displaying this kind of error could give a hacker the information needed to hack the db or attempt SQL injection attacks etc. (btw this is a bank). The vendor is telling me that there is no...
  16. SharkTooth

    Namespace same as class name = declaration head aches

    I would change the name. If you must have "Order" as a namespace maybe be should be "Orders". You probably should call your namespace "Business" then have classes under it "Order", "PurchaseOrder:Order" etc.. Also calling a namespace "Interface" is like calling a "class": "Class" or a "method"...
  17. SharkTooth

    Event handler or remoting problem?

    At the very least you will need to "dataGrid1.databind();"/
  18. SharkTooth

    Detecting Reader and Version from the browser.

    Thanks, looks like helpful information. I did figure out how to detect ver 5 or better using VBScript and JS (for NS). I never really found a way to check for version 4 in IE so we assume they don't have what we need (ver 6)m and handle it from there. I'll post the code tomorrow. The Adobe...
  19. SharkTooth

    Static fields on teh web

    I was going to make a class that contained static methods that can be used in our apps including the web server. I have a concern though. My understanding is if i us a class that contains a static field and I change the value of the field then someone else accesses the class the filed will...
  20. SharkTooth

    Detecting Reader and Version from the browser.

    Does anyone know how I could detect Adobe reader and it's version number from the browser? I want to be able to tell them to upgrade if they are still using version 4. Thanks for your help.

Part and Inventory Search

Back
Top