|
I'll check them, thanks raja.
|
|
|
|
|
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]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.
|
|
|
|
|
Greetings.
I think I see what the issue is here. The Solution Explorer does not work like Windows Explorer -- it looks like Windows Explorer -- BUT....
It is only going to show you files that you put there using Visual Studio. Try right clicking on that folder and select Refresh Folder. If those uploads worked -- the files will show up after you refresh. You cannot expect Visual Studio to include a file in your project just because it is in a folder in your project -- you must explicitly do that -- either by adding them using the Solution Explorer -- or, by refreshing the folder after this upload process.
Also -- look at your try/catch again. You might just as well not use try/catch if you cannot tell that you threw an exception -- the catch block does nothing -- it returns in the same manner that the normal path does -- so all you have gained by using try/catch -- is that your function runs a little more slowly and .NET thinks that you handled the exception which makes it silent -- and likewise undetected.
EDIT: Having read through the entire thread -- let me say a few things -- that are my opinion from many years of experience -- not all of it was wise, either.
This is your project -- you do what makes sense to you -- but -- be very careful about assumptions that you make. I can see you possibly watching the process...looking at Solution Explorer -- and geting frustrated because your files are disappearing -- but, they are not disappearing -- they are simply not part of your project -- so they are not being displayed. That is why you are getting blowback from others about it -- they are not part of the project being built by Solution Explorer -- they are probably best described as input/output -- a product of the project, I suppose. So...I do not disagree with your folder structure -- it looks well thought out. However, you are making the assumption that Solution Explorer will list the content of the folder with no assistance from you -- and I learned that you must refresh that folder by making the same assumption -- so, I am telling you what I
learned so that you can have your question answered and move on to writing your code.
About the catch thing -- I also tend to litter my try/catch blocks and sometimes don't have much in the catch, but at a minimum I will put a breakpoint on a line of code in the catch, so that I still know that an exception occured. I am sure that you know -- if the permissions were not proper, and exception would have occurred -- access denied, I think -- right? Are you aware of what the Exception contains?
ex.Message = the Exception text and ex.StackTrace is the line where the exception occurred. I find that very useful -- I know many of the exceptions that occur in a file upload process -- because I sit on that catch block and wait for them -- and then I look at them. Another thing I want to share is this -- in the Windows SDK are the include files for many Windows DLLs -- The error codes are in those include files -- even a key to unraveling the HRESULT and other 32 bit returns that will tell you much more about exceptions and even successes. When I started taking the time to figure an exception out -- I spend much less time doing things that do not solve my problem and I learn how to write much more robust code that way. I was not born with that ability -- I got there by doing what I am recommending to you right now. I am sure you are a 'crackerjack programmer' (A compliment -- not an insult) -- and I would like to tell you some things to use as tools to make your code even better -- still your code -- just better.
I understand how you might feel offended -- you are just trying to get a 'fresh set of eyes' put on it to assist you -- that is what I am trying to do, here -- but...
I am a developer, too -- and I hope that your problem has been solved because we all run into this sort of thing from time to time and if we can help one another out instead of making further assumptions and ranting about things that are not the problem -- we all benefit from that.
I wish you well.
modified 17-Jul-14 6:15am.
|
|
|
|