15,909,445 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Dipali Nigade (Top 9 by date)
Dipali Nigade
2-Apr-18 8:55am
View
hello sir i change the code but giveing warning
Warning: Illegal string offset 'first_name' in D:\wamp\www\core_php_demo\array_demo.php on line 25
Dipali Nigade
2-Apr-18 8:41am
View
yes i want to remove all key-values elements with first_name
Dipali Nigade
2-Apr-18 8:33am
View
yes sir i just improve that
Dipali Nigade
2-Apr-18 8:28am
View
no i want to remove first_name from array
Dipali Nigade
20-Nov-15 5:11am
View
i have abc.php with script and select tag.
<script>
$(document).ready(function() {
//alert("hiii");
$("select").change(function(){
// debugger;
var str=$("#addWIRES #cat_listdvr").val();
$.ajax({
url: 'getsubcat.php',
data: 'q='+str,
type: "GET",
success: function(menu)
{
debugger;
var option = '';
for (var i=0;i<menu.length;i++)
{
="" option="" +="<option value="" menu[i]="" '"="">' + abcd[i] + '</option>';
}
$("#addWIRES #sub_catdvr").append(option);
}
});
});
});
</script>
this is my script and below is my html code.
<label class="control-label" for="Category"> Category:</label>
<select id="cat_listdvr" class="input-medium" placeholder="Category" name="cat_dvr" autocomplete='off' />
<option value=''>Select Category </option> $y</option>";
}
?>
</select>
<label class="control-label" for="form-field-1">Sub Category:</label>
<select id="sub_catdvr" class="input-medium" placeholder="Sub Category" id='subidlistdvr' name="sub_catdvr" autocomplete='off' />
<option>Select Sub-Category</option>
</select>
After selecting category i want to display sub category in second select tag.
code on getsubcat.php is below
if($_REQUEST['q']!="0")
{
$val=$_REQUEST['q'];
$_SESSION['q']=$val;
$get_details_qry=mysql_query("select subcat_name from store_subcategory where smainC_id=(select smainC_id from store_maincategory where smainC_Name='$val')");
while($get_details=mysql_fetch_array($get_details_qry))
{
$value[]=$get_details['subcat_name'];
}
$arrvl=json_encode($value);
echo $arrvl;
}
i want to bind ajax respone from getsubcat.php select tag in abc.php as options
Dipali Nigade
20-Nov-15 3:41am
View
i want to print CP-PLUS <br> HIKVISION <br> DHAUA <br> SECUREYE.
I want to print this element so that i can make a select tag having 4 option
Dipali Nigade
20-Nov-15 3:29am
View
I tried this but it directly bind array to option value to the array element
Dipali Nigade
19-Nov-15 1:15am
View
Deleted
no its not working. Ajax response is display but unable to bind to as option
Dipali Nigade
19-Nov-15 1:06am
View
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
xmlHttp=new XMLHttpRequest();
}
catch(e)
{
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHttp");
}
catch(e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHttp");
}
}
return xmlHttp;
}
Show More