Hi all,
I just wanted to make a quick check,does any of you know of an open source c# code to present wave form (graphically) from a byte array?
Thank you!
Hello,
I would like to know if it is possible, in Struts2, to map an HTML form's fields to those of an action, automatically, without getters and setters.
It is clear that by getters and setters or the ParameterAware interface and the Map, fields can be set in the action, but I just wanted to know if otherwise there was a way.
Me again,
I have a question I would like to ask as a followup.
to submit a form using a link powered by jquery is what I am curious about. do I just bind a click event to the link in the live() event for eg and use a submit() added to the click?
God bless
I started with the standard scriptaculous drag and drop tree, and that all works fine.
Then started implementing this:
http://www.artweb-design.de/2008/5/30/scriptaculous-sortabletree
which gives a good drag and drop tree
Where I am stuck is how to get serialize the tree (unordered list)? It's not in a form, and I can't find a way to serialize it to move onto setting up the AJAX update.
If i submit my ajax form from jQuery, and do
print_r($_FILES);
i get a list of files uploaded,
but if i do something like this
$add_form->sound_file->isUploaded();
or
$params = $this->_getAllParams();
print_r($params);
i don't get my file in zend parametars, and i don't get it uploaded!?
Mayb the problem is with he context beng ajax?!
Hi there. I need to get one page (can be cURL, or filegetcontent), get some info from it, then submit form on same page. I don't want to reload page, becouse some things will change. How to do it? Thanks
How do you send the content of a website form to an email address without disclosing the email address to the user.
Thanks!
PS: If at all possible, I would like this to be in HTML.
Hello friends,
How can i prevent user to enter any url or link in contact form text area, i have tried it with this but its not working -
if (!isset($_POST['submit']) && preg_match_all('/<a.*>.*<\/a>/', $_POST['query']))
{
echo "<h1 style='color:red;'>HTML Tag Not allowed </h1>";
}
else {
//sendmail
}
Please help me
Hi,
I want to change my asp.net form's Id ="aspnetForm" to custom name (I can't change it as its a child page and .NET would enforce 'aspnetForm' name.). I am trying to do this in Jquery .ready event but no luck. I am wondering now whether it's even possible to do that?
If not what are other possible ways..
Thanks!!
good morning all :)
was wondering if anyone can tell me how come I cant get my windows form size to go to 1280x 768 in vs 2008?
My resolution that I am working on is 1024x768..but the computer that I am going to be running this program on is a wide screen..1280x768.
I try to change it in properties but it keeps defaulting back to 1036x760.
I am using the registration form that is already available in the user manager option in my website.
But once I click on the register button I get this message:
Server error The website encountered an error while retrieving
http://prachi.matrimony4me.in/index.php/sample-sites-2?task=registration.register.
It may be down for maintenance or configured incorrectly. Here are
some suggestions: Reload this webpage later. HTTP Error 500 (Internal
Server Error): An unexpected condition was encountered while the
server was attempting to fulfill the request.
On Single page the comment form of Text area is moves Forwarded with threaded comment. Please click on reply to have a look.
A wordpress site.
demo sites example :
http://dikkers.rtcamp.info/?p=205
I am creating an inherited form and when i click add, it is showing the message as
"Do you want to open or save the file". The file is tmp_auto.tmp file.
Give me a solution..Thanks..
I am creating an inherited form and when i click add, it is showing the message as "Do you want to open or save the file". The file is tmp_auto.tmp file.
Give me a solution..Thanks..
Also, it shows "Navigation to the webpage was canceled"
I am creating an inherited form and when i click add, it is showing the message as "Do you want to open or save the file". The file is tmp_auto.tmp file.
Give me a solution..Thanks..
Also, it shows "Navigation to the webpage was canceled"
I have an issue while submitting data using Jquery. When i submit the form the page is getting refreshed instead of updating div. Following is my code
<% using (Ajax.BeginForm("getAjaxTab2", new AjaxOptions
{
UpdateTargetId = "tabs-1",
InsertionMode = InsertionMode.Replace,
OnSuccess = "Done"
}))
{ %
<% } %
I have not written any jquery. Please suggest me on this
Any help will be appreciated
I'm creating a WinForm application in C# and one of its functions is displaying text in text boxes. I'm coding the logic for querying a database in a separate class and am unable to access the text box element in the class I'm creating (I'm getting a "name" does not exist in the current context error). Do I put all of my form logic into my Form1.cs file?
Hello all,
I am trying to raise a click event on a submit button in a html form.
I use the .click() jquery to catch the click event and return true at the end of the function.
When I click on the submit button, the jquery functions are raised and a callback is executed, but the $_POST array is empty.
How can I fix this?
Hello
I'd like my dates in the mm/dd/year format in text fields. However, they currently displays as 2010-03-26.
Is there a global setting I can set to change this?
I tried the following, which seems to update the .to_s method, but form fields stay the same.
ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!(:default => '%m/%d/%Y')
Thanks
I have inserted a hidden input in my comment form:
$ip = $_SERVER['REMOTE_ADDR'];
<input type="hidden" name="c-ip" value="<?php echo $ip; ?>">
With this input, ip column is empty in mysql. What is wrong in input.
Thanks in advance
I am creating a wizard in Struts.
It cotains 4 steps.
For Each step I have separate ActionClass say:-
Step1Action.java
Step2Action.java
Step3Action.java
Step4Action.java
and in each class there are 2 methods input() and process().
input() method is for showing the page in input mode
process() method is will be use for processing the submitted data (if validation is ok)
I am carrying all data upto the last step in a session. And saving all of them in database in the last step
Similaly 4 action tags in struts.xml like :-
<action name="step1" class="com.mycomp.myapp.action.Step1Action1" method="input">
<result name="success" type="redirectAction">step2</result>
<result name="input">/view/step1.jsp</result>
</action>
<action name="step2" class="com.mycomp.myapp.action.Step1Action2" method="input">
<result name="success" type="redirectAction">step3</result>
<result name="input">/view/step2.jsp</result>
</action>
But I think I am going wrong. Please Tell me How will I handle This case?
I am not able to get values from both files and text input in a servlet when my form includes multipart/form-data. I am using the apache.commons.fileuploads for help with the uploads. Any suggestions. Also in the code below there are some things that I feel should be more efficient. Is there a better way to store these multiple files in a db.
public void performTask(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
{
boolean promo = false;
Database db = new Database();
Homepage hp = db.getHomePageContents();
String part = ParamUtils.getStringParameter(request, "part", "");
if(part.equals("verbage"))
{
String txtcontent = (String)request.getParameter("txtcontent");
String promoheader = (String)request.getParameter("promoheader");
String promosubheader = (String)request.getParameter("promosubheader");
hp.setBodyText(txtcontent);
hp.setPromoHeader(promoheader);
hp.setPromoSubHeader(promosubheader);
System.err.println(txtcontent);
}
else
{
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if (!isMultipart)
{
}
else {
FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
List items = null;
try {
items = upload.parseRequest(request);
//System.err.print(items);
} catch (FileUploadException e) {
e.printStackTrace();
}
Iterator itr = items.iterator();
while (itr.hasNext()) {
FileItem item = (FileItem) itr.next();
if(item.getFieldName().equals("mainimg1"))
{
if(item.getName() !="") hp.setMainImg1(item.getName());
}
if(item.getFieldName().equals("mainimg2"))
{
if(item.getName() !="") hp.setMainImg2(item.getName());
}
if(item.getFieldName().equals("mainimg3"))
{
if(item.getName() !="") hp.setMainImg3(item.getName());
}
if(item.getFieldName().equals("promoimg1"))
{
promo = true;
if(item.getName() !="")
{
hp.setPromoImg1(item.getName());
try {
File savedFile = new File("/Library/resin-4.0.1/webapps/ROOT/images/promoImg1.jpg");
item.write(savedFile);
//System.err.print(items);
} catch (Exception e) {
System.err.println(e.getMessage());
}
}
}
if(item.getFieldName().equals("promoimg2"))
{
if(item.getName() !="")
{
hp.setPromoImg2(item.getName());
try {
File savedFile = new File("/Library/resin-4.0.1/webapps/ROOT/images/promoImg2.jpg");
item.write(savedFile);
//System.err.print(items);
} catch (Exception e) {
System.err.println(e.getMessage());
}
}
}
if(item.getFieldName().equals("promoimg3"))
{
if(item.getName() !="")
{
hp.setPromoImg3(item.getName());
try {
File savedFile = new File("/Library/resin-4.0.1/webapps/ROOT/images/promoImg3.jpg");
item.write(savedFile);
//System.err.print(items);
} catch (Exception e) {
System.err.println(e.getMessage());
}
}
}
System.err.println("FNAME =" + item.getFieldName() + " : " + item.getName());
if (item.isFormField()) {
}
else {
try {
if(!promo)
{
String itemName = item.getName();
File savedFile = new File("/Library/resin-4.0.1/webapps/ROOT/images/"+itemName);
item.write(savedFile);
}
//System.err.print(items);
} catch (Exception e) {
System.err.println(e.getMessage());
}
}
}
}
}
db.updateHomePageContent(hp);
Hi all,
I'm using the field_for form helper with a loop:
<% f.fields_for :permissions do |permission_form| %>
<tr>
<td><%= permission_form.object.security_module.name %><%= permission_form.hidden_field(:security_module_id) %></td>
<td><%= permission_form.object.security_module.description %></td>
<tr>
<% end %>
The resulting output of the above code is this:
<input id="role_permissions_attributes_0_id" name="role[permissions_attributes][0][id]" type="hidden" value="76" />
<tr>
<td>Diary<input id="role_permissions_attributes_0_security_module_id" name="role[permissions_attributes][0][security_module_id]" type="hidden" value="13" /></td>
<td>Access to the Diary Module</td>
</tr>
<!-- next input field then <tr> tag -->
The problem with this markup is that the input tag falls outside of the tr tag which there for causes validation issues with XHTML.
Does anyone know how I can have the input tag fall inside the tr tag therefore giving me valid XHTML 1.0 STRICT markup?
Thanks