473,378 Members | 1,478 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Dynamic Applets in Javascript

HI All,
i have created an applet dynamically from javascript with the following code:

Expand|Select|Wrap|Line Numbers
  1. var tbody = document.getElementById(id).getElementsByTagName("TBODY")[0];
  2. var row = document.createElement("TR")
  3. var td1 = document.createElement("TD")
  4. var app_1 = document.createElement("Applet");
  5.  
  6. td1.appendChild(app_1);
  7.  
  8. row.appendChild(td1);
  9. tbody.appendChild(row);
  10.  
now my problem is i want to set some parameters thru <PARAM> tag dynamically, how can i acheive that.
Jun 29 '06 #1
1 1627
acoder
16,027 Expert Mod 8TB
In the same manner, e.g.
Expand|Select|Wrap|Line Numbers
  1. var param = document.createElement("param");
  2. param.name = ...
  3. param.value = ...
  4. applet.appendChild(param);
Apr 26 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

40
by: Eitan | last post by:
Hello, I know Java-Applet (written for JBuilder). I would like to know about dotnet technology, pros and cons in comparation to Java-Applet technololgy. Can I write a program in dotnet, like...
12
by: Wladimir Borsov | last post by:
On one of my web pages there is an java applets which works fine on my computer. However I noticed on some other computer that the run of java applets are disabled. I got an error message...
4
by: Neil Cherry | last post by:
I've seen references to using <applets ... > and document.applets to access public Java functions from Javascript. Do I still use document.applets with <object ...>? BTW, the FAQS page seems to...
1
by: Kevin C. | last post by:
I'm going to write a client-side web app that deals with local files. This web app targets mainly public or corporate browser terminals. Normally I would write an Applet because that's what I know...
0
by: Jonathan Seidner | last post by:
Hi, I know there is a way to embed a .net control into a web page using the object tag. this object's properties and methods can then by accessed by javascript code in the html page. what i'm...
5
by: barbaros | last post by:
Hello everybody, I need to put some dynamic drawings on my web page. More precisely, I need to draw a number of geometric figures (circles, rectangles) which evolve into a graphics windows...
8
by: jason.m.ho | last post by:
>From the common user perspective (like my grandma), why would they care if its a java applet or an ajax application? Say I want to make a chat system on my website...If i'm doing really involved...
0
by: =?Utf-8?B?YmVuIG1pdGNo?= | last post by:
hi i have a question about how to arrange linkage between a "framework" executable and an extensible set of "applet"s in DLLs that plug into the executable. the main exe is an application for...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.