how do I pass information to javascript from perl without a refresh?

Posted on 2003-03-11
Medium Priority
Last Modified: 2013-12-25
I'm designing a chat room in perl without refresh.
I've seen it done before and I know it's possible.
I want to know how to pass information from perl to javascript
without using a refresh on the screen.
from Javascript I'll rewrite the <span id="whatever"></span>
areas in the other html documents in a multiframe page.
I'm using a javascript settimeout function in order to loop the javascript
on the submit message frame. (not that the frame should matter but whatever)
I think there might be a way of loading information from a perl script by
using a SRC="whatever" part of say an img or something in html
and then pass that info into javascript.

If anyone can help me out with the javascript end of this, I would greatly appreciate it.

btw - I am using a 204 response method over html instead of 200 to stop the refresh when I run
perl scripts.  So I don't think I can view any html from those scripts per say.
I believe I took a wrong turn on using that path.  I think I might have to do something in
html or javascript to send the information back without a refresh.
Although the 204 code works great for just running a perl script to pass from javascript to perl
without refresh.

Basically time to go backwards with var pass.

Much Appreciation to anyone who helps me out.

Mettedraq.. .xX [Isolated] Xx.
Question by:mettedraq
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 2
LVL 51

Accepted Solution

ahoffmann earned 2000 total points
ID: 8118406
short answer: impossible

long answer:
  do you mean that your javascript runs in the client (browser), while perl is executed on the server?
  then see short answer

BTW, impossible means: without refresh (according your question)

Author Comment

ID: 10491614
You're right.. the only way I could find a way around this was to make a java applet as the input frame.. thanx anyways.. I'm always trying to do the impossible.. and I always find a way around the situation..

once again.. thank you.


Author Comment

ID: 10491617
increasing points on this topic.. because I barely ever post anything.
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users


Author Comment

ID: 10491619
ok I can't give it all.. eh..

Author Comment

ID: 10491622
trying to post more points

Author Comment

ID: 10491626
ok up to 80...
trying 100.. don't know the limit

Author Comment

ID: 10491627
trying 200

Author Comment

ID: 10491628
ok trying 1000..

Author Comment

ID: 10491631
a thousand didn't work.. trying 500

Author Comment

ID: 10491635
ok can't go above 500..
oh well..
they're ya go..

LVL 51

Expert Comment

ID: 10492982
you need to try wish the impossible to get the reality :-)

Featured Post

Python: Series & Data Frames With Pandas

Learn the basics of Python’s pandas library of series & data frames and how we can use these tools for data manipulation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question