+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13

Thread: ajax return undefined

  1. #11
    Barn Enthusiast guddu is on a distinguished road guddu's Avatar
    Join Date
    Jul 2008
    Location
    Oxford UK
    Posts
    390
    Rep Power
    3

    showing line on body tag.so line no is not relevent.but when i add this code then only get error.may be brackets are not matching .not sure.
    Love is physical attraction and mental destruction

  2. #12
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Washington, D.C.
    Posts
    2,347
    Blog Entries
    9
    Rep Power
    19

    I'm not sure about this PrototypeJS stuff...I've never used it. I've always used XmlHttpRequest object.

    For what reason do you want to avoid XmlHttpRequest?

    I guess the best way to troubleshoot this is to look at their documentation: Prototype JavaScript framework: Ajax.Ajax.Request
    jmurrayhead
    If you agree, give me rep. If my post helped you, click "Thanks".
    If you like it here...throw us a few bones to help support us.


  3. #13
    Barn Enthusiast guddu is on a distinguished road guddu's Avatar
    Join Date
    Jul 2008
    Location
    Oxford UK
    Posts
    390
    Rep Power
    3

    ok now gotted the problem i used below function .and problem is with unterminated string in my code.thanks Jmh.cheers!!
    Code:
    window.onerror = trap_error;
    
    		function trap_error(error, url, line) {
    		alert("There was an error from '" + url + "' at line '" + line +
    		"'.\n\n" + error);
    		return true;
    		}
    
    Code:
    var ajaxReq = new Ajax.Request(
    																						sTarget,
    																						{
    																						method: 'get',
    																						parameters: true,
    																						evalScripts:true,
    																						onSuccess: function(request) {
    																						alert(request.responseText);
    																						},
    																						onException: function(req,exception) {
    																						alert("The request had a fatal exception thrown.\n\n" +
    																						exception.message);
    																						return true;
    																						},
    																						onFailure: function(request) {
    																						return reloadPage();
    																						}
    																						}
    																						);
    
    Love is physical attraction and mental destruction

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. triple combo ajax
    By dragon rider in forum ASP Development
    Replies: 0
    Last Post: October 16th, 2008, 04:34 PM
  2. .Net And Ajax
    By smithcarvo in forum .Net Development
    Replies: 2
    Last Post: August 20th, 2008, 07:50 AM
  3. Return Default Date If Null
    By jmurrayhead in forum SQL Development
    Replies: 16
    Last Post: June 8th, 2008, 10:30 PM
  4. Using AJAX Auto Complete Extender with Database
    By richyrich in forum .Net Code Samples
    Replies: 0
    Last Post: March 26th, 2008, 07:59 AM
  5. Dynamic Content in AJAX Extender
    By richyrich in forum .Net Development
    Replies: 3
    Last Post: March 17th, 2008, 12:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO