473,320 Members | 2,189 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,320 software developers and data experts.

AJAX RESPONSE

Hi all. I made AJAX call which return me a piece of javascript code. I
trying to execute that code and I get that some global variables are
not accesible. I mean i use prototype library and when i get ajax
response I can't execute code that create next Ajax call.
e.g.
new Ajax.Updater(....)
is name error, can't find name Ajax.
What I'm doing wrong?
Greg

May 23 '06 #1
1 1442
GS*******@gmail.com wrote:
Hi all. I made AJAX call which return me a piece of javascript code. I
trying to execute that code and I get that some global variables are
not accesible. I mean i use prototype library and when i get ajax
response I can't execute code that create next Ajax call.
e.g.
new Ajax.Updater(....)
is name error, can't find name Ajax.
What I'm doing wrong?
Greg


Hi,

The content of the response may have javascript in it, but this is NOT
executed as you would expect in a normal html-page if you just replace some
innerHTML of a div with it.

You need something with CTYPE and a few tricks to use the AJAX-delivered
javascript. (I am unsure how it worked, since my CSS/XML-skills suck.)

Google around a bit.
(I tried, but couldn't find the page I was looking for.)

If you find a nice tutorial on the subject, post it in this thread please
for futher reference. :-)

Regards,
Erwin Moller

May 24 '06 #2

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

Similar topics

10
by: trpost | last post by:
I am using ajax / php where I am looking up some info from the database and populating a select list dynamically, however I am running into some sort of size limitation with the ajax.response...
11
by: trpost | last post by:
I am using ajax / php where I am looking up some info from the database and populating a select list dynamically, however I am running into some sort of size limitation with the ajax.response...
6
by: =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post by:
Greetings! I was researching AJAX to provide a solution to displaying status messages while a long process executed. I found several examples online and was able to use their code to get a quick...
1
by: shaunwo | last post by:
I'm an AJAX / DOM Novice (at best) and trying to figure out how to write the value to a couple input fields. I don't remember exactly where I got the ajax.js file I'm using from (went to the website...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.