Hiya,
A really easy question for you
can I do this in XML to only show a link if the ultraseek_query/results/next/@href contains something?
<xsl:if ultraseek_query/results/next/@href !="">
<a id="next"><xsl:attribute name="href"><xsl:value-of select="ultraseek_query/results/next/@href"...
Only problem is now the user can enter a blank space and it matches all blank spaces in the links. Anyway to test that only character data is entered in the input box - not spaces (maybe when I test for nodeType)
Steve
Code now works fine - many thanks for your expertise!
Steven
<script language="javascript" type="text/javascript">
function textSearch() {
var links = document.getElementsByTagName("a");
var inputText = document.getElementById("formSearchBox");
for (var i=0; i <...
It works when the top nav is removed. I think that it has something to do with the fact that the top nav has links which contain spans and images rather than just text. When I remove the spans and images its OK.
Maybe I can do some kind of conditional test like whether the firstChild is a...
My Page only works when I remove the top nav bars - why would that be a problem? Steve
<body class="wide-col" id="cars">
<div id="site-header">
<div id="site-titles">
<h1 id="site-title"><a id="stt-link-home" href="../../index.php"><img src="../../gui/site-logo.gif" alt="Making...
I think the problem is something other than the way I am addressing elements this code works fine (but it doesn't allow individual words to be searched within link text).
<script language="javascript" type="text/javascript" >
function textSearch() {
var links =...
Hi can anyone help I am trying to develop a function which allows a user to enter search terms and have these highlighted on an a-z page.
I can't see what is wrong with this function - can anyone help?
<script language="javascript" type="text/javascript" >
function textSearch() {...
Hi I was hoping that the content of an "a" element could be compared to the content of a H1 element where they both have the same text.
E.g on the home page my H1 would be <h1>home</h1> and in my navigation I would have a link called <a href="index.htm">home</a>
Can the text from these two...
Hi can anyone help?, I want to use JS to add an XHTML id="selected" attribute to the link which is the same as the H1 header on a page. This attribute will be picked up by a CSS file and have a style applied to it to differentiate it as a 'you are here' link.
This is what I did:
<!-- call...
Hi
I wonder if anyone can help. I want to fire up a pop up when my page loads but I want to give the end-user the ability to click 'don't show again' in the pop up and set a cookie.
However the code below is returning errors, I wondered if anyone could offer advice - I have explained in...
Hi, I have a piece of javascript code which works with Coldfusion to produce a 'progress meter' which shows graphically how many far someone has progressed through a rather long form.
Basically the code is executed everytime a person moves from one question to the next (using the onBlur...
function verify(f) {
var fname = -1;
var lname = -1;
var address = -1;
var postcode = -1;
var telephone = -1;
var pinumber = -1;
var region = -1;
var gender = -1;
var age = -1;
var faculty = -1;
var interest = -1;
var category = -1;
var issues = -1...
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.