Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7076511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:18:25+00:00 2026-05-28T06:18:25+00:00

I made a simple web sevrer in NODJS. the web browser ie firfox will

  • 0

I made a simple web sevrer in NODJS. the web browser ie firfox will display hellow world, when connected to http://localhost:8888/. But the enyon web service onSuccess callback displays a null string from the inResponse. I created a static web page and enyo loaded it in fine from my local hypache server. Why wont enyo always show w null from stuff sent from nodejs??

the web server

http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.write("Hello World");
response.end();
}).listen(8888);

I wrote a simple enyo program that when you press the button it does a webservices and shows the results in a alert box

enyo.kind({
name: "MyApps.MainApp",
kind: enyo.VFlexBox,

// comment code to load in data gfrom service
components: [
{name: "getName", kind: "WebService",
onSuccess: "gotName",
onFailure: "gotNameFailure",
url: "http://localhost:8888/"
},

{kind: "PageHeader", content: "Enyo FeedReader"},
{name:"curValue", content:("Sample Text")},
{kind: "Button", caption: "Action", onclick: "btnClick"} ],

// functions go here
create: function()
{
// call the default creat then do our stuff
this.inherited(arguments);
this.$.getName.call();
},

// Show output of server,
gotName: function(inSender, inResponse) {
this.$.button.setCaption("Success");
alert(inResponse );
},


// go here if it cold not connect to server
gotNameFailure: function(inSender, inResponse) {
this.$.button.setCaption("Failure"); },

// call the server
btnClick: function() {

this.$.getName.call(); }
});

Ted

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:18:26+00:00Added an answer on May 28, 2026 at 6:18 am

    Is there a reason you need to write your own Web Service? The enyo.WebService kind is already there for your use.

    If you truly need your own, I recommend taking a look at how services are implemented in the following sample project: https://github.com/palm/txjs-fortunecookie

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made the simple hello world NODEJS Server. I have a enyo web service
I made in my web a menu using generic_view - simple 'django.views.generic.list_detail.object_list' in urls.py
I've made a simple http server using Twisted, which sends the Content-Type: multipart/x-mixed-replace header.
i made simple web server like below. import BaseHTTPServer, os, cgi import cgitb; cgitb.enable()
I'm starting a simple web application, using ASP.Net MVC 3. I made a few
I have made up a simple set of web services (trying to make a
I made a simple web crawler using PHP (and cURL). It parses rougly 60
I have made an advanced functional prototype of a simple web application, and delays
On Windows, testing different OSes is made simple using VMs. Is there a simple
We made a simple application and using GoogleAppEngineLauncher (GAEL) ran that locally. Then we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.