DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: problems with FireFox, IE working

  1. #1
    Join Date
    Feb 2009
    Posts
    1

    Question problems with FireFox, IE working

    This code works in IE but not Firefox...Any ideas? I'm using the protocol library.
    Code:
    function getResults()
    	{
        document.getElementById('results').innerHTML="<img src='images/ajax-loader.gif' width='100' height='100'/>"
        var lname = document.getElementById("LAST_NAME").value;
        var fname = document.getElementById("FIRST_NAME").value;
        var email = document.getElementById("EMAILADDRESS").value;
        var val = 0;
        for( i = 0; i < document.DirSearch.SCHOOL.length; i++ )
               {
        if( document.DirSearch.SCHOOL[i].checked == true )
            var school = document.DirSearch.SCHOOL[i].value;
         }
    		var url = '/servlet/DirSearch';
      
    		var pars = "LAST_NAME=" + lname + "&FIRST_NAME=" + fname + "&EMAILADDRESS=" + email + "&SCHOOL=" + school;
    		var myAjax = new Ajax.Updater(
    			'Results', 
    			url, 
    			{
    				method: 'get', 
    				parameters: pars
    			});
    		
    	}
    Last edited by Hack; 02-06-2009 at 09:54 AM. Reason: Added Code Tags

  2. #2
    Join Date
    Mar 2007
    Location
    Bangalore, India
    Posts
    247
    Err... what is document.DirSearch here? What is Ajax.Updater? and where is the HTML markup? What happens on firefox?

Similar Threads

  1. Replies: 3
    Last Post: 01-27-2009, 05:24 PM
  2. Xpath queries not working in some cases
    By musicgold in forum XML
    Replies: 3
    Last Post: 01-13-2009, 12:33 PM
  3. Replies: 1
    Last Post: 08-20-2007, 10:29 PM
  4. focus() & select() not working
    By Craig in forum Web
    Replies: 7
    Last Post: 02-08-2001, 03:16 PM
  5. VSS:sharing same working folder without multiple checkouts
    By rahul phatak rahulphatak in forum ASP.NET
    Replies: 0
    Last Post: 06-01-2000, 05:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center