Post by ranilwallace on Mar 16, 2016 21:31:26 GMT 10
Ok I'll check that later when i get near my computer thanks altair
Ranil, Lauve Tech
|
|
Post by Prezence on Mar 17, 2016 5:25:22 GMT 10
Think I found the answer: the function should be getElementById not getElementByid That said, debug your code using try catch and alerts/log errors. Or just go to devtools
Check out our website here. Check out AirBrowse here. Follow us on GitHub here.
|
|
Post by ranilwallace on Mar 17, 2016 22:18:29 GMT 10
I like the example altair gave. it works with text nodes but not just the div it self. Am wondering if its a bug. Hmm. I dont know. if anyone else would like to contribute feel free
Ranil, Lauve Tech
|
|
Post by altair on Mar 18, 2016 1:31:38 GMT 10
Thanks, but I don't understand your questions clearly. What do you want to do ? Currently, the image is a background image of a div with the text of url printed as the text node......
|
|
Post by ranilwallace on Mar 18, 2016 8:59:31 GMT 10
I want it to show up in a div sized 200px by 70px.. so the background image would cover that size. The text node is just to test if it works
Ranil, Lauve Tech
|
|
Post by Prezence on Mar 18, 2016 22:06:25 GMT 10
Last Edit: Mar 18, 2016 22:06:49 GMT 10 by Prezence
|
|
Post by ranilwallace on Mar 19, 2016 6:25:55 GMT 10
Yaay! It should work now! What was the problem??
Ranil, Lauve Tech
|
|
Post by ranilwallace on Mar 19, 2016 6:32:13 GMT 10
It works bingo! It looks like it was the background image part was the prob. Good. Now to other things!!!! Stay tuned
Ranil, Lauve Tech
|
|
Post by ranilwallace on Mar 19, 2016 7:35:16 GMT 10
It works in js fiddle but not locally
Ranil, Lauve Tech
|
|
Post by ranilwallace on Mar 19, 2016 12:08:45 GMT 10
Oh i think i know what the problem is.. The setting on jsfiddle starts the code when the page finishes initializing so thats what i need to do in my js code locally
Ranil, Lauve Tech
|
|