Hi Guys
i need to call an ID before he was created cause i want to change his
display status (none:block) and i dont want to load him and only after
he was loaded to change his display settings.
i tried an unValid techniuqe- to write on the fly inside the body,
couse only there i can do so, a style tag that chage the display
definitions, but i cannot place a style tag inside the body.
any ideas? 28 1917
neoswf said the following on 1/11/2006 5:12 AM: Hi Guys i need to call an ID before he was created cause i want to change his display status (none:block) and i dont want to load him and only after he was loaded to change his display settings.
<style type="text/css">
#IDThatDoesntExistYet{
display: none;
}
</style>
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
but this ID isnt exist yet
ill try to explain again- i use JS, and by JS i ask if and id exist. i
cannot ask if he exist if he havent been created yet in the HTML.
now u see my point?
*** Sent via Developersdex http://www.developersdex.com ***
neoswf wrote: and only after he was loaded to change his display settings.
Do not do that. news:57****************@PointedEars.de
PointedEars
can you please explain your self and not just throw words to the air?
i need an assistence, can you support it? saying dont do this wont
solve my problem
neoswf wrote: Hi Guys i need to call an ID before he was created cause i want to change his display status (none:block) and i dont want to load him and only after he was loaded to change his display settings.
i tried an unValid techniuqe- to write on the fly inside the body, couse only there i can do so, a style tag that chage the display definitions, but i cannot place a style tag inside the body.
any ideas?
You cannot do that - at least you cannot do that with any guarantees
that it will always work. Addressing an element by id (or by name for
this matter) is only possible when the DOM structure is ready. And the
DOM structure is not ready until "load" event for window is fired. Same
with desktop applications: you cannot open say a menu until the damn
thing is finished to open (who ever worked on slow machines knows what
I'm talking about).
So no again: you cannot handle something that doesn't exists yet.
Possible workarounds depend heavily on what conditions are you
showing/hiding page elements.
And remember that you cannot as well take any decisions in relation
with other elements (like "if element A contains this, then show
element B") You can check only basic conditions before "load": a
feature test, browser userAgent string, cookie presence, screen size
etc.
So what is your objective?
shlomi horovitz wrote: but this ID isnt exist yet
Using CSS it doesn't matter. The CSS is parsed first (it must be in the
head, div's aren't allowed in the head).
When (if) the HTML parser finds the element, it will set its display
property to none because it's already been told to do that by the CSS.
ill try to explain again- i use JS, and by JS i ask if and id exist. i cannot ask if he exist if he havent been created yet in the HTML.
Exactly. If it doesn't exist, you can't get a reference to it.
now u see my point?
We all got it the first time. If you want to use script to modify an
element, the soonest that the script can act is immediately *after* the
element has been created. Nothing you write can change that - 'the moving
parser having parsed moves on...' - apologies to Omar Khayyam and Edward
FitzGerald.
To do stuff to the DIV as soon as possible, put the script immediately
after the closing tag of the DIV in the HTML source:
<div id="hideMe">
<!-- stuff -->
</div>
<script type="text/javascript">
if (document.getElementById){
var hideMe = document.getElementById('hideMe');
}
hideMe && hideMe.style && hideMe.style.display = 'none';
</script>
--
Rob
RobG wrote:
[...] <div id="hideMe"> <!-- stuff --> </div> <script type="text/javascript"> if (document.getElementById){ var hideMe = document.getElementById('hideMe'); } hideMe && hideMe.style && hideMe.style.display = 'none';
Sorry, getting late...
hideMe && hideMe.style && (hideMe.style.display = 'none');
The brackets are required to stop some browsers error-correcting the
assignment to an evaluation - i.e. changing '=' to '=='
--
Rob
neoswf wrote: can you please explain your self and not just throw words to the air?
Follow the link -- Google Groups makes the news: URI one -- and read
what I posted before.
i need an assistence, can you support it? saying dont do this wont solve my problem
You either do not have a problem at all but you create one with your
nonsensical approach, or you have more problems than you described.
PointedEars
first of all- thomas- i havent understood that the link u paste in your
messege is an article. it looked to me as kind of an Email, due to the
@PointedEars.de at the end of the link. please exept my appologies.
secondly, ill describe in details my problem: i have a site that in
some pages, i want to disapear the right OR left pannels.
so i display:none them using CSS.
so the solution i came up with is write a var and then write a function
that checks if the var = left OR right and the, using document.write,
ill write onThFly my CSS.
tommorow ill paste here the HTML page i created. its a template im very
proud of. its includes inside an html stracture that is very simple but
very powerfull.
neoswf said the following on 1/11/2006 4:01 PM:
Please quote what you are replying to.
If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers. first of all- thomas- i havent understood that the link u paste in your messege is an article. it looked to me as kind of an Email, due to the @PointedEars.de at the end of the link. please exept my appologies.
Ignore Thomas. About half of what he says makes sense, the other half is
rubbish. The great challenge of it all is to be able to distinguish the
two. If you get to that point, nothing he says becomes relevant to you.
secondly, ill describe in details my problem: i have a site that in some pages, i want to disapear the right OR left pannels. so i display:none them using CSS.
Then do it on the server. Simple problem, simple solution.
so the solution i came up with is write a var and then write a function that checks if the var = left OR right and the, using document.write, ill write onThFly my CSS.
Then do that.
tommorow ill paste here the HTML page i created. its a template im very proud of. its includes inside an html stracture that is very simple but very powerfull.
Does it include a spell checker?
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb wrote: If you want to post a followup via groups.google.com, don't use the "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers.
yes, i've recived replies from another webSite, DevSomething... it was
so strange, it looked to me like they sit on google.groups DB and still
all there threads...
About Tommas- now my misunderstanding him seems more logic. now i feel
sain... :)
Then do it on the server. Simple problem, simple solution.
i cannot do that. our CMS must remain simple and CANNOT be modified...
:( lucky me. this was the ultimate solution, but it cannot be done...
Does it include a spell checker?
and BMW also :)
good nighty night
NeoSwf
neoswf said the following on 1/11/2006 4:43 PM: Randy Webb wrote:
If you want to post a followup via groups.google.com, don't use the "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers.
yes, i've recived replies from another webSite, DevSomething...
Yeah, they think they are a Usenet provider and they are almost as bad
as Google Groups. They send you emails to tell you someone replied to a
post of yours.
it was so strange, it looked to me like they sit on google.groups DB and still all there threads...
No, Google sits on Usenet archives and claim them as Google Threads. You
are not posting to Google, you are posting to Usenet using a Google
interface.
About Tommas- now my misunderstanding him seems more logic. now i feel sain... :)
Then do it on the server. Simple problem, simple solution.
<script type="text/javascript">
window.onload = hideIt;
function hideIt(){
//code here to hide the div tag.
}
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb wrote: <script type="text/javascript"> window.onload = hideIt;
function hideIt(){ //code here to hide the div tag. }
the reason i dont use onLoad is that i want to avoid dancing interface
of my site.
my site is a trade market website, that hold inside of him many
httpRequests tables with a lot of data. So if on table will stuck, till
it fully loads, tha layer will be shown, and only then, it will
disapear.
i want to avoid that, and to write at the head the display style of
each panel in my site.
neoswf wrote: Randy Webb wrote:
<script type="text/javascript"> window.onload = hideIt;
function hideIt(){ //code here to hide the div tag. }
the reason i dont use onLoad is that i want to avoid dancing interface of my site. my site is a trade market website, that hold inside of him many httpRequests tables with a lot of data. So if on table will stuck, till it fully loads, tha layer will be shown, and only then, it will disapear. i want to avoid that, and to write at the head the display style of each panel in my site.
Use document.write to write the appropriate CSS:
<head>
<title>...</title>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">
#leftDiv { border: 1px solid red; float: left; width: 50%;}
#rightDiv { border: 1px solid green; float: right; width: 50%;}
</style>
<script type="text/javascript">
// Set this to left or right, whichever should be hidden
var hideLR = 'leftDiv';
var styleString = '<style type="text/css">'
+ '#' + hideLR + '{display: none;}'
+ '<\/style>';
document.write(styleString);
</script>
</head>
<body>
<div id="leftDiv">left div</div>
<div id="rightDiv">right div</div>
</body>
But it seems to me that you must write the value of 'hideLR' at the
server, and in that case you may as well write the CSS there too.
--
Rob
neoswf wrote: the reason i dont use onLoad is that i want to avoid dancing interface of my site. my site is a trade market website, that hold inside of him many httpRequests tables with a lot of data. So if on table will stuck, till it fully loads, tha layer will be shown, and only then, it will disapear. i want to avoid that, and to write at the head the display style of each panel in my site.
It is not possible to hide a DIV that hasn't been defined yet in
javascript. Doing this with a CSS style declaration in the page head
makes the most sense. However, if you absolutely must use javascript,
try this:
<div id="theDivToHide">
<!-- content here -->
</div>
<script type="text/javascript">
document.getElementById("theDivToHide").display = "none";
</script>
This is done after the div is rendered, but before the full page is
rendered. It should hide the div before it's ever seen.
Of course, anyone with javascript turned off will still see the div.
That wouldn't happen if you used CSS.
RobG wrote: neoswf wrote: the reason i dont use onLoad is that i want to avoid dancing interface of my site. my site is a trade market website, that hold inside of him many httpRequests tables with a lot of data. So if on table will stuck, till it fully loads, tha layer will be shown, and only then, it will disapear. i want to avoid that, and to write at the head the display style of each panel in my site. Use document.write to write the appropriate CSS:
<head> <title>...</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css"> #leftDiv { border: 1px solid red; float: left; width: 50%;} #rightDiv { border: 1px solid green; float: right; width: 50%;} </style>
<script type="text/javascript">
// Set this to left or right, whichever should be hidden var hideLR = 'leftDiv'; var styleString = '<style type="text/css">' + '#' + hideLR + '{display: none;}' + '<\/style>'; document.write(styleString);
</script> </head>
<body> <div id="leftDiv">left div</div> <div id="rightDiv">right div</div> </body>
This is not going to work as the OP wants. But then it is even
nonsense to attempt such, especially on a "trade market website".
But it seems to me that you must write the value of 'hideLR' at the server,
Nonsense.
PointedEars
Thomas 'PointedEars' Lahn wrote: RobG wrote:
neoswf wrote:
the reason i dont use onLoad is that i want to avoid dancing interface of my site. my site is a trade market website, that hold inside of him many httpRequests tables with a lot of data. So if on table will stuck, till it fully loads, tha layer will be shown, and only then, it will disapear. i want to avoid that, and to write at the head the display style of each panel in my site.
Use document.write to write the appropriate CSS:
<head> <title>...</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css"> #leftDiv { border: 1px solid red; float: left; width: 50%;} #rightDiv { border: 1px solid green; float: right; width: 50%;} </style>
<script type="text/javascript">
// Set this to left or right, whichever should be hidden var hideLR = 'leftDiv'; var styleString = '<style type="text/css">' + '#' + hideLR + '{display: none;}' + '<\/style>'; document.write(styleString);
</script> </head>
<body> <div id="leftDiv">left div</div> <div id="rightDiv">right div</div> </body>
This is not going to work as the OP wants. But then it is even nonsense to attempt such, especially on a "trade market website".
The OP has been offered two options, this is one. It 'works' exactly as
requested as far as I can see - it will almost certainly ensure that the
div is marked to be hidden before its HTML is parsed. It also means
that if scripting is disabled, both divs will be shown.
Whether it suits or not is a matter of opinion best left to the OP. Do
you intend to enlighten us as to why you consider that it won't work 'as
the OP wants'? But it seems to me that you must write the value of 'hideLR' at the server,
Nonsense.
I'll see your nonsense and raise you an OT.
Once upon a time you used to offer solutions when coaxed from your ivory
tower. Maybe I should go back to a munged e-mail address so you restore
me to your killfile[1]. ;-)
"it seems to me" is another way of writing "in my opinion", or, if you
prefer, IMHO. That opinion is based on my understanding of the OP's
requirements and the response to what has been offered so far. It does
not mean there is no other way or even this is *the* best solution.
There are a couple of ways that the logic for showing/hiding the divs
can be independent of the server - it could use a cookie stored on the
PC, or it could be based on a search string or hash value in the URL
passed from a previous page or modified location object.
But there are serious drawbacks to those approaches that make them not
worth offering in the current discussion, particularly as the OP hasn't
made mention of a requirement that might indicate their use.
It also makes no sense (to me) to send HTML to the client with the
intent to not display a large chunk of it.
If you disagree, explain why. If you wish to be helpful, provide an
alternative and explain why you think it will suit better. Simplistic
contradiction is just gainsaying and a complete waste of bandwidth.
1. I use a number of different PCs to access the web and news groups,
some have munged addresses and some don't. I am surprised that the
level of spam I get has not increased as a result of exposing a real
address, so I am gradually fixing the munged ones. Incidentally, it
hasn't stopped people from de-munging it and e-mailing me.
--
Rob
Tony said the following on 1/11/2006 6:20 PM:
<snip> Of course, anyone with javascript turned off will still see the div. That wouldn't happen if you used CSS.
Unless they had CSS Disabled. And to be honest, it is easier to find the
CSS Disable in IE6 than it is the JS Disable.
Tools>Internet Options>Accessibility>Custom Style Sheet.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
RobG wrote: Thomas 'PointedEars' Lahn wrote: RobG wrote: neoswf wrote: the reason i dont use onLoad is that i want to avoid dancing interface of my site. my site is a trade market website, that hold inside of him many httpRequests tables with a lot of data. So if on table will stuck, till it fully loads, tha layer will be shown, and only then, it will disapear. i want to avoid that, and to write at the head the display style of each panel in my site.
Use document.write to write the appropriate CSS:
<head> <title>...</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css"> #leftDiv { border: 1px solid red; float: left; width: 50%;} #rightDiv { border: 1px solid green; float: right; width: 50%;} </style>
<script type="text/javascript">
// Set this to left or right, whichever should be hidden var hideLR = 'leftDiv'; var styleString = '<style type="text/css">' + '#' + hideLR + '{display: none;}' + '<\/style>'; document.write(styleString);
</script> </head>
<body> <div id="leftDiv">left div</div> <div id="rightDiv">right div</div> </body> This is not going to work as the OP wants. But then it is even nonsense to attempt such, especially on a "trade market website".
The OP has been offered two options,
No, there have been more, including mine that it is far better just
to let it be. Which applies especially to that field of application:
Customers that are provided _nothing_ (from their point of view) will
leave almost immediately, before the content _perhaps_ would be
displayed later.
this is one. It 'works' exactly as requested as far as I can see - it will almost certainly ensure that the div is marked to be hidden before its HTML is parsed. It also means that if scripting is disabled, both divs will be shown.
And now try to show that `div' element again or just try to make the
document usable without client-side script _and_ CSS-DOM support --
surprise!
Know your CSS, but also know your CSS-DOM: using the `style' property of an
element object -- which would be necessary as Opera provides no means of
accessing style rules -- is equivalent to using the `style' attribute of
the element it represents. Although CSS defines that the specificity of
declarations in the `style' attribute of an element is the same as a style
rule with an ID selector, --
| In HTML, values of an element's "style" attribute are style sheet rules.
| These rules have no selectors, but for the purpose of step 3 of the
| cascade algorithm, they are considered to have an ID selector
| (specificity: a=1, b=0, c=0).
and
| 3. The secondary sort is by specificity of selector: more specific
| selectors will override more general ones. Pseudo-elements and
| pseudo-classes are counted as normal elements and classes,
| respectively.
-- not all UAs also honor cascading step 4 that says
| 4. Finally, sort by order specified: if two rules have the same weight,
| origin and specificity, the latter specified wins. Rules in imported
| style sheets are considered to be before any rules in the style sheet
| itself.
IIRC we had cases here proving that especially IE is broken in that regard,
and I know from personal experience that with IE often the first match wins,
not the last match. OK, you can access stylesheet rules with IE's CSS-DOM
and so could change the ID rule. But, come on, all this effort for a
really misguided and harmful "solution", efforts that will inevitably only
make a Bad Thing worse?
HTH
PointedEars
Its morning here and when ill get to my job ill answer all the new
posts, but thomas and the rest, why have you called my OP? what do you
mean by that?
neoswf said the following on 1/12/2006 12:58 AM:
Please quote what you are replying to.
If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers. Its morning here and when ill get to my job ill answer all the new posts, but thomas and the rest, why have you called my OP? what do you mean by that?
OP stands for Original Post or Original Poster, depending on context.
OQ can be Original Question but it usually referred to as the OP as in
the Original Post.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Hi AgAin
Randy Webb wrote: If you want to post a followup via groups.google.com, don't use the "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers.
This i managed to achive.
How can i Create - "- Show quoted text -" triming?
OP stands for Original Post or Original Poster, depending on context. OQ can be Original Question but it usually referred to as the OP as in the Original Post.
Thank you for this explanation
About my Site Stracture, interface needs and the issues been discussed
here in this thread.
my site template including js mechanism http://www.dogma.co.il/shlomi/htmlTe...ct_layout.html
* 1
<body id="attr" onload="dol()" hiddenpanels="">
In the hiddenpannel special attribute i declare whether to hide left or
right panel. [hiddenpanels="left" || hiddenpanels="right" ||
hiddenpanels="left, right"]
i recive this attribute using this method:
document.getElementById("attr").getAttribute("hidd enpanels")
* 2
Tony wrote: This is done after the div is rendered, but before the full page is rendered. It should hide the div before it's ever seen.
after tests, this method is not secured. the site will dance on a a
slow/week computer. thats the result i achived few times in my tests.
so hiding a div, that contain a large amount of data, is not relaibale.
only disapearing the div from the root, like i sugested above, will
achive the desirable result.
* 3
Randy Webb Then do it on the server. Simple problem, simple solution
I cannot do it from the server due to CMS development limitation.
my boss doesnt want to invest in CMS development, and my requirments
are to achive that using User-Side Programing / html mechanism.
==========
but i want to say some words.
im so happy and pleased to see a forum that include web experts like
you guys, and a high level discussion can be performed.
so thank you guys for your coparation and enriching me.
Shlomi.A
Randy Webb wrote: Tony said the following on 1/11/2006 6:20 PM:
<snip>
Of course, anyone with javascript turned off will still see the div. That wouldn't happen if you used CSS.
Unless they had CSS Disabled. And to be honest, it is easier to find the CSS Disable in IE6 than it is the JS Disable.
Tools>Internet Options>Accessibility>Custom Style Sheet.
Easier, perhaps, but I think you're going to find more users with js
disabled than with CSS.
It's a trade-off, whichever way you go.
neoswf said the following on 1/12/2006 4:00 AM: Hi AgAin
Randy Webb wrote:
If you want to post a followup via groups.google.com, don't use the "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers.
This i managed to achive. How can i Create - "- Show quoted text -" triming?
That I don't know as I have never used the Google interface. I only know
how to quote with it because I got the text from elsewhere. OP stands for Original Post or Original Poster, depending on context. OQ can be Original Question but it usually referred to as the OP as in the Original Post.
Thank you for this explanation
About my Site Stracture, interface needs and the issues been discussed here in this thread.
my site template including js mechanism http://www.dogma.co.il/shlomi/htmlTe...ct_layout.html
* 1 <body id="attr" onload="dol()" hiddenpanels=""> In the hiddenpannel special attribute i declare whether to hide left or right panel. [hiddenpanels="left" || hiddenpanels="right" || hiddenpanels="left, right"]
And how do you declare it? Meaning, how do you inject the word left or
right into that code?
If you have the ability to inject it from the server, then simply write
the CSS on the server to hide it, or, simply do not send the text to the
browser.
i recive this attribute using this method: document.getElementById("attr").getAttribute("hidd enpanels")
* 2 Tony wrote:
This is done after the div is rendered, but before the full page is rendered. It should hide the div before it's ever seen.
after tests, this method is not secured. the site will dance on a a slow/week computer. thats the result i achived few times in my tests. so hiding a div, that contain a large amount of data, is not relaibale. only disapearing the div from the root, like i sugested above, will achive the desirable result.
Or removing it entirely.
But the flip alternative is to set them both to hidden and the show the
div you want to show. That will leave the user staring at a blank screen
until its loaded though.
* 3 Randy Webb
Then do it on the server. Simple problem, simple solution
I cannot do it from the server due to CMS development limitation. my boss doesnt want to invest in CMS development, and my requirments are to achive that using User-Side Programing / html mechanism.
Uh, ok. I don't see where injecting code into a page in a different
place is that big a deal if you can inject it into the body tag.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Tony said the following on 1/12/2006 2:02 PM: Randy Webb wrote:
Tony said the following on 1/11/2006 6:20 PM:
<snip>
Of course, anyone with javascript turned off will still see the div. That wouldn't happen if you used CSS. Unless they had CSS Disabled. And to be honest, it is easier to find the CSS Disable in IE6 than it is the JS Disable.
Tools>Internet Options>Accessibility>Custom Style Sheet.
Easier, perhaps, but I think you're going to find more users with js disabled than with CSS.
I think both groups fall into the same category with NN4 users.
99% of non-JS or non-CSS users are like NN4 users - they do it to be
able to say "Your site doesn't work with my browser".
It's a trade-off, whichever way you go.
Yes it is.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb wrote: Uh, ok. I don't see where injecting code into a page in a different place is that big a deal if you can inject it into the body tag.
the attributes in the body tags are allready writen now. thats how the
site works today.
im rebuilding it for MOZ support and optimisazion code and speed.
im also transfering the site from tables into divs and other.
the site for now been stoped due to CMS reDesign. so i hope to insert
into his new definition the logic we soke here: sending the interface
structure from the server to the client.
BUT- sending from the server those details, wont make it hurd so much
on the site?
my site handels 3000 - 5000 requests a second. adding to his operarion
more issues to handel will make him slower. dont you think?
neoswf said the following on 1/12/2006 7:08 PM: Randy Webb wrote:
Uh, ok. I don't see where injecting code into a page in a different place is that big a deal if you can inject it into the body tag.
the attributes in the body tags are allready writen now. thats how the site works today. im rebuilding it for MOZ support and optimisazion code and speed. im also transfering the site from tables into divs and other.
the site for now been stoped due to CMS reDesign. so i hope to insert into his new definition the logic we soke here: sending the interface structure from the server to the client.
BUT- sending from the server those details, wont make it hurd so much on the site? my site handels 3000 - 5000 requests a second. adding to his operarion more issues to handel will make him slower. dont you think?
If your site is handling 3-5000 hits a second then it would speed your
server up if you weren't serving double the html to the browser only to
hide half of it.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
On 2006-01-11, neoswf <ne****@gmail.com> wrote: Hi Guys i need to call an ID before he was created
can't be done.
cause i want to change his display status (none:block) and i dont want to load him and only after he was loaded to change his display settings.
you could try putting the script after the end of the theing you're trying
to change... it doesn't always work.
i tried an unValid techniuqe- to write on the fly inside the body, couse only there i can do so, a style tag that chage the display definitions, but i cannot place a style tag inside the body.
can't you have the thing have style="display:none" ?
Bye.
Jasen This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Cindy Liu |
last post by:
Hi Everyone,
I created C# COM+ component. It has two overloaded methods - the method names are same and their signatures are different, one takes two parameters and another takes four. I coded...
|
by: Jerry Krinock |
last post by:
I've written the following demo to help me understand a problem I'm having
in a larger program. The "main" function constructs a Foo object, and then
later "reconstructs" it by calling the...
|
by: jchao123 |
last post by:
Dear All,
I have an MDB file (Access 2000/XP) which contains generic routines I
use in various apps (eg, API calls, File access classes etc).
I have compiled into an MDE file which I reference...
|
by: mark |
last post by:
I am developing an application in .Net C# that needs to restore a
number of tool windows to some previous location and size. The problem
I have is that when I create the form and set the Location...
|
by: Nick Flandry |
last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my
development environment (Win2K server running IIS 5) and a test environment (also Win2K server
running IIS...
|
by: Gary |
last post by:
I am using VS.Net 2002 with windows 2000 advanced server and windows 2000
professional. I have a requirement to use windows service with a GUI.
I want to show my own User Interface(Dialog) to get...
|
by: James Radke |
last post by:
Hello,
I am using VB.NET to call an unmanaged DLL which contains some functions.
When I call the DLL from a windows application, it all works fine. When I
place the same code in a webform...
|
by: ST |
last post by:
From Form1 I call a public sub in a module. The sub writes
on Form1.
Problem: the call creates a new Form1 and writes on it,
instead of writing on the one already shown Form1. I have
tried to...
|
by: Jerome Cohen |
last post by:
AI am trying to call a third-party web service. this service expects an XML
fragment that contains the request plus other parameter. adding the web
reference created the syntax below(reference.vb)....
|
by: han zhiyang |
last post by:
I've just studied the "how to" web service and the async pattern in donnet.I
make a test with these knowledges,but I got a strange result. Here is my
test.
1.Write a simple "Add" service named...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |