473,699 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Assigning functions to buttons


Hi,

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

Basically the user browses (browse button) to where there xml file
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
frame below.

My problem:

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

I think I haven't assigned the functions correctly to the xm
fields/apply button. Heres some of the code I suspect is wrong, but i
not sure where??

<table width="800">
<tr>
<td width="370">
XML File 1
<input type="file" size=15 id="xmlField1" >
<input type="button" value="XML Src
onClick="ApplyS tyleSheet(xmlFi eld1.value, 'defaultss.xml' );" id=xmlsr
name=xmlsrc>
XML File 2
<input type="file" size=15 id="xmlField2" >
<input type="button" value="XML Src
onClick="ApplyS tyleSheet(xmlFi eld2.value, 'defaultss.xml' );" id=xmlsr
name=xmlsrc>
</td><td> </td>
<td width="370">
XSL File
<input type="file" size=15 id="xslField">

<input type="button" value="XSL Src
onClick="ApplyS tyleSheet(xslFi eld.value, 'defaultss.xml' );" id=xslsr
name=xslsrc>
</td></tr>
<tr><td> </td>
<td width="80">
<input type="button" value="Apply
onClick="ApplyS tyleSheet(xmlFi eld1.value && xmlField2.value
xslField.value) ;">
</td><td> </td>
</tr>
</table>

Any suggestions/advice/feedback would be greatly appreciated.

Many Thanks
Ciara

cmckenna8
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message45839.htm

Jul 20 '05 #1
3 1625
"cmckenna82 " <cm************ ***@mail.forum4 designers.com> wrote in
message news:cm******** *******@mail.fo rum4designers.c om...
<snip>
Posted via http://www.forum4designers.com


forum4designers .com is a bad place to read comp.lang.javas cript from
because their presentation of the group garbles the Usenet posts it is
derived from. Removing *significant* formatting, omitting sections and
adding text and white space that was not part of the original posts to
Usenet. And they only report a fraction of the posts made to the
group, giving an incomplete and inaccurate representation of the group.

In addition, the posting mechanism used by forum4designers .com fails
to properly implement RFC 1036 (Standard for Interchange of USENET
Messages), and in a way that is likely to result in confusion as to
conversational flow and intended respondee for anyone using genuine
Usenet software.

forum4designers .com is also a bad pace to ask javascript questions
from because their misrepresentati on of the group, combined with
deliberate deceptions about the nature of the service that they
provide, have resulted in a level of resentment of
forum4designers .com that will negatively impact on anyone who decides
to associate themselves with that web site.

But being aware that forum4designers .com may not report posts made in
response to questions asked from there, and will actively
modify/distort any responses they do show, potential responders may
consider it a waste of there time to put any effort into responding to
posts originating from forum4designers .com even if they have no
attitude towards that site.

Many other sites provide superior web-based access to Usenet, and
often without distortion or omission, including groups.google.c om
(who also provide extensive and flexible archive searching
facilities). But the best method of reading and posting to
comp.lang.javas cript is through a news server via (standard and
standards conforming) newsreader software.

Richard.
Jul 20 '05 #2
JRS: In article <c1************ *******@news.de mon.co.uk>, seen in
news:comp.lang. javascript, Richard Cornford
<Ri*****@litote s.demon.co.uk> posted at Thu, 19 Feb 2004 02:14:59 :-
Many other sites provide superior web-based access to Usenet, and
often without distortion or omission, including groups.google.c om
(who also provide extensive and flexible archive searching
facilities).
"and often"? After "Many", ISTM not needed.

Anyone who can use the offending site can use "Google Groups"
<http://groups.google.c om/> to observe the full content of this
newsgroup and compare it with the censored version.

But the best method of reading and posting to
comp.lang.java script is through a news server via (standard and ^^^^^^^^^^^^
I'd omit those words; the only likely interpretations , to the type of
user being addressed, are "Web" and/or "MSOE". There is no need for
standard software when one can have standards-conforming software.
standards conforming) newsreader software.


--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME ©
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demo n.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
Jul 20 '05 #3
"Dr John Stockton" <sp**@merlyn.de mon.co.uk> wrote in message
news:9m******** ******@merlyn.d emon.co.uk...
<snip>
... , and often without distortion or omission, ...
<snip>"and often"? After "Many", ISTM not needed.
I am not so sure. The software that forum4designers uses is open source
and currently in use by other sites, some of whom are using similar HTML
presentation. So they too will be trimming and generally garbling their
content, and if subject to a similar campaign of criticism may also
resort to direct censorship.

Fortunately these other sites do not seem to be attracting any users so
they are currently no a problem (some of the ones I looked at are so
obviously run by charlatans that even the very dim would not choose to
use them). But there is no advantage to the users of forum4designers if
they switch to an alternative provider of web-based access if that
provider is just as bad as (or potentially worse than) forum4designers .

Given the availability of the software and the number of sites using it
I don't know why forum4designers appears to be the only one attracting
users, and thus attention. They have probably invested in some sort of
direct promotion, which would explain their reluctance to come clean
about the true nature and quality of their service (as that may directly
contradict their promotional material).

Incidentally, forum4designers seems to be conceding the formatting
point. They are now replacing the space characters in posts with &nbsp;
in the HTML. So some of the code indenting will be preserved. It is not
a good solution because their HTML is erroneous and bloated to start
with so adding 5 bytes for every space in the source is passing quite a
burden on to their users (especially in comparison to the obvious
alternative).
Anyone who can use the offending site can use "Google Groups"
<http://groups.google.c om/> to observe the full content of
this newsgroup and compare it with the censored version.

<snip>

And to post from there, avoiding the unfortunate associations and
substandard posting software.

Richard.
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

30
19731
by: Will Pittenger | last post by:
Does C# inline functions? I do not see a inline keyword. Is there an implicit inline? Can the compiler select functions for auto-inlining? I am more used to C++ where all these things are possible. ---------- Will Pittenger E-Mail: mailto:will.pittenger@verizon.net All mail filtered by Qurb (www.qurb.com)
2
1052
by: Vi | last post by:
Hi, I'm building a screen where I want to allow users to be able to see data one page at a time. The users would view the data by clicking on the Page Nr. The problem is that the number of pages is dynamic, based on how much data the database returns, and I'm having troubles building the list of page numbers. I'm trying to build it using LinkButton controls, but because their number is dynamic, I don't know how to link their handlers to...
10
3185
by: Mike S | last post by:
Does anyone know the logic behind why in VB.NET the result of a floating-point division ('/') is -rounded- on being converted to an integer type, such as with statements like Dim x As Integer = 2/3 'after assignment, x is 1, whereas a sane person would say it should be 0 Does Microsoft have a reason for this design decision? I understand that this type of rounding can reduce the overall error in long computation chains by reducing the...
4
1417
by: mantrid | last post by:
Hello Hope you can help. I have been using the code below to move elenents around the page. This has worked fine until I put some arguments into the functions so I could use them in many places with out having to create lots of slightly different functions. The code that has now stoped working is below. My javascript is not great and I have been struggling with this all day. Can anyone see where Ive gone wrong Thanks Ian
10
9461
by: Steve Pope | last post by:
The first of the following functions compiles, the second gives what I think is a spurious error: "cannot convert `const char' to `char *' in assignment". void foo(int m) { char *str; if (m < 4) str = "%01x"; else if (m < 9) str = "%02x"; else str = "%03x";
3
1457
by: ajfish | last post by:
dear esteemed javascript gurus. consider the following fragment: var buttons = document.getElementById("tr_Toolbar").getElementsByTagName("button"); for (var i=0; i<buttons.length; i++) { var button = buttons; button.onmouseup = function() { mouseup(button.id); return false; } }
41
8673
by: jpmcafee | last post by:
Hi Guys, Iam new to vb2005 and programming and I could really use some help. I have finished my book on vb2005 and i cant find what I am looking for, Essentially I want to create a form with 3 columns, down each of these colums will be about 20 radio buttons. I need to assign a value to each radio button such as( -4 thur +4) at the bottom of each column I need it to add them up for a final score. Any advice would be great! ...
7
1770
by: jodleren | last post by:
Hi I have been looking into php.net, but could not find any proper description. There is a way of assigning variables from functions, while at the same time using them in e.g. an if. I have tried to use this, but failed.... and I have not found any proper information about this? E.g., if I am right, then
0
9178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8916
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7752
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4376
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2348
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.