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...
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.
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...
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...
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...
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...
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...
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...
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...
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.
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...
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...
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...
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...
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!
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...
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...
Hi.
I want to substitute my <a href="xxxxx"> 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...
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.
Hi again.
I have two blocks of code surrounded by div tags as below:
<DIV id=div1 STYLE="DISPLAY:INLINE">
Sample text one
</DIV>
<DIV id=div2 STYLE="DISPLAY:NONE">
Sample text two
</DIV>
I want a select box with two options. Selecting an option hides one div item and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.