Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: retrieving value from ajax call to cgi page

by gayu_justin (Novice)
on Jun 30, 2013 at 04:05 UTC ( #1041543=note: print w/ replies, xml ) Need Help??


in reply to Re^3: retrieving value from ajax call to cgi page
in thread retrieving value from ajax call to cgi page

I have tried like this and found that , in the alert box provided in the ajax, the value is printing correctly. The value1 contains 4 values, in the alert box provided in ajax code, the following displays each time with each colunm value of the row.:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head><title>Results</title> </head> <body> content-type: text/html Content-Type: text/javascript; charset=UTF-8 alert(' 6')
===================================
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head><title>Results</title> </head> <body> content-type: text/html Content-Type: text/javascript; charset=UTF-8 alert(' sawerr')
=================================
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head><title>Results</title> </head> <body> content-type: text/html Content-Type: text/javascript; charset=UTF-8 alert(' qswertyqawe')
============================================
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head><title>Results</title> </head> <body> content-type: text/html Content-Type: text/javascript; charset=UTF-8 alert(' y')
===================================

BUt in the browser, it is showing like : charset=UTF-8 alert('nothing')


Comment on Re^4: retrieving value from ajax call to cgi page
Select or Download Code
Re^5: retrieving value from ajax call to cgi page
by Anonymous Monk on Jun 30, 2013 at 15:52 UTC

    That looks like nonsense, too much html for text/javascript

    http is HEADERS\r\n\r\nCONTENT not CONTENT\r\n\r\nHEADERS

      That is just the code come on the alert box.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041543]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-09-16 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (51 votes), past polls