Click here to Skip to main content
15,891,431 members
Home / Discussions / Web Development
   

Web Development

 
QuestionQuick Question about spacing... Pin
Dalek Dave14-Apr-10 8:19
professionalDalek Dave14-Apr-10 8:19 
AnswerRe: Quick Question about spacing... Pin
Not Active14-Apr-10 8:36
mentorNot Active14-Apr-10 8:36 
GeneralRe: Quick Question about spacing... Pin
Dalek Dave14-Apr-10 8:41
professionalDalek Dave14-Apr-10 8:41 
AnswerRe: Quick Question about spacing... Pin
daveyerwin14-Apr-10 8:36
daveyerwin14-Apr-10 8:36 
GeneralRe: Quick Question about spacing... Pin
Dalek Dave14-Apr-10 8:40
professionalDalek Dave14-Apr-10 8:40 
AnswerRe: Quick Question about spacing... Pin
User 171649214-Apr-10 8:55
professionalUser 171649214-Apr-10 8:55 
QuestionAnchor onclick attribute Pin
salmonraju14-Apr-10 2:54
salmonraju14-Apr-10 2:54 
AnswerRe: Anchor onclick attribute Pin
daveyerwin14-Apr-10 4:08
daveyerwin14-Apr-10 4:08 
salmonraju wrote:
link.onclik=function() { updateName(name);}


OK the above assigns the Function to the onclick .

Now this next part assigns the results of
updateName('abc') (which is a function call)
to the onclick , you don't want that.

salmonraju wrote:
link.onclick=updateName('abc');


I can't do anything with the code you presented so
I will give this simple example ...

<table>
 <tr name="row">
  <td>
   <a name="a1">a1</a>
  <td/>
  <td> 
   <a name="a2">a2</a>
  <td/>
 </tr>
</table>
<script>
as = document.getElementsByTagName("A")

as[0].href = '#';
as[0].innerHTML = "HIYAS";
as[0].onclick = Update;
as[0].aname = "Davey"

as[1].href = '#';
as[1].innerHTML = "Whassup";
as[1].onclick = Update;
as[1].aname = "JONES"

function Update()
{
alert(this.aname);
}
</script>



Try that out and see if it works for you.
GeneralRe: Anchor onclick attribute Pin
Peace ON16-Apr-10 20:28
Peace ON16-Apr-10 20:28 
QuestionWeather.Com HTML Code: Add function to request and save (client-side) Zip Code and substitute for VAR is Weather.Com Script-Need Help Pin
bill bradley14-Apr-10 1:40
bill bradley14-Apr-10 1:40 
QuestionHow to make an automatic download web page ? Pin
Western_Star_Entertainment13-Apr-10 11:25
Western_Star_Entertainment13-Apr-10 11:25 
AnswerRe: How to make an automatic download web page ? Pin
Not Active13-Apr-10 12:24
mentorNot Active13-Apr-10 12:24 
GeneralRe: How to make an automatic download web page ? Pin
hb5213421415-Apr-10 3:39
hb5213421415-Apr-10 3:39 
GeneralRe: How to make an automatic download web page ? Pin
Not Active15-Apr-10 3:56
mentorNot Active15-Apr-10 3:56 
GeneralRe: How to make an automatic download web page ? Pin
hb5213421415-Apr-10 4:34
hb5213421415-Apr-10 4:34 
GeneralRe: How to make an automatic download web page ? Pin
Not Active15-Apr-10 5:02
mentorNot Active15-Apr-10 5:02 
AnswerRe: How to make an automatic download web page ? Pin
Jayapal Chandran5-May-10 21:58
Jayapal Chandran5-May-10 21:58 
Questionplz help Pin
shivee13-Apr-10 5:29
shivee13-Apr-10 5:29 
AnswerRe: plz help Pin
T M Gray14-Apr-10 11:35
T M Gray14-Apr-10 11:35 
QuestionGenerated proxy class not appearing in solution explorer Pin
mnemonic6913-Apr-10 1:25
mnemonic6913-Apr-10 1:25 
AnswerRe: Generated proxy class not appearing in solution explorer Pin
Martin Jarvis13-Apr-10 20:57
Martin Jarvis13-Apr-10 20:57 
GeneralRe: Generated proxy class not appearing in solution explorer Pin
mnemonic6913-Apr-10 22:08
mnemonic6913-Apr-10 22:08 
GeneralRe: Generated proxy class not appearing in solution explorer Pin
Martin Jarvis13-Apr-10 22:50
Martin Jarvis13-Apr-10 22:50 
QuestionBook recommendations on developing commercial Websites? Pin
fjparisIII11-Apr-10 10:34
fjparisIII11-Apr-10 10:34 
AnswerRe: Book recommendations on developing commercial Websites? Pin
Dalek Dave11-Apr-10 11:15
professionalDalek Dave11-Apr-10 11:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.