I have a form field that starts out disabled and has an onClick to enable it. The onClick doesn't fire (at least in FF) nor does a simple alert(1);.
The hacky version is to show a fake form field in its place that "looks" like it's disabled (grayed out style) and onClick, hide it and show the correct field enabled, but that's ugly.
Ex...
I have 2 tables in DB:
1- Element:
ElementID
ElementName
2- Methods:
MethodID
ElementID
MethodData
So there is a one to many relation between Elements and Methods,
I load these tables data using asp.net,
What i want to do is to send these data to my javascript, and javascript will do some functions on these data.
For example ...
Is there any way to extract the request url from an xhr object?
I can see the url in firebug via the channel property but you cant query this using javascript.
...
I have a problem where a method is getting an undefined variable error, even though I check for the variable being undefined before calling.
// Sets focus and text-select to the passed in element.
idNav.prototype.setFocusFromVar = function(r) {
document.activeInputArea = r; // my variable for tracking focus
r.focus(); // er...
Hi,
i am looking for some tipps how to solve my problem.
I habe a html element (like select box input field) in a table. Now i want to copy the object and generate a new one out of the copy, and that with JavaScript or jQuery. I think this should work somehow but i´m a little bit clueless at the moment.
Something like this (pseudo co...
I have a div with a width of 200px. There is text inside that is set not to wrap. So there is overflow. I need to get the width of the content of the div including the overflow.
I am using this for a YUI autocomplete dropdown menu. I want the dropdown to grow horizontally if the width of a result is greater than the width of the div.
H...
I currently have a page structure that consists of a page(Parent) that includes an iframe(iframe0) and inside that iframe I have another iframe(iframe1). In iframe1 I have a javascript function that I am trying to call from Parent. In Firefox/Chrome/Safari I am able to call this function with the following code:
frames["iframe0"]["if...
I am having issues with an Ebay template, if I try to upload it get's kicked back to me saying that it cannot contain javascript, I'm assuming that it's in the picture rollover option (mouseover pic enlarging tool) Any help would be greatly appreciated, I'm not real Java intuitive.
...
I have a web application that uses TONS of javascript, and as usual, there are a lot of textual constants that will be displayed to the user embedded in the code itself.
What do you think is the best way to make this localizable?
I know I need to take those strings off of the code and replace them with constants, which will be defined i...
I am creating a chunk of HTML/JavaScript with the below code:
$result = mysql_query("SELECT * FROM posts WHERE userid = '$user_id' ORDER BY DATE desc LIMIT 5")or die (mysql_error());
while ($row = mysql_fetch_array($result))
{
$source = $row[source];
$source = "'$source'";
$p = $p.'<div id="red-div"><div id="smartass"><di...
I was wondering if it was possible to grab the username of the account logged into the computer. I wanted to print the username of the person that is printing out the pdf file.
I was thinking about trying to grab the %username% environment variable. Does not seem to be possible.
...
I am developing web applications with c#, Aspnet 3.5, and Ajax 2.0.
Question - I run Application_1 in ie7. I would like to programmatically start running Application_2 from Application_1 in a new tab, no matter what the client settings are.
Until now I have been opening Application_2 in a new window from Application_1 using
Scri...
This should be easy (at least no one else seems to be having a similar problem), but I can't see where it is breaking.
I'm storing Markdown'ed text in a database that is entered on a page in my app. The text is entered using WMD and the live preview looks correct.
On another page, I'm retrieving the markdown text and using Showdown.js ...
I have a bunch of Ajax requests that execute just fine, but I end up with a syntax error in my browser.
Can anyone see what's wrong with my request below?
function getName(refId)
{
var resp = '';
new Ajax.Request('/servlet/GetName',
{
method:'post',
parameters: {'requestType':'ref',
'value':refI...
How can I loop through all members in a JavaScript object including values that are objects.
For example, how could I loop through this (accessing the "your_name" and "your_message" for each)?
var validation_messages = {
"key_1": {
"your_name": "jimmy",
"your_msg": "hello world"
},
"key_2": {
"your_name": "bi...
I have a problem with IE.
I have a layer that has this style to make it transparent and fullscreen.
position:absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background-color: #000000;
filter:alpha(opacity=50);
-moz-opacity: 0.5;
opacity: 0.5;
z-index: 1;
And i use the JQuery method fadeIn and fadeOut to show and hide it.
Wel...
One of the most powerful things of jQuery is to select any item on a page like this:
$(".block").css("border","3px solid red");
How can I also get the values of the selected items like width height and top left offset?
...
I was trying the next code without success
HTML
<a id="addBookButton" href="javascript:showForm('addBookButton','add-book','activateAddBookForm');" class="addA"><span>Add Book</span></a>
Javascript
function showForm(button,form,callback) {
$("#"+button).hide();
$("#"+form).show();
callback();
}
...
Visual Studio Team system 2008 crashes without any error messages whenever I try to open a specific Javscript file. I found this thread on social.msdn but installing the KB958502 hotfix didn't fix the problem.
Has anyone else experienced this and solved it?
...
$('#servertable td:eq(' + server + ')')
this finds only 1 (first I think) match, how to find all matches.
btw. td:contains will not work for me.
...