I'm trying to display a widget that is called through another page. The "test" word shows up, but the WIDGET portion does not. I know the address works, I can call it through the url and it displays fine so that's not the problem. It's something within the javascript.
Here's my code:
Code:
<script type="text/javascript">
httpRequest("www.addressto/xxx/xxx/recent-widget.php", showrecent);
//Function to display the widget within innerHTML
Ok Im am so very lost on what to do now, I have written the php code and would like to display the contents of what is being echoed through the url.Example is by enteringmywebsite.com/index.php?dog=dogs it returns "a dog"mywebsite.com/index.php?dog=littledog returns "a little dog"What I would like to do is display the output of the urls to my webpage using javascript in popups. I have the pops written already I just need to be able to display the output.Please note that some of the pages are html so I would like to do this in javascript.
As I am new to java scripts, I usually solve thing with trial and error. What I need is a very simple java script for a count down timer, after searching here I found this:
<font style="font-size:72px" color="#FF0000" face="Arial"> <script type = "text/javascript"> var page = "[URL]"; //The page to redirect to function getSeconds() { startTimer (3); // 36 hours } .....
I modified some stuff, as I defined the font face and size, the color as well, and I added a var to open a certain page when the time is over (as I said before, all these modifications came right with trial and error). So, is that script good? or are there better scripts that do the same job? Any script that does the same functionality of the script I mentioned but instead of showing digits it shows: 01 minutes 31 seconds
I have a bulletted list on one side, and when the user rolls over, information (text and sometimes a picture) about the topic pops up on the right side. I'm retrieving simple html files and using Javascript innerHTML to accomplish this. Everything is working perfectly in Firefox and Opera. In Internet Explorer, I have a very strange bug. The text appears just fine, but images in the html files don't. There is just a blank space the size of the image. There's no little "can't find image" icon either, just blank space. Here's my code:
function showtext(filename){ if (!document.getElementById) return; if(navigator.appName == "Microsoft Internet Explorer")
It shows perfectly in Safari and firefox.var A is simply a div that may contain <span></span> tags. This function counts the span tags, and creates buttons to match the number of span tags that parenting div contains. 'parts' is an empty div with an id of 'parts.' It's the location the buttons are to be placed.
As I said, the buttons show up in safari and firefox. But no go with iexplorer.does iexplorer not read the innerHTML call? I've even tried just printing a 'test' string as the innerHTML and, it didn't show up.
Code:
function Parts(A){ var parentV = document.getElementById(A); var totalCount = parentV.childElementCount;
I have an an element that can successfully be retrieved by document.getElementById('id'),but when I attempt to alert(document.getElementById('id').innerHTML), the string is empty. Then, if I try to change the innerHTML like this:
document.getElementById('id').innerHTML += "new string", I get "unknown runtime error".The thing that bothers me is that the element can be gotten with getElementById, but its property innerHTML seems to be either blank or null when in fact, it contains HTML. By the way, this is all in IE. I have tested in FIrefox, Chrome, Safari, Opera, and it works perfectly in those.
There's a setting in php.ini: zlib.output_compression = xxx
If it is set to "On", php will bzip the output of scripts so that there is less data to transfer to the client. I found that this setting is quite useful especially on slow connections, but I have a slight problem with it: it also compresses output of scripts which generate pdf files. While Mozilla / Firefox handles this well, IE simply fails to show the document.
Is there any way to tell PHP not to compress output of certain scripts. Is there a command for that?
I have this script here but im struggling to add commas to the output to seperate the figures. e.g. rather than 10000, I would like 10,000 here is the script:
This year approximately <span id="fires" ></span> people have died in a fire.
I thought I knew how, but I'm unclear how to get this function to display: document.getElementById("txtHint").innerHTML=xmlhttp.responseText;" inside the div.
xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { var div = document.createElement('div');
How do you simply output the current url in the browser i.e if i am in google.com I want google.com outputted and so on.Also on multilanguage sites if my url is say www.mydomain.com/en/about.html or www.mydomain.com/en/animals/horses/racehorses/stallions.html I want to be able to manipulate the url so I can change en to fr for example when I jump between english and french pages. I want users to be able to switch the language of that particular page by clicking a link. I need to be able to switch segment one of the url (en,fr,de etc...)dynamically somehow instead of hardcoding a link into each page.
I have a html form that is submitted with a submit button code...
if I display the output using the alert methods(now commented out) they work fine. I was hoping to display my messages in the div with id of output. When that didn't work I tried to see if I could send anything to the div. When I click the submit button the message "WTF" appears for at most half a second. I'm hoping to get it to stick around. I'm sure it has something to do with how form submission works. Maybe I need to submit to the same page? can I do that with JS?
This code works successfully, however the outputted message looks boring and unprofessional.
This appears with a plain grey border around it: "You cannot upload without first logging in. If you have not already logged in, please do that first." How do you add attributes to those script lines? And the border too?
I have a for each loop in javascript, of which I need to output to an ASP array. unfortunantly not too familiar with javascript..
the loop is for items ordered in a shopping cart. they are displayed as rows of a table. all i need to do is get the same data into an ASP array to use on the next page, specificaly the +theitem+ and +thenumber+ variables. Code:
I need to take text from a database, turn it into a barcode from the Web and print to a Zebra Z4M barcode printer. I am stuck at two separate approaches.
1. Use ZPL II (Zebra's proprietary language to command the printer) which is executed at a DOS Prompt with "COPY BarCode.txt LPT1" Is there any way to run that from the web. Also, is there any other method of sending the information in the text file to the printer?
2. Use some sort of ActiveX object to compile a barcode label image, then use another ActiveX object to remove the Header/Footer and Margins from the IE printout. I have found ActiveX objects that can compile the image, but have not found anything to block out the Header/Footer and Margins.
I'm sure you all have seen how using the src argument in a script tag is essentially the same as including the body of the script within your page. For example:
Is there a way to capture the html output of that script and save it to a variable or text file so that I can use a language like php to parse it and look for certain words or phrases?
For instance, this particular url executes some javascript code which produces an iframe on my page, but view source only displays the script tag. Using innerHTML I can get the iframe code to print in another browser window, but I would prefer the iframe html be save to a variable or text file so that I can write a script to parse it on the fly.
I am new to this forum and also not a javascript coder. That said, I have a webpage that uses a freeware compiled javascript that displays the number of users current on line.
It works fine. But I would like to capture the output value as a variable that could then be used later. The code below displays the current number of users.
I would like to know if it is possible to create a script to use in a webpage for output the title <a href="[url].....types.html">TITLE</a> BUT not the link itself = [url].... or http:
[url]......It is a website (it it not mine) where the user input your data in a database being output as html page.
I've got the following page below. Instead of the function writing to textfields, I want to write to span tags, which will be blank to start out with, then populate with the data after the function runs. This should be simple, but I'm not getting the syntax right for some reason. Here's the page: Code:
Does anyone know of a way to retrieve the output of a webpage and place the output in the current web page (not using iframes)?For example, here is a simple web page (test.html):
<html> This is just a test </html>
I would like to take the output of this page and insert into my current page:
I've came across this code on the vbulletin forums probably a year or two ago and everything has been working great however I would like to change the output a bit. Right now the script will output the entire thread title on my home page (html page).What I'd like to know from any of your javascript programmers, is there a way to limit the thread title length? Say instead of the entire thread title maybe only show the first 15 characters?