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.


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

Results 1 to 3 of 3

Thread: Variable value in internet query

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Thanked 0 Times in 0 Posts

    Default Variable value in internet query


    I am new to java/html programming.
    I would like to pass a variable info( via a function return value) in the internet query
    and wondering how could I do that.

    e.g This is hard-coded query that I am embedding in my html
    <img src="http://www.somesite.com?s=5?d=HiThere">

    instead, I would like to do
    <img src="http://www.somesite.com?s=5?d=call_function_that_returns_ string()">

    Could you please let me know how could I do that.

  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 844 Times in 786 Posts
    Blog Entries

    Default Re: Variable value in internet query

    Is this a javascript question? Because java != javascript, and this is a java specific forum. If this is a java forum, I'd recommend being more elaborate with regards to context

  3. #3
    Join Date
    Jun 2012
    Thanked 1 Time in 1 Post

    Default Re: Variable value in internet query

    I hate JavaScript. In my opinion you should just...try not to use it...at all costs, except impossibility. And who told you JavaScript is called "Java"? They're...well they're...they don't know what they're talking about let's just put it that way. Finally, not only is this a Java specific forum, but it's a programming forum, and JavaScript has little to do with programming.

Similar Threads

  1. Socket Programming over the Internet
    By djmaxtor in forum Java Networking
    Replies: 6
    Last Post: July 24th, 2012, 05:21 AM
  2. Replies: 5
    Last Post: November 16th, 2011, 11:22 AM
  3. Not downloaded in internet explore
    By mrsreddy65@gmail.com in forum Java Theory & Questions
    Replies: 1
    Last Post: August 22nd, 2011, 08:22 AM
  4. update query is firing first then insert query
    By salmondavid88 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 8th, 2011, 11:15 AM
  5. Internet Filter to display some website
    By sundarjothi in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: May 15th, 2008, 06:03 AM