Results 1 to 3 of 3
  1. #1
    dc03kks is offline Member
    Join Date
    Sep 2014
    Posts
    1
    Rep Power
    0

    Question read text from a webpage and show this text in a modal

    Hi,

    I m new bee in java and i have a project that i have to accomplish..i m, working in netbeans.

    my task is that i want to read text from a webpage, http://192.168.1.57:8081/University/.../getAppVersion, in my server that shows only the following inside brackets
    {

    "VERSION": "2.00.000"

    }

    im using a js that has all the necessary functions of the project ,,, the function for the button that will show a modal and currently is static,, is like that
    var imgAbout = $('#topright-menu ul.menu-divmenu > li > a > img[src$="about.png"]');
    imgAbout.click(function(e) {
    e.preventDefault();
    var modal = (self.modal());
    var content = "Version: 2.00.000 <br><br>" +
    "Η εφαρμογή έχει δοκιμαστεί με τους παρακάτω browsers: <br>" +
    '<img src="images/ie.png" width="45" height="45"/>Internet Explorer 11.0.9600.17239<br>' +
    '<img src="images/mozilla.png" width="45" height="45"/>Mozilla Firefox 32.0<br>' +
    '<img src="images/chrome.png" width="45" height="45"/>Google Chrome 37.0.2062.103 m<br>'
    '<iframe src="http://192.168.1.57:8081/University/webresources/generals/getAppVersion"></iframe>'
    ;

    var $div_container = $('<div></div>')
    .addClass('jtable-main-container');

    var $div_title = $('<div></div>').addClass('jtable-title')
    .appendTo($div_container);
    $('<div></div>').addClass('jtable-title-text')
    .text('Πληροφορίες για την εφαρμογή')
    .appendTo($div_title);

    i need to understand the mechanism that will accomplish such a task,, in general how can i do that ??,,
    any ideas or suggestions will really helpme..
    thank you in advance

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: read text from a webpage and show this text in a modal

    What exactly does this have to do with Java? Javascript is not Java.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: read text from a webpage and show this text in a modal

    Get a good book on Javascript?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Replies: 13
    Last Post: 05-30-2014, 11:12 PM
  2. Replies: 3
    Last Post: 06-02-2013, 08:51 AM
  3. How to add text and show text?
    By Gamedisolver in forum New To Java
    Replies: 2
    Last Post: 10-11-2012, 01:42 AM
  4. Retrieve Text From A Webpage
    By anthropamorphic in forum Networking
    Replies: 1
    Last Post: 10-13-2011, 06:27 AM
  5. please help urgent (get text from webpage)
    By 3ammary in forum Advanced Java
    Replies: 6
    Last Post: 07-24-2011, 08:29 AM

Tags for this Thread

Posting Permissions

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