SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem in using JQuery load functions in IE (works fine on chrome, firefox etc..)

    This script working great on FireFox and Chrome
    but on IE it loads the pages without sending the parameters

    Code JavaScript:
    	$(document).ready(function() {
    			$(document).ready(function() {
    		$("#SearchResult").load("ajax_Search.php", { fname: "", lname:"" });
     
    		  $("#changeForm").click(function () {
    			$("#SearchForms").load("ajax_searchForms.php", { form: "advanced" });
    			return true;
    		});
     
    		$("#sort_dropdown").live("click", function(event){						
    			$("#sort_dropdown").change(function () {
    				var values = $("#sort_dropdown").val();
    				$("#SearchResult").load("ajax_Search.php", {  fname: "", lname:"", sort: values });
    			});
    		});
    	});

  2. #2
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found the solution and I don't understand why it solved the problem...
    anyway when i'm printing on the AjaxSearch.php newline "<br />"
    on the beggining on the file it's working ...

  3. #3
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,712
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    The immediate problem that you have there is that you are double-nesting the document ready parts.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  4. #4
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it happaned only when I copied the code here.. im not double nesting in in the my code


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •