Jump to content

lindell

Members
  • Posts

    2
  • Joined

  • Last visited

About lindell

  • Birthday 06/29/1988

Contact Methods

  • Website URL
    http://www.sagaon.se

Profile Information

  • Location
    Sweden

lindell's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. No i'm using ASP. I tried to use Javascript which called for an ASP function, this didn't work. <!-- #include file="connect.asp" --><%function databas()call baseopen(connect)SQL = "Select namn from namntips order by rand() Limit 1"set recset = connect.execute(SQL)end function%><script type=text/JavaScript><!--function namntips(){<%call databas()%>alert('<%=recset("namn")%>');}//--></SCRIPT><a href="java script: namntips()">Namntips</a>
  2. Hi, i want to do a function which gets a random name from my MySQL database and then delivers it in a javascript alertbox. If i got this right, i have to use AJAX or something like that, and I REALLY ###### at AJAX, so now i wonder if you can help me with this small function?Sorry for my bad english.Thanks!
×
×
  • Create New...