473,320 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Problem with working of button

SaiRockinGuy
Hi,
I am facing the problem with button click in ajax in firefox can anyone help me in this issue.
Feb 25 '09 #1
7 1205
acoder
16,027 Expert Mod 8TB
We could if you give more information, e.g. the code which causes the problem plus an explanation of it.
Feb 25 '09 #2
This is button tag that is used in jsp

Expand|Select|Wrap|Line Numbers
  1. <td class="testo" colspan="2"><input id="filtera" class="button_css"
  2.                     type="button" value="Filtra" />
i am calling this

Expand|Select|Wrap|Line Numbers
  1. $(document).ready(function(){ 
  2.          $("#filtera").click(function(){
  3. alert("Sample test for button");
  4.  
  5. });
Click event is working fine in ie but fails in firefox
Feb 25 '09 #3
i am using button tag to call this function:

Expand|Select|Wrap|Line Numbers
  1. <input id="filtera" class="button_css"    type="button" value="Filtra" />
  2.  
  3. $(document).ready(function(){ 
  4.          $("#filtera").click(function(){
  5. alert("Sample test for button");
  6. });
  7. });
The same snippet is working fine with ie but fails with firefox
Feb 25 '09 #4
acoder
16,027 Expert Mod 8TB
First of all, there's no Ajax involved here.

Secondly, you forgot to close the first function with })

PS. please use [code] tags when posting code.
Feb 25 '09 #5
acoder
16,027 Expert Mod 8TB
@SaiRockinGuy
This code works fine. Can you post the rest of the relevant code?
Feb 25 '09 #6
Expand|Select|Wrap|Line Numbers
  1. $.ajax({
  2.                         url : "SampleTester.action" ,
  3.             cache: false,
  4.             success : function ( ) {
  5.             alert(data);
  6.             }
Feb 25 '09 #7
acoder
16,027 Expert Mod 8TB
That's unrelated to your previous code. Which one doesn't work?

In any case, the code should be:
Expand|Select|Wrap|Line Numbers
  1. success : function (data) {
  2.             alert(data);
  3.             }
and don't forget to close the function.

Do you get any errors in Firefox?
Feb 25 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: amit.purohit | last post by:
hi, I have a very strange problem on my login Page. the Page was working fine a few days back, but now does not generate post back events for controls. this login page uses form based...
3
by: vinayak | last post by:
Hi I am displaying data in Datagrid in ASP.NET with Edit/Update functionality for each row. On the same page I have 2 Button controls which submits the request to server. These button controls...
5
by: comshiva | last post by:
Hi all, I have converted my existing ASP.NET project from 1.1 to 2.0 and i have found that everything works fine except the linkbutton control in my datagrid which throws an javascript error when...
8
by: koorb | last post by:
I am starting a program from a module with the Sub main procedure and I want it to display two forms for the program's interface, but when I run the program both forms just open and then program...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
0
by: anandv81 | last post by:
Hi, I encountered a strange problem while working on an application, the problem goes like this. I am generating a few textboxes at runtime at the server side and added to a placeholder, a...
0
by: riteshjain1982 | last post by:
Pagepostback.....strange problem Hi, I am at cient place and getting very strange problem with my asp.net application............when i call my web application from any desktop machine in lan...
5
by: Slim | last post by:
i have a simple page, with one button button1. when click it creates a new button button 2 and adds a event handler to it. but when button 2 is clicked nothing happens, why? Partial Class...
2
by: cty0000 | last post by:
Please anybody help me... I have some serious problem.. I'm doing to keep equpiment list(string).. In my code, there are 3 page which are having 4 equpiment ID (user control.) like this...
1
by: Linda Liu[MSFT] | last post by:
Hi Steve, I performed a test based on your description but didn't reproduce the problem on my side. In my test, I create a WinForm application project and add two Buttons on the form. The...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.