473,395 Members | 1,348 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,395 software developers and data experts.

jmol using applet with perl programming

4
hai guys,

i am doing my work in jmol,i am using jmol applet tags with perl programming so while using jmol with in for loop it creats som problem, i don't know how to clear those problems.
<code>
print "<applet name=\"jmol\" code=\"JmolApplet\" archive=\"../../jmol-10.2.0/JmolApplet.jar\"
width=\"500\" height=\"500\">";
print "<param name=\"load\" value=\"../../jmol-10.2.0/$pdbidsiva;\">";
foreach(@value)
{
print "<param name=\"script\" value=\"spacefill off;wireframe off;select $_;select not (nucleic or protein or hoh);color white;cpk 0.5;wireframe 0.2;rotate x 180;\">
}
<param name=\"progressbar\" value=\"true\">
<param name=\"bgcolor\" value=\"black\">";
print "</applet>";
</code>
while using this code it shows only the last value of that particular for loop value, other wise the value itself not displaying.
pelase can anyone give me suggession about this thing.
by muruga.
Thanks in advance.
Jan 23 '07 #1
2 1656
r035198x
13,262 8TB
hai guys,

i am doing my work in jmol,i am using jmol applet tags with perl programming so while using jmol with in for loop it creats som problem, i don't know how to clear those problems.
<code>
print "<applet name=\"jmol\" code=\"JmolApplet\" archive=\"../../jmol-10.2.0/JmolApplet.jar\"
width=\"500\" height=\"500\">";
print "<param name=\"load\" value=\"../../jmol-10.2.0/$pdbidsiva;\">";
foreach(@value)
{
print "<param name=\"script\" value=\"spacefill off;wireframe off;select $_;select not (nucleic or protein or hoh);color white;cpk 0.5;wireframe 0.2;rotate x 180;\">
}
<param name=\"progressbar\" value=\"true\">
<param name=\"bgcolor\" value=\"black\">";
print "</applet>";
</code>
while using this code it shows only the last value of that particular for loop value, other wise the value itself not displaying.
pelase can anyone give me suggession about this thing.
by muruga.
Thanks in advance.
Sounds like some flaw in the perl statements logic rather than something to do with Java programming statements so I'm copying this to the perl forum
Jan 23 '07 #2
KevinADC
4,059 Expert 2GB
that code looks like it shouldn't even run. Several syntax errors. Like what are these two lines doing?

<param name=\"progressbar\" value=\"true\">
<param name=\"bgcolor\" value=\"black\">";

and the print line inside the foreach loop is missing the terminating double-quote on the end of the string. Maybe it should be:

Expand|Select|Wrap|Line Numbers
  1. print "<applet name=\"jmol\" code=\"JmolApplet\" archive=\"../../jmol-10.2.0/JmolApplet.jar\"
  2. width=\"500\" height=\"500\">";
  3. print "<param name=\"load\" value=\"../../jmol-10.2.0/$pdbidsiva;\">";
  4. foreach(@value)
  5. {
  6. print "<param name=\"script\" value=\"spacefill off;wireframe off;select $_;select not (nucleic or protein or hoh);color white;cpk 0.5;wireframe 0.2;rotate x 180;\">";
  7. }
  8. print "<param name=\"progressbar\" value=\"true\">";
  9. print "<param name=\"bgcolor\" value=\"black\">";
  10. print "</applet>";
  11.  
look into using the qq operator for printing your double-quoted strings. Makes all that messy escaping of embedded double-quotes unecessary.
Jan 23 '07 #3

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

Similar topics

1
by: WMMorgan | last post by:
There's a website I like to visit that has an user-interactive java application. There's a "visual applet" component and "control applet" component. (No, it's not an adult or porno site.) But...
0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
1
by: Charlie Kim | last post by:
Here is gnome applet source of mine. -------------------------------------------------- #!/usr/bin/env python import pydic import gtk import gnome.applet
3
by: lonelyplanet999 | last post by:
Hi, I'm a newbie to perl and is now studying about perl programming, I read some perl programming tutorials online (enter 'Perl tutorial' at google.com) and also find some sample perl scripts...
6
by: Jeff Sandler | last post by:
I have a database I created in mySQL. I've been entering data every day into the database using a Java application that I wrote. The database and the Java program are on the same Win 98 SE...
2
by: Put 030516 in email subj to get thru | last post by:
I've always been bothered about having to statically declare the size of a Java applet window (container?) in the calling HTML. I've always wanted the moral equivalent of width=50% statement (of...
0
by: kalaisuresh | last post by:
hai, i am using the Jmol software for viewing the three dimensional structure. my program i am using <applet> and retrive download values and also i am using...
1
by: muruga | last post by:
hai guys, i am doing my work in jmol,i am using jmol applet tags with perl programming so while using jmol with in for loop it creats som problem, i don't know how to clear those problems. <code>...
0
by: Ruben | last post by:
While we have some summer off time I'm going to lead 3 workshops for beginners through the NYLXS Mailing List at hangout@nylxs.com We will be doing Introduction to C Programming using the book ...
0
by: Ruben | last post by:
While we have some summer off time I'm going to lead 3 workshops for beginners through the NYLXS Mailing List at hangout@nylxs.com We will be doing Introduction to C Programming using the book ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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
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
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...
0
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...

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.