Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   XSL / XML: Syntax for calling (http://www.velocityreviews.com/forums/t170339-xsl-xml-syntax-for-calling.html)

Alan Searle 12-20-2005 07:51 AM

XSL / XML: Syntax for calling
 

I hope someone can help me with this simple question ...

I have a set of XML files which the users can open and view with the
formatting set by a single XSL file. This works great.

In the XSL file I have some processing using javascript. This also
works fine and, for example, the users can run some simple sorting using
the following call to javascript (also contained in the XSL):

<td class="top" onclick="sort('job_id');">Job</td>

Now I would like to pluck out some information from the XML and display
this in the header and, for this, I have written another little
javascript program called getheader(). I am trying to include this as a
simple display (i.e. without any clicking or activation) and am not sure
of the syntax.

For example, should it be ...

This ...

<B>javascript:getheader()</B>

.... or this ...

<B>getheader()</B>

.... or this ...

<B>"getheader();"</B>

.... or something else completely?

Here I find that IE falls over on the call so I think that I need to be
sure that I am calling my code correctly before I can start debugging it.

I am a bit embarrassed asking this simple question: I have found lots of
great examples on the internet but find that that often don't explain
how the procedures are called ... and I am a bit of a newbie to
javascript and XML.

Anyway, I hope that someone can help me or can point me towards a good
'HOWTO' or tutorial somewhere?

Many thanks for your help.

Regards,
Alan Searle


All times are GMT. The time now is 03:19 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.