Hi,
I need to inject in an iframe window a document object that I instanciated previously, and I cannot serialize it into a string or a remote url (those are solutions proposed on previous stackoverflow posts), because elements of this document objects are bound to other objects in my code.
How can I do it ?
thanks,
b.
...
This is a long shot but I've seen things which might make it posssible.
I have a div, which is filled with images. Album covers if you must know. And I want to allow users to download this as an image. So they could use it as something like a desktop background.
So is this possible? Get this visual representation of an element and disp...
When I want to prevent other event handlers from executing after certain event is fired I can do one of those (jQuery examples, but this will work in JS in general):
#1 event.preventDefault()
$('a').click(function (e) {
// custom handling here
e.preventDefault();
});
#2 return false
$('a').click(function () {
// custom ...
I will be delivering a set of static HTML pages on CD-Rom; these pages need to be fully viewable with no Internet access whatsoever.
I'd like to provide a full-text search (Lucene-like) for the content of those pages, which should "just work" from the CD-Rom with no software installation on the client machine.
A search engine implement...
Hi,
I need some help with my js file. I an using a bit of javascript to show some xml on a page and I need to reference the right xml file according to the page that it is on. e.g.
<script>
xml=loadXMLDoc("product.xml");
</script>
I have the all the xml files named as different products and have printed out the reference to the x...
I have variables holding the translated labels for buttons inside a jquery ui dialog.
I cannot fill the button array key with the variable itself, and can't find any way to let it treat my variable just as string.
translations['ok'] = 'ok';
translatinos['cancel'] = 'cancel';
// not working
jQuery('#foo').dialog({
buttons:
{
...
how to disable firefox maximize button for popup window?
...
Hello there,
I'm by far no JS developer (in fact, hardly developer at all :) but I wanted to try to write a small Greasemonkey script to hide few elements on a certain webpage. Once I've started dabbing at it, I've decided to use jQuery, just to make it easier. Everything went well, the script is working, but now that it's ready, I've s...
I'm trying to create a multiline textarea in a php page, and I want to validate so that if the user can't insert more than 50 characters per line, or more than 50 lines.
The idea is that the user can paste something from a spreadsheet, but if one line has more than 50 characters, the rest will be discarded, and not inserted in the next l...
Does anyone know about good tutorials for developing KDE plasmoids in Javascript?
I have been going over the KDEBase Tutorials, but they have just few examples and not going into advanced techniques.
PS: Does nayone know, why "executable" dataengine is not working - e.g. I am not able to fetch any commands output?
...
Is there a way to create a dynamic array of strings on Javascript?
What I mean is, on a page the user can enter one number or thirty numbers, then he/she presses the OK button and the next page shows the array in the same order as it was entered, one element at a time.
Code is appreciated.
Thanks
...
Hi
I keep having problems integrating a JQuery Lavalamp with Submenus. Take a look at http://karen.2kmegs.com the lavaLamp feature only works when hovering on the submenu items. I would like it to move when hovering on the root item like for example Products.
My Javascript code is
function fademenu() {
$('.fade').hover(
function ...
Can someone tell me where to add the small piece of code to have one row added on top of the table containing the numbers. I only need 1 row added, but with the code supplies beneath, 15 cells alre placed on top of eachother, I think the code places a cel for every name.
$("#myTable tbody").prepend("<tr><td>...contents...</td></tr>");
...
Hey everyone,
I have this javascript
function getsomethingelse()
{
//erzeugt den HTML-Code
var string;
string = "<b>This is a site</b>"
//beschafft eine referenz auf das <div> element auf der seite
myDiv = document.getElementById("container");
//lädt Inhalt in das <div> element
myDiv.innerHTML = string;
}
...
So I know that it is easy enough to swap images of named img tags
<img name="image1" src="" />
<script>document["image1"].src="candybar.jpg";</script>
The problem is that I am being forced to use content server, and I can't name the image tag.
So If I name a Div tag that wraps the image can I use that to specify the image tag in ques...
I have the following javascript function on a page that is hosted on iis6 on win2k3 sp2 64 bit. The application is asp.net 3.5 and this is the only page in the app.
This code works fine on a developer machine and on one of our server environments but fails with a null reference exception on "ValidatorEnable" on another server environment...
I know that Visual Studio 2008 support JavaScript intellisense as I am using it with Jquery. I am wondering if anyone has ever explored how to get other libraries like Dojo and Dijit to work with it as well. I would assume you would have to provide the ///reference tag to your custom code but would still need a vsdoc for visual studio ...
I'm programming an order form that has multiple order items. Each line item is a row in form, identical to the previous row. I'm wondering what the convention for names and ids on the input fields. Do i use the same names and id for the fields in each row?
How do I reference an input field within a particular form row?
How do i refere...
Hey,
I asked a similar question last week asking about window pop-ups. I've thought of a possible alternative to window pop-ups and that's mediabox/lighbox style pop-ups.
Is it possible to have a link that you click on and it opens a mediabox type window to the side. (Possibly a window you can drag around within the page) Then you clic...
I have a div that is floating left and the other floating right. I want to check if the div that is floating right has children element; if the it don't have any visible element, I want applied and new class to the left div. See below:
<div id="leftContent" class="left ">
<table></table>
</div>
<div id="rightContent" class="conte...