Assigning functions to a button

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Assigning functions to a button
cmckenna82
CZ Newbie
cmckenna82 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 18, 2004
0.00 posts per day
Posts: 1
Points: 72
   
Hi,

I am creating a tool to merge xml files using xslt using Javascript/HTML.

Basically the user browses (browse button) to where there xml files are, then browses to where their xslt file (to perform an operation) is. Then they click an "apply" button and the result is output in a frame below.

My problem:

I have the tool working fine when I only have one input xml file (which is no good in a merge tool!!) but when I modify the code and add another xml field, the apply button will not work for two fields!

I think I haven't assigned the functions correctly to the xml fields/apply button.

*The code in in the file attached*


I think i need to adjust the function ApplyStyleSheet(xml, xsl) but not sure how, also I think that
this is not correct - ApplyStyleSheet(xmlField1.value && xmlField2.value, xslField.value)


Any suggestions/advice/feedback would be greatly appreciated

Thanks in advance
Ciaran



Attached Files
code.txt (1.66 KB, Downloaded: 5231 Time(s))
Attached Files
code.txt (1.66 KB, Downloaded: 5231 Time(s))
Attached Files
code.txt (1.66 KB, Downloaded: 5232 Time(s))


Back to top Reply with quote
#2   re: Assigning functions to a button
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Taut has been a member for over 20 year's 20 Year Member
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.72 posts per day
Posts: 5530
Points: 481,695
   
hi and welcome to codezwiz

as I'm not as well versed on xml yet, these 2 sites may be more helpful to you

[ Register or login to view links on this board. ] [ Register or login to view links on this board. ]

the second link may better help you...let us know how you made out. I'd be interested to know how you got it to work

taut



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum