JavaScript - Can anyone help out in this

Asked By Mano
08-Sep-10 01:02 PM
Can we multiple any chacters/ symbols  like as *,A in the java scripts ?
 for exmple
     &
    &&
   &&&
  Reena Jain replied to Mano
09-Sep-10 02:02 AM
hi,

no you can not multiply the symbol, only number can multiple you can use for loop to fulfill your requirement.


  [ Kirtan ] replied to Mano
10-Sep-10 06:59 AM
 <script>
      var x = 5;
      var i=1;
      while (i<= x) 
      {
        var k = x;
        while (k > i)
        {

          document.write("&nbsp;");
          k--;
         }
        
        var j=1;
        while (j <= i) 
        {
          document.write("& ");
          j++;
        }

         

        document.write("<br/>");
        i++;
      }
    </script>
Create New Account
help
is in support of IBM Rational Manual Tester. With this tool you can publish test scripts into HTML format. However, the tool does not allow you to publish all test scripts into a single file. I want to read the content of all these files and Forums.aspx / vbscript / 200711 / 1 Here is the HTML code for one of my test scripts: function w1(str) { rmtscript.document.writeln(str) } function w2(str) { props.document.writeln(str) } function Border = 1 cellpadding = 5 Align = "center"> <TR> <TD> <b> <big> <big> C: / RATLREPO / RMT / MRTU / Scripts / 001 Day Ahead Prepare and Submit Load Bids. rmt< / big> < / big> < / b> <BR> <BR> Published height = 1 src = "pixelshim.gif" width = 16> < / TD> ') w1('<TD> ') w1('<SPAN> ') w1('<a href = "javascript: parent.writeprops0()" / a> Summary') w1('< / SPAN> ') w1('< / TD> ') w1('< / TR> ') w1('<TR> ') w1('<TD valign src = "pixelshim.gif" width = 16> < / TD> ') w1('<TD> ') w1('<SPAN> ') w1('<BLOCKQUOTE> ') w1('<a href = "javascript: parent.writeprops1()" / a> Operating Date : OD+1') w1('< / BLOCKQUOTE> ') w1('< / SPAN> ') w1('< / TD> ') w1('< / TR src = "pixelshim.gif" width = 16> < / TD> ') w1('<TD> ') w1('<SPAN> ') w1('<BLOCKQUOTE> ') w1('<a href = "javascript: parent.writeprops2()" / a> Pre-Conditions : Load forecast for OD+1 exists.') w1('< / BLOCKQUOTE> ') w1('< / SPAN src = "pixelshim.gif" width = 16> < / TD> ') w1('<TD> ') w1('<SPAN> ') w1('<BLOCKQUOTE> ') w1('<a href = "javascript: parent.writeprops3()" / a> Post-Conditions : Non- Participating Loads bids submitted to CAISO') w1('< / BLOCKQUOTE> ') w1
please explain HI, WHAT IS THE DIFFERENCE BETWEEN VBSCRIPT AND JAVASCRIPT hi, Java Script and VB Script are both programming languages that programmers use as tools to develop applications for personal computers. JavaScript is a client-side scripting language; it is interpreted (and statements executed) by a user server (specifically, IIS). VBScript and IIS (Internet Information Server) are Microsoft products. According to Wikipedia: "JavaScript is an object-oriented scripting language used to enable programmatic access to objects within both the client application and other applications. . . . JavaScript was influenced by many languages and was designed to look like Java, but to be easier for non-programmers to work with." According to Wikipedia: "VBScript (short as a limited variation of Microsoft's Visual Basicprogramming language." Hope this will help you Javascript = = = = = = = = = = = = = = Javascript case sensitive. Javascript will be run on client side. javascript support all the browser VBScript
what is the diffrence between javascript &Ajax. . ? what is the diffrence between javascript &Ajax. . ? hi, AJAX : Ajax is the acronym for Asynchronous JavaScript and XML. It incorporates a suite of technologies aimed at improving user experience with web on an as-need basis without requiring the re-loading of the entire web page. JavaScript: Javascript, on the other hand, is a client side scripting language that allows the creation of dynamic web pages providing a new level of interactivity. The advantage of JavaScript is that since it's a client side application, it can create dynamic web pages that are more complex than what a server side script can do. Server side scripts are run by the host machine and thus, has very limited resources especially when there are a lot of people accessing that server. Being on the client computer, Javascript has a lot of resources to play regardless of the activity on the server. The
i used this javascript working in IE but not working in Firefox this javascript is not working . . image in not displaying. . . . in fire fox. . but working in IE. . . . <asp 200px; padding-left:7px;"> <asp:FileUpload ID = "FileUpload1" runat = "server" onchange = "ImageURL()" / > <script type = "text / javascript" language = "javascript"> function ImageURL() { var url = this.document.getElementById('<% = FileUpload1.ClientID%> ').value; this.document.getElementById('<% = Image1.ClientID%> ').src = url; } < / script> <script type = "text / javascript"> function validateFileUpload(obj) { var fileName = new String(); var fileExtension = new String(); / / store the file name gif \ n'); return false; } else { / / alert('File has valid extension.'); ImageURL(); } return true; } To enable JavaScript in Firefox 2.xx or 3.xx series Firefox Options (fig.1) Firefox Advanced JavaScript Options (fig.2) • Open Firefox . • On the Tools menu, click Options . • Click on the Content icon. (Fig. 1) • Check the box next to Enable JavaScript . (Fig. 1) • Click the Advanced button to open the Advanced JavaScript Options box. (Fig. 2
the Copy Project option in VS .NET c) XCOPY Deployment Explain similarities and differences between Java and.NET? Comparing Java and .NET is comparing apples and oranges. Either the question needs to be to compare Java and C# or J2EE and .NET. What are the XML files that are important in objects and the heap memory that they occupy. This concept is not new to .NET - Java and many other languages / runtimes have used garbage collection for some time. • 73. Why doesn box a primitive variable? To pass it by reference. • 119. What's the difference between Java and .NET garbage collectors? Sun left the implementation of a specific garbage collector up to Collect(); • 121. What's different about namespace declaration when comparing that to package declaration in Java? • No semicolon. • 122. What's the difference between const and readonly? You can initialize readonly cannot inherit from Sealed class WhateverBaseClassName. It's the same concept as final class in Java. • 157. Can you allow class to be inherited, but prevent the method from being over portable J2EE application will function correctly when successfully deployed in any of these products. (ref : Java 2 Platform Enterprise Edition Specification, v1.3, page 2-7 available at http: / / java.sun