javascript

Web page width more than 100% need help finding the problem

Hi all, I've been working on a wordpress theme and just now noticed that the width of the page is more than 100%. I know that posting the code here would be helpful, but I don't know what portion of the code is the culprit. Whether it's a wierd HTML issue or CSS or otherwise. I've tried removing the javascript links in the header as ...

Question about script tag in ASP.NET

I saw code in a project which looks like this: <script src='http://toolbar.wibiya.com/toolbarLoader.php?toolbarId=22800' type='text/javascript'></script> I do not understand what the "src" attribute in a script tag means. Can you explain it to me? Thank you. ...

iframe problem using javascript

Does anyone know how to get the HTML out of an IFRAME? I have tried several different ways: document.getElementById('iframe01').contentDocument.body.innerHTML, document.frames['iframe01'].document.body.innerHTML, document.getElementById('iframe01').contentWindow.document.body.innerHTML, etc but none of them worked. I believe the reaso...

Looking for IE6 .PNG Transparency Fix for both img tag and background images...

Not sure if this exists as I have been googling all around and can't find anything great. Thought I would post this question prior to redesigning the page I am working on. Is there anyway to fix the transparency problems with .png's in IE6 for both image tags and background images? Please tell me there is a magical javascript that jus...

ckeditor doesn't show cursor in IE6/7/8?

The cursor won't show unless you start to type. This problem exists with the samples in its release. Is there a way to fix that? ...

Is it possible to use an HTTP PUT to submit form data?

Simple question: everyone knows you can POST data in a HTML form to the server, and the browser will handle serializing the data in the form. However, is it possible to do this using a PUT verb instead? Either through Javascript or some other means. ...

translate .js files using gettext

Hi, I found this cool js gettext library -> http://code.google.com/p/gettext-js/ but I don't understand how to implement it. I am using poedit to edit the translations and I can see that it works when I checkout the project and run the demo file but when I make changes to the text, the .po files don't get updated and I can't see the new...

Javascript validation on multiple input controls

i have arrays of input controls and want to check on submit that they should not be empty ...

multiple external link buttons with jquery simpleModal box

I learned how to pass the argument with a simpler javascript confirm box, but now I'm working with this SimpleModal script, and I'm a bit lost. I have a page with several buttons that will link to different external pages. When I click any button, the confirm box will pop up and when user clicks ok, then they are taken to that specific...

change dimensions of webpage

i have a webpage that looks like this: http://yoursdproperty.com/index2.php?option=com_jumi&amp;fileid=3&amp;Itemid=11 i want the page to be the same size as the dimensions of the little form on the page. is there something i can modify in this code of the page? <div id="mlcalc-w1"> <div id="mlcalc-w2"> <div id="mlcalc-w3"> <div id="...

How to create a javascript bookmarklet to paste text into all textareas on webpage?

I have the following code which works to a degree with text fields but not textareas javascript:(function(){for(var%20text=prompt('enter%20text%20to%20fill')||'',ins=document.getElementsByTagName('input'),it,m=ins.length,i=0;i<m;i++){it=ins[i];if(it.name=='text')it.value=text;};}()); Thanks for any help. ...

How can i delete something out of an array?

My problem is that i have to delete something out of an array. I found out how to delete something out of a listbox. But the problem is that the listbox is filled by an array. So if I don't delete the value (I deleted out of the listbox) out of the array. The value keeps coming back when you add a new item. BTW: I am new to php and javas...

JS library to work with canvas

Do you know a good js library to work with canvas? I've already tried with Processing.js but i want to know if there are some good alternatives to it. ...

if i'm using jquery library with some plugins should i place all at bottom , just before </body>

if i'm using jquery library with some plugins can i place all at bottom , just before </body> or it depends? are there some situations where library+plugin should place in not at end of not bottom? ...

Derive window.self from object

is there a way to get window.self of an unknown iframe (same domain) with the only reference: an object within the iframe (a div). holding thumbs for this one ...

JavaScript string.format function does not work in IE.

Hello, I have a JavaScript from this source in a comment of a blog: frogsbrain It's a string formatter, and it works fine in Firefox, Google Chrome, Opera and Safari. Only problem is in IE, where the script does no replacement at all. The output in both test cases in IE is only 'hello', nothing more. Please help me to get this script ...

What's the best way to keep track of live notifications to send to a user?

I'm using a growl-like plugin for jQuery send live messages to users to share activity on the site. Right now I only update the user with notifications that happened since the user's last access on the site. However, when I have multiple tabs open on the site, only some of the tabs get the notifications due to the long polling requests...

Values in the javascript is unloaded when onclick event is called for rounded corner div tag

Hi I'm using javascript for rounded border for the divtag.It's working. But, the problem is whenever the button click event is called, the javascript values are uninitialized(I suppose) and so the div tag loses it's rounded border. Again, if I refresh the page, I'm getting the rounded corner.. Here is my code!! addEvent(window, 'load',...

Growing an Iframe depending on the source inside it (which is another Server)

I use javascript to expand an Iframe to the size of the document it loads to remove any vertical scrollbar, like so: function resizeIframes() { $('iframe').load(function() { this.style.height = (this.contentWindow.document.body.offsetHeight + 40) + 'px'; } ); } Which works well enough for my uses. B...

javascript window.close() works in one case but doesnt in another

in both the cases , i am trying to close a popup window opened from the same parent using the similar code. In both cases the function is being called inside the call back function of the jquery $.post method. But while one of them works properly, the other one throws an error Firefox: window.close is not a function Chro...