
Robert asks…
What is the best IDE and what else do I need to create a website that uses the following things?
1)Ruby On Rails and/or PHP (Preferably RoR)
2)Sql,
3)JavaScript (with Ajax and JQuery)
4)HTML5
5)CSS3

Administrator answers:
You can use Dreamweaver with HTML and CSS I believe that will work with Javascript to. I never used Ruby, PHP works in Dreamweaver as well. Although I don’t really use Dreamweaver either, I just do it by hand. With SQL, you’ll need Apache and Mysql obviously, I’m not sure what to do with SQL though?

Sandra asks…
Ajax / PHP Live Search || Need help!?
**Index.php**
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js” type=”text/javascript”>
$(function() {$(‘input[type=text]‘).focus(function() {$(this).val(”)});});
$(document).ready(function(){
$(“input[type=radio]“).click(function(){
$(“.box”).val(this.value);
});
});
Search by:
**get_results.php**
<?php
$dbhost = “###”;
$dbuser = “###”;
$dbpass = “###”;
$dbname = “###”;
//Connect to MySQL Server
mysql_connect($dbhost, $dbuser, $dbpass);
//Select Database
mysql_select_db($dbname) or die(mysql_error());
// Retrieve data from Query String
$search_value_pref = $_GET['search_value'];
$search_value_code = $_GET['search_value'];
$search_value_dName= $_GET['search_value'];
$search_value_profName= $_GET['search_value'];
// Escape User Input to help prevent SQL Injection
$search_value_pref = mysql_real_escape_string($search_value_pref);
$search_value_code = mysql_real_escape_string($search_value_code);
$search_value_dName = mysql_real_escape_string($search_value_dName);
$search_value_profName = mysql_real_escape_string($search_value_profName);
//build query
$query = “SELECT prefix, code, name, lname, fname
FROM Course, Course_Department, Department, Professor
WHERE Course.prefix = ‘$search_value_pref’ AND Course.code=’$search_value_code’
OR Department.name = ‘$search_value_dName’
OR Professor.lname = ‘$search_value_profName’;”;
/*if(is_numeric($search_value_pref))
$query .= ” AND ae_age <= $age”;
if(is_numeric($wpm))
$query .= ” AND ae_wpm <= $wpm”;
//Execute query
*/
$qry_result = mysql_query($query) or die(mysql_error());
//Build Result String
$display_string = ”
“; $display_string .= “”;$display_string .= “”;
$display_string .= “”;// Insert
| Value |
|---|

Administrator answers:
OK, sorry, but I’m not gonna read all of that without knowing what I’m looking for.
What exactly is it doing that it’s not supposed to do, or not doing that it’s supposed to?

Susan asks…
I need an AJAX code urgently to solve my assignments.I have to create an overlapping menu styles using AJAX.?
I have to create a menu style on a website design which overlaps with each other when clicked on it.
When we click on the a particular menu button the content of that menu has to b shown and the previously opened menu should now be closed to allocate the space for the now opened menu button.I can also Javascript and JQUERY.

Administrator answers:
Good luck! Let us know if you have a question.

Sandy asks…
How do i make this javascript work twice on the same page?
Hi im trying to add two polls onto the same page but it isnt working. How would i make 2 work on the same page? Any help would be amazing thanks.
heres the site for the poll
http://webdeveloperplus.com/php/ajax-user-poll-using-jquery-and-php/

Administrator answers:
Hi,
The basic rule is you must have unique id value for each element.
When you are placing two polls in the same page, the generated html has two poll form contains with same id. So JavaScript get confused and it is not working properly.
How you accomplish:
1. Attach some unique value to the ids. Like
2. You need change the css to class based instead of id based.
3. You need to generalize your jquery/javascript instead of writing same function for each polls.

Betty asks…
Jquery question( working in IE8, but not in FireFox)?
I have jquery statement that is working in IE8 and not working in FireFox. Firefox keeps returning a Server Error in ‘/’ Bad Request 400. The code for the jquery is below.
$(document).ready(
function() {
$.ajax({
type: “GET”,
url: ‘\xml\settings.xml’,
datatype: “xml”,
success: XMLHandling,
error: ErrorHandling
})
}
);
Where did I go wrong?
Really, but what is wrong with my url string. IE8 found it based on the url string.

Administrator answers:
Because you used the backslash instead of a slash. Backslash is only used on Windows local file systems.
You can try different URLs, such as:
url: ‘/xml/settings.xml’,
- or -
url: ‘xml/settings.xml’,
Powered by Yahoo! Answers
|
