Jump to content

sikrip

Members
  • Posts

    3
  • Joined

  • Last visited

sikrip's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Well I was not able to make it work...I did the following:I declared a xsl param <xsl:param name="pagenumber" select="1"/> When the page loads I see the first record as expected. The goal is to press next and see the next record!!I copied the javascript function from the link you posted above in a page.js file and put the <script language="javascript" src="page.js" /> in the head of the page.Finally I called the function from a button like this <input type="button" value="Next" onclick="changePage(2)" /> When I press the buuton (and expect to see the second record) nothing hapens.I added the document.write("error occured number="+number) in the catch statement of the js function and then when I click the button i see "error occured number=2 "in my browser. I tried it in both MS IExplorer and firefox. So, the function is called, the parameter is passed, but an exception is thrown...(So the javascript code has some problem?)Can you help me by sending me a simple xstl page that does the work i want to do:to display one xml record at time using a parameter(using client side scripting).PSI am coding desktop applications for many years but I am newbie in web development, and -for now- I have not the required time to propertly study web development, I just have to implement this simple(?) task so please help me...
  2. Thanks a lot both of you. I am not able to use server side scripting because the web server that will host my site does not support it.I hope to make it work with javascript...!
  3. Hi everyone,I have a xml file and I want to filter the nodes to be shown in the final result of my web page.For example when I want to view only the nodes that hav price equal to 10 i write the following. <xsl:for-each select="catalog/cd"> <xsl:if test="price=10"> ... </xsl:if></xsl:for-each> But i want to make a page that the user will type the price value in a text field and this value will be passed in the 'test' section above. In other words I want to put a variable in the xml:if.Can you please give me some sample code of how to do that? Must I use javascript?I am in my very first steps in xstl, sorry if my question is trivial...Thanks in advance...
×
×
  • Create New...