Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > AJAX RESPONSE

Reply
Thread Tools

AJAX RESPONSE

 
 
GSlusarek@gmail.com
Guest
Posts: n/a
 
      05-23-2006
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

 
Reply With Quote
 
 
 
 
Erwin Moller
Guest
Posts: n/a
 
      05-24-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX IDE and AJAX TOOL--The Release of JoyiStar AJAX WebShop 3 Beta minnie Java 1 12-13-2006 06:29 AM
Frames and Response.Redirect / Response.Write - Refresh Charles A. Lackman ASP .Net 2 01-11-2006 11:44 PM
Response.Write and Response.Redirect Sehboo ASP .Net 3 12-10-2003 03:43 PM
Response.Expires and Response.Cache Promenade ASP .Net 2 12-05-2003 06:41 PM
Response.Write and Response.Redirect Matthew Wieder ASP .Net 4 07-17-2003 05:33 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57