html

How to create a date calculation (add a number of days since a particular date and write a DD/MM/YYYY result)

I have an MSSQL database with dates stored in integer type. The number is relevant to the number of days that have passed since 01/01/1970. I need an ASP.NET code that will take the integer from the database table and convert it into a date - add the number of days onto 01/01/1970 and echo the result in DD/MM/YYYY format. For example, if...

using <canvas> element from javascript

Is there any JS library designed for working with canvas elements? I don't really care about IE compatibility. I need to create objects(complex drawings with text) , draw lines between them, linear, bezier with different strokes, and attach event handlers to them(i need mouseOver and click). Anyone has any experience with a library tha...

Adding Counter to HTML Form and Calculate Credits

I have a simple HTML Form that allows the user to enter some text which is then sent as an SMS/TXT Message via an SMS Gateway. The user enters the message text into a textarea: <textarea rows="10" cols="40" id="smsbody" validate = "required:true" name="MessageBody"></textarea> They can enter as little or as much text as they like, how...

page setup information in html or page created by asp.net

Hi, I have HTML page of few tables created by ASP.NET and when I do the "Page Setup" option before printing the paper size is already selected as "Letter" and I want that option to be in "A4". I changed the size of the table but its not working. Is there any page setup information I can put in HTML so that "Page Setup" option can take...

Weird Firefox overflow/float behavior

Hello there! I have a simple layout which works fine in Chrome, Safari even Opera too (OS X). The surprise for me here is Firefox. (IE and Win not tested yet). The problem is fieldset.ownerbox isn't floating in Firefox. (The two semi-transparent fieldset below the pie-chart) CSS rules applied here: #owners { position: relative; width...

Meta page refresh not working for php page?

i am trying to redirect users without javascript enabled to our help page (help.php), specifically the part that talks about enabling javascript (help.php#nojavascript). however, my meta refresh is not working! it keeps on refreshing the same page! i tried redirecting to a different page with a .html extension instead, and that works, s...

Sending HTML email in django

In my project I've added a newsletter feed. But when trying to send emails with this function : def send(request): template_html = 'static/newsletter.html' template_text = 'static/newsletter.txt' newsletters = Newsletter.objects.filter(sent=False) subject = _(u"Newsletter") adr = NewsletterEmails.objects.all() fo...

How to track links within a website

Hi, so I am transferring an old website to a new server, and attempting cleanup in the process. What I am looking for is some script or free software that can: a) show the paths through the website (following hyperlinks, etc), so I can see what links to what and b) some software than can see which html files are orphans (not linked t...

Create dynamic HTML page in asp.net

Hi, I am using asp.net 2.0 and C#. I have a teacher-student concept, in which I want that whenever a student login he/she will get a pop up made by his/her teacher. My issue is this I want to give an interface to teacher that he can design his own html page and assign is to all student or a particular student[i.e. he can made differen...

Replace HTML with XAML

Has anyone ever tried this? And I don't mean sending XAML to the browser but using XAML to build an ASP.NET control tree or something similar which then renders as HTML. XAML is intresting, HTML hasn't changed much and to my knowledge HTML5 is mostly more of the same. ...

Frameworks/templates for web developer

Hi, I'm C/C++, Java developer and now in order to put some variety into my work, I decided to start playing with web development - i'm using django. However, I'm hopeless with graphics and advanced css. I would like to build and ship some apps with elegant and simple design. Are there any frameworks/templates which let me build somethin...

JavaScript replace

I'm doing something like: <p>SQL</p> <p>sql</p> <p>sQl</p> <p>SqL</p> <script type="text/javascript"> var ps = document.getElementsByTagName('p'); for(var i = 0; i < ps.length; i++) { var p = ps[i]; p.childNodes[0].nodeValue.replace(/sql/gi, 'VB.NET'); p = null; } </script> But it's not replacing the text. What's wrong? Thank you....

Create a shim overlaying the entire page, but allowing mouseover events in the background

I need to create a shim for the entire page to capture click events, but the shim must not stop other events like mouseover etc on the other html elements on the page. I have solution that sort of works, but I am having a couple of problems with it: Whenever I click on the page, if I click directly on some text, the click event of the s...

Is the Android Emulator browser suitable and reliable for testing an HTML/Javascript Application?

I'm developing an HTML / Javascript application meant to run on an Android device running Froyo (2.2). Assuming I don't need multitouch functionality, will the emulator's browser be a reliable means of debugging HTML, CSS and Javascript? Or is it possible that I would work out all the bugs in the emulator but find the actual device handl...

How to achieve two-column layout with the following HTML code?

I couldn't seem to get my CSS working properly in IE (I'm using IE 8), and I'm hoping someone could share some opinions on this. Here's my dumb-down HTML code:- <div id="column-content"> <div id="content"> <p>This is some text</p> <div class="toc">Right content</div> </div> </div> What I want is to ...

PDF to download, not link to view/download

Hello, I am trying to make it so when you click "download here" a pdf will download to their desktop. Could anyone please provide me with information on how I should go about doing this? Sincerely, Caleb ...

Cell Padding Using CSS on an HTML Table

I need to pad just one cell in my table. I gave the td element a class and defined the class in my css file like this .itemQuantity { padding-right:30px; text-align:right; background-color: #EEE; } Padding-right does not seem to be doing anything. ...

How to tell if an item is on the screen (WITHOUT using scrollbars)...

Hey, Is there a way that I can only render the elements on the screen and leave those others to be rendered when they come into view? Basically like 3d culling, but on a website ^.^ [edit] I take it that this isn't possible then? [/edit] [edit2] I tried LazyLoad (jQuery plugin) but that initialised on windows scroll [/edit2] [edit3] S...

How to style a text field so it doesnt have a border?

I have a text field and I dont want to show border around it as it is a read-only text field. How can I make it to appear without the border and without the background color? ...

CKEditor 3.x Plugin Development Question, contextmenu

So far I have figured out how to make dialogs, return values and insert new html and elements. My comment sections are as follows: <span id="comment4" comment="this is a comment"> <p> This is some HTML. </p> </span> I'm having a difficult time getting the editor to recognize that a particular section has a comment and adding ...