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

    opening document in PDF using Adobe Acrobat Reader

    I am writing a small site in which when the person clicks on a link, I would like the forms to open up in PDF using Adobe Acrobat reader. Thanks for any help Mark
  2. MarkJ2

    entering integer in program

    New to Java here..... I am writing a program which I would like the user to enter an integer. The integer will then be used for some other calculations. My code so far is: //read in input, cast to char. n = (char)System.in.read(); //assign 'n' to new String. s = new String[n]; //using...
  3. MarkJ2

    using Date object with constructor

    In the program I am writing, I would like to create an instance of an object that will allow anyone to pass in a date (year,month,date,hour,minutes) as a Date object. I am able to create an instance of an object that takes the parameters of year,month, and date and passes them to another...
  4. MarkJ2

    order-by attribute in XML

    I wrote a script that when the page is loaded a function is called that sorts some data. The data is linked by an 'ID'. In the xsl statements, I have an order-by = "+AUTHOR". AUTHOR is the name of a element in my xml document. I then display the sorted info. in a HTML table. When I...
  5. MarkJ2

    opening new window from function

    I am writing an HTML page that has a 'button' that sorts some information. When the function is called, I would like it to open a new window to display the information, as opposed to the information being displayed in the same window that the 'button' is in. Thanks!
  6. MarkJ2

    Link on same page

    Romannl, Would I need to put a marker at the top of the document, or would putting the code <A HREF=&quot;#&quot;>Back to top</A> automatically take the user back to the start of the page? Thanks
  7. MarkJ2

    Link on same page

    What I would like to do is write one FAQ html page with the FAQ's at the top and when the user clicks on the question, the page 'jumps' to the answer text that is below on the same page. Sort of like....(just an example) 1. What is in the catalog? (the user can click on these) 2. How do I...
  8. MarkJ2

    using 'char' variable

    I am writing a program using classes. In the header file I want to declare a 'char' variable as private (lets call the variable 'flag'). Then in the member class function 'print' depending on whether the time is 0 thru 11 or 12 thru 23 ( I am using military time) I want the 'char' variable...
  9. MarkJ2

    structures

    I need help on structures. I understand a structure definition goes in the global section of the program. such as: struct STUDENT { int id; int midterm; int final; } From there I am lost. Do you need to always declare a variable of the structure and where does that go? Also what is the...
  10. MarkJ2

    Image error handler

    I am loading two images in the body of my window. One of them I am purposely writing the src attribute as incorrect so the image does not load completely. In my Script, I have the code: window.onerror = error Handler; In the function 'errorHandler', I would like to write code that will change...
  11. MarkJ2

    looping thru text

    I am writing a script that will loop thru the elements in a page and place enclosing <STRONG> </STRONG> tags around all text inside all P elements. I have the loop written function start(pText) for ( var loop = 0; loop < document.all.length; ++loop ) but am not sure how to write the next...
  12. MarkJ2

    ? re: 'Pattern' code

    I was writing some code to change words into pig Latin. I wanted to change the rules abit and only change words that started with consonants. Glowball responded to my initial question with: var Pattern = new Object(); Pattern.vowels = /^[aeiouAEIOU]/; var foundVowel =...
  13. MarkJ2

    initializing variables

    I am writing a script that will convert the string the user has entered into pig latin. I have that down, but I want to change the rules slightly so that the words are only changed if the word begins with a consonant. I was thinking of doing one of two things: var vowel = a, e, i, o, u...
  14. MarkJ2

    HTML attribute for button Font &amp; bgcolor

    If Wullie sees this, thanks for the earlier response. I was looking for a HTML attribute that would change the bgcolor of a button and also if there is one to change the font of a button. I was not using CSS on the page I am working on. Thanks!
  15. MarkJ2

    button bgcolor and font color

    What are the attributes to change the background color of a button or the Font color of the text (i.e. Value) that appears on the button? Thanks!
  16. MarkJ2

    setfocus to a particular button

    I have two buttons on a form that call separate functions when clicked. Further down in my code I would like to set the focus back to one of the particular buttons. What is the code for that? Thanks dudes!
  17. MarkJ2

    nested for structures

    I'd like to write a script that will read in an odd number to specify the number of rows of a diamond. If the user enters 5 the diamond will look like so: * *** ***** *** * I know I will need nested for structures and output...

Part and Inventory Search

Back
Top