Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem with javascript functions

    Hi to all

    I have a problem with javascript functions. Please note:

    I have tow pages: index.html and ajax.php.
    I have my javascript function in page ajax.php and also in same page
    the function is calling. In index.html page the following code is insertd:

    <script language="javascript" src="ajax.php?id=123456789"></script>

    With this configuration the tasks are completely fulfilled in Firefox and IE 8.
    But in IE 6 and IE 7, the function most often doesn't work.
    Beside, If the function name had been placed in page index.html, there is not any problem.

    Thanks for your valuable contributions ...

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,864
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    language="javascript"
    Have a try after changing the above deprecated attribute with type="text/javascript"
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    replay

    Thank you abduraooft
    I did your Suggestion but it Could not solve the problem.

  • #4
    New Coder
    Join Date
    Jun 2010
    Location
    The Netherlands
    Posts
    53
    Thanks
    0
    Thanked 6 Times in 6 Posts
    <script language="javascript" src="your_file" type="text/javascript"></script>

    Tried that one?

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,864
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Quote Originally Posted by mor_mah View Post
    Thank you abduraooft
    I did your Suggestion but it Could not solve the problem.
    Then you need to show your complete code or a link to your page.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    Regular Coder
    Join Date
    Dec 2009
    Posts
    115
    Thanks
    2
    Thanked 10 Times in 10 Posts
    Quote Originally Posted by Candan View Post
    <script language="javascript" src="your_file" type="text/javascript"></script>

    Tried that one?
    The language attribute is deprecated. It's been deprecated for years: you're not supposed to use it at all, ever.


  •  

    Posting Permissions

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