Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: jquery in zkoss http request

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question jquery in zkoss http request

    Hey maybe can help find the problem in my function? I want get from url info and post after textbox.
    expected result is text from ulr. I just do not get the error message I click execute but nothing happens.

    <window title="test" border="normal">
    <vlayout>
    <textbox w:onOK="httpGet()" xmlns:w="client"/>
        <textbox id="opa"/>
    </vlayout>
    <script><![CDATA[
     
     
    function httpGet()
      {
     
        xmlhttp=new XMLHttpRequest();
     
      xmlhttp.onreadystatechange=function()
        {
          document.getElementById("opa").innerHTML=xmlhttp.responseText;
        }
      xmlhttp.open("GET", "http://stackoverflow.com/questions/20281856/jquery-in-zkoss-http-request", true);
      }
    ]]></script>
    </window>


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: jquery in zkoss http request

    This is a java forum, nothing to do with javascript.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Http Request
    By nillson in forum Loops & Control Statements
    Replies: 3
    Last Post: March 20th, 2013, 06:42 PM
  2. Replies: 0
    Last Post: February 11th, 2013, 07:27 AM
  3. How to properly return a gzip encoded http request
    By tommekevda in forum Java Networking
    Replies: 1
    Last Post: January 16th, 2013, 05:34 PM
  4. Can't form a simple POST or GET http request. No data returns.
    By goodguy in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 29th, 2011, 05:04 AM