 |

|
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|

|
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|

|
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 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 "</html>". This is my code.
<?php
include("conn.php");
session_start();
?>
<!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()">
= real_escape_string(trim($_GET['lev']));
$sem = $mysqli->real_escape_string(trim($_GET[ $prog = $mysqli->real_escape_string(trim($_GET[ $sess = $mysqli->real_escape_string(trim($_GET[
$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[ //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>
= fetch_array()){
?>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<?php
?>
</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>
<?php
}
}
}
}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.
|
|
|
|

|
The :first-child [^], :checked [^], :target [^] and :lang() [^] selectors are all supported by jQuery:
http://api.jquery.com/category/selectors/[^]
:first-line and :first-letter aren't directly supported, but you might be able to find ways to work around it. For example, this SO answer[^] has a function to return the first line of an element, but it involves a lot of DOM manipulation.
:before doesn't exist in the DOM, so there's really no way to manipulate it using jQuery.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|

|
Thanks, Richard.
This is disappointing, In google chrome inspect element, you can see the pseudo-elements :before and :after presented as separate nodes like ::bafore and ::after. but i couldn't fetch them using .chldren, .childNodes, nor with JQuery.
Help people,so poeple can help you.
|
|
|
|

|
Dear friends,
I'm trying to transfer data between input type elements (from textbox to dropdownlist)follow the steps below ...
1. from the first row, key data "aaa" then click "+" button.
2. from the second row, key data "bbb" then click "+" button.
3. click "refresh key drivers" button.
4. problem : the display in dropdownlist is "aaa" and "aaa" (I want it to be "aaa" and "bbb"). How should I solve from source code ?
Here is captured screen and source code :
http://www.sendspace.com/file/14vp73
|
|
|
|

|
No one is going to download your code & work it for you. Better include the screenshot link & post relevant code in your question.
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|

|
ٍSir;
you are duplicating the textbox each time with the same id, which is invalid.
then you retrieve the value of the first element in the document with that id, this would return the same value each time.
instead you can give the textbox an unique id each time or use document.getElementsByName() (you should then add the attribute name instead id in the textbox tag).
Help people,so poeple can help you.
|
|
|
|

|
Hi,
I have a deployment environment that contains 2 server A and B both are configured to use a load balance system. Now the connection has been upgraded to SSL and we need to install certificate to both system. Can you please help me informing,
1. Do I need to have same certificated installed in both system (A and B) or different certificate in both (A contains a certificate and B contains another
certificate)
Thanks in advance.
Thanks,
Arindam D Tewary
|
|
|
|

|
You should be using different certificates.
As well - each certificate should be created with that server name.
What load balancer? Big IP?
Are you using sticky sessions? (cookie persistence included?)
|
|
|
|

|
Thanks Rene. I am yet to get some information from actual environment (information such as some more details about load balancer and if in our target environment we have sticky session or not. I will get back as soon as I get some of this information.
Thanks,
Arindam D Tewary
|
|
|
|

|
Dear Friends,
My application is developed using VC++. This application, create shared memory using C++.
My Requirement is:
1. PHP read and write this shared memory.
2. displaying those values in browser.
your suggestion highly appreciate. Kindly help on this.
Thanks and Regards,
S Shanmuga Raja
|
|
|
|

|
I'm VERY new to Web API and Web development in general.
I have a GetClient method in my controller.
[HttpGet]
public Response GetClient(int entityId)
{
return BO.GetClient(entityId);
}
It returns a Response object:
[DataContract]
[Serializable]
public class Response
{
[DataMember]
public object Data { get; set; }
[DataMember]
public Result Result { get; set; }
[DataMember]
public string Message { get; set; }
private Exception _Exception;
[DataMember]
public Exception Exception
{
get { return _Exception; }
set
{
if (_Exception != value)
{
_Exception = value;
Message = _Exception.Message;
Result = Result.Failure;
Data = null;
}
}
}
}
When I call it I get back a null Response object. If I paste the ResponseUri into a browser it comes back with:
{"Data":{"ClientName":"MyClient","IsDirty":false,"RowState":4,"Id":1,"UniqueId":"00000000-0000-0000-0000-000000000000","IsActive":true,"IsDeleted":false,"CreatedByEmployee":null,"CreatedDate":null,"ModifiedByEmployee":null,
"ModifiedDate":null},"Result":0,"Message":"","Exception":null}
So it looks like some kind of serialization problem. I have no idea how to fix this,. Any thoughts on what to do:
Thanks
If it's not broken, fix it until it is
|
|
|
|

|
Kevin Marois wrote: When I call it I get back a null Response object.
How are you calling it? Are you specifying the same accept headers as the browser?
Try using Fiddler[^] to capture the working and broken requests to see what's different.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|

|
None of the requests work. The data DOES come back from the back end into the controller, it's just that the objects don't appear to be serialized when they get passed to the front end.
If it's not broken, fix it until it is
|
|
|
|

|
Kevin Marois wrote: None of the requests work.
Kevin Marois wrote: If I paste the ResponseUri into a browser it comes back with: (data)
So which is it? If you paste the URL into the browser, does it come back with data, or does it not work?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|

|
My UI calls through the proxy into the controllers, which calls to the DAL. The DAL returns a populated Response object back to the controllers. When the Responses get back to the proxy, they are always null.
If I paste the URI's into IE, I get back JSON with data in it. So it looks like some kind of serialization problem.
If it's not broken, fix it until it is
|
|
|
|
 |
Message Automatically Removed
|
|
|
|

|
I'm about to deploy an application that comprises a web site (ASP.NET MVC) and an API (WebAPI) using OAuth 2.0 for security. Currently all the calls to the API are done server side by the web site and will be configured to use SSL as will the web site itself. My question is about the certificate requirements, it appears that this isn't really detailed in the spec so thought I'd throw this out for discussion. What are peoples thoughts on the use of SSL certificates in this scenario? Do you require multiple certificates? One for securing the site and another separate one used for dealing with the token creation or would it be safe/good practice to use a single certificate? Thanks, Jammer
|
|
|
|

|
The following function used to work with the Telerik grid, but now that we have upgraded to Kendo, it no longer works.
function Grid_onLoad(e) {
$('.t-no-data td').text('Loading Records...');
}
I expected Telerik to replace the .t-no-data class reference with .k-no-data, but they haven't. The .t-no-data reference is still used and appears in the document, but the function no longer behaves the same. The 'Loading Records...' message is never displayed.
Anybody using t-no-data for a similar purpose?
|
|
|
|

|
I got the answer, and I'm posting it here in case anybody else needs to do something similar.
Move the loading message to the tbody
dataSource = new kendo.data.DataSource({
requestStart: function(){
$("#grid tbody").text("Loading data...");
},
|
|
|
|

|
Hi All,
I am trying to load large XML file(222 MB) using javascript for HTML format. It is taking a lot of time.
Can anyone suggest me to make it more efficient?
Any sample is more appreciated.
I am using something like below,
var xmlDoc=null;
if (window.ActiveXObject) //IE 8,9
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
else if (document.implementation.createDocument)
{
xmlDoc=document.implementation.createDocument ("","",null);
}
else
{
alert('Your browser cannot handle this script');
}
if (xmlDoc!=null)
{
xmlDoc.async=false;
xmlDoc.load('Load.xml'); // Large xml file
}
|
|
|
|

|
Firstly, don't duplication your question over many forums.
Second, considering the size of the file, and what you are trying to do with the thing, why are you surprised it is taking a rather long period of time.
|
|
|
|

|
Hello Richard,
Sorry to bother you again.
I am new to web technology so I have not much idea on this.
Please provide me the best technique to achieve this.
Regards,
SMA
|
|
|
|
|

|
I get that Microdata and ARIA are the future for better integration of webpages.
Yet, in the present day there's a strong disadvantage of using them: filesize for mobile devices which bandwidth is costly.
However cheap it might be for you, I swear in some countries/areas every megabit matters for the billing.
I'd like to offer "my" websites' visitors an option to get light "Microdata/ARIA free" versions of the pages.
Do you know techniques to conditionally exclude all Microdata+ARIA markup before sending it to the end users?
FYI: I'll planning to do that using Wordpress PHP at first.
|
|
|
|

|
Hi,
I have the following json in php.
I want to know how can achieve the same but in HTML?
I tried locating on the web but I was not able to find it..
<?php
$json_string = file_get_contents("http://api.wunderground.com/api/xxxxxxxxxx/geolookup/conditions/q/Bahrain.json");
$parsed_json = json_decode($json_string);
$latitude = $parsed_json->{'current_observation'}->{'display_location'}->{'latitude'};
$longitude = $parsed_json->{'current_observation'}->{'display_location'}->{'longitude'};
$weather = $parsed_json->{'current_observation'}->{'weather'};
$temp_c = $parsed_json->{'current_observation'}->{'temp_c'};
$relative_humidity = $parsed_json->{'current_observation'}->{'relative_humidity'};
$wind_kph = $parsed_json->{'current_observation'}->{'wind_kph'};
$feelslike_c = $parsed_json->{'current_observation'}->{'feelslike_c'};
$visibility_km = $parsed_json->{'current_observation'}->{'visibility_km'};
$icon = $parsed_json->{'current_observation'}->{'icon'};
?>
Technology News @ www.JassimRahma.com
|
|
|
|
|

|
yes.
I got it and solved the problem
but I have one issue.
my json url has an API key which I don't want it to be shown to the user?
is it possible to encrypt it or hide it?
this is my code:
<script type="text/javascript">
$(document).ready(function()
{
$.ajax({
url : "http://api.wunderground.com/api/xxxxxxxxx/geolookup/conditions/q/Bahrain.json",
dataType : "jsonp",
success : function(parsed_json) {
var location = parsed_json['location']['city'];
var icon_url = parsed_json['current_observation']['icon_url'];
var weather = parsed_json['current_observation']['weather'];
var temp_c = parsed_json['current_observation']['temp_c'];
var feelslike_c = parsed_json['current_observation']['feelslike_c'];
var relative_humidity = parsed_json['current_observation']['relative_humidity'];
var wind_kph = parsed_json['current_observation']['wind_kph'];
$("#imgWeather").attr("src", icon_url);
$("#lblWeather").text(weather);
$("#lblTempC").text(temp_c + " C");
$("#lblFeelsLike").text("Feels Like " + feelslike_c);
$("#lblHumidity").text(relative_humidity);
$("#lblWind").text(wind_kph);
}
});
});
</script>
Technology News @ www.JassimRahma.com
|
|
|
|

|
There is no trivial way to hide JavaScript code from end user - Google for 'obfuscate JavaScript' and start reading...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|

|
Not from javascript.
But you can create a web service (in the middle) that grabs the json using the "secret url" then forwards its content to the end user.
|
|
|
|

|
Jassim Rahma wrote: my json url has an API key which I don't want it to be shown to the user?
is it possible to encrypt it or hide it?
The only way to completely hide the URL from the user is to make the request on the server-side. Even if you obfuscate your javascript, most browsers have developer tools which can log network requests.
The simplest option is probably to create a page on your site which loads the data from the remote service and echoes it directly to the response. That way, your script can call a page on your site without having to pass the API key.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|

|
Greetings,
I need to know about the cloud computing tech. especially the private cloud computing security and I need some help even with books URLs
|
|
|
|
|
 |