Solved

document.write

Posted on 2003-11-12
2
251 Views
Last Modified: 2012-05-04
hi there...
i have htm file and on top frame i have asp page and i want to grab the paramenters from top frame and put it on the frame based on my paramenters my stylsheet will be display....

here is my stylesheet A or B -- depends on the user who logon i will get this value from top frame
<link href="Style/divA.css" rel="stylesheet" type="text/css">



function loadme(){
      alert(top.window.frames.banner.currrentDivision) //im getting the division id
               <link href="../../../Style/reAae11a.css" rel="stylesheet" type="text/css">
}

<form onload=loadme()>

</form>
0
Comment
Question by:khan2000
2 Comments
 
LVL 2

Author Comment

by:khan2000
ID: 9732928
function loadme(){
    alert(top.window.frames.banner.currrentDivision) //im getting the division id
              <link href="Style/divA.css" rel="stylesheet" type="text/css">
}
0
 
LVL 7

Accepted Solution

by:
nisarkhan earned 50 total points
ID: 9733576
document.write('<link href="Style/div' + div + '.css" rel="stylesheet" type="text/css">')
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now