• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating image link

 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Am trying to get this image link eachtime when dynamic row is created .


how to create this image link element in javascript ?

thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You forgot to post your code.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
createElement and appendChild seems like the way to go.

Eric
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric Pascarello wrote:createElement and appendChild seems like the way to go.

Eric


Unless he's using a library. That's why we need the code. To know exactly how to guide him.
 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In html, the code is

when I click the ADD button, the textbox along with image link should be appended to the new row, to take new input..
javascript function is..With this code, the imagelink is appending to eachrow - but, refreshes the value of the textbox ,(the rows are adding,but it assigns the value for first row textbox only, thus refreshes)
Can I try something like this ?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you asking if you can try something like this? Did you try it? What happened?

Eric
 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried , with this code am creating only image with out the link.(anchor is not adding to the image)
Can you please tell me how to create an active image and make a call to the function with the newly entered values ....
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well you are not adding the href to the link, without the href, a link does not render as a link in most browsers.

Eric
 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, ... when I code like this,


the rows are adding, but the date field is refreshing always. Only the first row date field is affecting.The rest datefields are empty.
Which parameter has to send to the javascript function ::: NewCal('dte','ddmmmyyyy')" here ?

In html , the function is
 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry I forgot to write the function in HTML :::

NewCal('dte','ddmmmyyyy')
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic