User Profile
Collapse
-
Remote Connection From Windows to Mac OS X
Is it possible to use the windows RDP protocol to remotely connect to a mac without downloading or using any other software?? So could it be as easy as changing the settings in mac to allow remote connections and then using the macs IP address in windows remote desktop to connect and control? Or do you have to mess with port forwarding and firewall stuff? Thanks -
Oh just thought of something...
Code:document.getElementById("table");
Code:var getelement = document.getElementByid("table1",table2","table3")
Code:var getelement1=document.getElementByid("table1")
-
Thanks Frinny for that great help. I will see what I can do from here.Leave a comment:
-
and also does it make a difference that I have my php inside of my <body> brackets. this is my set up for my .php file
it goes
Code:<html> <body> *this is where i placed my javascript code <?php *inside here i have my tables being echoed in a loop when a search is done. ?> </body> </html>
Leave a comment:
-
thank you. yes i understand that a little bit more. so in my table that i have in my php code should i set the id this way??
Code:echo "<tableborder ='1'> echo "TABLE"; <tr id ="tableID"> <th>"table"</th>
Leave a comment:
-
i want to hide/show my whole table.. this is my code for my working table that displays fine when a search is preformed.
Code:$term = $_POST['term']; if ($_POST){ $sql = mysql_query("select * from sequence_data where name like '%$term%'"); echo "SEQUENCE_DATA TABLE:"; echo "<table border='1'> <tr> <th>name</th> </tr>";
Leave a comment:
-
i still get nothing..is it a problem that i have my php code inside of my html brackets. because i can place the javascript code anywhere but the second I change <tr> to <tr id=" something"> it wont work.Leave a comment:
-
php and javascript question.
So I am confused on where to put things in my code to work right. I found a simple javascript tutorial to add a function so that i can hide and show my php tables. but when i put it all together i cant get it to work. It works fine displaying the table without the javascript added and adding the "<tr id="table"> line of code. I dont know if the javascript is in the wrong place or not.any help would be great.thanks
... -
search question
hello. I have a question about my search function in my php page. I have a search function that when the user types the ID# in it will return all the data from the database connected to that id#. My problem is that I have over 350 numbers and if I search for instance the number 15 .. it returns all the data for 15,5,150,151. How do I get it to just recognize just the number 15???
here is the code i use to collect the input number and... -
Yes of course how simple. Thank you.
solved with one line of code
Code:if ($_POST) { do something }
Leave a comment:
-
php connection problem
Here is my problem. I have a small php page that has a search function that returns the table that you search. It works fine . but my problem is that i dont want the data to show up until the user hits search. as of now when you go to the webpage all of the data tables are displayed and dont change untill you submit a new search. Any Ideas on how to fix this..
Thanks. -
actually i just figured it out..i fixed it with the following:
Code:for(int i=0; i < dataTable.getRowCount(); i++) { int entry = Integer.parseInt( (String) dataTable.getValueAt(i,4)); sum += entry; String total = Integer.toString(sum); total1.setText(total);
Thanks for your help!Leave a comment:
-
ok ..i posted print statements to see what was going on. i did a print statement afterCode:sum += Integer.parseInt((String)dataTable.getValueAt(i, 4)); System.out.println(sum);
so is the sum+= not working right??Leave a comment:
-
ok i got the error to stop..now when it displays the total it just gives a 0.
the values i had were 50 and 40..
Code:int rowIndex = dataTable.getSelectedRow(); int sum= 0; for (int i= 0; i < rowIndex; i++) sum += Integer.parseInt((String)dataTable.getValueAt(i, 4)); String total = Integer.toString(sum);
Leave a comment:
-
im must be tired..so i was not paying attention but my getValueAt() returns an object not a string. so does that make things different??Leave a comment:
-
-
line 469 which is
Code:sum += (Integer)dataTable.getValueAt(i, 4);
Leave a comment:
-
i still get an error of "java.lang.Clas sCastException: java.lang.Strin g cannot be cast to java.lang.Integ er"
this is my code
Code:int sum= 0; for (int i= 0; i < Contact.NUM_FIELDS; i++) sum += (Integer)dataTable.getValueAt(i, 4); String total = Integer.toString(sum); total1.setText(total);
Leave a comment:
-
sweet thank you. I guess i have more questions on casting. so once i get the value it is stored in an int. I try to use the setText() on one of my textfields. but this functions parameter is only a string. so when i try to convert the int to a string i get a error that says string cant be cast to int..am i doing this wrong??
Code:String total = Integer.toString(sum);
Leave a comment:
-
thank you. But i get an error message when trying to compile. Do you know what this means?? here is my codeCode:int sum= 0; for (int i= 0; i < Contact.NUM_FIELDS; i++) sum += dataTable.getValueAt(i, 4);
sum += dataTable.getVa lueAt(i, 4);Leave a comment:
No activity results to display
Show More
Leave a comment: