627 Posted Topics
Re: These might interest you: [url]http://gadgetopia.com/post/2685[/url] [url]http://www.alistapart.com/articles/hotlinking/[/url] | |
Re: PHP will not interfere with the HTML because PHP is interpreted by the server, while HTML is interpreted by the Browser. The browser does not see the PHP code. That aside, you can use frames in the sense that the browser will not forbid you from using it. However, it … | |
Re: You just need to worry about a server-side script to process the file you want to upload. Refer to the following page for such script: [url]http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=7361&lngWId=4[/url] The fact that your file is PDF really makes no difference. I know it saves the files to specified folder on the filesystem, but … | |
Re: You just need to add spaces: [CODE] <%@ Language=VBScript %> <% Option Explicit %> <% ' ----------------------------------------------------- ' CDONTS Email send script ' © http://www.designplace.org/ ' Comments must remain intact for re-use of this code ' ----------------------------------------------------- dim strFName, strLName, strEmailOne, strEmailTwo, strSchoolName, strAddress, strCity, strState, strCountry, strZipcode, strMessage, strQuestion1, … | |
Re: You have the SQL statement in two separate lines. VBScript is interpreting the end of line as the end of statement. You can: a. remove the new line character so that all in on a single line [code] SQL = "INSERT INTO CDNumber (nCDNumber, tCDDescription, bStockorMiscImages) VALUES ('"&u_CDNum&"','"&u_CDDesc&"','"&u_CDStock&"')" [/code] OR … | |
Re: Try this: [CODE] SQL = "SELECT tbl_Order.Status FROM tbl_Order WHERE Customer.CustomerID = " & Session('userid') SQL = SQL & asp_CustomerID & " AND Customer.CustomerID = tbl_Order.CustomerID" [/CODE] | |
Re: Building on what you already have, you would just need to add the desired <span> or <div>, assign it an id, an update that <span> or <div> based on its id value. I have used txt3 on the code below on a <p> tag instead: [code] <html> <head> <title>Key Events … | |
Re: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <script type="text/javascript"><!-- for(var i=41; i<=67; ++i) document.write( eval("'\\u00"+i+"';")); //--></script> </body> </html> | |
Re: Assuming you would like to change the backgroud of: <p id="para1">Text</p> You would do so as follows: document.getElementById('para1').style.backgroundImage='http://www.site.com/Images/yourImage.gif'; | |
Re: You can use the "Scripting.FilesystemObject" to create your file and write data to it. <% dim fs,fname,overwriteContents,unicode,ascii overwriteContets=true; unicode=true ascii=Not Unicode set fs=Server.CreateObject("Scripting.FileSystemObject") set fname=fs.CreateTextFile( Server.Mappath("myLog.txt"),overwriteContents,ascii) fname.WriteLine("Hello World!") fname.Close set fname=nothing set fs=nothing %> | |
Re: Can you post some code? Not sure if a background image on the link will fix your problem OR one of a "title" or "alt" attributes on one of the elements you are doing. Hard to troubleshoot without knowing what you are looking at. | |
Re: A page that changes and/or creates its content on the browser, typically based on the users input/feedback/response. The content is typically inserted with javascript but it is not the only option. The limitation is on the user's browser. For example, IE support vbscript as well. The most popular way to … | |
Re: You need to add a name attribute to the iframe: index.html <iframe id="iframeid" name="iframeid" src="checkid.html"></iframe> checkid.html <script type="text/javascript">alert(window.name);</script> | |
Re: Since you are using <a> as an anchor rather than as a link, you could instead change the <a name="PAGE2"> to a <div id="PAGE2"> AND wrap it around all the relevant <p> elements. Essentially you are grouping the <p> elements with a <div>. If using the <div id="PAGE2"> "breaks" your … | |
Re: My comments are in the code: [code] var frame=0; var interval=null; var http = createRequestObject(); function createRequestObject(){ var request_=null; //not necessary //var browser = navigator.appName; if(window.XMLHttpRequest) { request_ = new XMLHttpRequest(); } else if(window.ActiveXObject){ request_ = new ActiveXObject("Microsoft.XMLHTTP"); } return request_; } function getInfo(){ if( http ) { //first parameter … | |
Re: No, it does not really work on FF either. There are tons of errors getting triggered and never stopping. These are all because you are not clearing the timeouts you are setting. Since the phrase contains 23 letters, you are not supposed to stop calling the timeout functions after letter … | |
Re: Try this: [code] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untitled</title> <script type="text/javascript"><!-- function sendIt(formElem) { if (event.keyCode==13 ) { formElem.submit(); return true; } return false; } //--></script> </head> <body> <form action="http://www.somesite.com" onkeypress="sendIt(this)"> <textarea rows="10" cols="70"></textarea> </form> </body> </html> [/code] | |
Re: What you need is a popup div. Within the div you would need to insert <img> elements. Below are two resources with that show how to implement this. You only need to add the image element to it. [url]http://javascript.internet.com/miscellaneous/popup-div.html[/url] [url]http://blog.crowe.co.nz/archive/2005/08/18/220.aspx[/url] | |
Re: For the sake of debugging, change this: req.open("head", imagepath, true); to this: req.open("HEAD", imagepath, false); | |
Re: It's possible that browser is unable to "import" all/any/some of the javascript files. If I were you I would: a. install Firefox b. install Webdeveloper Toolbar extension/add-on c. install Firebug extension d. Restart Firefox e. Open the page in question f. On the Webdeveloper Toolbar click on Information > View … | |
Re: >>Don't how to print the error message in the content area You need to trigger the error only while printing the content. For example the code below will NOT print it within the content because you are not triggering the error within the content: [code=php] <?php $x = (int)$_POST['INPUT']; if( … | |
Re: Try these instead: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Hielo's Parent Page</title> </head> <body> <script type="text/javascript"> var child_window=null; var parent_window=window; function popUponClick() { child_window = window.open("p.html", "mySelect", "status=1,width=750,height=450,resizable=no"); parent_window.onclick = blurify; parent_window.onfocus = blurify; return false; } function blurify() { if(child_window) { … | |
Re: Below is a complete example of how I would put the a() function that I gave you to use. You can call show with the number of years as well as the id of the element where you want the results to appear. Example: <input type="button" onclick="show(5,'myResults');" /> <?xml version="1.0" … | |
Re: <script type="text/javascript"><!-- function a(p,r,n) { return (parseFloat(p) * Math.pow( (1+parseFloat(r)), parseInt(n,10) )).toFixed(2); } //call it as follows: var i=1; while(i<=10) { document.write( i + ". "+ a("1000.00",".05",i) +"<br />"); ++i; } //--></script> | |
Re: Try this: <script language="VBScript" runat=Server> Dim xmlDOC Dim bOK Dim HTTP Set HTTP = CreateObject("MSXML2.XMLHTTP") Set xmlDOC =CreateObject("MSXML.DOMDocument") xmlDOC.Async=False HTTP.Open "GET","http://topics.cnn.com/topics/feeds/rss/technology", False HTTP.Send() bOK = xmlDOC.load(HTTP.responseXML) if Not bOK then Response.Write "Error loading XML from HTTP" end if Dim objNodeList Set objNodeList=xmlDOC.documentElement.selectNodes("//rss/channel/item/title") Response.Write "Total Items: "& objNodeList.Length Dim I For … | |
Re: First of all, your code does not show where you initialized xmlDoc. I see xslDoc, but not xmlDoc. I assume this happens before the posted code. With the assumptions above, the method "transformNode" is only valid for xml objects created specifically for IE. In your code, this would be: xslDoc=new … | |
Re: Rather than checking each of the required input elements within the switch, you can simply provide a css class to each of the required elements. EX: <input type="text" name="first" class="required" value=""/> Then, your script will check each of the form elements for the existence if this "required" class and if … |
The End.