Closed Thread Icon

Preserved Topic: JavaScript entities (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18170" title="Pages that link to Preserved Topic: JavaScript entities (Page 1 of 1)" rel="nofollow" >Preserved Topic: JavaScript entities <span class="small">(Page 1 of 1)</span>\

 
lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 07-10-2001 11:51

Hi!

I remember that I can use JavaScript directly whithin my HTML code just like &{js_varname};
But that does seem to work...

code:
<script>mywidth=161;</script>
<table width="&{mywidth}"><tr><td>asdad</td></tr></table>



Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-10-2001 14:19

Oh, wow, I *vaguely* remember something like this... I think they have to be inside comment tags or something. Anyway, I think it was only a Netscape Navigator 4 thing, and I would strongly discourage you from using it since it's hardly compatible with anything. Good ol' fashioned document.write() should do the trick.

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 07-10-2001 16:35

Slime, are you sure man it's NS only and it's not really compatible?
Damn! I hate to open a script tag each time i want to put a variable inside my HTML code...

I'm used on using PHP's <??> tags...



Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 07-10-2001 18:29

You could create a JS function in the head of your document that does a document.write() and then you could just call it with your var every time you want to add things... Just a thought. I don't know exactly how it could be done but I haven't used JS in a while.

But why don't you just use PHP to do it? I'm sure you could come up with some nifty PHP/JS combo that you make what your trying to do quite simple indeed.

Just a thought...

everybody needs a swamp bear

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 07-11-2001 08:38

Yes, Dracusis I know....But sometimes I have no choice other than using Only JavaScript.
While I'm used on the flexibility on the embedded PHP tags I'll find difficulty and when trying to make JS act as PHP.

Anyway,....Thank you all.

« BackwardsOnwards »

Show Forum Drop Down Menu