SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    May 2006
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I've got problem in ajax javascript

    sorry to post in this section, I cant locate where to post ajax problem. I search all over the forum about this problem and I cant see an answer.. here is my problem


    I've got a form where where there is a selectbox to choose a type of form if its a textbox or an variable textinput , if you choose the textbox on the selectbox it will be call by ajax code and show the output on the same page under the selectbox, take note the new textbox will also be part of the form when submitted it, there is no problem on my ajax where to call a output of the selectbox.... when you submit it in IE it includes the output that I call on the ajax but in firefox it didnt work, is there any problem in my ajax code or this type of submission are not allowed in firefox, click this link to see the example

    thanks
    PHP/ASP Developer
    Web designer, Artist Illustrator

  2. #2
    SitePoint Guru D-flyer's Avatar
    Join Date
    Jan 2001
    Location
    Near a computer
    Posts
    782
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe just a simple
    Code:
    <div id="Hint"></div>

  3. #3
    SitePoint Member
    Join Date
    May 2006
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by D-flyer View Post
    Maybe just a simple
    Code:
    <div id="Hint"></div>
    thanks for the reply, but what do you mean by just a simple for that code?? thanks again
    PHP/ASP Developer
    Web designer, Artist Illustrator

  4. #4
    SitePoint Guru D-flyer's Avatar
    Join Date
    Jan 2001
    Location
    Near a computer
    Posts
    782
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, I saw in your AJAX part of your src code
    Code:
    document.getElementById("Hint").innerHTML=xmlHttp.responseText;
    And in your html part I can't see a div or span called Hint so maybe the response isn't shown in firefox.

    so maybe just adding <div id=''Hint"></div> in your html src code would be sufficient

  5. #5
    SitePoint Member
    Join Date
    May 2006
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by D-flyer View Post
    Oh, I saw in your AJAX part of your src code
    Code:
    document.getElementById("Hint").innerHTML=xmlHttp.responseText;
    And in your html part I can't see a div or span called Hint so maybe the response isn't shown in firefox.

    so maybe just adding <div id=''Hint"></div> in your html src code would be sufficient
    nope the Hint is all there just browse below the table
    PHP/ASP Developer
    Web designer, Artist Illustrator


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
  •