Is there a specification for how browsers handle image loading if the image tag is just one of those diembodied Javascript elements that haven't been inserted into the document? An example:
$('<img src="/path/to/image.jpg" />')
Is there a specification that tells the image to load? I ask because I am interested in the following implem...
Hey, This is the one i used. For some condition, i want to hide these by using Visible to false.
<tr id="trpackage" runat="server" valign="top" align="center">
<td id="tdpack" runat="server" style="display: none;" align="center">
.......
</td>
</tr>
In the code behind, Intellisense does not show me either trpackage or tdpack. Can som...
Hi All,
I am writing an ASP.Net application. I am making use of master page in it. I have several child pages with me, which consist of some java script functions;
Let's say;
function ChildPageFunction()
{
//Do something;
}
And master page java script function as;
function MasterPagefunction()
{
//Need to call ChildPagefunc...
I am new to the javascript object model (prototype based) and am trying to do the following:
I have a constructor that simply initializes an array: this.myArray = []. I have a method:
MyConstructor.prototype.addToArray = function(myObject, type) {
//
};
Basically I need myArray to be attached to a specific type. I.e. when addToAr...
I use prototypal inheritance and want to have objects with instance arrays. So if I derive some objects from one object with an instance array and access the array, all of them share the array. I want to push something to the array and only change the array in the actual object, not in all others.
What is a elegent solution to this Prob...
Hi,
I need to get the text (if any) between curly brackets. I did find this other post but technically it wasn't answered correctly:
http://stackoverflow.com/questions/2403678/regular-expression-to-extract-text-between-either-square-or-curly-brackets
It didn't actually say how to actually extract the text. So I have got this far:
var ...
In a webpage is it possible use JavaScript to set the cursor:none; CSS attribute if the mouse is inactive for a certain amount of time (say, five seconds) and set it back to cursor:auto; when it again becomes active?
Thanks for your help.
...
Hi guys.
Quick question. I am writing a website and would like to redirect users to different webpages depending on their browser and also their version of the iPhone operating software. I know you may come back at me and say it should be up to the user to decide which site they view, they don't have a choice in this matter.
The code I...
I have the following HTML containing a drop down list (single selection)
<script type="text/javascript">
$(document).ready(function () {
$("#garden").bind('change', function() {
alert("Changed");
});
});
</script>
<body>
<div id="...
I have a element with selection DISABLED:
<div id="text" onmousedown="selectionStart();" onmouseup="selectionEnd();">
Stuff Here
</div>
What I want to do is create a div over the text the user is trying to select with the values the user selected inside it (so it looks like it's being highlighted). When the selection is completed...
Similar to this http://stackoverflow.com/questions/45169/how-do-i-return-an-array-of-strings-from-an-activex-object-to-jscript but in C#.
I have an COM control that passes back an array of strings to javascript. It seems like javascript cant understand what it is I am passing back and the array in javascript is always undefined.
Java...
I thought I had this worked out, but unfortunately it does not work in FF or Chrome. I have a list of images that I would like displayed as a slideshow with carousel on my page. When the user clicks on the larger image I would like it to open a full size image in a lightbox. Here is the code that works in IE:
<script src="Scripts/jqu...
I'm working on a Raphael JS project and need to display some transparent PNGs with only the parts that are non-transparent to be clickable. Is there a way to:
Upon mouse click, pull out the alpha of the current position.
or
Generate a path which can be be used to define the clickable region (i.e. http://raphaeljs.com/australia.html)
...
Hi, I have a page with a flash chart to display. First, I make a separate AJAX call to grab the chart data, and then process it in javascript and call the flash object functions like this:
var flashObj = YAHOO.util.Dom.get(chartContainer);
if (!YAHOO.env.ua.ie) {
flashObj = flashObj.getElementsByTagName("embed")[0];
}
flashObj.SetSe...
OK so I haven't messed with JavaScript in a long time but I do remember some. I have tried Google but it hasn't proved to be what i wanted.
Let's say I have a link... when you click it -- a window pop-up box appears. You can submit the form... then when you press submit! The pop-up box with the form you just filled out would close and t...
I have an ipad app, with the majority of the functionality being a web application. The UI is just three UIWebViews that load the pages. Every link that is clicked is intercepted, and I have a request variable in the URL called "iPadTarget."
EX: http://www.somedomain.com/blah.asp?iPadTarget=2
The above code would open in the second we...
Hi,
I tried to implement an autocomplete field using jquery:
$('.autoComplete').autocomplete({
source: function (request, response) {
$.ajax({
url: "keywords", type: "GET", dataType: "json",
data: { term: request.term, maxResults: 10 },
sucess:...
I have a project that is using both jQuery 1.3.2 and YUI 2.6, and it has come time to pick one or the other. I have a lot of developers that love jQuery and can't live without it, but I think some of the features of YUI 3 are a better fit for the project (e.g. the base widget).
I was trying to find a mapping of functionality between jQ...
I downloaded the script from emposha.com/javascript/fcbklistselection-like-facebook-friends-selector.html and made a few modifications, as the source wasn't working as required (When submitting the form, all of the values were being sent to the php handler, not just the checked ones).
My working example is in this Demo.
My issue is...
Or am I going to have to write an app to do that??
...