16,020,673 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 Visual Basic questions
View Javascript questions
View .NET 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 tninis (Top 25 by date)
tninis
17-Jan-20 5:38am
View
$('#LId3').change(function() {
$("#GFG :input").prop("disabled", false);
});
tninis
17-Jan-20 5:26am
View
just tested with select2 and the code i send you is enabling the inputs, check the console if there is an error
tninis
17-Jan-20 5:09am
View
you mean like select2 control ?
upload the image somewhere and send the link
tninis
17-Jan-20 5:07am
View
what do you mean by searchable dropdown ?
tninis
17-Jan-20 5:02am
View
just tested on codepen, and when i am selection an option the inputes get enabled, show me what you did.
tninis
17-Jan-20 4:30am
View
try this and remove the onclick="enable_disable()" from dropdown list
$('#LId3').change(function() {
$("#GFG :input").prop("disabled", false);
});
tninis
17-Jan-20 3:44am
View
you want the elements to be enabled when you select an option from dropdown with LId3?
tninis
16-Jan-20 5:49am
View
ok show me the cons.php on that line
tninis
16-Jan-20 5:41am
View
try this
SELECT u.username,COUNT(*) unread FROM pm join users u
on pm.to_id=u.userid
WHERE from_id = ? or to_id=? and isReaded=0 GROUP BY u.username
tninis
16-Jan-20 5:24am
View
from my understanding and based on pm table schema, in order to retrieve the unread message of a user you should not do the above query you posted.
The user from "to_id" is receiving message and he has unread message not the user from "from_id" .
You said you wanted a result like :
user1 unread message 2
user2 unread message 7
user3 unread message 4
so take the query "for all users" from solution i submitted and test it, is will show the usernames and the total of the unread messages for each user.
tninis
16-Jan-20 4:47am
View
show me exactly the query you are using ,
i tested on a test database and was working
tninis
16-Jan-20 4:27am
View
Check this
https://stackoverflow.com/questions/42177605/error-call-to-a-member-function-get-results
tninis
10-Jan-20 3:38am
View
just check my updated solution
tninis
10-Jan-20 3:14am
View
i have updated the solution please check the updated code
tninis
10-Jan-20 2:34am
View
Hello, can you show me what exactly you want to achieve ? Can you draw that ? Cause I tested on codepen and the button where under the iframes
tninis
9-Jan-20 4:15am
View
did you changed this :
$(document).ready(function() {
var year = (new Date).getFullYear();
$('.input-daterange').datepicker({
dateFormat: "dd-mm-yy",
autoclose:true,
minDate: new Date(year, 0, 1),
maxDate:new Date(year, 11, 31)
});
});
to this
$(document).ready(function() {
var year = (new Date).getFullYear();
$('.input-daterange').datepicker({
format: "dd-mm-yyyy",
autoclose:true,
minDate: new Date(year, 0, 1),
maxDate:new Date(year, 11, 31)
});
});
??
bootstrap datepicker has an option "format" not the option "dateFormat"
tninis
9-Jan-20 4:10am
View
yes you should use different id on your inputs
example :
< input type="text" id="start-date" >
< input type="text" id="end-date" >
and get the values like
var selectedDate = $('#start-date').val()
var selectedEndDate = $('#end-date').val();
tninis
9-Jan-20 3:30am
View
you can get end date like the startdate on previous comment
var selectedEndDate=$('#end-date-input').val();
window.open(......api_key=FDJCD...&start='+selectedDate+'&end='+selectedEndDate+'&timezone=Africa/Johannesburg);
tninis
9-Jan-20 3:10am
View
what you mean "manually" ? show me an example
tninis
8-Jan-20 9:38am
View
get the selected dates inputs values and use them . i.e for single date
retrieve the value:
var selectedDate=$('#date-input').val() ;
and put it in the API URL :
window.open('https://api.thingspeak.com/channels/952961/fields/8.csv?api_key=FDJCRN71YJM2R0FM&start='+selectedDate+'&end=2020-01-10T23:59+02:00&timezone=Africa/Johannesburg');
**change the date format based on your needs.
tninis
8-Jan-20 5:29am
View
Hello, you are using crystal report on WebForms ?
tninis
7-Jan-20 10:54am
View
hello, please check this and change the web.config
https://stackoverflow.com/questions/3853767/maximum-request-length-exceeded
tninis
2-Jan-20 6:52am
View
what is the date format you input ?
tninis
2-Jan-20 4:25am
View
Check this
https://serverfault.com/questions/363823/how-do-i-get-iis-working-and-accessible-outside-my-network-behind-a-router
tninis
31-Dec-19 7:02am
View
Something like these maybe ?
http://gaut.am/making-an-ocr-android-app-using-tesseract/
https://codelabs.developers.google.com/codelabs/mobile-vision-ocr/#0
Show More