Results 1 to 4 of 4
  1. #1
    JeffXtensor is offline Member
    Join Date
    Jan 2011
    Posts
    2
    Rep Power
    0

    Default Grabbing a php variable?

    trying to make an entire row of table a link, the <tr> tag look looks like this:

    <tr onmouseover="ChangeColor(this, true);"
    onmouseout="ChangeColor(this, false);"
    onclick="DoNav(tid<? $row['ret_id']; ?>);">

    and this is the row code:

    <td id="tid<? $row['ret_id']; ?>"><? echo $row['ret_id']; ?></td>

    this is not working as you can guess lol.
    how does one get that php variable into the java, the rest is working ok, it just cant find the "tid(var)".
    Thanks in advance,
    Jeff

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Are you sure that your question is a Java question and not a JavaScript question? You do know that they are different, about as different as ham is from hamster.

    Luck.

  3. #3
    JeffXtensor is offline Member
    Join Date
    Jan 2011
    Posts
    2
    Rep Power
    0

    Default

    See, lol, I am new to Java, so this should be in JS Script?

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by JeffXtensor View Post
    See, lol, I am new to Java, so this should be in JS Script?
    I don't know, and that's what I'm asking. Are you working with a Java program or a JavaScript program? Only you know for sure (I hope). If JavaScript, then you'll want to Google for a JavaScript forum. If Java, then you may wish to clarify your question a little, provide more detail.

    Luck.

Similar Threads

  1. Replies: 11
    Last Post: 07-07-2010, 07:02 AM
  2. Grabbing info from Java game
    By n0bekre in forum Advanced Java
    Replies: 3
    Last Post: 06-24-2010, 02:17 PM
  3. grabbing text from JTextField and replace it.
    By jimmy-lin in forum New To Java
    Replies: 1
    Last Post: 11-16-2009, 10:09 AM
  4. grabbing an item from an arraylist.
    By newtojava7 in forum New To Java
    Replies: 1
    Last Post: 03-17-2008, 09:25 PM
  5. Getting variable value from a variable name
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-16-2008, 10:26 PM

Posting Permissions

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