#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    3
    Rep Power
    0

    Problem when link .js file


    I am developing a social networking site.. and implementing chat function. it worked perfectly when tested outside, but when i integrated with my site page, it causes a css class disable.
    i am putting
    Code:
    <script src="jquery.js"> </script>
    link at end of page, b4 < /body tag.
    following is the code:
    Code:
    <a href="javascript:void(0)" <?php echo 'onclick="javascript:chatBoxOf("'. $cfObject->fullName() . '")"' ?>  data-status="<?php echo $dataStat;?>"><?php echo $cfObject->fullName();?></a>
    Here in this code : data-status attribute losts its effect when i put above script tag..
    what could be the reason? what is the solution.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    3
    Rep Power
    0
    someone please reply.. its urgent
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    3
    Rep Power
    0

    got the solution


    Got the solution. I am replying to my own problem so that other users can also get the soluiton for the same problem.
    i put the js file link in between the code (exactly above the requirement). and also put that data-satus attribute at the end of attributes list.
    this solved the problem.

    Comments on this post

    • MrFujin agrees : have some points for posting the result/solution

IMN logo majestic logo threadwatch logo seochat tools logo