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 bkrike 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: *

  • Users: GezH
  • Content: Threads
  • Order by date
  1. GezH

    Help identifying strange character

    Hi all. This isn't stricly a Perl question, but I'm posting here as I know that Perl gurus are generally pretty knowledgeable when it comes to character and encoding issues. I have an app which is receiving XML from a service and parsing it, then displaying the data. The content is containing...
  2. GezH

    Installing packages

    Hello all. I'm using CPAN to install packages. Once I've done so, I write a small script to test them, and Perl doesn't seem to have any idea that they're there, or where they are. How do I tell Perl where to look for the new packages installed? Thanks.
  3. GezH

    Help getting set up

    Hi all. I used to program Perl at work, but it's been a while, and it was on machines that were already setup by sys-admins. Now I'm trying to set up a Linux/Perl environment at home and having a couple of problems. Firstly, I'm having trouble installing modules. I want to install the CPAN...
  4. GezH

    Overflow property

    Hello all. I'm attempting to use the overflow property, to provide a scrollbar where images are too wide for the div they live in: .imageDiv{ overflow: auto; overflow-x: scroll; overflow-y: auto; } I've tried various combinations, but it doesn't get picked up in IE6, is there anything I...
  5. GezH

    Variable height of element?

    Hello. My HTML has a <ul> element, with list items simply defined as: <li class="normal"> <p>Some text</p> </li> The stylesheet: #colMain ul#digimedia li.normal { width:300px; width/**/:/**/245px; float:left; margin-bottom:1em; padding-right:10px; height:155px...
  6. GezH

    Email login via perl script

    Hello all. Do you think it's possible to write a script which will simulate a login to an email client, such as Hotmail, gmail, yahoo etc? I was thinking along the lines of some kind of HTTP request which passed in the username and password, then tested the reponse code (authorized, forbidden...
  7. GezH

    Hidden HTML using CSS &amp; JS

    Hello all. Not sure if this should go in the CSS or JavaScript forum - it's a bit of both! What I want to do is to have a block of HTML which is only displayed when javascript is enabled on the browser. So, I think the HTML should be enclosed in a div, which calls a CSS class that hides it by...
  8. GezH

    JQuery code - Firefox / IE

    Hi, I have the following JQuery code which tests for a checkbox: if ($("#myBox").is(":checked")){ // do something } It works fine in Firefox, but in IE the debugger throws some kind of "null or not an object" error, and the rest of the script file fails. "myBox" is the id of the...
  9. GezH

    Using JQuery rules

    Hello. I am making changes to a JSP page with javascript validation via JQuery. Currently the validate method defines a number of rules, for example: rules: { "card.cardName": "required", "card.cardType": "required"} }, messages: { "card.cardName": "Please enter the name on the...
  10. GezH

    Identifiying if browser has JavaScript disabled

    Hello, How can I tell (using either HTML or JSP) whether a user has their JavaScript disabled in the browser? I'm developing an application and want to direct users to a different page depending upon that. Many thanks.
  11. GezH

    Removing elements

    Hello. I create a javascript table as follows: <body id="bodyNode"> // my body in html page <table id="tableObj" /> // reference to the table in html page // my javascript var tableObj = document.createElement("table"); var tbodyObj = document.createElement("tbody"); // append lots of table...
  12. GezH

    Using READDIR to scan files in order

    Hello, I have a simple script which uses the READDIR command to scan through some files in a directory. I thought the script was fine, as it always scanned the files in date order. But when we moved the script onto a different server (with different OS) these files are now being scanned in a...
  13. GezH

    Setting the default submit action for a form

    Hello. I have a pretty normal form - a few textfields etc, except that there are two submit buttons. One goes back to the previous page (not javascript but a struts action) and the other goes to the next step. If you have the cursor placed in any of the text fields and press return, the...
  14. GezH

    Css problem

    Hello, is there a way I can specify a minumum size for a div, but then it expands downwards when the page content gets longer? I have this div: #cont { width:520px; height:400px; background:#ffffff; color: #333333; border:solid #000000; border-width:0 0 0 1px; text-align:left; } It...
  15. GezH

    Basic javascript question

    Please could someone explain what the following line in my page does? <script type="text/javascript" language="JavaScript" href="/somedir/somefile.js"></script> Does it actually execute the file specified, or does it just make available the file and hence any functions held within it? Thanks!
  16. GezH

    Submitting from a textfield

    Hi all. I have a form with a number of different standard form features, including one textfield. Often, users fill in the textfield and hit return to submit the page, rather than bothering to press the 'submit' button. How can I capture this please? I want to know when the use has hit...
  17. GezH

    Text box values

    Hi all. I have a text input box, where we have some preset text value. When the user clicks in the box, the text disappears and they are free to write what they want, as below: <input name="content" type="text" size="20" value="enter text" onclick="javascript:content.value=''" /> Easy right...
  18. GezH

    Mimicking an &lt;a href&gt;

    Hi. I want to substitute my <a href=&quot;xxxxx&quot;> for an onclick() which calls a function. In that function I want to ask the user to confirm() an action. If 'ok' is pressed, I want to continue with submitting as if the link had been correct in the first place. How do I submit() as if the...
  19. GezH

    Sorting a select box

    Hi all, I have a multiple select box which I use javascript functions to add and remove options from. When added, new ones are added to the end of the list, and when removed a blank space is left behind. How can I sort the list back into alphabetical order please? Many thanks for any help.
  20. GezH

    Select box and div tags

    Hi again. I have two blocks of code surrounded by div tags as below: <DIV id=div1 STYLE=&quot;DISPLAY:INLINE&quot;> Sample text one </DIV> <DIV id=div2 STYLE=&quot;DISPLAY:NONE&quot;> Sample text two </DIV> I want a select box with two options. Selecting an option hides one div item and...

Part and Inventory Search

Back
Top