473,387 Members | 1,453 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,387 software developers and data experts.

Safari updating select box with ajax - *black box* over new values

when using safari and updating a select box with ajax, the new value appears with a black box across the new value. If I select the value then the blackbox goes away and I can see the value

BEFORE Ajax:




AFTER Ajax:

Aug 30 '07 #1
2 1402
iam_clint
1,208 Expert 1GB
can i see the portion of the javascript where you add the item to the select box.
Aug 30 '07 #2
Expand|Select|Wrap|Line Numbers
  1. function AddNewPrinter(){
  2.     // Check to see if the default button was check
  3.     if(document.update_form.default_printer_new.checked)
  4.         var params = "add_new_printer_flag=1&new_selected_printer="+document.update_form.new_printer_list.value+"&lab_id="+document.update_form.lab_list.value+"&default_newprinter=on&printer_count="+document.update_form.printerCountHidden.value;
  5.     else
  6.         var params = "add_new_printer_flag=1&new_selected_printer="+document.update_form.new_printer_list.value+"&lab_id="+document.update_form.lab_list.value+"&default_newprinter=off&printer_count="+document.update_form.printerCountHidden.value;
  7.  
  8.     // Add printer based on variables above (default or not)
  9.     new Ajax.Updater({success: 'ErrorMessage'}, './labs/',  {method: 'get', parameters: params, asynchronous: true});
  10.  
  11.     // Assign printer_count to current_printer_count
  12.     var current_printer_count = document.update_form.printerCountHidden.value;
  13.  
  14.     // Check if first printer added
  15.     if(current_printer_count == 0)
  16.         // Create Select box of printers for lab
  17.         UpdatePrinterList('Printers','new');
  18.     else
  19.         // Update select box of printers for lab
  20.         UpdatePrinterList('printer_list','');
  21.  
  22.     // Erase the Add Another Printer
  23.     EraseData('additionalPrinter');
  24.  
  25.     // Update printer_count
  26.     ShowPrinterCount();
  27.  
  28.     // Check to see if this is the first printer added
  29.     if(parseInt(current_printer_count) == 0)
  30.         // Display Make Default button
  31.         ShowMakeDefault('');
  32.  
  33.     // Check to see if this is not the first printer added
  34.     if(current_printer_count > 0)
  35.         // Make the delete printer button enabled
  36.         document.update_form.delete_printer.disabled = false;
  37. }
  38.  
Aug 31 '07 #3

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

Similar topics

5
by: Nick Calladine | last post by:
Learning : Loop to list all dropdown box values on a form Can some one point me in the right direction : I have a form which I want to loop through I basically want to get all the selected...
3
by: Tibor Odehnal | last post by:
Hello, i have a crazy bug on one Machine. My Application is running fine on 6 Workstations (XP an W2K) On a new one (XP) i will have a black box as cursor if i want to resize a listview...
3
by: soga | last post by:
Dear all: I'm looking for one tool that can deal with black box testing and it is opensource. So, what choices I can make???
0
by: shandy.b | last post by:
Hi all. Here's the problem: I've got a black box and a bunch of particles in an environment. The particles go into the black box, follow a path, and pop out the end after some processing. ...
2
by: Eric Layman | last post by:
Hi, I have a radio button and a combo box. Upon changing a value for radio button, the combo box values will be dynamically updated. I have an idea on how to go abt doing it but Im stuck...
33
by: buss123 | last post by:
Hi all, combo box script code was working in IE perfectly with all modes but OnChange event was not working in FireFox(editable mode, if we select valuese that combo box values r...
5
by: naitik | last post by:
when dynamically binding select box it displays black box same code working fine in IE & firefox........!
4
by: phpmel | last post by:
Hi again, I have a select drop down box.It has over 400 options in it. I wanted to know if there was a way that the user could type in the box and bring up the value or values that match or come...
1
by: dekk | last post by:
Hi, I have a main form ("frm_TimeParent") and a subform ("frm_TimeChild"). Issue: How do I refresh the combo box values in the subform once the contract has been selected in the main form? ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.