Hello ,
I have a asp.net application, which used html templates to generate content and sends this in the email. The code to read the html file is as-
private string LoadHtml(string HtmlFile) {
Assembly asm = Assembly.GetExecutingAssembly();
Stream stream = asm.GetManifestResourceStream(asm.GetName().Name +
...
Hi everyone,
I am currently developing a Struts (1.3.10) application and I'm trying to show in a combo box a set of data. Every single option(row) is a String created by the union of 3 different Strings.
My question is if it's possible to tabulate that information in every option from the combo box, to show the information like the exa...
I know that questions about this topic exist, but i would like to know if anyone knows a solution for rails :)
I'm using a text_area_tag helper, and the contents that i want to display contain HTML tags.. any idea?
...
Hi.
Im trying to set the action of a form with javascript!
How come it wont work on this code: (what happens is that the page gets submitted to itself, as in 'action="#"'
function validateForm() {
var nr_of_pics=document.getElementById("annonsera_nr_pics").value;
var name = document.getElementById("annonsera_name");
var...
I have 5 years of C#, Perl and SQL programming experience but I've just found a web designer and developer job. I dont know anything about it but need to design a website using PHP, flash and HTML, whatever it is. Can you give me pointers on where to start to learn it all ASAP and start designing the website? I downloaded WAMP and learne...
Fellows,
I wrote some code to save the current state of a web page. When there's a textbox where I change the value by input, the change isn't registered in the html code. Even when I call:
object.value = 'x';
is doesn't change the value. When I use:
object.setAttribute('value','x');
Then the change is registered in the html code. ...
I have a page with PHP and HTML.
The PHP section contains an input-type="password"
I want to put the value of the password fields inside a hidden-input on the HTML side of the page (in a form)...
<?php
INPUT PASSWORD
?>
<HTML>
<form with password inputs>
</HTML>
How can I do this? I cant put the password inside the form directly bec...
I have a checkbox and I need that when it is "checked" to alter a MySQL Table value to "yes" and if it's checked when you uncheck to "no".
I want to accomplish this with Ajax. How can this be done?
...
Yesterday I found this How-To on exporting data to Excel spreadsheets by simply producing HTML. Seemed like a straightforward way of exporting cells with formatting, what one can not achieve using just CSV format.
My idea was to process some data in a Java app, export the results to Excel spreadsheet and make use of Excel's capabilities...
I get the name of an input element, which is a string with a number (url1). I want to increment the number by 1 (url2) in the easiest and quickest way possible.
My way would be to get \d / restofstring, ++ the match, then put together number with restofstring. Is there a better way?
Update:
My final (dummy)code became:
var liNew = do...
Hello all. Ii am trying to make a checkbox (to send via email) sticky.
To make sure it doesn't make a problem when sent empty I used the following:
<input type="checkbox" name="something" value="1">
<input type="hidden" name="something" value="0">
I have used things such as:
<input type="checkbox" name="something" value="1" <?=(($_...
Currently I have a race condition existing in my JavaScript code. What I am trying to do with this code is convert all check boxes which are a part of the 'checkbox' class and are not checked into text boxes with a value of zero. Currently when you post a check box that is not checked it does not appear in the $_POST data. However I need...
I'm using KImageMapEditor on Linux (Ubuntu) to create an image map. The shapes in the image are a little complex so I'm using the freehand tool to draw them. However, this is really the same as the polygon tool so the shapes have ended up with a lot of points, which has made the HTML pretty huge.
Does anyone know of a way to reduce the ...
I'm currently looking into the JQuery library for CSS Layout Template module
Is it possible to define the height of a placeholder with *?
Meaning it will push content down if it has to, or fill up any remaining space if the complete content is less then the view port.
This would be really nice to make the whole sticky footer thing mu...
i am generated an html file with many different links and they (by default) all show up the regular blue color. Is there anyway i can make certain links different colors. note that this html is getting pushed into outlook as an email so i can't have separate css files.
...
I have a textarea inside a form. No wrap in the html code is provided.
In the php file (forms action=phpfile.php) I get the value of the textarea like so:
$ad_text=wordwrap(nl2br($_POST['annonsera_text']), 47, '<br>', true);
echo $ad_text;
Then the output is:
hellohellohellohellohellohellohellohellohellohe
llohello.
hi.
hi.
hi.
/> h...
I have a textarea submitted to a php file.
Im using this to make it look exactly as the user entered the text:
$ad_text=nl2br(wordwrap($_POST['annonsera_text'], 47, "\n", true));
If I want to resize a container I must be able to read how many lines are in the variable '$ad_text'.
Is there a way to do this...
I am still learning so...
Does anyone know how to use the accept attribute in input tags? I can see it documented, but w3schools indicates that it is not supported by any of the major browsers. Testing also confirms this.
I know that validation should be done server-side, and am doing that now. But it'd be nice to have it restrict the types of files in the file ...
Should we guard against unanticipated user input from dropdown lists? Is it plausible to expect a user to somehow modify a dropdown list to contain values that weren't originally included?
How can they do this and how can we stop it?
...
The other day I found this little piece of software - WARI. It stands for Web Application REsource Inspector. Apparently it checks dependencies between css, html, js and images and reports unused and duplicated css styles, javascript functions and images.
Link: WARI is released!
What do you use? Any alternatives?
...