Looping With For Var Command?
Dec 23, 2010
I have this code..
javascript:function showMore() {ProfileStream.getInstance().showMore(); setTimeout(showMore, 2000)}; showMore();
i want to loop it 10 times, but do not know how to do it.I have been told that the for var command is what I want, but I cannot get it to work.
View 2 Replies
ADVERTISEMENT
Nov 3, 2010
I am trying to use the LPR command inside a javascript to print a PDF file directly to the printer. Want just a simple webpage with a button which will print test.pdf when clicked. code...
I know very little when it comes to javascript. If you know of a better way to use the lpr command
View 1 Replies
View Related
Feb 17, 2009
[b]How to close the exe files through javascript
View 1 Replies
View Related
Jun 5, 2004
What is the JS to refresh the page and possibly append some url parameters?
View 3 Replies
View Related
Jul 23, 2005
If I have a link to a URL such as <a
href="http://www.mysite.com/somecode.htm?5">Link1</a>, and if I include
javascript in the somecode.htm file, is there a javascript command that I
can use which will read the argument 5?
For that matter, is there anyway to send an argument to the javascript code
of an html link you are calling. Server scripts are not an option for me.
For example, assuming that index.htm contains 50 links, I would like each
link to point to the same html file, but I want that javascript code in that
html file to execute something different depending on which link was
clicked.
My only other alternative would be to create 50 similar html files which to
me looks like amateur or bad coding.
View 6 Replies
View Related
Jan 28, 2006
I'm working on integrating the a javascript wysiwyg editor (Xinha) with
my blog software (ExpressionEngine, aka EE). EE has extensions now so
it's easy to get the Xinha header code into the head section of the EE
web page.
But Xinha likes to use an onload command to launch:
window.onload = xinha_init;
....and EE is already using the onload command in the body tag of the web
page:
<body onLoad="document.forms[0].title.focus();set_catlink();" >
The onload command in the body tag is keeping the window.onload command
from working. At this point EE doesn't let extensions modify the body
tag.
Is there an alternative way to run the xinha_init command, without using
the window.onload command?
View 3 Replies
View Related
Feb 17, 2006
I know this should be kind of easy, but I am very unfamiliar with Javascript.
What I am looking to do is have an image (coupon) that when clicked on,
it either prompts for printing only that image, or pops up a window and
automatically after loading the image in the new window, brings up the
print dialog box. What would you suggest is the best way to do this?
View 2 Replies
View Related
Jul 20, 2005
We have an app in which we want to enable our users to open numerous
documents in new browser windows.
I got the new window open thing down but each time I open a new document it
opens it in the same popup window. I want to be able to select new documents
and open those selected documents one at a time in a new browser window as
the custormer selects a new document to open.
View 3 Replies
View Related
Jul 9, 2010
i try to insert div to another div with the command:
example: $("#stage").html($("#movie").html);
this command work fine, but when i try to press on buttons, in div "#movie",
View 1 Replies
View Related
Jul 7, 2010
I will have a list of numbered links and whenever one is clicked, I want to change the content of a <div>. Is there a simple command that does this? I've read a bit of jQuery but could not find this info.
View 6 Replies
View Related
Jun 21, 2010
I have thmbnails of pictures on a page & i would like to open up the full picture (which is already present on the page, but I have used css to display:none on it) in a div (ie overview) when user hovers over the pictures so on the pictures I have done:
Code:
<a onmouseover="javascript:show('{$row['productid']}');" onmouseout="javascript:hide('{$row['productid']}');" href="viewProduct.html?id=" . $row['productid'] . ""> <img height="100px" width="100px"src="images/thmb/". $row['imageLocation']."" /> </a>";
[Code]...
I am trying to pass in an id because the full picture has that id which is guaranteed to be unique! and I dont know ahead of time the id..
or this cant be done with Jquery/
disclaimer: I have done this using JAVASCRIPT successfully but I am learning Jquery so i thought why not use that..
View 2 Replies
View Related
Oct 10, 2009
I am having some trouble with one of my buttons, the one button works fine but my second one doesnt work at all. The second button should open the same page as the first and maximize it.
<html>
<head>
<title>commands</title>
<script type="text/javascript">
[code]....
View 3 Replies
View Related
Nov 23, 2002
Somebody kindly came up with the following code which I use in a .js file to send my visitors to a different link for each month:
months[9]="this <a onMouseOver="window.status='Go here to visit our September link' return true;" onCLick="location.href='http://www.septemberwebsite.com'" title="September" style="color: 1D418B; text-decoration: underline; cursor: hand; "> September Site</a>";
I need to integrate it into my site which currently has the following command in the header:
<style>
A:link {color:#1D418B}
A:visited:{color:#6699FF}
A:hover {text-decoration: underline overline}
A:hover{color:red}
</style>
Unfortunately, the hover and visited commands do not seem to affect the code I have provided. We've managed to incorporate the a:link command, as you can see, but not the other style features. Is there any way of adding the a:hover and a:visited command to the script? I've put the bit that we need to add these commands to in bold. I have tried several permutations of these commands, but it doesn't seem to have any effect on the text that is displayed.
View 1 Replies
View Related
Jul 23, 2005
i popup a new window in my submit command and return false;
but my parent still flips the page ! how can i stop it ?
View 2 Replies
View Related
Jul 23, 2005
There's some command I forgot that you can type into the
address field of a web browser that will cause it to
display the source code for that page instead of
the page itself. Can anyone tell me what it is?
It's something like:
viewsource:http://mysite.com
or
view:http://mysite.com
or
source:http://mysite.com
except I don't quite have it correct.
View 1 Replies
View Related
Jul 23, 2005
I was wondering if anyone has managed to "validate" js file using
jslint from the command line with an engine like rhino.
View 1 Replies
View Related
Mar 31, 2010
im not sure now to word it, or how to do it, im a php coder not a javascript -.-but here it is, basicly i have one ajax file and wish to use it for everypage,i tryed to do it so i can just call one function for all ajax uses, but forms seem to be thowing me off when i call it, i stat if its a form or a element,
function ajax(str, b, c) {
a = b;
type = c;
if (type === 'form') {
[code].....
in this, the variable a is set as the id of the elemnt/form, it works fine for elemnts, but not for forms,i think this is because its thinking a is the id, not the variable,
View 2 Replies
View Related
Apr 23, 2010
Within my Flex application I write stuff to the browser via a javascript document write.Is there a command to send to indicate I want to close that stream? When I send the command the rotating indicator keeps running indicating the browser is still expecting some stuff. If I click the stop button on the browser it stops spinning and the stuff I sent (an xml stream) becomes available. As this is an automated process, there is no person to hit the stop button.
View 2 Replies
View Related
Jun 26, 2010
I have cpa gateway on a site that when the customer completes a function of the gateway.The external js of the gateway sends a command to the website to reload the site.Is there any way I can have some sort of event listener to know if that command is sent or not? The problem I'm having is its causing a loop in my existing JS.So it keeps looping the page. I would like to be able to set a cookie when the command is sent and then just have the cpa gateway not load.
View 1 Replies
View Related
Sep 18, 2009
Even though my javascript/ajax knowledge is very low,I have a python script that runs from php with exec command. It takes about 5-10 seconds to complete. While the python script is processing I would like to show a progress bar to the user. In fact, it doesn't need to be a progress bar, a 'loading... bar' would be more than enough.As I have already said, I don' know much about this, but I think I need ajax to do this. Googling about this I have found this blockUI plugin that seems great.
View 2 Replies
View Related
Dec 7, 2009
I am having issues trying to get the javascript to load when I load the page. I had it before and lost the file now I can't seem to get it again. Here is my code.
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "[URL]">
<html>
<head>
<title>Wheeler Insurance - Customer Survey</title>
</head>
<body onload="java script:View Survey();">
<p><p>
<script language="javascript" type="text/javascript"><!--
var PDF_surveyID = '095504C919339503'; .....
View 2 Replies
View Related
Jan 30, 2005
I need to upload a file from a known location on a server to a static FTP address. Now I was using Windows built in FPT client which is easy and I can create a text file which contains the FTP commands i.e open 10.10.10.10 put file1
for example, The problem is the name of the file to be uploaded changes and the ftp script is simply a DOS text file. I need to therefore ask the user for the name to the file to upload and then using this together with the FTP command (as all other infomation stays the same) to upload the file. I was thinking about creating a simple web page asking them to put the name of the file into the form hot go. It would be good if the JavaScript could then take the input from the from as the file name and then FTP this (from the source directory which always stays the same) to the destination which also always stays the same.
View 2 Replies
View Related
Oct 4, 2007
I'm not very good with coding and this seems like a very basic issue. I have a resume page that opens up in a new window. I made a button on the resume page that fires up the print command window when clicked using this code:
javascript:window.print()
It works fine except it only prints the first page. How I can get it to print all the pages?
View 5 Replies
View Related
Jan 24, 2011
I have a menu system that toggles the visibility of different divs. Here is an example of how my javascript is now:
$("#one").click(function() { $("#m").hide("fast"); $("#n").hide("fast"); $("#o").hide("fast"); $("p").hide("fast"); $("qx").hide("fast"); $("rx").hide("fast"); $("sx").hide("fast"); $("#one").toggle("fast"); return false; });
Is there any way that I can make it so it hides all divs and then toggles the one I want WITHOUT having to write it out like this. is there a 'hide all' option?
View 3 Replies
View Related
Sep 22, 2011
In this code...
Why does the .stop() need to be in there and why is it located before the .animate() command, it has nothing in regards to the .stop() in the .animate() documentation...Im just a few days into jQuery and want to make sure I understand everything.
View 2 Replies
View Related
Nov 7, 2011
I am trying to create some divs that hide and show when a link is clicked. There may be multiples on the same page and it each needs to functionindependently.
I've added it to jsfiddle : [URL]
When the user clicks a show more link the first time nothing happens. If you do it again the div expands as planned (great!). If you do it again to close it slides back up but then bounces straight down again (Not Great!). I can't figure out what I've done wrong!. Eventually I'm going to add more functions to show some hidden data as well.
View 4 Replies
View Related