|
Thank you very much, Richard,
This is a beautiful solution.
How do you check an answer as the correct solution?
|
|
|
|
|
The usual procedure is to edit your original post to add "[Solved]" to the end of the subject.
An up-vote for any helpful answers is always appreciated!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Awesome!
I will be glad to do both. This problem has stumped me for days.
|
|
|
|
|
Hi,
I am using jssor slideshow and everything is working fine. I just have one question.. looking at the below code, how can I set a default image when no images populated from the database? I want when no images populated then to show logobanner.png image
here is the jquery:
var _CaptionTransitions = [];
_CaptionTransitions["L"] = { $Duration: 800, $FlyDirection: 1, $Easing: $JssorEasing$.$EaseInCubic };
_CaptionTransitions["R"] = { $Duration: 800, $FlyDirection: 2, $Easing: $JssorEasing$.$EaseInCubic };
_CaptionTransitions["T"] = { $Duration: 800, $FlyDirection: 4, $Easing: $JssorEasing$.$EaseInCubic };
_CaptionTransitions["B"] = { $Duration: 800, $FlyDirection: 8, $Easing: $JssorEasing$.$EaseInCubic };
_CaptionTransitions["TL"] = { $Duration: 800, $FlyDirection: 5, $Easing: $JssorEasing$.$EaseInCubic };
_CaptionTransitions["TR"] = { $Duration: 800, $FlyDirection: 6, $Easing: $JssorEasing$.$EaseInCubic };
_CaptionTransitions["BL"] = { $Duration: 800, $FlyDirection: 9, $Easing: $JssorEasing$.$EaseInCubic };
_CaptionTransitions["BR"] = { $Duration: 800, $FlyDirection: 10, $Easing: $JssorEasing$.$EaseInCubic };
_CaptionTransitions["WAVE|L"] = { $Duration: 1500, $FlyDirection: 5, $Easing: { $Left: $JssorEasing$.$EaseLinear, $Top: $JssorEasing$.$EaseOutWave }, $ScaleVertical: 0.4, $Round: { $Top: 2.5} };
_CaptionTransitions["MCLIP|B"] = { $Duration: 600, $Clip: 8, $Move: true, $Easing: $JssorEasing$.$EaseOutExpo };
var options = {
$AutoPlay: true,
$DragOrientation: 3,
$FillMode: 4,
$CaptionSliderOptions:
{
$Class: $JssorCaptionSlider$,
$CaptionTransitions: _CaptionTransitions,
$PlayInMode: 1,
$PlayOutMode: 3
}
};
var jssor_slider1 = new $JssorSlider$("slider1_container", options);
and this is the PHP:
<?php
$mysql_command = "CALL sp_populate_channel_media(:param_channel_guid)";
$mysql_query = $mysql_connection->prepare($mysql_command);
$mysql_query->bindParam(':param_channel_guid', $_GET["id"], PDO::PARAM_STR);
$mysql_query->execute();
$mysql_row_count = $mysql_query->rowCount();
if ($mysql_row_count <= 0) {
?>
<img src="<?php echo $_SESSION["volow_domain_name"]; ?>images/temp_volow.png" width="700px" height="400px" />
<?php } else { ?>
<div id="slider1_container" style="position: relative; width: 700px; height: 400px;">
<!--
<div u="loading" style="position: absolute; top: 0px; left: 0px;">
<center><img src="<?php echo $_SESSION["volow_domain_name"]; ?>images/loading_200X200.gif" /></center>
</div>
<div u="slides" style="position: absolute; left: 0px; top: 0px; width: 700px; height: 400px; overflow: hidden;">
<?php while($mysql_row = $mysql_query->fetch()) { ?>
<!--
<!--
<!--
<div>
<a href="<?php echo $_SESSION["volow_domain_name"]; ?>article?aid=<?php echo $mysql_row['article_guid']; ?>"><img u="image" src="<?php echo $_SESSION["volow_domain_name"]; ?>gallery/members/<?php echo $mysql_row['member_guid']; ?>/<?php echo $_GET["id"]; ?>/<?php echo $mysql_row['article_guid']; ?>/<?php echo $mysql_row['file_name']; ?>.png" /></a>
<?php if (isset($mysql_row['media_title'])) { ?>
<div u="caption" t="MCLIP|B" style="position: absolute; top: 350px; left: 0px; width: 700px; height: 50px;">
<div style="position: absolute; top: 0px; left: 0px; width: 700px; height: 50px; background-color: Black; opacity: 0.5; filter: alpha(opacity=50);"></div>
<div style="position: absolute; top: 0px; left: 0px; width: 700px; height: 50px; color: White; font-size: 16px; font-weight: bold; line-height: 50px; text-align: center;">
<?php echo $mysql_row['media_title']; ?>
</div>
</div>
<?php } ?>
</div>
<!--
<!--
<?php } ?>
</div>
</div>
<?php } ?>
Technology News @ www.JassimRahma.com
|
|
|
|
|
Hi,
I want to know how to paginate like linkedin and facebook so it will list more rows when the user scrolls down?
also, What do you call this type of pagination?
Thanks
Jassim
Technology News @ www.JassimRahma.com
|
|
|
|
|
|
I don't know where else to post this so I hope I am in the right category. I have been asked by my superiors to look into designing the new company portal page. What I have currently done is searched terms like "Portal Page Design" or "Company Portal". These have returned some creative and good results. So my main inquiry to you is not "how to do it", but rather advice and tips on technology that you find that are helpful in this area. We do have SharePoint 2010 license, but from my limited use of it I have to say that I don't mind looking into other technologies.
Maybe to help narrow things down here are some things I am looking for...
What web technology does your company use for its portal page?
Would you recommend that technology?
Was it easy to design and maintain as new versions of the technology came out?
Anyone who responds gets an automatic up vote from me!
Thanks in advance!
|
|
|
|
|
1) We are using Sharepoint 2010
2) Yes, I would recommend that technology if you already have a license. Otherwise consider DotNetNuke.
3) Maintenance of the portal is fairly straight forward.
My recommndation is to learn as much as you can about the power of Sharepoint and possibly consider a consultant who has a proven track record is Sharepoint design. Many things to consider including security, page layout, integration with other systems; not something to throw together. Involve as many of your end users in the requirements gathering so that your final implementation is actually useful. All too often something is rolled out and no one uses it.
Again, spend lots of time in requirements gathering and consider a consultant for design layouts. (Maybe even take some classes on Sharepoint technologies, you meet some very interesting people during those classes which have the same challenges as you.)
Good luck.

|
|
|
|
|
Thanks for the advice. Currently, looking into SharePoint 2010 & 2013 to see if they meet the objectives that we need as well to handle the essentials.
That is a great advice to get a consultant. We very well may be doing that.
Thanks again!
|
|
|
|
|
I will be bad to you !
It depends! Of course it depends. It depends on what your company portal for!
If you use it as a information page about the company, its products than you may choose the simplest HTML.
On the other hand, you may expose services for workers and customers, and in that case SharePoint is a very good choice.
In our case we have a company portal of the first kind, and its perfect for us...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Hi everybody;
here is a link that has gradient background in the body tag,but in IE11 it doesnt appear;
so i'll be thankfull if anybody could help me in this case to make it display correctly.
link:aysanhefaz.somee.com
Thanks.
|
|
|
|
|
I am able to see the gradient in IE 11 in your link.
|
|
|
|
|
yeah thanks it seems the problem has been solved 
|
|
|
|
|
i am working on a project and on a page i get this error.
Parse error: parse error in C:\wamp\www\RMS\comresult.php on line 143
line 143 is the last line of my code.
Please i need help.
|
|
|
|
|
Well I'm afraid we cannot guess what is on line 143; or any other line. Please show the code, especially the line where the error occurs.
|
|
|
|
|
 Line 143 is the last line "". This is my code.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome :: Result Portal</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
background-color: #FFF;
}
</style>
<script type="text/javascript">
function bk(){
location.assign(document.referrer);
}
var state = true;
function getstate(){
return state;
}
</script>
</head>
<body onload="print()">
= $mysqli-real_escape_string(trim($_GET['lev']));
$sem = $mysqli->real_escape_string(trim($_GET['sem']));
$prog = $mysqli->real_escape_string(trim($_GET['prog']));
$sess = $mysqli->real_escape_string(trim($_GET['sess']));
$sql = "SELECT * FROM course_tb WHERE level LIKE '".$level."' AND semester LIKE '".$sem."'";
if($result = $mysqli->query($sql)){
if($result->num_rows > 0){
$sel = "SELECT DISTINCT regno FROM st_result_data WHERE level LIKE '".$level."' AND semester LIKE '".$sem."' AND programme LIKE '".$prog."'";
if($res = $mysqli->query($sel)){
if($res->num_rows > 0){
//$sel2 = "SELECT * FROM st_result_data WHERE regno LIKE '".$row['regno']."' AND level LIKE '".$level."' AND semester LIKE '".$sem."' AND programme LIKE '".$row['programme']."'";
//if($res2 = $mysqli->query($sel2)){
//if($res2->num_rows > 0){
?>
<table width="700" border="0" cellpadding="0" >
<tr>
<td align="center" style="border-bottom: 1px dashed #CCC;"></td>
</tr>
<tr>
<td height="27" style="border-bottom: 1px dashed #CCC;">
<table width="600" border="0" align="center" cellpadding="0">
<tr>
<td align="center"><h4> SEMESTER RESULT SESSION </h4></td>
</tr>
</table>
<span id="regerr"></span></td>
</tr>
<tr>
<td height="27" style="border-bottom: 1px dashed #CCC;"><table width="650" border="0" align="center" cellpadding="0">
<tr>
<td style="border-bottom: 1px dashed #CCC;">Regno</td>
<td style="border-bottom: 1px dashed #CCC;">Name</td>
<td style="border-bottom: 1px dashed #CCC;">
=$result-fetch_array()){
?>
<table>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
= $res2-fetch_array()){
?>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td style="border-bottom: 1px dashed #CCC;"><table width="600" border="0" align="center" cellpadding="0">
<tr>
<td width="177">No of courses:</td>
<td width="417"> </td>
</tr>
<tr>
<td>No of fail:</td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center"><input type="button" name="button" id="button" value="Print" onclick="print()" /></td>
</tr>
</table>
error;
//}
}
}
}
}echo $mysqli->error;
}
?>
</body>
</html>
|
|
|
|
|
At a guess you have a mismatched brace or HTML tag.
|
|
|
|
|
The braces are Matched correctly.
|
|
|
|
|
I can only suggest that you go through the code and remove sections one at a time until the error disappears. You will then be able to see which section is the cause and correct it.
|
|
|
|
|
Ok thanks I found the problem.
|
|
|
|
|
this is the problem.
<?php
$sql = "SELECT * FROM course_tb WHERE level LIKE '".$level."' AND semester LIKE '".$sem."'";
if($result = $mysqli->query($sql)){
if($result->num_rows > 0){
while($rw = $result->fetch_array()){
?>
<?
}}}
?>
whenver i try to loop through $result->fetch_array() it returns the Parse Error.
|
|
|
|
|
I am not sure about the extra ?> and <? , perhaps it should be:
<?php
$sql = "SELECT * FROM course_tb WHERE level LIKE '".$level."' AND semester LIKE '".$sem."'";
if($result = $mysqli->query($sql)){
if($result->num_rows > 0){
while($rw = $result->fetch_array()){
}
}
}
?>
See http://www.w3schools.com/php/php_looping.asp[^].
|
|
|
|
|
You have used a short PHP opening tag "<? " inside the loop instead of the full tag "<?php " - if short_open_tag is disabled in your php.ini , then this will cause a parse error.
|
|
|
|
|
Thank your suggestions worked out.
|
|
|
|
|
guys;
I just searched Google for pseudo-elements and pseudo-classes and i found examples on them. (:before, :first-line, :first-letter, :target, :lang, :checked, and :first-child).
my question is: if in jquery selectors ':myfilter' means that the elements should be filtered according to myfilter filter, so how can I select a pseudo-element using jquery.
Help people,so poeple can help you.
|
|
|
|