User Profile

Collapse

Profile Sidebar

Collapse
amitdotchauhan
amitdotchauhan
Last Activity: Mar 8 '13, 07:34 AM
Joined: Jan 23 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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...
    See more | Go to post
    Last edited by amitdotchauhan; Mar 3 '10, 06:57 PM. Reason: use [code] for putting code

    Leave a comment:


  • 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 FF
    See more | Go to post

    Leave 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;
    ...
    See more | Go to post
    Last edited by Dormilich; Mar 2 '10, 06:42 AM. Reason: Please use [code] tags when posting code

    Leave a comment:


  • amitdotchauhan
    started a topic InnerHTML not working in firefox?

    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?
    See more | Go to post

  • amitdotchauhan
    replied to Combine Javascript and ASP.Net
    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 +"'); ";
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...