<form enctype="multipart/form-data" method="post" action="mailto:[email protected]" accept-charset="UTF-8">
Is there a problem if mails are sent this way .. i wanna avoid using PHP codes..
I'm doing code for state maintainance
So what happens that ,my currnet view will be appear after pressing homme
now in this view i want to add backbutton
in normal condition i'm adding button like this,
[self navigationItem].title = NSLocalizedString(@"login_title",@"");
UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"back_button",@" ") style:UIBarButtonItemStylePlain target:self action:@selector(done)];
[self.navigationItem setHidesBackButton:YES animated:YES];
self.navigationItem.leftBarButtonItem = backItem;
[backItem release];
Rails: url_for to be available in a isolated class that must be instanced:
class ProfilePresenter < ActionController::Base
attr_reader :profile
def initialize(profile)
super
@a = url_for(:controller => 'profiles', :action => 'view', :profile_url => 'dd')
@a
@profile = profile
end
end
How to make the url_for work?
i tried to extend the ActionController::Base and the ActionView::Base and i cant :s
Hello there,
So my question is how to implement cancel/interrupt feature into all (I mean ALL) thread workers in your application in best and most elegant way?
It's not important if it's an HttpWebRequest, IO operation or calculation. User should have an possibility to cancel every action/thread at any moment.
We are using C#.net & use access database code for import of text file specification into access table
is there any access database limit for this action, as we may have records 5 lac (500,000) ,will this process work for huge records??
If No then how can we handle huge records insertion in access database for same ?
Thanks
Hi,
I'm a jquery newbie - wanted to ask what might be the best strategy for achieving what I am after as I think it uses a mix of jquery functions :
If list of items exceeds 5 items a 'more' link appears which when toggled will reveal the rest of the items. If items list is 5 or less no 'more' link is shown. Hide button also at bottom of long full revealed list. (perhaps this is toggle+pagination?)
And then also that this can be used in multiple instances, as it is for multiple category menu's.(to be used in typical indexhibit websites structure like http://mikeyburton.com/)
link 1
link 2
link 3
link 4
link 5
link 6
link 7
link 8
more
Any help or links greatly appreciated.
why defined extension method with UrlHelper don't added in Url.EXTENSIONMETHOD when i want to use it in controller! but i have access to it in view?
public static string Home(this UrlHelper helper)
{
return helper.RouteUrl("ABC", new { controller = "ABC", Action = "Default" });
}
i haven't access:
public ActionResult Default()
{
return Redirect(Url.Home());
}
i have access in view:
<a href="<%=Url.Home() %>" title="Hello">Hello</a>
I'm just trying to figure out exactly what kind of script this is, and where I can find more info on implementing it. Not sure exactly what to call it. If you click on one of the speakers here, you can see it in action: http://www.howconference.com/speakers/
hey everyone, im having some troubles displaying the background image for a GUI interface in java. Here is what i have at the moment, and with current stage of code it shows default(gray) background.
import javax.swing.*;
import java.awt.event.*;
import java.util.Scanner;
import java.awt.*;
import java.io.File;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.IOException;
//////////////////////////////////
// 3nriched Games Presents: //
// MIPS The Mouse!! //
//////////////////////////////////
public class mipsMouseGUI extends JFrame implements ActionListener
{
private static String ThePDub = ("mouse"); //the password
JPasswordField pass;
JPanel panel;
JButton btnEnter;
JLabel lblpdub;
public mipsMouseGUI()
{
BufferedImage image = null;
try
{
//attempts to read picture from the folder
image = ImageIO.read(getClass().getResource("/mousepics/mousepic.png"));
}
catch (IOException e)
{
//catches exceptions
e.printStackTrace();
}
ImagePanel panel = new ImagePanel(new ImageIcon("/mousepics/neonglowOnwill.png").getImage());
setIconImage(image);
//sets icon picture
setTitle("Mips The Mouse Login");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
pass = new JPasswordField(5); //sets password length to 5
pass.setEchoChar('@'); //hide characters as @ symbol
pass.addActionListener(this); //adds action listener
add(panel); //adds panel to frame
btnEnter = new JButton("Enter"); //creates a button
btnEnter.addActionListener(this);// Register the action listener.
lblpdub = new JLabel(" Your Password: "); // label that says enter password
panel.add(lblpdub, BorderLayout.CENTER);// adds label and inputbox
panel.add(pass, BorderLayout.CENTER); // to panel and sets location
panel.add(btnEnter, BorderLayout.CENTER); //adds button to panel
pack(); // packs controls and
setLocationRelativeTo(null); // Implicit "this" if inside JFrame constructor.
setVisible(true);// makes them visible (duh)
}
public void actionPerformed(ActionEvent a)
{
Object source = a.getSource();
//char array that holds password
char[] passy = pass.getPassword();
//characters array to string
String p = new String(passy);
//determines if user entered correct password
if(p.equals(ThePDub))
{
JOptionPane.showMessageDialog(null, "Welcome beta user: USERNAME.");
}
else
JOptionPane.showMessageDialog(null, "You have enter an incorrect password. Please try again.");
}
public class ImagePanel extends JPanel
{
private BufferedImage img;
public ImagePanel(String img)
{
this(new ImageIcon(img).getImage());
}
public ImagePanel(Image img)
{
Dimension size = new Dimension(img.getWidth(null), img.getHeight(null));
}
public void paintComponent(Graphics g)
{
g.drawImage(img, 0, 0, null);
}
}
}
I've been trying to do SEO friendly urls, and managed to get it work, but when I call index action on blogs, I get a weird "undefined method `parameterize' for nil:NilClass." The method works when using show method.
def to_s
title
end
def to_param
"#{id}-#{to_s.parameterize}"
end
I'm writing an application that sends files over network, I want to develop a custom protocol to not limit myself in term on feature richness (http wouldn't be appropriate, the nearest thing is the bittorrent protocol maybe).
I've tried with twisted, I've built a good app but there's a bug that makes my GUI blocking, so I've to switch to another framework/strategy.
What do you suggest? Using raw sockets and using gtk mainloop (there are select-like functions in the toolkit) is too much difficult?
It's viable running two mainloops in different threads?
Asking for suggestions
I want to do something like this
$.get('/Controller/Action/', { model : null }, function(data) {});
Unfortunatelly it doesn't work. In server side the value of the model is {object}.
How do I get null?
Hi Guys,
I have data which sits outside an iframe with a script on the outside as well. When a user performs an action - I want this ata to be sent "inside" the iframe.
I have having a bit trouble achieving this and was wondering whether its possible and if it is, how I can do it ?
Thx
Is there a way of doing this:
protected void SubscribeToEvent<TEvent, TPayload>(Action<TPayload> a_action)
where TEvent : CompositePresentationEvent<TPayload>
{
TEvent newEvent = _eventAggregator.GetEvent<TEvent>();
SubscriptionToken eventToken = newEvent.Subscribe(a_action);
_lstEventSubscriptions.Add(new KeyValuePair<EventBase, SubscriptionToken>(newEvent, eventToken));
}
without requiring the user to specify a TPayload parameter?
I want the validator for password text input.
At least one Upper case letter
At least one numeric character
At least one special character such as @, #, $, etc.
should be there in password how can i give it in action script or mxml.please help me.
Thanks.
I want to change a string which start 'a' and end 'n'.
For example: "action" I want to replace 'ctio' and all starting 'a' and finishing 'n' with ''.
How can do it?
For our .net 3.5 web project, what are the files which needs to be included under VSS 6.0? We have a distributed team of three vendors working on separate modules of our .net portal and all of them maintain their own setup and during release they send across the final build. No surprises that this has caused much headache and we have decided that we will keep this environment under our control and checkout the files when required. This is a multi-part questionnaire and to clear some basics first, we would like to know which are the important files to be kept under VSS6.0.
Yes we know VSS 6.0 is outdated but we are playing a catchup game and till we move either to TFS or Subversion( atleast six months down the line) we need a VSS strategy.
TIA
Hello every body:
We are trying to develop an application that send messages to a service, but we only have send message between two applications. We are developing in Delphi 7, Windows XP.
We need the service send back a message to the application, depending on the result of the action that the application sent to do to the service.
I am sorry about my english...
Thanks.
formbuild's start_with_layout generates this code
<form action="link" method="post"><table>
how do i add id to it? i wanna add some js things that adds elements
I have a column in my DB that is set with Identity(1,1) and I can't get hibernate annotations to work for it. I get errors when I try to create a new record.
In my entity I have the following.
@GeneratedValue(strategy=GenerationType.IDENTITY, generator="native")
@Column(name="SeqNo", unique=true, nullable=false)
BigDecimal seqNo;
But when I try to add a new record I get the following error.
Cannot insert explicit value for identity column in table 'MemberSelectedOptions' when IDENTITY_INSERT is set to OFF. I don't want to set IDENTIY_INSERT to ON because I want the identity column in the db to manage the values.
The SQL that is run is the following; where you can clearly see the insert.
insert into dbo.MemberSelectedOptions
(OptionStatusCd,
EffectiveDate,
TermDate,
SelectionStatusDate,
SysLstUpdtUserId,
SysLstTrxDtm,
SourceApplication,
GroupId,
MemberId,
OptionId,
SeqNo)
values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
What am I missing?
Normally I would us
<form target="_blank">
But looking through
http://www.w3schools.com/tags/tag_form.asp
I notice the target attribute is deprecated.
So what is the correct XHTML compliant way to perform such an action?
I have this textbox I use to capture keyboard shortcuts for a preferences config. I use a low-level keyboard hook to capture keys and also prevent them from taking action, e.g. the Windows key, but the Alt key still comes through and makes my textbox lose focus.
How can I block the Alt key, so the focus is kept unaltered at my textbox?
In the project that I'm working on, we are using SVN with 'Stable Trunk' strategy. What that means is that for each bug that is found, QA opens a bug ticket and assigns it to a developer. Then, a developer fixes that bug and checks it in a branch (off trunk, let's call this the bug branch) and that branch will only contain fixes for that particular bug ticket
When we decided to do a release, for each bug fixes that we want to release to the customer, a developer will merge all the fixes from several bug branch to trunk and proceed with the normal QA cycle.
The problem is that we use trunk as the codebase for our CI job (Hudson, specifically), and therefore, for all commits to the bug branch, it will miss the daily build until it gets merged to trunk when we decided to release the new version of the software. Obviously, that defeats the purpose of having CI.
What is the proper way to fix this issue?
I know that I can assign an onclick action to <input type="button"-style buttons. But is it possible to let it behave like an <a> without using JavaScript? I ask because I'm in a situation where technically I'm better off using <a>'s, but buttons look nicer.