oneadvent 0 Newbie Poster

I am trying to use an Ajax request with a port, when I have it say:

var url = "oneadvent.viewnetcam.com/CgiImageTransfer";
alert('Hello1')
xmlhttp.open("POST", url, false);
alert('Hello2')

I get to Hello 2, however when it is

var url = "oneadvent.viewnetcam.com:50001/CgiImageTransfer";
alert('Hello1')
xmlhttp.open("POST", url, false);
alert('Hello2')

I dont get even the Hello 1. No matter what I do, when I put in : it fails. What do I have to do to get the : to work?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.