The statement I'm concerned about in the following statement is fancybox = 1; That needs to happen if my maxWidth for any of the temporary images I create is over 480.
A little background on the html this interacts with:
I have a link wrapped around an image.
The image is a resized version, and the link's href is to the original, unsiz...
I have an environment that doesn't allow server side scripting really (it is extremely difficult to get a script "installed" on the server). I tried using an iframe to violate javascript's same origin poilcy; however, that didn't work. Are there any other workarounds I am not aware of?
Thanks!
...
When I am clicking a submit button on my HTML form, the function related to the button is called and it does its work. After completing the work a mail notification is sent which is consuming too much time. After that a confirmation message is displayed on the same HTML page (without using Ajax; i.e., the page is refreshed).
I want to a...
How to display html content
<script type="text/javascript">
function replaceContent(show) {
var display = new Array();
display[1] = 1.html;
display[2] = 2.html;
document.getElementById("ShowItems").innerHTML = display[show];
}
</script>
<a href="#" onclick="replaceContent(1)">1<...
Hello!
In my php + javascript project i have to show images and some of then have accents,
like ~ ç and ^.
My site are not showing these images.
I know that there is a function to treat this, but i forgot.
Somebody can help me?
thank's
...
when i try to send a webpage via email using the "send page by E-mail" menu in the internet explorer, the webpage is not displayed properly.
On the webpage we have javascript enabled dropdown menus that impact the layout of the page.
is there any special coding for outlook editor so that it will appear the same as in ie?
-Vivek
...
Hi
I want to get the innerHTML of an element that may have been changed by the user.
So, for example, I want to know the state of a radio button:
<input type="radio" name="Q_209" value="A" checked>
or
<input type="radio" name="Q_209" value="A">
In modern browsers, innerHTML just gives the original tag when the page was loaded (a...
hi all
i have a page that has sections as divs with inner divs and content. The numberof divs varies alot from less than a page to many pages when printing.
I am using page-break-inside: avoid on every section div so that all sections are never printed / split accross 2 pages. (This i only get to work in firefox but that whole other...
trying to change a websites text entry field that is currently set to read only to false. The reason being it has an 'Upload" button where you browse to the file on your computer then hit upload. I just want to set the path in a script but since the text field is read only i cannot. Any other ideas would be appreciated.
thanks
...
I have successfully installed the Cycle plugin for Jquery and have my banners cycling the way I want them. My question is around building the anchors. I am trying to build something similar to http://www.bazaarvoice.com.
Seems like the anchors are being generated from the javascript but I could be wrong. Here is my html and javascript....
Is it possible to get the window.scrollY property in Javascript on the Palm Pre? Doesn't seem to be but maybe there is a secret Palm-ish way?
I've tried:
var y = window.scrollY;
var y = jQuery(window).scrollTop();
Neither seem to work. Anyone know the answer?
...
I don't understand jsonp.
I understand JSON. I don't understand JSONP. Wikipedia is the top search result for JSONP. It says JSONP or "JSON with padding" is a JSON extension wherein a prefix is specified as an input argument of the call itself.
Huh? What call? That doesn't make any sense to me. JSON is a data format. There's no ca...
So after a huge headache, I got my site to load its pages all via ajax. The reason being the client wanted it to flow exactly like their old flash site.. duh.
Anyway, everything was dandy, but then I added the google analytics trackers, and it wont load anymore!
So heres how I am doing the ajax:
$("li.home a").click (function() { ...
I am trying to make a scriptaculous slideshow but I have no idea how to loop over all the images in the div tag and then check if it is the last image and assign it to the first img. I can add the fading and whatnot myself but I have no idea how to loop through them.
...
The JSON spec says that JSON is an object or an array. In the case of an object,
An object structure is represented as a pair of curly brackets
surrounding zero or more name/value pairs (or members). A name is a
string. ...
And later, the spec says that a string is surrounded in quotes.
Why?
Thus,
{"Property1":"V...
How can I do that?
I would like them to be able to click play, pause, volume, and of course...fullscreen.
I heard you can do this with QuickTime or something? Anyone have any suggestions?
EDIT: These video files are on other people's servers. (We're a search engine)
I just want to pass take the URL of the .mp4 file...and do some java...
I am looking for a JavaScript framework that provides encapsulation of UI widgets, and allows the developer to define composite widgets. In particular, I need to be able to take a widget, clone it, and place it somewhere in the document, and the widget should take care of managing any subwidgets and of keeping matching DOM objects and Ja...
In psuedo code, this is what I want.
var selector = $(this).cssSelectorAsString(); // Made up method...
// selector is now something like: "html>body>ul>li>img[3]"
var element = $(selector);
The reason is that I need to pass this off to an external environment, where a string is my only way to exchange data. This external environment...
Could anybody tell me how to create something like the hint/labels on Apple's MobileMe login page (www.me.com) in that the label/hint text just fades when you click on the box and doesn't go away until the user starts typing?
(And if you could use JQuery to do it, it'd be even better.)
Thank you very much!
(By label/hint text I mean t...
Hey everyone, I am trying to hide/show different html elements (div, etc...) based on whether a checkbox is checked or if a specific value is chosen from a dropdown box. I was wondering if someone can help me out. The html element is defined along the lines of this (below), and i'm not sure how to reference it by name with brackets in it...