Hi,
I am having the strangest issue with a site i am developing. On the homepage i have a flash slide show which displays fine in IE. However it does not appear in Firefox but instead leaves a white space.
I am using SWFObject to display the flash. I knows its at least firing as the holding image is removed. However if i right click o...
I have a method written in JavaScript let's say 'callme' and I have some jQuery code written within the block $(document.ready).
My question is how to call the existing JavaScript method 'callme' from within the jQuery block.
The assumed listing is as follows,
function callme(){
// do some complex processing. I don't want to do th...
In the spirit of
Common programming mistakes for .NET
developers to avoid?,
Common programming mistakes for
PHP developers to avoid?
what are common mistakes we should avoid for JavaScript?
...
Do you know how to make a DIV editable with JavaScript (cross-browser) ?
Something similar to a rich textarea, but that uses an editable iframe. I need something similar for a DIV.
I don't want to use a replacement textbox.
...
From searching SO, this question was already asked, almost a year ago now.
So now with the new FF, Opera, IE, is it finally time to start developing sites with HTML5 or is it still a little premature and will cause compatibility issues?
Is using HTML5 just going to require us to use more and more JS on websites to 'trick' older browse...
Hello everyone,
Suppose I have the following line of code in html, how to set the text color and size inside "MonitorInformation" DIV element in a programming way using Javascript in an easy way? Sorry for my stupid, I figured a long time but cannot figure out. :-(
<div id="MonitorInformation">Connecting...wait</div>
thanks in advanc...
I'm writing my first bit of jQuery and I'm having a problem with jQuery.get(). I'm calling this;
$.get(url, updateList);
where updateList is defined like so;
function updateList(data)
{
if (data)
{
$('#contentlist').html(data);
}
else
{
$('#contentlist').html('<li><a href="#" id="synclink">Nothi...
I've done some searching on this but can't find any sort of best practice or recommendation -- and perhaps that's because there isn't any. I'm using all sorts of jQuery plugins on my site, in addition to TinyMCE and some other plugins, and my site's specific JS file. On top of that, I have three stylesheets ..... and there's more comin...
What's The Problem?
Only in Internet Explorer (surprise) is my code executed incorrectly. The short crap of code below should append an "onclick" action to each "a" tag. This works wonderfully but look at the fifth line, it should set the second function argument to the value of the "href" attribute of the anchor tag. In WebKit, Mozilla...
Hi, I'm writing a simple web page that displays a table. It the right column of the table I want to add a button in every row that says 'View'. I wrote a function that does this in ie by creating a button object and setting value = 'view' but in firefox and chrome the button displays with no text. Does anyone know why? Here is my code...
I have a form:
<form>
<div id=content> form content (fields, etc) </div>
<div id=buttons>
<table>
<tr>
<td>submit button</td>
<td>cancel button</td>
</tr>
</table>
</div>
</form>
When I display error messages, the content div gets a bit bigger in height to fit in the error messages.
The weird thing is, in IE...
Hi again all jQuery coder
I have a problem with selecting and filtering elements inside a div.
My html looks like this
<div id="wrapper">
<input type="text" value="you can edit me">
<input type="button" value="click me">
</div>
and my jQuery looks like this
$("#wrapper").children().click(function() {
alert("hi there");
...
I am looking to do what the title says. As I am new to client side programming with java script all to together I do not know the "right" and "proper" way of achieveing what I need done.
I wish to use a simple javascript function
var x;
var items = {};
for (x = 0, x < 7; x++) {
items[x] = new num;
}
$("li").addclass("items" + n...
<p class="acp3">
<label>Status</label>
<select>
<% if <option>Active</option> %>
<%= account["status"] == "Active" %>
<% elsif <option>Disabled</option> %>
<%= account["status"] == "Disabled" %>
<% end %>
</select>
</p>
I am creating a selector with the html and I want to be able to have it access that variable...
Hello,
I have a bunch of text boxes in my ASP.NET MVC view which are submitted to the server. How could I preserve the current focus so that the user can simply hit enter on any text box or click a submit button, and when the page returns (this is all via GET) the focus is where the user left off?
Thank you!
...
Hi
I have a textbox which i applied on it jq wysiwyg:
public static void PopulateWysiwyg(this SafeTextBox tb)
{
string script =
@"
jQuery(document).ready(function()
{
jQuery('#safe_text_box').wysiwyg();
});
";
ScriptManager.RegisterStartupScript(
tb,
tb.GetType(),
tb.ClientID + "_wysiwyg",
...
I have been desperatly searching the web for a way to auto resize an iframe. I have tried many scripts online, but most recieve a permission denied error.
Both sites are members of the same subdomain
site 1: (views iframe) sub.domain.site.ca
site 2: name.site.ca
how is this done (both are members of 'site.ca')
...
I have a client who has a static site with several HTML indexes of MS Word and .xls files they wish to distribute on CD Rom (i.e., no web server). They would like to make this content searchable (both the HTML and the linked DOC and XLS files). I'm tempted to just make a PDF out of this whole thing, but it seems like a blunt tool.
Can a...
I have an anchor that doesn't go anywhere but has an onclick (e.g. <a onclick="..."></a>). My question pertains to the href attribute. What should I put for the value?
If I simply omit href, the anchor doesn't have the appropriate decoration--the mouse pointer icon doesn't change when the mouse is put over it.
If I use href="#", then t...
How do I mirror text just like iTunes in Firefox? Is there JavaScript that can do this or is it possible with CSS? I'm looking for a true mirror image that I can then manipulate not backwards text.
...