In my jsp code I use the request.getParameter() to retrieve the data which is entered in html. The data was retrieved when using get method but it is not when im using post method
Why this happend
My html form is
<code>
<form name="inp" action="upload.jsp" method="post" onsubmit="return valid();" enctype="multipart/form-data">
<tabl...
I have an iframe in an HTML page, how can I cause it to act as a textarea?
...
Hi Guys,
I have one embed flash movie inside one div, I put one javascript onclick event handler in the main div, but isn't catching the click, what is wrong?
Code:
<div id="top-box-player" onclick="alert('Hi Bananas!');">
<object width="400" height="300">
<param name="movie" value="general.swf">
<embed src="./...
I have a comment box that users can fill and saving the text in a MySQL database:
When a users fills text in my textbox with a backslash (\n) it shows in the text box without the new line.
For example, the user enters:
Hi everyone!
Me
The Textbox displays:
Hi Everyone!Me
What am I doing wrong?
...
I know there are a lot of commercial applications on different platform (windows, firefox, even the iPhone) that can read emails from hotmail.
I'm trying to build a similar function into my software. Where can I find sample of this code? Hotmail does not support IMAP, only POP so a lot of things are possible through the "official" mean...
I have the following html:
<a href="javascript:<%# 'js code' %>" class="MyClass">
<div class="HeaderRow" style="vertical-align:middle;text-align:left;height:35px;width:998px;">
<b style="vertical-align:middle;"><%# ((MyObject)Container.DataItem).Name %></b>: <%# ((MyObject)Container.DataItem).ImageSrc%>
</div>
<p style="margin-left:10px...
Hello everyone,
I am making a database, which will interact with a SQL table.
What I have achieved so far:
Add rows to the table.
Delete rows from the table.
Search rows from the table.
Paginate the results.
What I need to achieve:
A log in prompt when a guest tries to
access the page.
In fact, I have successfully installed a ...
I'm pretty new to jQuery and I've been given a task I really have no idea how to complete. Here's the situation:
I have a form as follows:
Code:
<form action="search.php" method="get" id="cse-search-box">
<input type="text" name="q" size="31"/>
<select name="category">
<option>One</option>
<option>Two</option>
<option>...
What is the best way to change your URL through an html select?
<select>
<option selected="selected">Change to URL X</option>
<option>Change to URL Y</option>
</select>
What Javascript should be used?
...
I am looking to use Javascript or jQuery to pull the alt tag from the specific image that had been clicked in the HTML and copy its value into a caption field.
function change_image(diff){
var newAlt = $(this).attr('alt');
position = (position + diff + hrefs.length) % hrefs.length;
revealImage(hrefs[position]);
$nav.find('.count...
Hello.
I want to change a nested Navigation by drag and drop and i find a nice plugin. Now i want to store the changes in the database, but unfortually I can't read out the id of the parent element. The second thing what I need is the new position of the dragged li element in the list
<script type="text/javascript" src="includes/jquery/...
I am unable to see the updated CF fiel on mozilla , where as it works fine on Windows.
Working on a coldfuison 'MX.
In the folder kings.com/ ,the page "testGuide.cfm" exists.In it the values have been defined as
<cfset TestGuide = "#appDirMisc#testGuide.html">
<cfset TestexZip = "#appDirMisc#TestGuide.zip">
<cfset TestGuideEx = "#...
Hello, I have a trouble with file-uploding. Here is my part of the form:
<input type="file" name="image_file" />
<input type="submit" name="add_new" value="Upload" />
And in script i have a code:
print_r($_FILES);
After image choosing and sending form, I have an empty array $_FILES. Why?
...
Code for Showing Loading indicator while loading content in the inframe
1)When a postback/submit take place in the form inside iframe
...
In other words, the HTML blurb below has "little words" in the upper right and I want it to be in the lower right.
<html>
<body>
<div style="width: 500px; background-color: #cdcdcd">
<div style="font-size: x-small; float: right">little words</div>
<div style="font-size: x-large">BIG WORDS</div>
</div>
</body>
</h...
I'm using Eclipse and the current solution (which I dislike) is to use "Search/Replace". This is an error prone solution.
Do you know any better approach to refactor JavaScript, HTML, CSS resources safely in big applications? Or do you use any other cool refactoring tool(s)?
...
I want to have a text field where people can type in a value. Then I want to have a href open a url with the text field appended to the end.
So if the text field says "elephant" then when they click the link, a page will open with at example.com/elephant.
I think javascript would be the easiest way to accomplish this but I just don't k...
The following code should display table with borders around cells, but it doesn’t. Any idea why?
<head>
<meta http-equiv=“content-type” content=“text/html; charset=ISO-8859-1” />
<style type=“text/css”>
td, th {border: 1px solid black;}
</style>
<title>Testing Tony’s Travels</title>
</head>
<body>
<table>
<tr>
<th>City...
Notepad2 is by far my most favorite editor to do quick edits to HTML, XML, etc...
One thing that would be absolutely awesome is the ability to highlight a chunk of XML and comment it out or uncomment it.
Is this possible with Notepad2?
...
I have a form with some select elements. One of them is configured so that if the user changes the value, the next input may get enabled or disabled, depending on the value. When changing the value with the mouse, everything works fine. However, when using the keyboard, strange things happen. It acts differently from one browser to anoth...