473,503 Members | 9,057 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to write/read value from param tag?

Hi All!
I have problem...
I want to write/read value from param tag in applet, but I don't know how...
This is exaple code:
----------------------------------------------------------------------------
<applet code="example.class">
<param name="font" value="Arial">
<param name="width" value="80">
<param name="image_url" value="http://some.url/image.gif">
</applet>
----------------------------------------------------------------------------
I try something like this:
----------------------------------------------------------------------------
<script>
sfont=document.applets[0].font.value;
alert(sfont);
</script>
----------------------------------------------------------------------------
or:
----------------------------------------------------------------------------
<script>
sfont=document.applets[0].params[0].value;
alert(sfont);
</script>
----------------------------------------------------------------------------
but it doesn't work.
Please help! :)
Jul 20 '05 #1
3 7275
Try the following:

sfont = document.applets[0].getElementsByTagName('param')[0].value;

-Wagner

"SzokU" <sz***@pf.pl> wrote in message news:<bl**********@atlantis.news.tpi.pl>...
Hi All!
I have problem...
I want to write/read value from param tag in applet, but I don't know how...
This is exaple code:
----------------------------------------------------------------------------
<applet code="example.class">
<param name="font" value="Arial">
<param name="width" value="80">
<param name="image_url" value="http://some.url/image.gif">
</applet>
----------------------------------------------------------------------------
I try something like this:
----------------------------------------------------------------------------
<script>
sfont=document.applets[0].font.value;
alert(sfont);
</script>
----------------------------------------------------------------------------
or:
----------------------------------------------------------------------------
<script>
sfont=document.applets[0].params[0].value;
alert(sfont);
</script>
----------------------------------------------------------------------------
but it doesn't work.
Please help! :)

Jul 20 '05 #2
It's work! Thanks man! ;D

Uzytkownik "W d'Anjos" <wa****@yahoo.com> napisal w wiadomosci
news:b3**************************@posting.google.c om...
Try the following:

sfont = document.applets[0].getElementsByTagName('param')[0].value;

-Wagner

Jul 20 '05 #3
tonypal
2 New Member
It's work! Thanks man! ;D

Uzytkownik "W d'Anjos" <wanjos@yahoo.com> napisal w wiadomosci
news:b36d147d.0310011108.451b564f@posting.google.c om...[color=blue]
> Try the following:
>
> sfont = document.applets[0].getElementsByTagName('param')[0].value;
>
> -Wagner[/color]
HI All,
i have created an applet dynamically from javascript with the following code:

var tbody = document.getElementById(id).getElementsByTagName(" TBODY")[0];
var row = document.createElement("TR")
var td1 = document.createElement("TD")
var app_1 = document.createElement("Applet");

td1.appendChild(app_1);

row.appendChild(td1);
tbody.appendChild(row);

now my problem is i want to set some parameters thru <PARAM> tag dynamically, how can i acheive that.
Jun 28 '06 #4

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

Similar topics

1
6812
by: bdinmstig | last post by:
I refined my attempt a little further, and the following code does seem to work, however it has 2 major problems: 1. Very limited support for XPath features Basic paths are supported for...
14
2992
by: Michael Levin | last post by:
I've got the following problem. I'm a biologist and I have a device at work which monitors my frog habitat. The device has a bunch of sensors, and runs an embedded html server with some java...
4
5387
by: John Vottero | last post by:
When a class contains a TimeSpan property, XmlSerializer doesn't work. A TimeSpan property is serialized like: <MySpan /> I've read a number of posts that talk about why this happens and how...
4
1678
by: Jeff smith | last post by:
I am reading the value from config file using the below statement. System.Configuration.ConfigurationSettings.AppSettings("MY_DATA") How to write data back to the same location? I am using...
10
1598
by: Pierre Thibault | last post by:
Hello! I am currently trying to port a C++ code to python, and I think I am stuck because of the very different behavior of STL iterators vs python iterators. What I need to do is a simple...
1
2252
by: Petterson Mikael | last post by:
Hi, I am using xalan. In my stylesheet I have the following snippet to write to std out when a specific error occurs. <xsl:template name="class_error"> <xsl:param name="class"/> <xsl:param...
0
789
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
3
14030
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
0
2859
by: vishnu | last post by:
Hi, Am trying to post the data over https and am getting error in httpwebresponse.getResponseStream.Please help me to get rid of this issue. Here is the message from immediate window ...
0
7193
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7264
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,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5562
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,...
1
4992
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
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 ...
0
371
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...

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.