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. greedyzebra

    Reflection/Class Loader question

    Hi, I'll try to simplify this problem as much as possible. I have a program that uses multiple jar files. We'll call two of them 1.jar and 2.jar. 1.jar has objects w,x,y and z. 2.jar has objects y and z. At runtime the user will decide whether to execute with 1.jar or 2.jar. I compile my...
  2. greedyzebra

    XSL: Accessing XML object attributes

    It's simple enough to obtain the value contained within an xml tag: <xsl:value-of select="NodeNameToGetTheValueFrom"> My question is how do I access and obtain the value of a tag's attribute. For instance: <!ELEMENT widget (#PCDATA)> <!ATTLIST widget MyAttribute CDATA #REQUIRED> How can...
  3. greedyzebra

    XSL question

    I'm wanting to turn an xml document into a form page and am wondering how I can apply a default value to a text input field. Here's how I would do this in HTML: <input type="text" value="My Default Value"> When displayed in a browser, a text input field would appear with "My Default Value" as...
  4. greedyzebra

    Your recommendation needed, please!

    Thomas, Thanks very much for the info. I figured there would be a way to do it server side. However, I need the edited file (form input would be fine) to be handled on the user's computer. If there was a way for the doc containing the form input (either html or xml) to send the form data to...
  5. greedyzebra

    Your recommendation needed, please!

    Hi, I'm working on a project where an XML file is being used to transfer data from one application to another. We want to have an empty template for this file that users can edit (populate the data). However, we don't want the users editing the xml. Can anyone recommend an editor that...
  6. greedyzebra

    Need some cookie help, please

    My problem boils down to this. Why do I have a cookie that exists on only one page? Here are the details: 1) We start at the index page. onload we perform a function called "sniff" that creates a cookie that stores some environmental data (screen size, browser type). This has always created...
  7. greedyzebra

    Need cookie help (before I have a stroke!)

    I'm creating two cookies on my web site. One is created on the index page (presumably the entry point, but the javascript function that does this is called "onload" on every page). The other is very specific and is created and added to based on user selections on another page. On entry into...
  8. greedyzebra

    Need help creating a module

    Nevermind. Finally found the answer. For others who might ever have this problem, my error was declaring the variables in the .pm file with &quot;my $varName&quot; instead of &quot;our $varName&quot; (for those variables I wanted to be able to view in other files.
  9. greedyzebra

    Need help creating a module

    Hi, I'm wanting to do something that seems as though it should be very simple, but a couple of hours on google and reading through several Perl books has not yielded an answer. I've created a module. The functions (subs) in it are readily accessible, but variables I intend to be global...
  10. greedyzebra

    ImageMagick, EXIF, Image::Info and comments

    I'm wanting to extract comments from photos. If I write the comments with ImageMagick, I can read them with ImageMagick, but they can't be seen in the tool tip resulting from a mouseover (in Windows) or in the info pane when selecting the file (also in Windows). However, if I create comment by...
  11. greedyzebra

    how can I get a list of a directory's subdirectories?

    Though it seems easy to get all of the files within a subdirectory, the name of the directory is important for what I want to do and I would like to get a list of subdirectories and then operate on them (and the files they each contain) individually. Any ideas? Thanks.
  12. greedyzebra

    Set &quot;onclick&quot; attribute of dynamic button

    Excellent. Thank you!
  13. greedyzebra

    Set &quot;onclick&quot; attribute of dynamic button

    Hi, I'm dynamically creating a button with the following code: var commentButton = document.createElement(&quot;input&quot;); commentButton.type = &quot;button&quot;; And I wish to have the button do something when it is clicked (as you would with most buttons). How can I do this...
  14. greedyzebra

    prevent player appearing when clicking an audio link.

    For what reason are you trying to prevent the player from opening? If you want to allow the user to download the file, you would have to put the file into a zip file.
  15. greedyzebra

    Force cell wrapping?

    If I understand your question correctly, I can offer you one possible solution. Specify the size of your table cells: <td style=&quot;width:100&quot;> If you specify in pixels, wrapping will occur automatically. You can also accomplish this with percentages. <td style=&quot;width:25%&quot;>...
  16. greedyzebra

    adding scroll bars to a table

    I believe you can add scroll bars to a <div>. So put the table in the <div> (or the table rows/columns you want to have the scroll bars). I'm sorry I don't know the exact attribute wording.
  17. greedyzebra

    All I want is a &quot;yes man&quot;!

    Edward, I had a similiar problem when appending new lines at the end of a string. I found that simply putting a space at the end did the trick (which is essentially what you've done with the &quot;please continue: &quot; phrase. As for other phrases how about these off the top of my head:)...
  18. greedyzebra

    Check if object exists

    I would suggest creating a global variable at the top of your page and setting it to &quot;false.&quot; At the bottom of the page (or at the bottom of the form) set the variable to true. Then, if the global variable's name is, for instance, frmIsLoaded, you could do: if (frmIsLoaded) {...
  19. greedyzebra

    text area shows continuous text

    As an attribute for the <textarea> tag, include this: wrap=&quot;hard&quot; This will allow for line breaks to be automatically inserted when the user enters and in the text string sent to the results file. I've switched jobs and computers, so I no longer have FP at work, so I'm sorry I can't...
  20. greedyzebra

    onClick show save as box?

    The only way you can bring up a &quot;save&quot; dialog is with a file that cannot be opened/read by the browser. So the one sure way to get a &quot;save&quot; dialog is to make your file a zip file. If you are merely passing the filename to another script, perhaps it (the filename) could be...

Part and Inventory Search

Back
Top