 |
 |
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'm having trouble getting my media queries to work.
No matter what media query I write in the CSS file, it just seems to be ignored. An example is as follows:
@media only screen and (min-width: 320){
header nav ul li{
display:block;
}
}
I've got lots of other CSS code in the file but not in media queries. Does everything need to be in a media query?
|
|
|
|
 |
Shouldn't your min-width value have a px appended?
min-width: 320px
|
|
|
|
 |
Thank you. That solved it.
Another problem that I'm finding is that I can't get my menu items centered in the middle of the header nav and be consistently centered for popular device types. It looks fine of the iPad, but on a Macbook Pro Retina it's more left justified. My base code centers it up nicely on an older LCD DELL 1024 x 768 monitor but the base code has no effect on the Retina. I've coded media queries for iPad min and iPad portrait and landscape and it's all good.
Can't figure out what I'm doing wrong.
|
|
|
|
 |
Hello, first time poster. Total newbie.
It's a fairly specific question, but if you could look it over I would really appreiate it. I'm having trouble getting a really solid answer from web designers or video animation guys on odesk.
My problem is this:
I am using this theme:
http://www.cssvillain.com/chimera/
- I need it customized with an animation
- Where the car goes, I will add a, roughly, 30 second animation, of two models (15 secs per model, not 1 min total). The models are basically just one color with lights for buttons, and some textures.
- Background, ideally, would be clear - but I can work around this if it can't be done.
- Image quality must be very high
What file format do I need? I googled the pros cons but I'm not sure what will apply to this template, and video length.
I lean toward GIF because I can have a clear background, and it looks pretty universal -- but it looks like image quality/video length could be limited. Will my high quality, but only 30 second animation be limited by GIF? Will this template support any format, and how would I know? We need a format that will be very universal, does that limit my choices?
Just tell me what to pick. Maybe add why.
Thanks,
Kyla
|
|
|
|
 |
I need to display a child html page inside the main html page using HTML Import.
I tried a sample but it seems to be failing on link.import.querySelector().
The sample code I tried is mentioned below:
Can you help me to resolve the problem.
Main.html
<!DOCTYPE html>
<html>
<head>
<link rel="import" href="Child.html">
</head>
<body>
<button id="button1" onclick="onclick">Button1</button>
<div id="ChildContainer" />
</body>
<script>
button1.onclick = function ()
{
alert("Before reading imported files.");
var link = document.querySelector('link[rel="import"]');
alert("Before importing Child.");
var template = link.import.querySelector('Child');
alert("Before cloning contents of Child.");
var clone = document.importNode(Child.content, true);
alert("Before setting the child to ChildContainer.");
document.querySelector('#ChildContainer').appendChild(clone);
};
</script>
</html>
Child.html
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="Child">
<h3>Sample Text</h3>
</div>
</body>
</html>
aks
|
|
|
|
 |
I'm sorry to tell you but you have to start to learn HTML/JavaScript from the very beginning, as the place here is to small to explain you all the mistakes (logical and technical) you did in this code...
Some probably can write you the proper code, but that will take you nowhere as you clearly do not understand HTML...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
 |
Can any one help me to solve this issue?
aks
|
|
|
|
 |
I am newbie to web & HTML5.
Can you please help me to load an ocx file to an html(5) page.
aks
|
|
|
|
 |
I will not explain you how to use OCX in HTML pages, as I advice you strongly against using esoteric solutions (OCX) in the web...
If you do some Google you will find a lot of solutions, but you will notice that the newest of them is from about 2005-2006 - almost 10 years!!!
It means that OCX is dead - and for good reason. Do not use it!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
 |
Thank you for the update.
I have a traditional application with an ocx supporting some advanced imaging operations.
HTML5 supports some basic imaging operations like mirror, rotate etc.
But I also need some advanced imaging operation like text overlay etc.
I will appreciate you on suggesting mechanism to achieve these in HTML5.
aks
|
|
|
|
|
 |
My files are hosted at http://myproject.6te.net/. After account creation it sends the activation link on the email. But the link that is sent to email will not be able to activate the account. There is need to activate the account from the database server etc. or what other problem. I am following the tutorial at http://youhack.me/2010/04/01/building-a-registration-system-with-email-verification-in-php/ activate.php is at the link and can be seen/downloaded
|
|
|
|
 |
when we write :) or :p or something else on facebook chat or other sites that supports smiley. This code changes to smiley image. thats mean javascript replace that short code (":P") etc to a image. so first we have to find that code (":P") from a text like (" hello friens :P how are you?") after finding that we have to replace with it proper image.
Blogger does not support img tag to post in comment. so there is only way that we can use [img]
(image source url)[/img] and our javascript code finds the [img][/img] tag and then extract the image url from it and replace it with a image.
so this is to be written in javascript i think.
1.use var data = document.getElementById("Id-of-comment").innerHTML;
2. We get data. now we have to find the [img]...[/img] tag {data.search("[img]"); possibly)
3. now we have to obtain the link in a variable.
4. now we have to replace [img]......[/img] with <img src="(variable-that-stores-the-image-url)></img>
Thats all.
[img]https://www.gravatar.com/avatar/4ce47f47105a3bd1ca4700f02b5deff1?s=32&d=identicon&r=PG[/img]
<script>
function myFunction() {
var n;
var m;
var p;
var s;
s = document.getElementById("mm").innerHTML
n = s.search("[img]");
m = s.search("[/img]");
p = s.slice(n,m);
s = s.replace("[img]","'");
s = s.replace("[/img]","'");
alert(p + n + m);
var b;
b = ""
document.getElementById("mm").innerHTML = b;
}
</script>
Mrinmoy
|
|
|
|
 |
Hey All
thanks for taking a moment out to check our question. We are wanting to create a youtube players exactly like edx use with chapter markers so students can click on external links with titles and be taken to that exact location within the video on youtube.
Our question for you is HOW do we make this happen? do we need to hire a developer or can this be a simple tweak? thanks in advance!!
|
|
|
|
 |
Dear All,
I want to model any systems/subsystem for any sort of Electronics/Mechanical device in 3D and render it to browser. In order to see the health of components mounted/install (outer surface or inside of the device), I should able to go inside of the model and be able to see all component or device mounted as well as able to monitor the parameter of all such components (more like exploded detailed view). Please note I have update of all such parameter value of component at every second either in XML or in text file. Only hurdle is to display these values of components parameter (temperature, battery value, tank fuel, pressure, power value etc.. ) along with 3d model. Please help how to model this? what will be software to model? how to interact with the model? and how to provide provision to update health parameters? This will be browser based application and O.S is windows or Linux for development.
I will be really thank full to forum for the support.
|
|
|
|
 |
Hello friends i am amin i need help i want know how to create login with facebook into my web application.can any one help me how to step by step i am waiting
|
|
|
|
 |
You give not much details about your platform and tools of development, but as you talk about web development, you should start here:
https://developers.facebook.com/docs/javascript/quickstart/v2.0[^]
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
 |
Hello Everyone,
I am uploading an image file using asp file upload control.
This is my code to upload the file in the folder.
public string UploadPicture()
{
if(fuImage.HasFile )
try
{
fuImage.SaveAs(Server.MapPath("~/assets/ImgNewsletter/") + fuImage.FileName );
string imagePath = "~/assets/ImgNewsletter/" + fuImage.FileName;
return imagePath;
}
catch (Exception ex)
{
return "";
}
return "";
}
and I have added this in my web.config
<httpRuntime executionTimeout="3600"
maxRequestLength="1048576"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100"/>
My problem is that even after the files are uploaded, they are excluded from my ASP.Net project. Kindly let me know whats wrong with my code?
Many Thanks,
Regards
HumaMunir
|
|
|
|
 |
HumaMunir wrote: excluded from my ASP.Net project What?! What are you talking about?! Are you seriously mean that some uploaded file will became part of your PROJECT?!
Do the files stored on disk? That's all you have done with your code...
Anyway to what project and for what purpose do you want to add uploaded files to your project?
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
 |
The idea is that the admin will upload the newsletter, that will be shown to every user. This is not something exceptional, I have done this before using file upload. You can upload the files by giving a path and then can store the same path in the database to show them later. But this time all the uploaded files are invisible,in other words, are not included in my asp.net project's folder.
Regards
HumaMunir
|
|
|
|
 |
HumaMunir wrote: his time all the uploaded files are invisible,in other words, are not included in my asp.net project's folder. You have a path string that shows where the files should be uploaded to. Are you sure that path is valid on the server? Have you checked other directories to see whether the files are stored elsewhere? Are you certain that the files are actually being uploaded?
|
|
|
|
|
 |
HumaMunir wrote: but they are not included in the project. Of course they are not, they are just files stored in a folder, they have nothing to do with any project. A project is just a concept used by Visual Studio to group a set of files and rules for compiling and linking into an executable or interpretable program. If you want these files added to your project (and I have no idea why you would), then you need to copy them manually into your build system and rebuild and republish your entire project. You seem to be confused between the development and execution phases of an application.
|
|
|
|
 |
What the connection between show an uploaded file to everyone and to make a part of the project!!!
You are talking nonsense here.
Upload the file, store it anywhere you want (and can), probably store a reference in your database, then present a link to the uploaded file to everyone should see it...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
 |
Kornfeld Eliyahu Peter wrote: What the connection between show an uploaded file to everyone and to make a part of the project!!!
You are talking nonsense here.
Upload the file, store it anywhere you want (and can), probably store a reference in your database, then present a link to the uploaded file to everyone should see it...
This is my criteria to store my file in my project. I am not talking non sense. May be you are overwhelmed with your so called knowledge. That’s ok if you can’t solve my problem but please learn to behave!
Regards
HumaMunir
|
|
|
|
 |
HumaMunir wrote: This is my criteria to store my file in my project The funny thing that you are going with it again...Let put thing in order...
Project - is a unit (probably more than on in a solution) that used to write code. After publishing (with or without compilation) it transforms to an application (called also site sometime). So how it can be a criteria that an uploaded file will be part of the project!!!
No one can solve you a problem that by it's nature does not exist. Learn distinguish between project/application than you probably will solve your problem alone...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
 |
HumaMunir wrote: catch (Exception ex)
{
return "";
} That's a very bad, really terrible, coding practice. Don't do so.
An exception occured. You just swallowed it. Perhaps the user had no priviledges to write to that folder.
Also note: how will you later be able to access those files? Do you have some database table or some other mechanism to find out which files exist and to generate the html links to them?
|
|
|
|
 |
Bernhard Hiller wrote: That's a very bad, really terrible, coding practice. Don't do so.
Thank a lot for the advice but I have a check I am handling it on button click for now, will change it once I get the uploading fixed.
Bernhard Hiller wrote: Also note: how will you later be able to access those files? Do you have some database table or some other mechanism to find out which files exist and to generate the html links to them?
Following is my button click event, I hope this will help you understand the rest of the code and yes I am storing it in the database and displaying them on another page in a grid.
protected void btnAdd_Click(object sender, EventArgs e)
{
string isBest;
if (cbIsBest.Checked)
{
isBest = "Yes";
}
else
{
isBest = "No";
}
string picPath = UploadPicture(); string newsletterPath = UploadNewsletter(); if (picPath == "")
{
divError.InnerText = "Please select an image for the newsletter.";
}
if (newsletterPath == "")
{ divError.InnerText = "Please provide the e-copy of newsletter."; }
else {
try
{
string uploadedBy = Session["Email"].ToString();
if (dl.insertNewsletter(txtTitle.Text, ddlMonth.SelectedItem.ToString(), areaSummery.Text, picPath, newsletterPath, ddlCohort.SelectedItem.ToString(), isBest, uploadedBy)>0)
{
divSuccess.InnerText = "Thanks! Mahara Insight has been uploaded successfully.";
divSuccess.Visible = true;
}
else
{
divSuccess .InnerText = "Sorry for inconvenience. Some error has occured. Please try later.";
divSuccess.Visible = true;
}
}
catch (Exception ex)
{
divError.InnerText = "Sorry for inconvenience. Some error has occured. Please try later.";
}
}
}
Regards
HumaMunir
|
|
|
|
 |
We've a project with 150+ forms and 70+ reports / graphs and got scheduled to complete in 2014 Dec by starting the development now. We have enough knowledge in project and specification also is ready. But my hands are empty in development which supposed to start this month end.
We want to deliver a good and rich customer experienced web application. UI interface should be smooth and the performance to be good. This will be a intranet application. We've chosen to did it in ASP.NET (Visual studio 2012) with back end MS SQL Server 2008 R2.
My worry is designing the base template itself will consume much time if each and every thing will be developed from ground level. I searched and come up with availability of third party templates. (http://themeforest.net/category/site-templates/admin-templates)
When I saw the demo which they provided in their site, it looks good for me and it is enough for my application.
Please share your ideas and experiences with third party templates.
- Will it suitable for projects which fresh start?
- Will it help us to reduce the development efforts in page / form design ?
- Can we incorporate it in .net development environment?
Please share your valuable suggestions if any other way of solution.
Thank you.
Rishihar Subashchandran
|
|
|
|
 |
An application of that volume it should be very wise to bring in a web designer - that can help you to create a higher level of look and feel...However if there is a time frame that renders the work of a designer invalid, you may consider a good template too, but you have to see whether the template will not break you, so take you most complicated pages (in look, not in code) and test it against the template. If you have your template, than bring in a designer anyway to fir it for you, than drop him...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
 |
I want to have an inline editing in a gridview in asp.net mvc web application
|
|
|
|
|
 |
how to integrate geo-fencing on my website using php code?
|
|
|
|
 |
Where are you stuck? We need a lot more information.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
 |
Maybe it is enough to use a simple code as being used for example on this quite neat site which is not a Finnish based domain ( .fi domains are ) but it still does well with big G. This site is using meta http-equiv="content-language" content="fi"
to describe the site is in language "finnish".... ? I dont know but I am seeking answet to this GEO question also. Or maybe the site has so many visitors that search engines likes it....just an example....
|
|
|
|
 |
The site you've linked to is a Finnish credit-comparison site. This sort of link looks suspicious, as it's the type of site usually associated with spam messages.
Although your message appears to be genuine, I'm afraid the presence of that link is probably enough to get it removed. The spammers seem to have been getting craftier recently, hiding links in otherwise normal messages, and a lot of us have itchy trigger-fingers on the "report" button.
You might also find that your account gets removed. Your other message also mentions a spam-like domain, and you haven't set a display name in your profile, which is the sort of behaviour usually exhibited by the spammers who frequently bombard this site.
If this happens, please don't take it personally. You'll be able to sign up again, and so long as you remember not to post links to random websites - at least not before you've established yourself as a genuine user! - you can look forward to a long and happy membership.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
 |
How does one account for a single transaction across logs when there is no common fields (foreign key fields if you will)?
* Multiple hits at the same time on Apache web server.
* Apache routes access to Tomcat which is acting as an application server
* Tomcat builds response but needs to access CGI on Apache via non 80 port which spawns a SAS/SUDAAN process (think SQL)
* CGI responds through Apache back to Tomcat which completes response page then routes it back to Apache (80) which sends it back to client web browser.
When doing log analysis how does one tie these individual events into a tidy transaction using Tomcat and Apache logs? Stated differently; when doing pretty reports, how can one link these transactions together? As stated before multiple accesses are occurring within the granularity of the time-stamp; Tomcat and Apache are recording the time-stamp but it is not very useful.
Thanks so much,
EB Bligh
|
|
|
|
 |
I wrote this HTML for a header:
<header>
@ViewBag.Title
<img src="imageURL" alt="No Image" width="100" height="30" align="left"/>
</header>
but the problem is that the text is not centered correctly, it's centered on the space of the header after the image, any suggestions to get it right to the center?
|
|
|
|
 |
I have a regular C# desktop GUI application providing regular windows interface.
WCF is not used for supporting these interfaces, since it mainly working as a standalone desktop application, with a lot of data involved in data transfer. But I have used WCF with netNamedPipeBinding for UI automation.
Now I would like to call these interfaces from a web page also.
So in my understanding
1. I have to host my desktop application as WCF web service
( with httpBinding and need o provide a new contract for the interfaces).
2. Call the existing I/Fs from the new interface class.
Please correct me if wrong.
aks
|
|
|
|
 |
Cross posting is not tolerated here so please be patient and wait for some answer. Bear in your mind that people answer question in their own spare time free of charge!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
 |
Can site A set a cookie where the cookie's domain = "site B" ?
Meaning site B will receive the cookie once the user leaves site A and browses to site B?
Is this allowed by most browsers?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
 |
To learn in depth Google for 'cross domain cookies'...
In a few words - no, you can't. You can't share cookies across domains. There are some solution (like site forwarding) but most are not secure at all...
You have to learn a lot to see your options - than find a cookie-less solution
You may start here: http://www.cookiecentral.com/faq/#4.3[^]
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
 |
This page
http://www.bbc.co.uk/news/special/2014/newsspec_7141/index.html[^]
Looking at the source code it uses bootstrap.js, but I'd like to understand more about how they put it together... I vaguely remember seeing something, somehwere, about it, but can't find it or remember where. Any pointers gratefully received. Ta.
|
|
|
|
 |
Wombaticus wrote: I vaguely remember seeing something, somehwere, about it, but can't find it or
remember where. Clickety[^]
CP search rocks
|
|
|
|
 |
Thank you! Now why TF couldn't I find that? (Probably best you don't answer that...)
|
|
|
|
 |
Message Automatically Removed
|
|
|
|
 |