Re: javascript: in location bar



John Smith wrote:

1) The evaluate string is only 1 line. How do I evaluate a multiline
javascript snippet? Is there a better method than adding ; at the end
of each line and manually combining the say, 10 lines into 1 line?

I use the JavaScript Console feature from ContextMenu Extensions, and
the Open Execute JS extension for this, unless I create a test case
HTML document.

e.g.
<SCRIPT>

The `type' attribute is required:

<script type="text/javascript">

[...]

Will you stop posting the same code over and over again?
Use Message-ID URIs for references if you have to:

news:1142345139.178046.27410@xxxxxxxxxxxxxxxxxxxxxxxxxxxx

<FRAMESET ROWS="50%%,50%%">
^^ ^^
Nonsense. <URL:http://validator.w3.org/>

<FRAME NAME="MochaOutput" SRC="about:blank">

Nonsense. about:blank is proprietary.

<FRAME NAME="MochaInput" SRC="javascript:parent.jsinput()">

Nonsense. javascript: is proprietary.

</FRAMESET>

#2) The above function jsinput() is called by another HTML element
(<FRAME> in this case). How do I include the HTML code in the
Evaluation process?

(Pardon?) You do not. HTML code is not script code.


And please learn to quote:

<URL:http://jibbering.com/faq/faq_notes/pots1.html#ps1Post>
<URL:http://www.safalra.com/special/googlegroupsreply/>


PointedEars
.



Relevant Pages

  • Re: Continuous communication between user, CGI script and server
    ... unputs and then spits back HTML code to the user. ... to your server-side app. ... which the JavaScript will then use to update the page ... Web Hosting by West Virginians, ...
    (comp.lang.perl.misc)
  • PB : document.write some HTML code with <script src=".."> tags
    ... I'm doing a script that should strip the current document to a printable ... so I've got myself a variable with this new HTML code. ... to errors in the javascript. ... Is there any way to tell IE to not mangle my code when inserting ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Changing the onclick of an image in aspx file
    ... I need to either set the onlick after (Which ... or declare the image later and have the HTML put the ... resulting HTML code. ... Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/- Hide quoted text - ...
    (comp.lang.javascript)
  • Re: Dynamic HTML code not being saved
    ... javascript file, the problem only occurs when the program ... doesn't disappear, it just doesn't execute after closing ... function dynAnimation() ... >> problems with the Dynamic HTML code. ...
    (microsoft.public.frontpage.programming)
  • IHTMLDocument2 and IDocHostShowUI
    ... I have HTMLDocument object and I explictitly write HTML code to it ... "alert" then Javascript alert windows appears. ...
    (microsoft.public.vc.atl)