I am creating an atom feed, and I am confused about including external entity files as DTDs. My goal is to include the entity definitions in my xml as external files instead of putting the definitions inline.
At the top of my document I have:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE...
I am trying to build a string using a constant, but if I do so with the constant at the beginning of the string, it treats it as a literal.
For example:
use constant FOO => "abc";
print FOO . "def"; # prints FOOdef
print "" . FOO . "def"; # prints abcdef
Any advice? Thanks!
Is there any way to capture a user's right click behaviour, including what option they chose. For example, I right click on a link, and choose "save as". I want to tie a javascript function to that action.
Thanks!
I have a page that includes a form I cannot alter. I want to capture it's submission, and do some validation. My code works fine in Firefox, but nothing happens (not even an error) in IE.
if (window.addEventListener) window.addEventListener('submit', myFunction, true);
else if...
I am trying to hijack an existing form and use it for a different purpose. Unfortunately I cannot just change the form itself. :(
When the form is submitted throuh clicking the submit button, or hitting the enter key on an input field, a function is called to validate the form and then...
What is the best way to check if a variable is set? If it unset, then I can check its length, but I haven't been able to find any functions like empty(), isset(), etc.
TIA
I have having trouble changing the selected option in a <select> box. From reading, I thought the correct code would be:
document.formname.fieldname[index].selected=true;
but it's not working. Is this the correct format? TIA.
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.