Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts

    which is the best way to include files in home page

    hi ,

    i want to know if i am building home pages with 5 links or 5 forms.
    Now every link will have its corresponding html file with necessary JS

    I want to load them on homepage DIV using ajax.

    Now which is the best way to do.

    Should i code each page separately , chk it and then direcly use like

    Code:
    get(a.html) target = div-content
    or i have to code each page with reagards to home page.

    IN first case , there will be files , JS files , Css files which will get repeated and can cause problems . Beacuse my individual files are working correct but when i import them in DIV tag , they they work well in IE but in FF they don't

    So how you people do that
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Have you looked into the ajax scripts at dynamicdrive.com? More specifically this one: http://www.dynamicdrive.com/dynamici...jaxcontent.htm
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    i tried that script as well , but same problem , the JS script which works on that page does not work on the page when loaded dynamically into homepage
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven

  • #4
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Well...the embedded pages shouldn't need the JS?

  • #5
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    why is that. if i have form with JS validation check and i want to display that form inside a div tag , the jS is needed
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven

  • #6
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Ok I didn't know you meant a form validation script, you just said JS which I took to mean the AJAX script.

    I know using the iframe versions will not prevent it from working, but I think the issue is that when you place that external file into the DIV it has to be accessed with a different path than when it is just its own page.

    http://www.dynamicdrive.com/dynamici.../iframessi.htm


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •