|
I am developing a web site that is going to be heavy in custom content and is very database driven. I want all the features (and some smartphone specific features) of the web site available to hand held devices. Now I have been absent from the programing scene for many years now. Ok So my question is what would be the best language to develop everything in. can I do it all in php and ajax or should I use c# and asp.net so I can use C# to develop the handheld apps. I know it's a loaded question but I really am at a loss on witch would be best and why.
|
|
|
|
|
There is no correct answer to a which language is best question. There are far too many variables. What language are you most comfortable with? Who will maintain the code in the future? What does the host support? Are there features one language supports and the other does not? Plus many, many more.
A database driven content management web application with mobile support describes what SharePoint is. There are also other pre-built packages and frameworks to do this so the question may be not which language to use but rather is it more economical to use one of these packages (don't forgot to factor in maintenance and support) or write it yourself.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark is correct, its all a matter of what your good working with and the desire to work with a framework or roll your own. If you want to use a framework there are a ton of CMS systems out there, I would just google for free ones to start a search and check for a strong and friendly user base to help you with any questions you may have. Also look at how much bloat will be added that you may not want.
Just my 2 cents
Chris J
www.redash.org
|
|
|
|
|
I believe you meant to replay to the OP and not me.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I agree with Mark that there is no single language that would be the best fit for this. In one part you say that you the website and some features available for hand held devices and then later say to use C# to make the handheld apps. You can made a website that will detect that it is a mobile device that it is being shown on and use different templates to access the data in a way that is optimized for mobile. I know quite a few websites that do that. Now if you want to do some mobile apps, that would be fine as well, but you would probably not be using C# on all of them. You could if you used MonoTouch for .NET on iPhone and MonoDroid on Android and Silverlight on WP7. But then it is still 3 separate apps. Configuring a website to show differently for a mobile device might be easier.
Even using something like html5 is not going to help you for everything, because the standard is not set, so every browser has different interpretations of it, and WP7 does not have it at all yet. I am not sure if Blackberry does or not.
For me, I always say to develop a website with what you are comfortable with (or want to learn), and that could be ASP.NET, RoR, html5, php, etc. You will have to test alot of mobile devices no matter what you pick, so be prepared for that.
Steve Maier
|
|
|
|
|
Hello
I am working on a website that the main page is "index.html" which has the following code.
<html>
<head>
<meta http-equiv="refresh" content="0;url=index.php">
</head>
</html>
The main website runs off of "index.php"
Is there any advantage in doing this?
Can you not run php scripts from within a html document?
Any thoughts as to why?
Thank you in advance
|
|
|
|
|
you can run php in an html document, if the web server is configured to recognise that an htm, or html document is to be parsed by php.
The example you give is odd and I wonder why you would do that. It would be simpler to just have an index.php and configure your server to load a php page directly.
Chris J
www.redash.org
|
|
|
|
|
We are in need of a markup/commentary tool that will allow users to markup a certain area of an asset (pdf, image, etc) and comment on it. Is anyone aware of other products like ConceptShare that provide such features?
|
|
|
|
|
Hello,
I have a simple menu bar that many webpages display, I wanted to put the code in a separate html file so that it was easier to maintain, as apposed to modifing ten or more files when a change is made.
<ul>
<li id="menuHome"><a href="index.html">Home</a></li>
<li id="menuResults"><a href="results.htm">Results</a></li>
<li id="menuEvents"><a href="events.htm">Events</a></li>
</ul>
from html documents it is included by
<!--#include virtual="MenuBlock.html"-->
from php documents it is included by
<?php include "MenuBlock.html";?>
I want to know who is including this file so that I can adjust the CSS properties to reflect that the proper menu item is selected.
<script type="text/javascript">
document.write(document.referrer);
</script>
I had thought that the above would work, but the "calling document" is not the actual referrer.
I have JavaScript to modify the looks of the menu based on the menu id tags.
How can I tell which page is including this, or am I going totally in the wrong direction. (New to webpages)
Thank you in advance.
|
|
|
|
|
the document.referer is the previous web url that the browser was sitting at.
not sure how to do what you want without using javascript.
"If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
|
|
|
|
|
Thank you,
How would you tackle this using JavaScript?
|
|
|
|
|
You need to keep two things in mind with this. A php include and the server side include don't create a seperate call to the server for the documents you are incuding. So there is no valid 'referrer' when it comes to who included the page.
The PHP include basically copies the content of the included file into the location you include it. So the only way to detect that it came from PHP is to set some kind of variable and check the existence. But this only works if your included file is also a PHP file.
The server side include (SSI) is interpreted by the webserver and included when you sent the page to the browser from the server. So I suppose you could add a GET parameter to determine if it was a SSI include.
|
|
|
|
|
Somewhere I recently saw a Code Project posting (maybe a news article?) about a console-style home page. Can anyone direct me to it? Thanks...
Donald S. Szarkowicz, Ph.D.
E-mail: dszarkow@hotmail.com
|
|
|
|
|
Did you search the articles?
I must get a clever new signature for 2011.
|
|
|
|
|
Richard,
Yes, I did search the Articles, but a search for "console-style home page" returns no results.
I think the link that I saw was in a recent daily newsletter, but I may be wrong...
Donald S. Szarkowicz, Ph.D.
E-mail: dszarkow@hotmail.com
|
|
|
|
|
That's the best I can offer I'm afraid. Unfortunately it is impossible to find articles without a bit more detail, such as the section it was filed under, the author's name, whether it was new etc.
I must get a clever new signature for 2011.
|
|
|
|
|
Hello,
I have a simple menu bar base on a ul li list with embedded hyperlinks.
<ul>
<li id="menuHome"><a href="index.html" onMouseOver="setMenu('menuHome')" >Home</a></li>
<li id="menuResults"><a href="results.htm">Results</a></li>
<li id="menuEvents"><a href="events.htm">Events</a></li>
</ul>
I have set the CSS properties such as
#menuHome {
background-color: #CCC;
color: #000;
}
#navleft ul {
list-style: none;
padding: 0;
margin: 0 0 5px 0 ;
text-align: left;
}
#navleft li {
margin: 5px 0;
line-height: 23px;
}
#navleft li a {
text-decoration: none;
padding-left: 9px;
display: block;
width: 140px;
}
My Java script is quite basic
function setMenu( id )
{
var e = document.getElementById(id);
e.style.backgroundColor = 0x666666;
e.style.color = 0xFFFFFF;
}
My goal is to basically have a vertical menu bar that can be used for multiple webpages, so that after the user clicks on it, it will change the background color and text to a different color, so that it is apparent which page the user is on.
(I realize that I'm using the mouse hover for testing, it stops the page from reloading every time I test it).
The problem that I am having, if my understanding is corrent is that the tag that I pass in the jave call is bond to the "li" element of the menu list, the background color changes quite fine, but, I can not seem to be able to access the color property of the "a href" tag to change the text from black to white.
using the e.style example above how would to "Cast it" to the a reference?
Thank you in advance.
|
|
|
|
|
Your problem is the result of you passing the ID of the LI element to the setMenu function. So all text in this LI element will change color just like you thought, except for text inside anchor tags (A).
You will need to set the color for these tags manually. You could do this using the getElementsByTagName method to obtain all A tags inside your LI tag like:
function setMenu( id ){
var e = document.getElementById(id);
e.style.backgroundColor = 0x666666;
e.style.color = 0xFFFFFF;
var allATags = e.getElementsByTagName('A');
}
All you would have to do then is set the color for each element in the resulting array allATags .
|
|
|
|
|
Hello thank you for your reply.
allATags.item(0).style.color = 0xFFFFFF;
OK so if I index '0' which I know is the first one in my list, it affects the proper tag.
Question, because I called this function "setMenu" with the id tag "menuHome", will all references be to this one line item, or should I say all element or nodes downstream from the "menuHome" id?
My wording is not the best sorry, but I will not be able to effect other menu items in my list?
<li id="menuHome"><a href="index.html" onMouseOver="setMenu('menuHome')" >Home</a></li>
Thank you in advance
|
|
|
|
|
Since you are using e.getElementsByTagName (which is the element with id menuHome) all A elements returned are children of <li id="menuHome"> . So you can safely loop through them and set there color.
|
|
|
|
|
This isn't a programming question per se, more that I've bitten off more than I can comfortably chew and could use some resources and design suggestions.
Over the next couple of months, I will be developing a website for a volunteer charity with 22 local groups around the US. The site will have a section for the charity as a whole, and sections for each of the local groups. Each section will have public and private areas, with all the private areas available to all registered users (meaning any registered user will have access to every private area.) National and the local groups will be able to upload and remove documents relevant to their group, change information on their group's public contact page and manage registered access to the site for their group's volunteer members; most likely, this work will fall to local membership coordinators, who may or may not be technologically savvy, and to the organization's webmaster, who hopefully will know what s/he is doing. In addition, all logged in users will be able to participate in a discussion board. Because of the nature the work the charity does, using public resources such as Google Documents is strongly discouraged. The parent organization for this charity will be hosting the site, so I likely will have only FTP access to the servers.
Creating a secure system and managing users is old hat, and I have set up systems to allow remote users to manage data for display on a templated web page. What I do not know how to do is create a system where remote users can upload and manage documents that will be available for download, and how to write and manage a message board system. Most likely I will be using IIS and ASP.Net for the server-side coding. Any suggestions, links, references, books, etc. would be most appreciated.
|
|
|
|
|
Rather than build an entire system from scratch, take a look at DotNetNuke.
http://www.dotnetnuke.com/[^]
You can find hosting companies that specialize in hosting DotNetNuke (DNN) websites. This is an ideal configuration for you because you can have a top-level administrator for the entire USA and create local admins which will have control over their own section of the site. Really very cool stuff.
Also, check out the huge amount of 3rd party add-ons (modules) that are available for DNN at Snowcovered.com
http://www.snowcovered.com/Snowcovered2/Default.aspx[^]
I used DNN at a previous job to build a really cool intranet / extranet and like the technology alot.
My 2 cents.
Good luck
|
|
|
|
|
Agreed, dotNetNuke is pretty good and probably the best one out there.
A second option would be http://www.mojoportal.com/[^]. I've played with this one on my home systems and found it to be reasonably good.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
I've heard of DNN, of course, but I've never really looked at it. It definitely seems like it would answer my needs, thanks!
|
|
|
|
|
Gregory.Gadow wrote: It definitely seems like it would answer my needs
Only if your needs are slow, bloated, difficult to maintain VB.net code.
You may also want to look at Drupal[^] though it may be more than is necessary for you.
I know the language. I've read a book. - _Madmatt
|
|
|
|