facebook

Ajax-Call impossible?

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #452369 Reply

    baerchi
    Participant

    Hi,

    i have the following problem: i try to debug a js-function with the ajax-call:

    
    $.ajax( {
    		type :"POST",
    		url :actionURL,
    		data : {
    			rolno :rolno,
    			'operation' :'scheduleConfByCommonConf',
    			'conferenceManageVO.templateId' :templateId,
    			'conferenceManageVO.defaultSubject' :defaultSubject
    		},
    		async :false,
    		dataType :"html",
    		success : function(html) {
    
    			$(".panel").html(html);
    			// var bodyHeight = $(document.body).height();
    		// var windowHeight = $(window).height();
    		// var listPageHieght = $(".listPage").height();
    		// var headHight = $(".header").height();
    		// var panelHight = $(".panel").height();
    		// $(".listPage").css( {
    		// "min-height" :panelHight + headHight + 36
    		// });
    	},
    

    In the console-log i get :

    
    Failed to load resource: the server responded with a status of 404 (Not Found)
        at jQuery.ajaxTransport.s.send (http://localhost:8080/huawei-mediax-userportal/js/tools/jquery-1.7.js?v=201406060000:8169:10)
        at jQuery.extend.ajax (http://localhost:8080/huawei-mediax-userportal/js/tools/jquery-1.7.js?v=201406060000:7647:15)
        at evalScript (http://localhost:8080/huawei-mediax-userportal/js/tools/jquery-1.7.js?v=201406060000:6493:10)
        at jQuery.extend.each (http://localhost:8080/huawei-mediax-userportal/js/tools/jquery-1.7.js?v=201406060000:660:20)
        at jQuery.fn.extend.domManip (http://localhost:8080/huawei-mediax-userportal/js/tools/jquery-1.7.js?v=201406060000:6061:12)
        at jQuery.fn.extend.append (http://localhost:8080/huawei-mediax-userportal/js/tools/jquery-1.7.js?v=201406060000:5838:15)
        at jQuery.fn.extend.html (http://localhost:8080/huawei-mediax-userportal/js/tools/jquery-1.7.js?v=201406060000:5955:17)
        at $.ajax.success (evaluated:/108:388:16)
        at jQuery.Callbacks.fire (http://localhost:8080/huawei-mediax-userportal/js/tools/jquery-1.7.js?v=201406060000:1064:30)
        at jQuery.Callbacks.self.fireWith (http://localhost:8080/huawei-mediax-userportal/js/tools/jquery-1.7.js?v=201406060000:1182:7)
        at done (http://localhost:8080/huawei-mediax-userportal/js/tools/jquery-1.7.js?v=201406060000:7466:14)
        at jQuery.ajaxTransport.s.send.callback (http://localhost:8080/huawei-mediax-userportal/js/tools/jquery-1.7.js?v=201406060000:8247:8)
        at jQuery.ajaxTransport.s.send (http://localhost:8080/huawei-mediax-userportal/js/tools/jquery-1.7.js?v=201406060000:8255:7)
        at jQuery.extend.ajax (http://localhost:8080/huawei-mediax-userportal/js/tools/jquery-1.7.js?v=201406060000:7647:15)
        at showSchedulePage (evaluated:/108:375:4)
        at onclick (http://localhost:8080/huawei-mediax-userportal/ConferenceList!searchConferenceList.action?conditionStart=Created&queryFrom=login&pwdExpireTime=0#commonMeeting:1:86)
    

    Is it impossible to use webclipse for ajax?

    #452372 Reply

    support-swapna
    Moderator

    baerchi,

    Sorry that you are seeing this issue. Debugging Ajax calls is supported in Webclipse provided a breakpoint is set inside the Ajax call.

    The error message in the console-log looks like an issue in the script itself. Can you please try adding generic error handling function to the Ajax calls to make sure the script works as expected ?

    If the script is working fine, and the issue persists with debug, then please send us the .log file located at /.metadata/.log for further investigation.

    Let us know how it works for you.

    –Swapna
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Ajax-Call impossible?

You must be logged in to post in the forum log in