Here's my stripped down function for recursing through a browsers dom structure.
(function () {
function displaydom (child, parent) {
if (parent) {parent = parent+".";}; // if there is no parent then child is the parent
var jsns = eval(parent+child); // Join parent + child and eval
for (var i in jsns){ // l...
There are several images in folder . I want to fit as many images as possible from the folder into an html page. The images will be selected at random and will have different width & height. I don't want the dimension of the images to change.
How can this be accomplished ?? is this doable with JavaScript ?
This looks pretty complicated ...
I am using Jquery - is there a simple way to change the background color on a div when a user rolls over it?
...
Is there any open source text editor like ckeditor that we can embed into our website for arabic input?
...
I want to dynamically tell a javascript which <div> to hide, but I dont know how to send the request to the javascript as it is a client side script.
for eg:
<?
$divtohide = "adiv";
?>
<script language="javascript">
function hidediv($divtohide) {
................
}
</script>
...
This is what I want to do...
I want to prevent users from printing a page
I thought I would set the screen to not include the toolbars, and prevent right clicks, and prevent ctl+ p, and the print screen button... Can this be done...?
any good code out there for this... I have searched quite a bit so far, but not much luck... I know...
Hi!
I'm trying to build a safari extenstion (mostly for learning purposes) that creates a delicious bookmark, when the user right clicks on a link. I've watched the WWDC Creating a Safari Extension video and everything is working fine.
Except that i don't have a clue how to find out if the user clicked on a link (or just some text) an...
I'm trying to access user's language preference w/o using server code.
I'm looking for some JavaScript like this:
var language_array = jQuery.languagePreferences();
//en-ca,en;q=0.8,en-us;q=0.6,de-de;q=0.4,de;q=0.2
I know I can use HTTP_ACCEPT_LANGUAGE on server side, but what about in JavaScript/JQuery client-side static (non-server...
Hello, javascript newbie here, I wrote a form in html and submitted it with an onchange event, but after I added a daterange picker in javascript the submission doesn't work. Here is my code:
<form id="dash_form" method="get">
<div>Select a Tag Bundle dimension:</div>
<select name="dimension" id="id_dimension" onchan...
If I wanted to get a javascript library published to the ajax CDNs hosted by Google or Microsoft, what would I have to do?
Are there any formal requirements for this, like number of users etc?
...
Hi,
I am trying to use eval() function to deserialize this JSON text by using eval function.
var personJSON = {"FirstName":"Burak","LastName":"Ozdogan","Id":"001"
,"Department":"Information Technologies"};
var personBurakOzdogan = eval('(' + personJSON + ')');
But I am getting this error:
*Microsoft JScript compilation err...
is it possible to behave according to the user's resolution?
...
Hello,
Like the str_shuffle() function in PHP, is there a function similar in shuffling the string in javascript ?
Please help !
...
Hello!
I have the following situation. I have 2 frames (top and bottom). The upper frame monitors the current loaded page in the bottom frame. How can I know if the users changed the location of that frame (the url)? So I want to know when the user, press a link in that page, that goes somewhere.
I found something like this here: http:/...
I'm trying to give the user ability to create customized list for my application,by insert his choices in text area field ,each line is treated as one choice using the \n (enter) as separator , i need to allow user to enter one choice in multiple lines,any one can help?
<textarea></textarea>
user enter :
aa
bb
cc
with enter in textare...
Possible Duplicate:
Difference between using var and not using var in JavaScript
Hello,
I am a self learned developer. Always, i write javascripts without the var for variables. But some javascripts use var for variables.
Both worked well for me. I am bit confused by this.
Is Writing scripts with var a standard form or the...
Hi,
What are good options to restrict the type of html tags a user is allowed to enter into a form field? I'd like to be able to do that client side (presumably using JavaScript), server-side in PHP if it's too heavy for the user's browser, and possibly a combo of both if appropriate.
Effectively I'd like users to be able to submit da...
hello i have a problem that's maybe difficult to descripe,
i have an application, that simulates a pizza store. i have a page "bestellungen" ("orders")
in which i have some javascript.(the head,javascript and body i declare in page.php, from which the other ("sub")pages "extends".
right now, everything works, but now, i want to add to ...
I am working with an IFrame and I can't seem to figure out a way to disable only the horizontal scrollbar in IE7. I need the vertical scrollbar but I want to completely disable the horizonal bar.
Check out the IFrame setup here: Iframe Example
I have disabled horizonal scrolling in the other browsers using:
overflow-x: hidden;
overf...
This is how I have things setup:
container.html
database1.js (contains large array called database1)
database2.js (contains large array called database2)
Here's a sample of the array (shortened from 6000+ rows to 2):
var database1=[[
"2010-01-03 07:45","2010-01-03 11:00","534","A","","","","","Installed washing machine","0","1",...