473,324 Members | 2,254 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,324 software developers and data experts.

Firefox Issue

Usually all issues are with IE but i ran into one with ferefox today that i can not figure out.


a list of images that have delete boxes next to them and then a delete button at the bottom.Once you click the delete button it figures out what boxes you have checked and then sends an Ajax call delete the records. Once that is done another Ajax call is fired to repopulate the div with the remaining images.

Say i check the first 2 images then hit delete. The images are deleted and the div repopulates with the remaining images. If i then decide I want to delete one more i click on that check box and hit delete. In IE it will delete the checked image and i am happy. In firefox it uses the old form id numbers of the images that i already deleted and if the second time i chose only one image it still sends the 2 old image id numbers. It is like frefox is not bothering to run the javascript again to get the values and figures it knows it.

Below is me code. Thanks for your help.

Expand|Select|Wrap|Line Numbers
  1. function deleteimgs(ListingID){
  2. var del_idadditonal_images = '';
  3. for (i=0; i<imageform.del_idadditonal_images.length; i++) {
  4.     if (imageform.del_idadditonal_images[i].checked) {
  5.            if (del_idadditonal_images != ''){
  6.             del_idadditonal_images = del_idadditonal_images + ",";
  7.         }
  8.             del_idadditonal_images = del_idadditonal_images +  imageform.del_idadditonal_images[i].value;
  9.     }
  10. }
  11.  
  12. if (del_idadditonal_images == ''){
  13.     alert('You must select at least one image to delete.');
  14.     return false;
  15. }
  16.  
  17.  
  18. if (confirm('Are you sure you would like to delete the selected images?')){
  19.         var url="../ajax/image_functions.asp";
  20.             url=url+"?action=deleteimg";
  21.             url=url+"&idadditonal_images="+del_idadditonal_images;
  22.  
  23.             new Ajax(url, {
  24.                 method: 'get',
  25.                     onComplete: function(){
  26.                             del_idadditonal_images = null;
  27.                             reloadimages(ListingID);
  28.                     }
  29.                 }).request();
  30. }
  31. }
Mar 15 '08 #1
1 997
acoder
16,027 Expert Mod 8TB
It seems like a caching issue. If you alert the del_id...images variable, does it show the new values or the old ones?
Mar 17 '08 #2

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

Similar topics

2
by: matthewmacchia | last post by:
I believe this is a Firefox bug but I was hoping someone found a workaround. I have implemented drag and drop functionality, but if I try to drag an element from a div that happens to have a div...
3
by: David Hayes | last post by:
I've made tooltips work in Firefox*, but tooltip doesn't appear at the specified location until the SECOND time that the user passes the mouse over the location with the mouseover event. What I...
6
by: michaelzap | last post by:
I can't seem to remove some extra margin/padding from my design on this site: http://www.kyowa-usa.com/ IE displays it properly (no space between the menus and other elements and the outer...
87
by: expertware | last post by:
Dear friends, My name is Pamela, I know little about CSS, but I would like to ask a question I have an image on a web page within a css layer: <DIV ID=MyLayer STYLE = "position:...
14
by: expertware | last post by:
Ok! to avoid confusion I will start a new argument. Thanks!! FIREFOX 1.0.7 AND IE6 viewed through DATATIME: a summary REPORT ===============================================================...
45
by: Pat | last post by:
its seems asp.net validation doesn't fire when using FireFox? Tested a page and it doesn't fire. It seems the javascript doesn't fire Any ideas?
12
by: Brad | last post by:
Does anyone have any other solutions to the Firefox rendering problems with ASP.NET? I've tried the <browsercaps> web.config trick. It didn't work. Am I overlooking something else? Thanks!
9
by: =?Utf-8?B?Sm9obiBCYWlsZXk=?= | last post by:
I have a ASP .Net page that allows moving around items on the page through javascript. This page works fine in IE. In FireFox however, I have found that if the page is using XHTML 1.0...
7
by: Carlos Mendonça | last post by:
Has anyone managed to get ClickOnce to work with Firefox? It seems to me that it still has the same issues VS 2K5 had. I appreciate any comments or tips.
3
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.