There are two pl files: realtimechart.p l and realtimedemo.pl
realtimechart generates a realtime graph which would an image file(png,gif,jp eg etc)
and realtimedemo generates a html file alongwith the graph produced by realtimechart and also refreshes it using the image id. But somehow it is not taking the chart generated from realtimechart.p l. There is some problem in this statement
<img id="ChartImage1 " src= "realtimechart. pl?chartId=demo Chart1">
because instead of executing realtimechart.p l, it treats everything as non-executable statements
Please help me out with this quickly
27 4834 KevinADC 4,059
Recognized Expert Specialist
this is just some html code that calls the script:
<img id="ChartImage1 " src= "realtimechart. pl?chartId=demo Chart1">
I am not sure what you mean by: "it treats everything as non-executable statements".
it is not executing realtimechart.p l and treating everything after "src = " as just a file location
numberwhun 3,509
Recognized Expert Moderator Specialist @parashar123
Looking at the options available to the img tag, src is definitely one of them, but if you read the description of src in that link, it is supposed to be the url of the image to display. I personally don't know if putting a Perl script with its options into their would actually return an image to be displayed.
The script would probably have to be cgi since what is expected is a URL, so you may want to format the src as follows: -
<imgid="ChartImage1" src="http:/localhost/cgi-bin/realtimechart.pl?chartId=demoChart1">
-
You may want to try whatever you use for the URL in your own browser and see what it returns first as it will have to return an image.
Regards,
Jeff
KevinADC 4,059
Recognized Expert Specialist @parashar123
Thats fine, because it is a file/uri path. But why it is not causing the perl script to run and return an image is the part that is the problem. Without more information I also suggest you try using the full URL to the perl script in the image tag. If that does not help continue reading the instructions that hopefully came with the script for further advise. I don't know anything about that script so there is no way to help you further.
Jeff,
The <img> tag only needs the correct MIME declaration and a valid image file and the browser will display it, similar to how you can use a perl script to generate an entire html document on the fly and return it to the browser and the browser will display it just like any other html document.
numberwhun 3,509
Recognized Expert Moderator Specialist @KevinADC
Ok then, that's fine, but I would still make sure that the script call that was input into the src piece actually returns an image file and not an error.
Regards,
Jeff
KevinADC 4,059
Recognized Expert Specialist
Yes, the img tag will not display text, so if the perl script is returning an error the person will need to look in the servers error log or try running the script directly.
eWish 971
Recognized Expert Contributor
Not printing the proper MIME type in the headers could be causing problems.
--Kevin
I tried putting the path of the script file in the src path, butit didn't work. Now I can't use http as I would need some server where I can store that script but unfortunately I don't have any such thing.
I tried
<img id="ChartImage1 " src="C:/Perl/lib//cgi-bin/realtimechart.p l?chartId=demoC hart1">
but it didn't work, can anybody suggest how to execute this script on the local machine in src
Thanks all for your hrlp
numberwhun 3,509
Recognized Expert Moderator Specialist @parashar123
Unless you can possibly share the script with us (enclosed in code tags) so that we can see it, I have to say no. We are not familiar with the inner workings of the script and like you, would have to take a look at it to see how it works.
Regards,
Jeff
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: dpackwood |
last post by:
Hello,
I have two different scripts that do pretty much the same thing. The main
perl script is on Windows. It runs and in the middle of it, it then calls
out another perl script that then should run on a Unix box I have. Both
scripts run ok, except for the part when Windows try's to call out the
Unix script. I have it set up where the Unix is mapped through a drive
letter and can drop stuff into the Unix box. It is going through another...
|
by: Danny |
last post by:
Newbie here
Thanks for the help with this command:
print "Status: 204 No Content\n\n";
which returns nothing in a perl script.
This is great because I just want my perl script to increment a counter and put result in a text file which it does fine how.
But now how do I call this from an .html? I used to call it like this
<img src="path to cgi script">
this increments the counter but there is a little box where an actual image should...
|
by: PzYon |
last post by:
Hey 2gether!
I'm trying to execute a PERL script on the web server when the user presses
a button in an ASP.NET Web Application using Visual Basic. The most obvious
solution for me seemed to be to use the 'Shell()'-command .
This didn't work: Either I get an "File not found" error, or I get no error
at all, but the PERL script isn't executed anyway. The strange thing is that
I managed to execute a .bat file for example. Why the hell...
|
by: David Meier |
last post by:
Hi all,
I am not a very skilled C programmer yet and I need the help of the
list bad. OK, here is the problem:
I have written a SIEVE module coded in C for the cyrus imapd mail
server. This module starts a Perl Script upon new mail arrival. The
Perl script then does a HTTP request to an SMS gateway with the
provided arguments. OK, both programs have no compilation errors or
so. When I call the Perl script with appropriate arguments...
|
by: Wladimir Borsov |
last post by:
I want to call a perl script myscript.pl in my cgi-bin from a HTML web page.
This call should NOT use SSI (because in this case HTTPS://.... protocol is necessary).
Furthermore NO button click should be required (so I am not talking about a perl script in a form).
I only want to call this script automatically when someone load the web page.
How can I do this ?
If necessary the perl script could return a value (e.g. a picture resp....
| |
by: bossingdarwin |
last post by:
Hi Guys,
I'm new to Perl and to this forum and I hope you gurus here help me.
I am building a perl script that will telnet to one of my cisco router and execute commands. I was able to do this task using perl module Net::Telnet::Cisco and able to execute router commands successfully.
I want is for example. from cisco "show version" commands, I only want to appear only the
myrouter uptime is 16 weeks, 3 days, 23 hours, 50 minutes...
|
by: Tension |
last post by:
Hi.
I have a Perl script that starts a build process (plus a lot of other things). The build process needs a few environment variables set. This is done automatically in a buildEnv.bat script supplied by the build system vendor.
My first idea was to write a .bat scrpt that first calls the buildEnv.bat script and then calls the perl script. This does not seem to work since the perl script never executes.
The .bat file looks like this:
...
|
by: rajiv07 |
last post by:
Hi to All,
I have try to execute a perl script in html.But nothing get display
What i have tried so for is
The referrer.pl
---------------
#!/usr/bin/perl
|
by: chinks |
last post by:
hello
I hv a perl script which takes three inputs..and i want to call this script by a php file..how to do so..please help me out...i have to create a web interface
|
by: happyse27 |
last post by:
Hi All,
I modified the user registration script, but not sure how to make it check for each variable in terms of preventing junk registration and invalid characters?
Two codes below :
a) html
b) perl script (print and inserting into database)
Cheers...
Andrew
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |