inherit
43534
0
Aug 19, 2005 13:41:28 GMT -8
stevezz87
25
May 2005
stevezz87
|
Post by stevezz87 on Jun 18, 2005 16:12:06 GMT -8
I was wondering if it's possible to disable document.write if so does anyone have the code.
|
|
inherit
33627
0
Aug 30, 2006 17:11:56 GMT -8
Pleasehelp
3,596
November 2004
pleasehelp2
|
Post by Pleasehelp on Jun 18, 2005 18:57:41 GMT -8
One question why would you need this?
|
|
inherit
43534
0
Aug 19, 2005 13:41:28 GMT -8
stevezz87
25
May 2005
stevezz87
|
Post by stevezz87 on Jun 19, 2005 7:10:17 GMT -8
Honestly I'm trying to further my knowledge in html/javascript and other types of coding and this was one of the questions I've come across. I normally just look at source codes to teach myself but I can't seem to figure this one out. I love coding and was just wondering if anyone knew how. If you don't thanks anyway.
~Steve
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 19, 2005 7:25:02 GMT -8
How do you mean?
Like...
document.write = function(){ return false; }
That will stop document.write from writing to the page (Tested in FF), if that's what you ment.
|
|
inherit
43534
0
Aug 19, 2005 13:41:28 GMT -8
stevezz87
25
May 2005
stevezz87
|
Post by stevezz87 on Jun 19, 2005 7:35:01 GMT -8
So does that code have to go in a style sheet or within a javascript code?
NVM I understand. Thank you so much. Another thing learned. ;D
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 19, 2005 7:36:56 GMT -8
No problem, feel free to ask as many questions as you like
|
|
inherit
43534
0
Aug 19, 2005 13:41:28 GMT -8
stevezz87
25
May 2005
stevezz87
|
Post by stevezz87 on Jun 19, 2005 7:39:40 GMT -8
Well, then here comes another one lol. that code you provided above can be used to disable other codes from running as well? just by replacing the words document.write with the other code?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 19, 2005 7:42:56 GMT -8
Nope, doesn't work like that. For the example I posted, it will just prevent any text being wrote out to the page for document.write, btu for other functions it may require more coding. Any reason why you need to disable some functions in javascript?
|
|
inherit
43534
0
Aug 19, 2005 13:41:28 GMT -8
stevezz87
25
May 2005
stevezz87
|
Post by stevezz87 on Jun 19, 2005 7:46:09 GMT -8
None whatsoever but it can't hurt to learn some more things.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 19, 2005 7:51:51 GMT -8
I wouldn't bother then, no use in disabling certain javascript functions. It would only really be you that wouldn't be able to use them, because... 1. If it's a proboard code, members can't use javascript anyway 2. If it's a general code (for a website for example), then only you would be using it.
|
|
inherit
43534
0
Aug 19, 2005 13:41:28 GMT -8
stevezz87
25
May 2005
stevezz87
|
Post by stevezz87 on Jun 19, 2005 7:53:49 GMT -8
Fair enough. I have one other question and since I have you here right now I guess I'll just ask it here. Do you know what code I need to use to display an swf file on firefox because the code I'm using to display it on IE does not display it on Firefox.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 19, 2005 8:02:26 GMT -8
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="XX" height="XX" id="name" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="movie.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <embed src="movie.swf" quality="high" bgcolor="#ffffff" width="XX" height="XX" name="name" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>Just enter your values for the bits in bold.
|
|
inherit
43534
0
Aug 19, 2005 13:41:28 GMT -8
stevezz87
25
May 2005
stevezz87
|
Post by stevezz87 on Jun 19, 2005 8:21:50 GMT -8
Its still telling me movie not loaded and I know I have the link right because its still working in IE.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 19, 2005 8:25:04 GMT -8
Would be better if you posted the url to the page?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 19, 2005 12:35:43 GMT -8
Nope, works fine for me, hmm, not sure what the problem could be. Wait to see if someone else responds to see if they can view it or not.
|
|