|
|
| newer topics <<< | >>> older topics |
| how to design config module to handle |
| What is the best way to design a module/class so that I can abstract input data from program logic, for example...I want a config class to be able to handle .xml, .conf, or input from a db...what is ... |
| item.value |
| Anyone see a problem with that? I suppose item.value might be a string ... |
| tolower function |
| Is this syntactically correct? * dnm (i=dnm@113.sub-70-220-238.myvzw.com) has left #rails If ($('cart').innerHTML.match(/No items/)) { What's the tolower function in JS? If ($('cart').innerHTML.toLow ... |
| returning undefined |
| Hey.. I am trying to use createTextRange on a textarea object but it keeps returning undefined, the textarea is not null though.. anyone know what I'm forgetting? ... |
| changin the value of a form |
| Is it possible to change the value of a form element from within a link using javascript? i don't want to create a function on which to call ... |
| onchange of a selectbox |
| <script language="JavaScript"> function f() { alert('a'); } </script> How can I call that from an onchange of a select box? ... |
| XmlHttpRequest versus var script |
| Why do people use XMLHttpRequest when creating a new script object and appending it to the body in some cases seems so much natural? ... |
| how to gat along with AJAX |
| Hi all. I'm trying to get along with AJAX. This doesn't seem to have any errors besides the last function, is this not allowed? it points at the '-character where I declare var newsForm "Unterm ... |
| how to get only the document size |
| Is there a way to get the document size and not the window size? I dont care how big the window is, but what i need is to find out the viewable space of the web page Everything i keep finding is the ... |
| word wrapping |
I'm trying to deal with word wrapping a div with javascript and css
I've found this: http://scottonwriting.net/sowblog/posts/2272.aspx
But that assumes a element Do you know if that will work o ... |
| menu with flash |
| Hey ive tried doing menus with flash ( bad idea obviously ) and images. i'd like to try something thats easy to maintain, like button images with text on them where the text can be modified right in ... |
| how to send a js variable to php |
| How could i send a javascript variable to php? ... |
| how to make p str to be evaluated as html tag |
| How do I make '<p>' str to be evaluated as html tag ? ... |
| how to make custom object work with addEventListener |
| Hi, anyone know how to make my custom object work with addEventListener? ... |
| the array is still empty |
| I defined an empty array in my .js, inside of a function I stick some things in there, call the function, and the array is still empty. Is there some bizarre scoping going on here? I didn't think js ... |
| querying an oracle db via js |
| Ok, does anybody have links about querying an oracle db via javascript? Google isn't being wonderful to me There must be some libraries to do this? ... |
| how to add text to div in IE |
| How do I add text to <div> in IE ? O.type is undefined Comments.innerHTML=str; worfroomzer in FF ... |
| change the value of a radio button |
| I have a tablecell and i would like to select the radio button within that cell when the user clicks on the cell How do i change the value of a radio button? ... |
| script for searching elements with attribute set |
| Hiya. With Javscript and DOM/whatever, I would like to be able to get elements based on an attribute I invent. So for example: <span myAttribute="myVal">stuff</span>. I'd lik ... |
| how to capture the mouse leaving the browser window |
| Hello all ... any idea how to reliably capture the mouse leaving the browser window so I can cancel my drag and drop? ... |
| how delete a particular element from an array |
| How to delete a particular element from an array? ... |
| how to see all object attributes? |
| How do I see all object attributes/properties ? I try for (x in arr){ alert(arr[x]);} But it shows only value ... |
| problems with link |
| Hey guys - i have a hyperlink with an onclick event, that fires a function that calls (confirm) to confirm if the user really wants to follow the link. However returning false doesn't stop the link f ... |
| getElementsByTagName |
| When reading XSL using javascript. If im trying to get a tag like <m:name>Joe</m:name> Would i just do a getElementsByTagName? Tagname being m:name ... |
| print only the target frame |
| "parent.frames[1].window.print();" Shouldn't this cause a print dialog to appear, that prints ONLY the target frame? For some reason, when I do that, it's printing all of my fra ... |
| how to get the id of the first child node of list |
| Maybe you guys can give me a help with this question. I want to get the id of the first child node of "list" in the following paste. How do I get to that? ... |
| use the iTunes Store |
| Anyone ever use the iTunes Store here? I'm trying to replicated the popular album scrolling where 4 albums are shown and when you click a button, they slide to the left and 4 new ones slide in? Anyon ... |
| help me out with htc file |
| Hello, can anyone help me out with .htc file . The file is triggered on event="ondocumentready". I would like to trigger it again when I replace innerHTML on paticular element on the page. ... |
| how to add html entity using appendChild |
| How can I add an html entity (e.g., &rarr;) using appendChild? When I put it in a textNode, I actually see the characters &rarr; rather than the right-arrow entity. ... |
| geting id in the onClick method |
| I have an element in a page, I would like to get it's id in the onClick method. anyone know off the top of their head how to do that? OnClick="doSOmething('this-elements-id')" ... |
| value of selectedIndex |
| Is selectedIndex null if a select has it's top entry highlighted? ... |
| javaScript with sql query |
| Hi all. I've got an html form. I want to trigger a sql query (via php) when a field is exited, based on the value of the field, and fill in another field with the results of the query automatically ... |
| linksys router |
| I'm poking around my Linksys router and playing with traceroute and come across Copyright 2003 CyberTAN inc. This software should be used as a reference only, and it not Intended for production use! ... |
| how to escape an ampersand |
| How do i escape an ampersand? (to i's hex code, so i can send it in a GET request) ... |
| assing two classes to div with HTML |
| Can I assign 2 classes to div with HTML ? Like class="A,B" ... |
| using prototype and yahoo ui |
| Hey Is it a bad idea to use prototype *and* yahoo ui? ... |
| how to get the id value of the firstChild |
| Hey all, quick and probably very easy question. How do i get the id value of the firstChild? ... |
| how can suppress return value |
| I'm writing a script for a website, but when I set the value of a text box, it returns the value and prints that on the page (and gets rid of everything else). How can I suppress this return value? ... |
| how to eval with a modified namespace |
| I was wondering if there's a way to eval (or some equivalent) with a modified namespace, similar to python exec I have something like onclick="function(this, 2)" and the 2 is a constant I w ... |
| header function |
| Hi How should I use the header() function to force IE open a pdf file in the external program ? ... |
| displaying in a div without using eval |
| Is there a way to have a form where you enter in javascript code then click a button to have it run the code and display it in a div without using eval()? ... |
| funny question') |
| What does e.getAttribute('attributeThatDoesntExist') return if the attribute doesnt exist? ... |
| problems with onchange in FF |
| I have an onchange="" event for a select box. In IE, it works fine. However, on Firefox, the onchange event does not fire if focus remains on the select box, ie, if you use the arrow keys ... |
| AJAX request block |
| Is there any way to make an AJAX request block? Would that be {asyncrhoneous: false} ? I want to make sure the request is complete before moving on to do something else ... |
| how to handle a situation with multiple cases |
| LOL. *whistling sound of bomb dropping* can anyone tell me how to handle a situation where one might want to have multiple options or cases in a logical statement>? If else type stuff. I have mo ... |
| how to disable an A element via JS |
| Yo..how do i disable an "A" element via JS? ... |
| ajax front-end |
| This whole writing a php backend and an ajax front-end thing is confusing me Why can't there just me javascript sockets! ... |
| CurrentElement function is not working in firefox |
| CurrentElement.nextSibling.nextSibling.focus() function is working fine in IE but not in firefox CurrentElement.focus() is also not workin properly in firefox Any help please ... |
| each row contrain a separate form |
| That won't help me. I wanted each row to contain a separate form. Actually, that's what i've been doing until i ran into a javascript problem. went to validate and found out why :) ... |
| documnet getElementByld doesnt work |
| Anyone know why document.getElementById("foo").value = bar1+bar2+bar3; doesn't work for me? Bar1= document.getElementById['bar1']; etc. Shouldn't that work? or am I missing some ... |