Hi Dormilich,
You are right.so silli mistake, I made now I realize!
No wonder you are genius!
I was passing element rather than element name.
Also there was issue with parameter name I guess.source & destination are standard names. cant be used like that I guess so.
Your JS knowledge is awesome.
Some questions now :
1.May I know source of "source instanceof HTMLDivElement" terms where...
User Profile
Collapse
-
-
P.S.issue is that the function is not called in firefox i tried to put alert in that function
which is called in IE/Chrome/Opera but not in FFLeave a comment:
-
Hi Dormilich,
Thanks for reply.
Function already use the eval.
which is as copied below.
main page calls this function which is there in script.js
...Code:function ReplaceDivs(source,destination) { var p,q; p=eval('document.getElementById("'+ source +'")'); q=eval('document.getElementById("'+ destination+'")'); destination.innerHTML=source.innerHTML;Leave a comment:
-
InnerHTML not working in firefox?
see this page.
http://www.mochinews.c om/Guest/Guesthome.aspx
i have written a function replacedivs() to swap div content
which works fine in opera/IE/Chrome
Only fails in Firefox.
Any comments? -
simplest way
simplest way i would do is
i will registerclient script block like
...Code:str="function add() { "; str+="var TB1=document.getelementbyid('"+ textbox1.ClientID +"').value;"; str+="var TB2=document.getelementbyid('"+ textbox2.ClientID +"').value; "; str+="var LB1=document.getelementbyid('"+ label1.ClientID +"'); ";Leave a comment:
No activity results to display
Show More
Leave a comment: