Help with getting this javascript to work?

Discussion in 'JavaScript' started by Airwalk Enterprise, Inc, Jul 27, 2010.

  1. #1
    Here it is...

    if (T.isConnected()) {
    currentUser = T.currentUser;
    screenName = currentUser.data('screen_name');
    name = currentUser.data('name');
    profileImage = currentUser.data('profile_image_url');
    friendCount = currentUser.data('followers_count');
    profileImageTag = "<img class='icon' src='" + profileImage + "'/>";
    $('#twitter-connect-placeholder').append("<div class='info'><div class='info-in'><form style='width:350px' class='info-in' method='post'><h1>Ask A Question</h1><input value='Type Your Question Here...' type='text' onclick='this.value='';this.onclick=null;'/><br/><input value='" + "<a target=\"_blank\" href=\"http://www.twitter.com/" + screenName + "'>" + name + "</a>" + "/></form></div></div>");
    }

    });

    </script>

    basically, the "'>" closes the input tag rather that my link tag like required...and it looks like this...http://www.airwalk-design.com/community/

    What I want is for the form to POST a custom url (which would be the users twitter address) - I don't care how it looks on the browser, as the twitter feed is detected automatically frmo the API, so this field will be ="hidden"
     
    Airwalk Enterprise, Inc, Jul 27, 2010 IP