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:
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'; .....
I have a text box that gets its name, id, and value from a SQL query.
[Code]...
My problem is that when the page loads with the values from the SQL query, I want all of the text boxes to run their upperCase function to change their respective background colors and I cannot figure out how to do this when the correct responses and initial text box values are set from the SQL query.
I thought I was genius when I put the onload event in there (which obviously doesnt work with an input element).
Is there any way I can check to see if a document is loaded into the iframe before I call onLoad (sort of an afterLoad).
I'm loading up a page into an iframe. But because we use four servers which use load balancing, the content isn't specified straight away. Therefore as I'm using onload to resize the iframes scroll bars to the size of the iframe content, I need to wait for this to be loaded first. Is there an alternative to onLoad that will do this?
I'm having a hard time figuring out why the onload event is not being called for the frameset window in the following simple example. It is being called for each of the component frames. Code:
Specifically, window.onload appears to fire before all the elements of the page have been rendered. As the difference is consistent across IE/Moz/Opera, I'm assuming it's deliberate - can anyone point me towards where this behaviour of window.onload is defined in the documentation? TIA. Code:
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
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.
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?
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.
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.
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:
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.
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.
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
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,
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.
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.