Hi i am developing an app for my QA department. I need to programically get how many phone numbers are there in the entire address book. No user input. Just click a button and then get how many phonenumbers are there in the ENTIRE addressbook.
Please email me at [email protected]
I currently have a PHP form that uses AJAX to connect to MySQL and display records matching a user's selection (http://stackoverflow.com/questions/2593317/ajax-display-mysql-data-with-value-from-multiple-select-boxes)
As well as displaying the data, I also place an 'Edit' button next to each result which displays a form where the data can be edited. My problem is editing unique records since currently I only use the selected values for 'name' and 'age' to find the record. If two (or more) records share the same name and age, I am only able to edit the first result.
I have a system where a listview is populated.
I want to be able to select one of these files and press an edit button, which will then take the selected data into another form.
I am trying to find a way to identify the selected item in the listview and take it to the next form.
How can i achieve this?
What code would I need to show?
Thanks
This is, I suppose, a very simple question for any Java programmer.
My question is as simple as this:
When the user clicks a button, I want to show a popup form that should have at least two JTextFields and two JLabels, so using JOptionPane.showInputDialog is not a possibility.
Thanks.
Hi,
I am using modal dialog to validate server credentials.
After clicking on submit button it pops up new window.
Further i want call a servel. But its get called in the same pop up window.
I want to call it in the parent window by closing the pop up window.
How to achieve this?
I have used the jQuery dialog code so that I can prompt my user. Is there a way to catch if the user clicks the close button (the 'X' in the top right? Thanks.
This is a part of my java code, in this code I have written that when I click the button the value of JProgressBar should becomes 0 and stringPainted(); becomes true, but "string painted" is not visible when I click the button, please help.
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JProgressBar;
public class R implements ActionListener {
static int y;
CustomProgressBar b = new CustomProgressBar();
public static void main(String arg[]) throws Exception {
new R();
}
public R() throws Exception {
JFrame f = new JFrame();
JButton btn = new JButton("Click");
f.setExtendedState(JFrame.MAXIMIZED_BOTH);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setUndecorated(true);
f.setLayout(new FlowLayout());
btn.addActionListener(this);
f.add(b);
f.add(btn);
f.setVisible(true);
}
class CustomProgressBar extends JProgressBar{
private static final long serialVersionUID = 1L;
private boolean isStringToBePainted = false;
public CustomProgressBar() {
super(JProgressBar.VERTICAL,0,100);
}
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
if(isStringToBePainted ) {
Dimension size = CustomProgressBar.this.getSize();
if( CustomProgressBar.this.getPercentComplete()<0.9 )
R.y = (int)( size.height - size.height * CustomProgressBar.this.getPercentComplete() );
String text = getString();
g.setColor(Color.BLACK );
g.drawString(text, 0, R.y);
}
}
@Override
public void setStringPainted(boolean b) {
isStringToBePainted=b;
}
}
@Override
public void actionPerformed(ActionEvent e) {
b.setValue(0);
b.setStringPainted(true);
}
}
I want to display a website embedded in my own site and modify the DOM (e.g. change a button's color/size), similar to what Firebug is capable of.
I'm aware of the security issues that arise - my plan is to use this approach to do live website usability testing (A/B style).
I'm not limited to any specific RIA framework (yet would prefer Flex) - but it has to work without installing anything (so no AIR).
Cheers :-)
Hi All,
The autocomplete for a textbox is working when i am using the keyboard but it is not working for the button.[Userdefine keyboard for touch screen].
Geetha.
Is there any way to add it like that?
Thanks.
UDPATE : like this :
http://img220.imageshack.us/img220/4371/35373248.gif
But insted of OnChange, I want on button on click.
I am using very simple code where I have a update panel with some panels inside and a submit button.
On submit, i hide one of the panels using this code:
panel.Style.Add("display", "none");
I am also using a UpdateProgress which works great in all but this case. When i set the display to none using this code, the UpdateProgress template does not disappear! remove the line, all is well ....
No idea why...
Question How can I change <s:submit> to <s:a> in struts tag?
I want to send parameters to next page(action) by post (not get)
<s:form action="products" method="post" theme="simple">
<s:hidden name="code" value="%{code}"/>
<s:submit type="button" method="selectSale" value="see"/>
</s:form>
I have a UITabBarControllerDelegate method that determines the title of the UITabBarItem and does something accordingly. This works well for items in my UITabBar but when I click on the More button the rest of my UITabBarItems are in a UITableView. How can I determine the title in the More section?
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController
{
if ([self.tabBarController.selectedViewController.title isEqualToString:@"All"]) {
//do something
}
}
Hi All,
I'm trying to code a split panel, Left and right. Each will have a button which you can click on and it will toggle that panel, while expanding the other.
I am clueless as to where to start off? Is there an example that already does this?
Can someone help me out.
Thanks
Hi All,
In my project i using LibXml to parse data, when i select a row in first controller i will take to next conttroller where i will get data using libxml if i click on the back button while loading the page i am getting exception. if i click afetr loading is completed it is working fine ca any one help me.
the exception is showing here
(void)connection:(NSURLConnection *)connection
didReceiveData:(NSData *)data {
// Process the downloaded chunk of data.
xmlParseChunk(_xmlParserContext, (const char *)[data bytes], [data length], 0);
}
Thank You
hi
In my page one asp.net Textbox to enter the date.
I need to validate the textbox value ( dd-mmm-yyyy format) should be less than or equal to Current Date using Javascript.
validation using javascript when press on enter button.
hi guys! can you help me with these codes: http://pastie.org/908345, its two sortable lists and I need to get the serialize parameter of those lists to be passed when I click the submit button but I always get "(an empty string)" on "console.log". I'm using jquery-ui for this functionality. thanks!
HTML has an input button type to reset all fields in a form to their initial state in one step: <input type="reset" ... />.
Is there a similar simple way to reset all form fields of an aspx page from code-behind? Or is it necessary to reset all controls one by one with TextBox1.Text=string.Empty, TextBox2.Text=string.Empty, etc. ?
Thanks in advance!
App is like this:
Login View (with Navigation Bar - right button)
Welcome View (With navigation Bar)
Home Page- WITH TabBar and Navigation Bar Title
Detail View - With Only Navigation Bar
Screen will run from 1 to 4 and user can navigate between 3 and 4.
I am confused which Architecture I will use: NavigationBased template OR TabBar based template.
Please suggest.
I wish to get the tweeter usename of a visitor to my site.
I do not wish to post statuses or access any other information.
I'd be happy to use OAuth, possibly with a 'Sign in with Twitter' button, but this then takes the user to a page which requests authorization for the application, that I wish to avoid.
Is there a way to get the username without authorization?
Thanks,
Daniel
Ok, well on my site
http://www.easyasmp3.com/
for some reason the esnips (first) results arn't playing in internet explorer on the results page. When you click the little play button it's not doing anything. Works fine in firefox.
Could anyone help
Thanks!
I am using an image instead of a submit button for search option and use onclick events to load the results using ajax in php.Now I need to load results by hit enter also.Is their any ways to update my application without changing the image.
Thanks
Hi.In my WinApp I am using DataGridView in tab control.When I am adding to table in another tab ,it does not update datagridview. After closing and re-opening app it shows new value.I connected my table with wizard to datagridview. And in my Button action after adding new value to data base I used
this.BindingContext[this.dataGridView1.DataSource].EndCurrentEdit();
this.dataGridView1.Refresh();
this.dataGridView1.Parent.Refresh();
but it is not working.I am using mysql.