Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
tuliovargas
tuliovargas's Profile
5
Posts
3
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
Loading files into folder and read <li> tag content
[1Reply]
13-Mar-2018 07:49 AM
Forum:
Using jQuery
Hello experts,
I'd like to know How I can import list from other files:
Files_to_list
├── list_files.html
├── list_1.html
├── list_2.html
├── list_3.html
_______________________________
Structure of list_1.html
_______________________________
<ul class="list-content">
<li class="article-item">
<div class="text-container">
<div class="article-status"><span class="article-status-label">Publicado</span></div>
<div class="article-title">Você costuma sonhar com fantasmas? Você está desconectado, entenda aqui</div>
<div class="footer">
<div class="article-info">
<span class="article-info-item comments">0 comentários</span>
<span class="article-info-item">368 recomendações</span>
<span class="article-info-item">9 cliques</span>
<span class="article-info-item">2018-03-12 </span></div>
</div>
</div>
</li>
<li class="article-item">
<div class="text-container">
<div class="article-status"><span class="article-status-label">Publicado</span></div>
<div class="article-title">Bom dia Aquário, sua previsão do amor&sexo para Seg e Ter (13.03)</div>
<div class="footer">
<div class="article-info"><span class="article-info-item comments">0 comentários</span><span class="article-info-item">275 recomendações</span><span class="article-info-item">22 cliques</span><span class="article-info-item">2018-03-12 </span></div>
</div>
</div>
</li>
</ul>
_______________________________
Structure of list_files.html
_______________________________
<!DOCTYPE html>
<html lang="pt">
<head>
<title>Lista de Posts</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="
https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="
http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var $table = $(".article-item").length;
//alert('Tulio o total é: '+$table);
var i= 1;
var $status, $titulo, $comments, $items, $item1,$item2,$item3;
$('.article-item').each(function(){
//$status = $(this).text();
$status = $(this).find('.article-status-label').text();
$titulo = $(this).find('.article-title').text();
$items = $(this).find('.article-info-item').text().split(' ');
$comments = $items[0].replace(/[^0-9]/g, '');
$item1 = $items[1].replace(/[^0-9]/g, '');
$item2 = $items[2].replace(/[^0-9]/g, '');
$item3 = $items[3].replace(/[^0-9]/g, '');
$('#myTable').append('<tr id='+i+'><td>'+i+'</td><td>'+$status+'</td><td>'+$titulo+'</td><td>'+$comments+'</td><td>'+$item1+'</td><td>'+$item2+'</td><td>'+$item3+'</td></tr>');
i++;
});
});
</script>
<style type="text/css">
ul{
display:none;
}
</style>
</head>
<body>
<table id="myTable" class="table">
<tbody>
<tr>
<td>ID</td>
<td>Status</td>
<td>Titulo</td>
<td>Comentarios</td>
<td>Recomendações</td>
<td>Clicks</td>
<td>data</td>
</tr>
</tbody>
</table>
<!-- ADD HERE -->
_______________________________
Result of list_files.html
_______________________________
4 rows in set (0.00 sec) - [Button Copy To Clipboard]
+------+--------+----------------------+------------------------------------+---------------------------+------------------+-------------------+
| ID | File | article-status-label | article-title
| article-info-item comments| article-info-item| article-info-item |
+------+--------+----------------------+------------------------------------+---------------------------+------------------+-------------------+
| 1 | list_1 | Publicado | Você costuma sonhar com fantasmas? | 10
| 9 | 368 |
| 2 | list_1 | Publicado | Title test 123
| 5
| 12 | 123 |
| 3 | list_2 | Cancelado | Title test 456
| 196
| 32 | 94 |
| 4 | list_3 | Cancelado | Title test 789
| 23
| 87 | 12 |
+------+--------+----------------------+------------------------------------+---------------------------+------------------+-------------------+
Issue using Append
[1Reply]
21-Apr-2017 04:13 PM
Forum:
Using jQuery
Hello Everone,
I created the code below, however, I believe I should use something like an array because when I call the function several times, then it's appending the same name(xnome) and id.
//EXAMS
$('#idexame').change(function () {
var doc = document.getElementById("idexame");
$("#xnome").html(doc.options[doc.selectedIndex].text);
$(".selecionado").append('<div class="alert alert-warning alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4 id="xnome">'+doc.options[doc.selectedIndex].text+'</h4>
<textarea name="sexames[]" class="form-control" rows="2" placeholder="Observação ..."></textarea>
</div>
<input type="hidden" name="exameid[]" value="'+doc.options[doc.selectedIndex].value +'"></input');
});
Is there any smarter way for this code?
[3Replies]
25-Mar-2017 04:14 PM
Forum:
Using jQuery
Hello mates,
I was wondering if is there some better way to write the code below:
$("#fuma_tempo").hide();
$("#fuma_qnt").hide();
$("#fuma_ex_tempo").hide();
$("#fuma_ex_duracao").hide();
$('#fuma').click(function(){
if(this.checked == true) {
$("#fuma_tempo").show();
$("#fuma_qnt").show();
} else {
$("#fuma_tempo").hide();
$("#fuma_qnt").hide();
}
});
$('#fuma_ex').click(function(){
if(this.checked == true) {
$("#fuma_ex_tempo").show();
$("#fuma_ex_duracao").show();
} else {
$("#fuma_ex_tempo").hide();
$("#fuma_ex_duracao").hide();
}
});
Datetimepicker Disabling Day and Time
[0Replies]
19-Mar-2017 03:09 PM
Forum:
Using jQuery
Hello experts,
I'm using
bootstrap-datetimepicker
:
https://eonasdan.github.io/bootstrap-datetimepicker/#inline
and I got a situation.
I have three conditions before enable a date and time:
1 - Full day disable, like holiday, which is already done at the propriety:
disabledDates
2 - Shop Closed - disabledHours:
[0, 1, 2, 3, 4, 5, 6, 20, 21, 22, 23, 24]
3 - Already busy date and time
On the third condition is the issue, How can I disable only the exactly time on the selected day?
Example of busy date/time:
busy['2017-03-19 11:00', '2017-05-09 15:30']
holidays['2017-12-31']
$('#datetimepicker12').datetimepicker({
inline: true,
sideBySide: true,
minDate: new Date(),
format: 'DD-MM-YYYY H:m',
disabledDates: holidays,
disabledHours: [0, 1, 2, 3, 4, 5, 6, 20, 21, 22, 23, 24]
});
Also, is it possible use a tooltip with an information like "Christmas Day" hover the disable day?
Thank you.
Help me Out - Function and Array
[2Replies]
19-Mar-2017 12:56 PM
Forum:
Using jQuery
Hello experts,
can you help me out with these functions, I would like to get the list os holidays:
var oHoliday = [];
oHoliday = holidayList();
$('#datetimepicker12').datetimepicker({
inline: true,
sideBySide: true,
minDate:new Date(),
disabledDates: oHoliday //The holidays llist will be insert here
});
function holidayList(){
var days ="";
$.get('/holidays/ajax/', function(oHoliday){
$.each(oHoliday, function(i, getHoliday) {
// oHoliday.push( getHoliday.day );
days += getHoliday.day;
});
});
return days;
}
«Prev
Next »
Moderate user : tuliovargas
Forum